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