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)
189private string AppHostToolName => $"{ToolNameWithoutExtension}{PlatformInformation.ExeExtension}";
src\Compilers\Shared\BuildServerConnection.cs (5)
443var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{PlatformInformation.ExeExtension}"); 545if (PlatformInformation.IsWindows) 656if (PlatformInformation.IsWindows) 694if (PlatformInformation.IsUsingMonoRuntime) 714if (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)
158var originalAppHost = Path.Combine(ManagedToolTask.GetToolDirectory(), $"csc{PlatformInformation.ExeExtension}"); 173(overrideToolExe ? $" /p:CscToolExe=csc{PlatformInformation.ExeExtension}" : ""), 215Assert.Contains($"csc{PlatformInformation.ExeExtension} ", result.Output); 220Assert.DoesNotContain($"csc{PlatformInformation.ExeExtension} ", result.Output); 237var originalAppHost = Path.Combine(ManagedToolTask.GetToolDirectory(), $"vbc{PlatformInformation.ExeExtension}"); 251(overrideToolExe ? $" /p:VbcToolExe=vbc{PlatformInformation.ExeExtension}" : ""), 297Assert.Contains($"vbc{PlatformInformation.ExeExtension} ", result.Output); 302Assert.DoesNotContain($"vbc{PlatformInformation.ExeExtension} ", result.Output);