2 writes to BuildDirectory
Microsoft.Build.Engine.UnitTests (2)
BuildEnvironmentHelper_Tests.cs (2)
470
BuildDirectory
= Path.Combine(TempFolderRoot, "MSBuild", toolsVersion, "Bin");
518
BuildDirectory
= Path.Combine(TempFolderRoot, "MSBuild");
34 references to BuildDirectory
Microsoft.Build.Engine.UnitTests (34)
BuildEnvironmentHelper_Tests.cs (34)
45
var path = env.
BuildDirectory
;
71
var msbuildBinDirectory = env.
BuildDirectory
;
100
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
117
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
118
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory64.ShouldBe(env.
BuildDirectory
);
133
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
150
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
151
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory64.ShouldBe(env.
BuildDirectory
);
167
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
168
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory64.ShouldBe(env.
BuildDirectory
);
181
BuildEnvironmentHelper.ResetInstance_ForUnitTestsOnly(ReturnNull, ReturnNull, () => env.
BuildDirectory
, env.VsInstanceMock, env.EnvironmentMock, () => false);
186
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
187
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory64.ShouldBe(env.
BuildDirectory
);
202
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
347
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
359
var msBuild64Exe = Path.Combine(env.
BuildDirectory
, "amd64", MSBuildExeName);
363
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
364
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory64.ShouldBe(Path.Combine(env.
BuildDirectory
, "amd64"));
379
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
380
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory64.ShouldBe(Path.Combine(env.
BuildDirectory
, "amd64"));
393
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
421
var msBuildAssembly = Path.Combine(env.
BuildDirectory
, "Microsoft.Build.dll");
426
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
443
BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32.ShouldBe(env.
BuildDirectory
);
471
BuildDirectory64 = Path.Combine(
BuildDirectory
, "amd64");
475
Directory.CreateDirectory(
BuildDirectory
);
478
File.WriteAllText(Path.Combine(
BuildDirectory
, file), string.Empty);
492
FileUtilities.DeleteDirectoryNoThrow(
BuildDirectory
, true);
506
public string MSBuildExePath => Path.Combine(
BuildDirectory
, MSBuildExeName);
520
Directory.CreateDirectory(
BuildDirectory
);
528
Directory.CreateDirectory(Path.Combine(
BuildDirectory
, "amd64"));
529
File.WriteAllText(Path.Combine(
BuildDirectory
, "amd64", msBuildExeName), string.Empty);
530
File.WriteAllText(Path.Combine(
BuildDirectory
, "amd64", $"{MSBuildExePath}.config"), string.Empty);
536
FileUtilities.DeleteDirectoryNoThrow(
BuildDirectory
, true);