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)
186private string AppHostToolName => $"{ToolNameWithoutExtension}{PlatformInformation.ExeExtension}";
src\Compilers\Shared\BuildServerConnection.cs (5)
436var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 538if (PlatformInformation.IsWindows) 649if (PlatformInformation.IsWindows) 687if (PlatformInformation.IsUsingMonoRuntime) 707if (PlatformInformation.IsUsingMonoRuntime)
src\Compilers\Shared\NamedPipeUtil.cs (5)
28if (PlatformInformation.IsUnix) 58if (PlatformInformation.IsWindows) 105private static readonly PipeOptions CurrentUserOption = PlatformInformation.IsRunningOnMono 134if (PlatformInformation.IsWindows) 150if (PlatformInformation.IsRunningOnMono)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
81var (fileName, sep) = PlatformInformation.IsWindows
Microsoft.Build.Tasks.CodeAnalysis.Sdk.UnitTests (8)
src\Compilers\Core\MSBuildTaskTests\TestUtilities\IntegrationTestBase.cs (8)
136var originalAppHost = Path.Combine(ManagedToolTask.GetToolDirectory(), $"csc{PlatformInformation.ExeExtension}"); 150(overrideToolExe ? $" /p:CscToolExe=csc{PlatformInformation.ExeExtension}" : ""), 186Assert.Contains($"csc{PlatformInformation.ExeExtension} ", result.Output); 191Assert.DoesNotContain($"csc{PlatformInformation.ExeExtension} ", result.Output); 208var originalAppHost = Path.Combine(ManagedToolTask.GetToolDirectory(), $"vbc{PlatformInformation.ExeExtension}"); 221(overrideToolExe ? $" /p:VbcToolExe=vbc{PlatformInformation.ExeExtension}" : ""), 261Assert.Contains($"vbc{PlatformInformation.ExeExtension} ", result.Output); 266Assert.DoesNotContain($"vbc{PlatformInformation.ExeExtension} ", result.Output);