33 references to Toolsets
Microsoft.Build (3)
Definition\ToolsetConfigurationReader.cs (3)
86
foreach (ToolsetElement toolset in ConfigurationSection.
Toolsets
)
159
ToolsetElement toolsetElement = ConfigurationSection.
Toolsets
.GetElement(toolsVersion);
220
ToolsetElement toolsetElement = ConfigurationSection.
Toolsets
.GetElement(toolsVersion);
Microsoft.Build.Engine.UnitTests (30)
Definition\ToolsetConfigurationReader_Tests.cs (30)
52
Assert.NotNull(msbuildToolsetSection.
Toolsets
);
53
Assert.Empty(msbuildToolsetSection.
Toolsets
);
80
Assert.Single(msbuildToolsetSection.
Toolsets
);
82
Assert.Equal("2.0", msbuildToolsetSection.
Toolsets
.GetElement(0).toolsVersion);
83
Assert.Single(msbuildToolsetSection.
Toolsets
.GetElement("2.0").PropertyElements);
86
msbuildToolsetSection.
Toolsets
.GetElement("2.0").PropertyElements.GetElement("MSBuildBinPath").Value);
88
Assert.Empty(msbuildToolsetSection.
Toolsets
.GetElement(0).AllProjectImportSearchPaths);
180
Assert.Single(msbuildToolsetSection.
Toolsets
);
182
Assert.Equal("2.0", msbuildToolsetSection.
Toolsets
.GetElement(0).toolsVersion);
183
Assert.Single(msbuildToolsetSection.
Toolsets
.GetElement("2.0").PropertyElements);
186
msbuildToolsetSection.
Toolsets
.GetElement("2.0").PropertyElements.GetElement("MSBuildBinPath").Value);
188
Assert.Empty(msbuildToolsetSection.
Toolsets
.GetElement(0).AllProjectImportSearchPaths);
305
Assert.Single(msbuildToolsetSection.
Toolsets
);
306
Assert.Equal("4.0", msbuildToolsetSection.
Toolsets
.GetElement(0).toolsVersion);
307
Assert.Single(msbuildToolsetSection.
Toolsets
.GetElement("4.0").PropertyElements);
310
msbuildToolsetSection.
Toolsets
.GetElement("4.0").PropertyElements.GetElement("MSBuildBinPath").Value);
449
Assert.Single(msbuildToolsetSection.
Toolsets
);
450
Assert.Equal(2, msbuildToolsetSection.
Toolsets
.GetElement("2.0").PropertyElements.Count);
454
msbuildToolsetSection.
Toolsets
.GetElement("2.0").PropertyElements.GetElement("MSBuildBinPath").Value);
457
msbuildToolsetSection.
Toolsets
.GetElement("2.0").PropertyElements.GetElement("SomeOtherPropertyName").Value);
485
Assert.Single(msbuildToolsetSection.
Toolsets
);
486
Assert.Equal(2, msbuildToolsetSection.
Toolsets
.GetElement("2.0").PropertyElements.Count);
488
msbuildToolsetSection.
Toolsets
.GetElement("2.0").PropertyElements.GetElement("MSBuildBinPath").Value);
490
msbuildToolsetSection.
Toolsets
.GetElement("2.0").PropertyElements.GetElement("SomeOtherPropertyName").Value);
536
Assert.Single(msbuildToolsetSection.
Toolsets
);
538
Assert.Equal("2.0", msbuildToolsetSection.
Toolsets
.GetElement(0).toolsVersion);
539
Assert.Equal(2, msbuildToolsetSection.
Toolsets
.GetElement("2.0").PropertyElements.Count);
542
msbuildToolsetSection.
Toolsets
.GetElement("2.0").PropertyElements.GetElement("MSBuildBinPath").Value);
544
Assert.Equal(3, msbuildToolsetSection.
Toolsets
.GetElement(0).AllProjectImportSearchPaths.Count);
545
var allPaths = msbuildToolsetSection.
Toolsets
.GetElement(0).AllProjectImportSearchPaths;