17 writes to ToolsVersion
Microsoft.Build (2)
Construction\Solution\SolutionProjectGenerator.cs (1)
860traversalProject.ToolsVersion = wrapperProjectToolsVersion;
Instance\ProjectInstance.cs (1)
2281rootElement.ToolsVersion = ToolsVersion;
Microsoft.Build.Engine.OM.UnitTests (10)
Construction\ProjectRootElement_Tests.cs (1)
149project.ToolsVersion = "tv";
Definition\Project_Tests.cs (8)
1085xml.ToolsVersion = string.Empty; 1120project.Xml.ToolsVersion = "2.0"; 1129project.Xml.ToolsVersion = "4.0"; 1149project.Xml.ToolsVersion = "2.0"; 1154project.Xml.ToolsVersion = ObjectModelHelpers.MSBuildDefaultToolsVersion; 1173project.Xml.ToolsVersion = "2.0"; 1182project.Xml.ToolsVersion = "4.0"; 1215project.Xml.ToolsVersion = "bogus";
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
64xmlPair.VerifySetter("xmakever", (p) => p.ToolsVersion, (p, v) => p.ToolsVersion = v);
Microsoft.Build.Engine.UnitTests (5)
Construction\SolutionProjectGenerator_Tests.cs (1)
305projectXml.ToolsVersion = ObjectModelHelpers.MSBuildDefaultToolsVersion;
Definition\Project_Internal_Tests.cs (4)
134project.Xml.ToolsVersion = "2.0"; 139project.Xml.ToolsVersion = "4.0"; 185project.Xml.ToolsVersion = "2.0"; 190project.Xml.ToolsVersion = ObjectModelHelpers.MSBuildDefaultToolsVersion;
15 references to ToolsVersion
Microsoft.Build (8)
Definition\Project.cs (3)
4291if (Project.Xml.ToolsVersion.Length > 0) 4293OriginalProjectToolsVersion = Project.Xml.ToolsVersion; 4299Project.Xml.ToolsVersion,
Definition\ProjectCollection.cs (2)
1198toolsVersionFromProject = (xml.ToolsVersion.Length > 0) ? xml.ToolsVersion : DefaultToolsVersion;
Instance\ProjectInstance.cs (3)
3109if (xml.ToolsVersion.Length > 0) 3111_originalProjectToolsVersion = xml.ToolsVersion; 3117xml.ToolsVersion,
Microsoft.Build.Engine.OM.UnitTests (7)
Construction\ProjectRootElement_Tests.cs (2)
111Assert.Equal(ObjectModelHelpers.MSBuildDefaultToolsVersion, project.ToolsVersion); 150Assert.Equal("tv", project.ToolsVersion);
Definition\Project_Tests.cs (2)
1090project.Xml.ToolsVersion.ShouldBe(string.Empty); 1217project.Xml.ToolsVersion.ShouldBe("bogus");
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
532Assert.Equal(realXml.ToolsVersion, viewXml.ToolsVersion);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
64xmlPair.VerifySetter("xmakever", (p) => p.ToolsVersion, (p, v) => p.ToolsVersion = v);