13 references to PlatformInformation
Microsoft.Build.Tasks.CodeAnalysis (10)
src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
162
=>
PlatformInformation
.IsUnix ? p : p.Replace('\\', '/');
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (1)
174
private string AppHostToolName => $"{ToolNameWithoutExtension}{
PlatformInformation
.ExeExtension}";
src\Compilers\Shared\BuildServerConnection.cs (5)
435
var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{
PlatformInformation
.ExeExtension}");
475
if (
PlatformInformation
.IsWindows)
564
if (
PlatformInformation
.IsWindows)
602
if (
PlatformInformation
.IsUsingMonoRuntime)
622
if (
PlatformInformation
.IsUsingMonoRuntime)
src\Compilers\Shared\NamedPipeUtil.cs (2)
28
if (
PlatformInformation
.IsUnix)
58
if (
PlatformInformation
.IsWindows)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
72
var (fileName, sep) =
PlatformInformation
.IsWindows
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
CscTests.cs (2)
488
AssertEx.Equal(Path.Combine("path", "to", "custom_csc", $"csc{
PlatformInformation
.ExeExtension}"), csc.GeneratePathToTool());
494
AssertEx.Equal(Path.Combine("path", "to", "custom_csc", $"csc{
PlatformInformation
.ExeExtension}"), csc.GeneratePathToTool());
MSBuildManagedToolTests.cs (1)
18
? Path.Combine("bincore", $"csc{
PlatformInformation
.ExeExtension}")