1 write to CurrentMSBuildToolsDirectory
Microsoft.Build (1)
BuildEnvironmentHelper.cs (1)
562CurrentMSBuildToolsDirectory = currentMSBuildExeFile.DirectoryName;
38 references to CurrentMSBuildToolsDirectory
Microsoft.Build (28)
BackEnd\Components\Communications\CurrentHost.cs (1)
30string dotnetExe = Path.Combine(FileUtilities.GetFolderAbove(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, 2),
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 (8)
564MSBuildToolsDirectory32 = CurrentMSBuildToolsDirectory; 565MSBuildToolsDirectory64 = CurrentMSBuildToolsDirectory; 566MSBuildToolsDirectoryRoot = CurrentMSBuildToolsDirectory; 582NativeMethodsShared.ProcessorArchitectures.X86 => CurrentMSBuildToolsDirectory, 591MSBuildToolsDirectoryRoot = CurrentMSBuildToolsDirectory; 612MSBuildToolsDirectory64 = existsCheck(potentialAmd64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "amd64") : CurrentMSBuildToolsDirectory; 616MSBuildToolsDirectoryArm64 = existsCheck(potentialARM64FromX86) ? Path.Combine(MSBuildToolsDirectoryRoot, "arm64") : 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);
MSBuildLoadContext.cs (1)
99var assemblyNameInExecutableDirectory = Path.Combine(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory,
Utilities\NuGetFrameworkWrapper.cs (1)
205BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory;
Utilities\Utilities.cs (2)
479string extensionsPath = BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory; 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);