21 references to PlatformInformation
Microsoft.Build.Tasks.CodeAnalysis.Sdk (13)
src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
162
=>
PlatformInformation
.IsUnix ? p : p.Replace('\\', '/');
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (1)
189
private string AppHostToolName => $"{ToolNameWithoutExtension}{
PlatformInformation
.ExeExtension}";
src\Compilers\Shared\BuildServerConnection.cs (5)
443
var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{
PlatformInformation
.ExeExtension}");
545
if (
PlatformInformation
.IsWindows)
656
if (
PlatformInformation
.IsWindows)
694
if (
PlatformInformation
.IsUsingMonoRuntime)
714
if (
PlatformInformation
.IsUsingMonoRuntime)
src\Compilers\Shared\NamedPipeUtil.cs (5)
28
if (
PlatformInformation
.IsUnix)
58
if (
PlatformInformation
.IsWindows)
105
private static readonly PipeOptions CurrentUserOption =
PlatformInformation
.IsRunningOnMono
134
if (
PlatformInformation
.IsWindows)
150
if (
PlatformInformation
.IsRunningOnMono)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
81
var (fileName, sep) =
PlatformInformation
.IsWindows
Microsoft.Build.Tasks.CodeAnalysis.Sdk.UnitTests (8)
src\Compilers\Core\MSBuildTaskTests\TestUtilities\IntegrationTestBase.cs (8)
158
var originalAppHost = Path.Combine(ManagedToolTask.GetToolDirectory(), $"csc{
PlatformInformation
.ExeExtension}");
173
(overrideToolExe ? $" /p:CscToolExe=csc{
PlatformInformation
.ExeExtension}" : ""),
215
Assert.Contains($"csc{
PlatformInformation
.ExeExtension} ", result.Output);
220
Assert.DoesNotContain($"csc{
PlatformInformation
.ExeExtension} ", result.Output);
237
var originalAppHost = Path.Combine(ManagedToolTask.GetToolDirectory(), $"vbc{
PlatformInformation
.ExeExtension}");
251
(overrideToolExe ? $" /p:VbcToolExe=vbc{
PlatformInformation
.ExeExtension}" : ""),
297
Assert.Contains($"vbc{
PlatformInformation
.ExeExtension} ", result.Output);
302
Assert.DoesNotContain($"vbc{
PlatformInformation
.ExeExtension} ", result.Output);