1 write to ToolsPath
Microsoft.Build (1)
Definition\Toolset.cs (1)
279this.ToolsPath = toolsPath;
40 references to ToolsPath
Microsoft.Build (6)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
882_projectInstance.TaskRegistry.Toolset.ToolsPath);
Definition\Toolset.cs (3)
879string[] defaultTasksFiles = GetTaskFiles(_getFiles, loggingContext, DefaultTasksFilePattern, ToolsPath, "DefaultTasksFileLoadFailureWarning"); 904reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.binPath, EscapingUtilities.Escape(ToolsPath), mayBeReserved: true)); 907reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.toolsPath, EscapingUtilities.Escape(ToolsPath), mayBeReserved: true));
Evaluation\Evaluator.cs (2)
1123SetBuiltInProperty(ReservedPropertyNames.toolsPath, _data.Toolset.ToolsPath); 1124SetBuiltInProperty(ReservedPropertyNames.binPath, _data.Toolset.ToolsPath);
Microsoft.Build.Engine.OM.UnitTests (1)
Construction\ProjectRootElement_Tests.cs (1)
523string toolsPath = projectCollection.Toolsets.Where(toolset => (string.Equals(toolset.ToolsVersion, ObjectModelHelpers.MSBuildDefaultToolsVersion, StringComparison.OrdinalIgnoreCase))).First().ToolsPath;
Microsoft.Build.Engine.UnitTests (30)
Definition\Toolset_Tests.cs (26)
58Assert.Equal(@"C:", t.ToolsPath); 60Assert.Equal(@"C:\", t.ToolsPath); 62Assert.Equal(@"C:\", t.ToolsPath); 65Assert.Equal(@"C:\foo", t.ToolsPath); 67Assert.Equal(@"C:\foo", t.ToolsPath); 69Assert.Equal(@"C:\foo\", t.ToolsPath); // trim at most one slash 72Assert.Equal(@"\\foo\share", t.ToolsPath); 74Assert.Equal(@"\\foo\share", t.ToolsPath); 76Assert.Equal(@"\\foo\share\", t.ToolsPath); // trim at most one slash 81Assert.Equal("/", t.ToolsPath); 84Assert.Equal("/foo", t.ToolsPath); 86Assert.Equal(@"/foo", t.ToolsPath); 88Assert.Equal("/foo/", t.ToolsPath); // trim at most one slash 91Assert.Equal(@"\\foo\share", t.ToolsPath); 93Assert.Equal(@"\\foo\share", t.ToolsPath); 95Assert.Equal(@"\\foo\share/", t.ToolsPath); // trim at most one slash 127Assert.Equal(t.ToolsPath, t2.ToolsPath); 210Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 244Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 278Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 300Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 322Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 350Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 466Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 551Toolset fakeToolset = new Toolset("Fake", parentToolset.ToolsPath, properties, projectCollection, subToolsets, parentToolset.OverrideTasksPath);
Evaluation\Evaluator_Tests.cs (1)
5065Toolset fakeToolset = new Toolset("Fake", parentToolset.ToolsPath, properties, projectCollection, subToolsets, parentToolset.OverrideTasksPath);
Instance\ProjectInstance_Internal_Tests.cs (1)
1024template.ToolsPath,
TestComparers\TaskRegistryComparers.cs (2)
127Assert.Equal(x.ToolsPath, y.ToolsPath);
Microsoft.Build.Utilities.UnitTests (1)
ToolLocationHelper_Tests.cs (1)
692string tv12path = Path.Combine(ProjectCollection.GlobalProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion).ToolsPath, MSBuildExeName);
MSBuild (1)
XMake.cs (1)
1404ProjectSchemaValidationHandler.VerifyProjectSchema(projectFile, schemaFile, toolset.ToolsPath);
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
200string[] defaultTasksFiles = Directory.GetFiles(t.ToolsPath, "*.*tasks", SearchOption.TopDirectoryOnly);