12 instantiations of BuildEnvironment
Microsoft.Build (9)
BuildEnvironmentHelper.cs (9)
119
return new
BuildEnvironment
(
153
return new
BuildEnvironment
(
174
return new
BuildEnvironment
(
184
return new
BuildEnvironment
(
226
return new
BuildEnvironment
(
248
return new
BuildEnvironment
(
279
return new
BuildEnvironment
(
312
return new
BuildEnvironment
(
345
return new
BuildEnvironment
(
Microsoft.Build.Engine.UnitTests (3)
ProjectCache\ProjectCacheTests.cs (3)
556
new
BuildEnvironment
(
674
new
BuildEnvironment
(
1442
new
BuildEnvironment
(
19 references to BuildEnvironment
Microsoft.Build (16)
BuildEnvironmentHelper.cs (16)
45
public static
BuildEnvironment
Instance
77
private static
BuildEnvironment
Initialize()
80
var possibleLocations = new Func<
BuildEnvironment
>[]
93
var
env = location();
128
private static
BuildEnvironment
TryFromEnvironmentVariable()
137
private static
BuildEnvironment
TryFromVisualStudioProcess()
162
private static
BuildEnvironment
TryFromMSBuildProcess()
193
private static
BuildEnvironment
TryFromMSBuildAssembly()
206
var
environment = TryFromMSBuildExeUnderVisualStudio(msBuildExe);
238
private static
BuildEnvironment
TryFromMSBuildExeUnderVisualStudio(string msbuildExe, bool allowLegacyToolsVersion = false)
260
private static
BuildEnvironment
TryFromDevConsole()
288
private static
BuildEnvironment
TryFromSetupApi()
321
private static
BuildEnvironment
TryFromAppContextBaseDirectory()
340
private static
BuildEnvironment
TryFromStandaloneMSBuildExe(string msBuildExePath)
486
internal static void ResetInstance_ForUnitTestsOnly(
BuildEnvironment
buildEnvironment)
505
public static
BuildEnvironment
s_instance = Initialize();
Microsoft.Build.Engine.UnitTests (3)
ProjectCache\ProjectCacheTests.cs (3)
551
var
currentBuildEnvironment = BuildEnvironmentHelper.Instance;
660
var
currentBuildEnvironment = BuildEnvironmentHelper.Instance;
1437
var
currentBuildEnvironment = BuildEnvironmentHelper.Instance;