1 write to Mode
Microsoft.Build (1)
BuildEnvironmentHelper.cs (1)
545
Mode
= mode;
32 references to Mode
Microsoft.Build (3)
Definition\ToolsetConfigurationReader.cs (1)
269
if (BuildEnvironmentHelper.Instance.
Mode
!= BuildEnvironmentMode.None &&
Evaluation\IntrinsicFunctions.cs (1)
694
public static bool IsRunningFromVisualStudio() => BuildEnvironmentHelper.Instance.
Mode
== BuildEnvironmentMode.VisualStudio;
Utilities\NuGetFrameworkWrapper.cs (1)
203
string assemblyDirectory = BuildEnvironmentHelper.Instance.
Mode
== BuildEnvironmentMode.VisualStudio ?
Microsoft.Build.Engine.UnitTests (29)
BuildEnvironmentHelper_Tests.cs (26)
37
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.Standalone);
58
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.Standalone);
80
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
104
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
121
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.Standalone);
137
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
154
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.Standalone);
171
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.Standalone);
190
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.Standalone);
207
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
225
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
231
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.None);
245
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
258
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
279
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
285
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.None);
302
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.None);
322
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
335
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
349
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
366
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.Standalone);
381
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.Standalone);
396
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
412
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.None);
429
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
446
BuildEnvironmentHelper.Instance.
Mode
.ShouldBe(BuildEnvironmentMode.VisualStudio);
ProjectCache\ProjectCacheTests.cs (3)
557
currentBuildEnvironment.
Mode
,
675
currentBuildEnvironment.
Mode
,
1443
currentBuildEnvironment.
Mode
,