27 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)
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 (2)
28if (PlatformInformation.IsUnix) 58if (PlatformInformation.IsWindows)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
81var (fileName, sep) = PlatformInformation.IsWindows
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (17)
CscTests.cs (3)
488AssertEx.Equal(Path.Combine("path", "to", "custom_csc", $"csc{PlatformInformation.ExeExtension}"), csc.GeneratePathToTool()); 494AssertEx.Equal(Path.Combine("path", "to", "custom_csc", $"csc{PlatformInformation.ExeExtension}"), csc.GeneratePathToTool()); 507csc.ToolExe = $"csc{PlatformInformation.ExeExtension}";
MSBuildManagedToolTests.cs (1)
18? Path.Combine("bincore", $"csc{PlatformInformation.ExeExtension}")
RuntimeHostInfoTests.cs (4)
28var resolvedPath = PlatformInformation.IsWindows 45var globalDotNetExe = globalDotNetDir.CreateFile($"dotnet{PlatformInformation.ExeExtension}"); 79var globalDotNetExe = globalDotNetDir.CreateFile($"dotnet{PlatformInformation.ExeExtension}"); 81var symlinkPath = Path.Combine(binDir.Path, $"dotnet{PlatformInformation.ExeExtension}");
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);
VbcTests.cs (1)
448vbc.ToolExe = $"vbc{PlatformInformation.ExeExtension}";