24 references to VisualStudio
Microsoft.Build (10)
BuildEnvironmentHelper.cs (8)
154
BuildEnvironmentMode.
VisualStudio
,
175
BuildEnvironmentMode.
VisualStudio
,
249
BuildEnvironmentMode.
VisualStudio
,
280
BuildEnvironmentMode.
VisualStudio
,
313
BuildEnvironmentMode.
VisualStudio
,
577
if (mode == BuildEnvironmentMode.
VisualStudio
)
609
var existsCheck = mode == BuildEnvironmentMode.
VisualStudio
? new Func<string, bool>(_ => true) : File.Exists;
622
MSBuildExtensionsPath = mode == BuildEnvironmentMode.
VisualStudio
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 (14)
BuildEnvironmentHelper_Tests.cs (14)
80
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
104
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
137
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
207
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
225
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
245
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
258
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
279
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
322
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
335
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
349
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
396
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
429
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);
446
BuildEnvironmentHelper.Instance.Mode.ShouldBe(BuildEnvironmentMode.
VisualStudio
);