1 write to Mode
Microsoft.Build (1)
BuildEnvironmentHelper.cs (1)
545Mode = mode;
32 references to Mode
Microsoft.Build (3)
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 (29)
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);
ProjectCache\ProjectCacheTests.cs (3)
557currentBuildEnvironment.Mode, 675currentBuildEnvironment.Mode, 1443currentBuildEnvironment.Mode,