127 references to MSBuildDefaultToolsVersion
Microsoft.Build.Engine.OM.UnitTests (41)
Construction\ProjectRootElement_Tests.cs (2)
111Assert.Equal(ObjectModelHelpers.MSBuildDefaultToolsVersion, project.ToolsVersion); 528string toolsPath = projectCollection.Toolsets.Where(toolset => (string.Equals(toolset.ToolsVersion, ObjectModelHelpers.MSBuildDefaultToolsVersion, StringComparison.OrdinalIgnoreCase))).First().ToolsPath;
Definition\Project_Tests.cs (21)
1072ObjectModelHelpers.MSBuildDefaultToolsVersion); 1074project.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1103project.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1127project.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1132project.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1152project.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1154project.Xml.ToolsVersion = ObjectModelHelpers.MSBuildDefaultToolsVersion; 1156project.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1180project.GetPropertyValue("msbuildtoolsversion").ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1185project.GetPropertyValue("msbuildtoolsversion").ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1190project.GetPropertyValue("msbuildtoolsversion").ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1202project.GetPropertyValue("msbuildtoolsversion").ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1233Project p = new Project(GetSampleProjectRootElement(), null, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection); 1235p.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1237Toolset t = p.ProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1263Project p = new Project(GetSampleProjectRootElement(), null, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection); 1265p.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1291Project p = new Project(GetSampleProjectRootElement(), globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection); 1293p.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1323Project p = new Project(GetSampleProjectRootElement(), globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, "ABCDEF", collection, ProjectLoadSettings.Default); 1325p.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion);
Definition\ProjectCollection_Tests.cs (17)
270Project project = collection.LoadProject(reader, ObjectModelHelpers.MSBuildDefaultToolsVersion); 413new Project(xml, globalProperties1, ObjectModelHelpers.MSBuildDefaultToolsVersion) 420new Project(xml, globalProperties2, ObjectModelHelpers.MSBuildDefaultToolsVersion) 425Assert.True(ReferenceEquals(project1, ProjectCollection.GlobalProjectCollection.LoadProject(projectDirectory, globalProperties1, ObjectModelHelpers.MSBuildDefaultToolsVersion))); 426Assert.True(ReferenceEquals(project2, ProjectCollection.GlobalProjectCollection.LoadProject(projectDirectory, globalProperties2, ObjectModelHelpers.MSBuildDefaultToolsVersion))); 512var project2 = new Project(xml, null, ObjectModelHelpers.MSBuildDefaultToolsVersion) { FullPath = "c:\\1" }; 514Assert.True(ReferenceEquals(project2, ProjectCollection.GlobalProjectCollection.LoadProject("c:\\1", null, ObjectModelHelpers.MSBuildDefaultToolsVersion))); 1092Assert.Equal(ObjectModelHelpers.MSBuildDefaultToolsVersion, collection.DefaultToolsVersion); 1112Assert.Equal(ObjectModelHelpers.MSBuildDefaultToolsVersion, collection.DefaultToolsVersion); 1165Assert.Equal(project.ToolsVersion, ObjectModelHelpers.MSBuildDefaultToolsVersion); 1268Project project = collection.LoadProject(reader, ObjectModelHelpers.MSBuildDefaultToolsVersion); 1277project = collection2.LoadProject(reader2, ObjectModelHelpers.MSBuildDefaultToolsVersion); 1286project = collection3.LoadProject(reader3, ObjectModelHelpers.MSBuildDefaultToolsVersion); 1295project = collection4.LoadProject(reader4, ObjectModelHelpers.MSBuildDefaultToolsVersion); 1304project = collection5.LoadProject(reader5, ObjectModelHelpers.MSBuildDefaultToolsVersion); 1314project = collection6.LoadProject(reader6, ObjectModelHelpers.MSBuildDefaultToolsVersion); 1322project = collection7.LoadProject(reader7, ObjectModelHelpers.MSBuildDefaultToolsVersion);
Instance\ProjectInstance_Tests.cs (1)
1030using ProjectFromString projectFromString = new(content, globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, ProjectCollection.GlobalProjectCollection);
Microsoft.Build.Engine.UnitTests (80)
BackEnd\BuildManager_Tests.cs (29)
442Project project = CreateProject(CleanupFileContents(contents), MSBuildDefaultToolsVersion, _projectCollection, false); 492Project project = CreateProject(CleanupFileContents(contents), MSBuildDefaultToolsVersion, 651var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 705MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 775MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 835MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 902MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 933MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 1489BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1509BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1541BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1628BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1665BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1703BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1741BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1775Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 1806Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 1841Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 1881var data = new BuildRequestData(projectFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 1898Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 2197var data = new BuildRequestData(fileName, _projectCollection.GlobalProperties, MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 3375var data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "BaseTest" }, services); 3383data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "MovedTest" }, services); 3408Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 3438Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 3469Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 3514BuildRequestData data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "One", "Two", "Three" }, services); 4046var buildRequestData = new BuildRequestData(entryFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "EntryTarget" }, null); 4411Project project = CreateProject(projectContents, MSBuildDefaultToolsVersion, _projectCollection, true);
BackEnd\BuildRequestConfiguration_Tests.cs (3)
282ObjectModelHelpers.MSBuildDefaultToolsVersion, 359ObjectModelHelpers.MSBuildDefaultToolsVersion, 462using ProjectFromString projectFromString = new(projectBody, globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection);
BackEnd\ConfigurationMetadata_Tests.cs (7)
88BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 89BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, ObjectModelHelpers.MSBuildDefaultToolsVersion); 104BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 105BuildRequestConfiguration config = new BuildRequestConfiguration(1, data, ObjectModelHelpers.MSBuildDefaultToolsVersion); 113data = new BuildRequestData("file2", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 114BuildRequestConfiguration config2 = new BuildRequestConfiguration(1, data, ObjectModelHelpers.MSBuildDefaultToolsVersion); 153using ProjectFromString projectFromString = new(projectBody, globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion);
BackEnd\IntrinsicTask_Tests.cs (1)
1276"), globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion);
BackEnd\RequestBuilder_Tests.cs (2)
262? ObjectModelHelpers.MSBuildDefaultToolsVersion 270ObjectModelHelpers.MSBuildDefaultToolsVersion,
BackEnd\SdkResultOutOfProc_Tests.cs (2)
123ProjectInstance projectInstance = CreateProjectInstance(projectPath, MSBuildDefaultToolsVersion, _projectCollection); 168ProjectInstance projectInstance = CreateProjectInstance(entryProjectPath, MSBuildDefaultToolsVersion, _projectCollection);
BackEnd\TargetEntry_Tests.cs (2)
860ObjectModelHelpers.MSBuildDefaultToolsVersion, 877ObjectModelHelpers.MSBuildDefaultToolsVersion,
Construction\SolutionProjectGenerator_Tests.cs (12)
305projectXml.ToolsVersion = ObjectModelHelpers.MSBuildDefaultToolsVersion; 440Assert.Equal(ObjectModelHelpers.MSBuildDefaultToolsVersion, instances[0].ToolsVersion); 484Assert.Equal(ObjectModelHelpers.MSBuildDefaultToolsVersion, instances[0].ToolsVersion); 521Assert.Equal(ObjectModelHelpers.MSBuildDefaultToolsVersion, instances[0].ToolsVersion); 614string[] logoutputs = { ".[11.0]. .[4.0].", ".[11.0]. .[4.0].", String.Format(".[{0}]. .[{0}].", ObjectModelHelpers.MSBuildDefaultToolsVersion) }; 661logger1.AssertLogContains(String.Format(".[{0}]. .[{0}].", ObjectModelHelpers.MSBuildDefaultToolsVersion)); 719Assert.Equal(ObjectModelHelpers.MSBuildDefaultToolsVersion, instances[0].ToolsVersion); 728logger.AssertLogContains(String.Format(".[{0}].", ObjectModelHelpers.MSBuildDefaultToolsVersion)); 1274var instance = SolutionProjectGenerator.Generate(solution, null, ObjectModelHelpers.MSBuildDefaultToolsVersion, _buildEventContext, CreateMockLoggingService())[0]; 1342ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, null, ObjectModelHelpers.MSBuildDefaultToolsVersion, _buildEventContext, CreateMockLoggingService()); 2130BuildRequestData request = new BuildRequestData(projectFilePath, globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 2218BuildRequestData request = new BuildRequestData(projectFilePath, globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
Definition\Project_Internal_Tests.cs (2)
190project.Xml.ToolsVersion = ObjectModelHelpers.MSBuildDefaultToolsVersion; 196ObjectModelHelpers.MSBuildDefaultToolsVersion,
Definition\Toolset_Tests.cs (8)
199Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 233Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 267Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 289Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 311Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 339Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 455Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 540Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion);
Evaluation\Evaluator_Tests.cs (2)
4334Project project = new Project(null, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection); 5147Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion);
EvaluationProfiler_Tests.cs (1)
281var project = CreateProject(content, MSBuildDefaultToolsVersion, projectCollection);
Instance\HostServices_Tests.cs (2)
483using ProjectFromString projectFromString = new(contents, new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion); 511ObjectModelHelpers.MSBuildDefaultToolsVersion);
Instance\ProjectInstance_Internal_Tests.cs (7)
282p.Toolset.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 325p.Toolset.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 359p.Toolset.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 387p.Toolset.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 426ProjectInstance p = new ProjectInstance(xml, globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, "ABCDEF", collection); 428p.Toolset.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 968using ProjectFromString projectFromString = new(content, globalProperties, toolsVersion ?? ObjectModelHelpers.MSBuildDefaultToolsVersion, projectCollection ?? ProjectCollection.GlobalProjectCollection);
Microsoft.Build.Utilities.UnitTests (6)
MuxLogger_Tests.cs (2)
96using ProjectFromString projectFromString = new(projectBody, null, ObjectModelHelpers.MSBuildDefaultToolsVersion, projectCollection); 106using ProjectFromString projectFromString1 = new(projectBody, null, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection);
ToolLocationHelper_Tests.cs (4)
692string tv12path = Path.Combine(ProjectCollection.GlobalProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion).ToolsPath, MSBuildExeName); 694tv12path.ShouldBe(ToolLocationHelper.GetPathToBuildToolsFile(MSBuildExeName, ObjectModelHelpers.MSBuildDefaultToolsVersion)); 714var toolsPath32 = ProjectCollection.GlobalProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion).Properties["MSBuildToolsPath32"]; 717tv12path.ShouldBe(ToolLocationHelper.GetPathToBuildToolsFile("msbuild.exe", ObjectModelHelpers.MSBuildDefaultToolsVersion, UtilitiesDotNetFrameworkArchitecture.Bitness32));