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)
186
private string AppHostToolName => $"{ToolNameWithoutExtension}{
PlatformInformation
.ExeExtension}";
src\Compilers\Shared\BuildServerConnection.cs (5)
436
var processFilePath = Path.Combine(clientDir, $"VBCSCompiler{
PlatformInformation
.ExeExtension}");
538
if (
PlatformInformation
.IsWindows)
649
if (
PlatformInformation
.IsWindows)
687
if (
PlatformInformation
.IsUsingMonoRuntime)
707
if (
PlatformInformation
.IsUsingMonoRuntime)
src\Compilers\Shared\NamedPipeUtil.cs (2)
28
if (
PlatformInformation
.IsUnix)
58
if (
PlatformInformation
.IsWindows)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
81
var (fileName, sep) =
PlatformInformation
.IsWindows
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (17)
CscTests.cs (3)
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());
507
csc.ToolExe = $"csc{
PlatformInformation
.ExeExtension}";
MSBuildManagedToolTests.cs (1)
18
? Path.Combine("bincore", $"csc{
PlatformInformation
.ExeExtension}")
RuntimeHostInfoTests.cs (4)
28
var resolvedPath =
PlatformInformation
.IsWindows
45
var globalDotNetExe = globalDotNetDir.CreateFile($"dotnet{
PlatformInformation
.ExeExtension}");
79
var globalDotNetExe = globalDotNetDir.CreateFile($"dotnet{
PlatformInformation
.ExeExtension}");
81
var symlinkPath = Path.Combine(binDir.Path, $"dotnet{
PlatformInformation
.ExeExtension}");
TestUtilities\IntegrationTestBase.cs (8)
136
var originalAppHost = Path.Combine(ManagedToolTask.GetToolDirectory(), $"csc{
PlatformInformation
.ExeExtension}");
150
(overrideToolExe ? $" /p:CscToolExe=csc{
PlatformInformation
.ExeExtension}" : ""),
186
Assert.Contains($"csc{
PlatformInformation
.ExeExtension} ", result.Output);
191
Assert.DoesNotContain($"csc{
PlatformInformation
.ExeExtension} ", result.Output);
208
var originalAppHost = Path.Combine(ManagedToolTask.GetToolDirectory(), $"vbc{
PlatformInformation
.ExeExtension}");
221
(overrideToolExe ? $" /p:VbcToolExe=vbc{
PlatformInformation
.ExeExtension}" : ""),
261
Assert.Contains($"vbc{
PlatformInformation
.ExeExtension} ", result.Output);
266
Assert.DoesNotContain($"vbc{
PlatformInformation
.ExeExtension} ", result.Output);
VbcTests.cs (1)
448
vbc.ToolExe = $"vbc{
PlatformInformation
.ExeExtension}";