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