44 references to BuildEnvironmentMode
Microsoft.Build (18)
BuildEnvironmentHelper.cs (15)
120BuildEnvironmentMode.None, 154BuildEnvironmentMode.VisualStudio, 175BuildEnvironmentMode.VisualStudio, 185BuildEnvironmentMode.Standalone, 227BuildEnvironmentMode.Standalone, 249BuildEnvironmentMode.VisualStudio, 280BuildEnvironmentMode.VisualStudio, 313BuildEnvironmentMode.VisualStudio, 346BuildEnvironmentMode.Standalone, 539public BuildEnvironment(BuildEnvironmentMode mode, string currentMSBuildExePath, bool runningTests, bool runningInMSBuildExe, bool runningInVisualStudio, 570if (mode == BuildEnvironmentMode.None || currentMSBuildExeFile == null || currentToolsDirectory == null) 577if (mode == BuildEnvironmentMode.VisualStudio) 609var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : File.Exists; 622MSBuildExtensionsPath = mode == BuildEnvironmentMode.VisualStudio 627internal BuildEnvironmentMode Mode { get; }
Definition\ToolsetConfigurationReader.cs (1)
269if (BuildEnvironmentHelper.Instance.Mode != BuildEnvironmentMode.None &&
Evaluation\IntrinsicFunctions.cs (1)
694public static bool IsRunningFromVisualStudio() => BuildEnvironmentHelper.Instance.Mode == BuildEnvironmentMode.VisualStudio;
Utilities\NuGetFrameworkWrapper.cs (1)
203string assemblyDirectory = BuildEnvironmentHelper.Instance.Mode == BuildEnvironmentMode.VisualStudio ?
Microsoft.Build.Engine.UnitTests (26)
BuildEnvironmentHelper_Tests.cs (26)
37BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.Standalone); 58BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.Standalone); 80BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 104BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 121BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.Standalone); 137BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 154BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.Standalone); 171BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.Standalone); 190BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.Standalone); 207BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 225BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 231BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.None); 245BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 258BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 279BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 285BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.None); 302BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.None); 322BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 335BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 349BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 366BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.Standalone); 381BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.Standalone); 396BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 412BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.None); 429BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio); 446BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.VisualStudio);