44 references to BuildEnvironmentMode
Microsoft.Build (18)
BuildEnvironmentHelper.cs (15)
120
BuildEnvironmentMode
.None,
154
BuildEnvironmentMode
.VisualStudio,
175
BuildEnvironmentMode
.VisualStudio,
185
BuildEnvironmentMode
.Standalone,
227
BuildEnvironmentMode
.Standalone,
249
BuildEnvironmentMode
.VisualStudio,
280
BuildEnvironmentMode
.VisualStudio,
313
BuildEnvironmentMode
.VisualStudio,
346
BuildEnvironmentMode
.Standalone,
539
public BuildEnvironment(
BuildEnvironmentMode
mode, string currentMSBuildExePath, bool runningTests, bool runningInMSBuildExe, bool runningInVisualStudio,
570
if (mode ==
BuildEnvironmentMode
.None || currentMSBuildExeFile == null || currentToolsDirectory == null)
577
if (mode ==
BuildEnvironmentMode
.VisualStudio)
609
var existsCheck = mode ==
BuildEnvironmentMode
.VisualStudio ? new Func<string, bool>(_ => true) : File.Exists;
622
MSBuildExtensionsPath = mode ==
BuildEnvironmentMode
.VisualStudio
627
internal
BuildEnvironmentMode
Mode { get; }
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 (26)
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);