1 write to CurrentMSBuildToolsDirectory
Microsoft.Build (1)
BuildEnvironmentHelper.cs (1)
562CurrentMSBuildToolsDirectory = currentMSBuildExeFile.DirectoryName;
35 references to CurrentMSBuildToolsDirectory
Microsoft.Build (25)
BackEnd\Node\OutOfProcNode.cs (2)
476NativeMethodsShared.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory); 710NativeMethodsShared.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
BackEnd\Node\OutOfProcServerNode.cs (2)
252NativeMethodsShared.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory); 426NativeMethodsShared.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
450BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
BuildEnvironmentHelper.cs (7)
564MSBuildToolsDirectory32 = CurrentMSBuildToolsDirectory; 565MSBuildToolsDirectory64 = CurrentMSBuildToolsDirectory; 566MSBuildToolsDirectoryRoot = CurrentMSBuildToolsDirectory; 582NativeMethodsShared.ProcessorArchitectures.X86 => CurrentMSBuildToolsDirectory, 591MSBuildToolsDirectoryRoot = CurrentMSBuildToolsDirectory; 612MSBuildToolsDirectory64 = existsCheck(potentialAmd64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "amd64") : CurrentMSBuildToolsDirectory; 681defaultSdkPath = Path.Combine(CurrentMSBuildToolsDirectory, "Sdks");
Definition\ToolsetLocalReader.cs (3)
28protected override string MSBuildOverrideTasksPath => BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory; 40yield return new ToolsetPropertyDefinition(MSBuildConstants.ToolsPath, BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, _sourceLocation); 43System.IO.Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "Roslyn"),
Definition\ToolsetReader.cs (2)
170var currentDir = BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory.TrimEnd(Path.DirectorySeparatorChar); 629Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, trimmedValue));
Evaluation\IntrinsicFunctions.cs (1)
661return BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory;
FrameworkLocationHelper.cs (1)
1047_ => BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory,
Instance\TaskRegistry.cs (3)
89private static string s_potentialTasksV4Location = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, s_tasksV4Filename); 108private static string s_potentialTasksV12Location = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, s_tasksV12Filename); 127private static string s_potentialTasksCoreLocation = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, s_tasksCoreFilename);
TaskLoader.cs (1)
105appDomainInfo.ApplicationBase = BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory;
Utilities\NuGetFrameworkWrapper.cs (1)
205BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory;
Utilities\Utilities.cs (1)
553localAppData = BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory;
Microsoft.Build.Engine.UnitTests (10)
BuildEnvironmentHelper_Tests.cs (4)
31string toolsDirectoryPath = BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory.ToLowerInvariant(); 52BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory.ShouldBe(path); 82BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory.ShouldBe(msbuildBinDirectory); 410BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory.ShouldBe(Path.GetDirectoryName(entryProcess));
Instance\ProjectInstance_Internal_Tests.cs (1)
567Directory.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
ProjectCache\ProjectCacheTests.cs (1)
54BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory,
TypeLoader_Dependencies_Tests.cs (1)
17private static readonly string ProjectFileFolder = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "TaskWithDependency");
TypeLoader_Tests.cs (3)
21private static readonly string ProjectFileFolder = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "PortableTask"); 25Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, "..", "..", "..", "Samples", "PortableTask")); 75string dllPath = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, dllName);