28 references to ToolsVersion
Microsoft.Build (8)
BackEnd\Shared\ConfigurationMetadata.cs (1)
45_toolsVersion = project.ToolsVersion;
Definition\ProjectCollection.cs (2)
2548if (HasEquivalentGlobalPropertiesAndToolsVersion(existing, project.GlobalProperties, project.ToolsVersion)) 2615if (!String.Equals(project.ToolsVersion, toolsVersion, StringComparison.OrdinalIgnoreCase))
Instance\ProjectInstance.cs (4)
399this.Toolset = project.ProjectCollection.GetToolset(project.ToolsVersion); 412_originalProjectToolsVersion = project.ToolsVersion; 475Toolset = linkedProject.ProjectCollection.GetToolset(linkedProject.ToolsVersion); 488_originalProjectToolsVersion = linkedProject.ToolsVersion;
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
104/// Access to remote <see cref="Project.ToolsVersion"/>.
Microsoft.Build.Engine.OM.UnitTests (14)
Definition\Project_Tests.cs (10)
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); 1156project.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1235p.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1265p.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1293p.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1325p.ToolsVersion.ShouldBe(ObjectModelHelpers.MSBuildDefaultToolsVersion);
Definition\ProjectCollection_Tests.cs (1)
1165Assert.Equal(project.ToolsVersion, ObjectModelHelpers.MSBuildDefaultToolsVersion);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
365Assert.Equal(real.ToolsVersion, view.ToolsVersion);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
66public string ToolsVersion => this.Source.ToolsVersion;
Microsoft.Build.Engine.UnitTests (4)
BackEnd\ConfigurationMetadata_Tests.cs (1)
79Assert.Equal(project.ToolsVersion, metadata.ToolsVersion);
Definition\Project_Internal_Tests.cs (3)
58Assert.Equal("x", project.ToolsVersion); 137Assert.Equal("2.0", project.ToolsVersion); 141Assert.Equal("2.0", project.ToolsVersion);
TaskUsageLogger (2)
TaskUsageLogger.cs (2)
116GatherAndEvaluateDefaultTasksForToolsVersion(p.ToolsVersion, p); 122_toolsVersionsByProjectContextId[e.BuildEventContext.ProjectContextId] = p.ToolsVersion;