79 references to PlatformInformation
BuildValidator (1)
IldasmUtilities.cs (1)
26
var ildasmExeName =
PlatformInformation
.IsWindows ? "ildasm.exe" : "ildasm";
csc (10)
src\Compilers\Shared\BuildClient.cs (3)
296
if (
PlatformInformation
.IsRunningOnMono)
315
if (!
PlatformInformation
.IsRunningOnMono)
354
Debug.Assert(
PlatformInformation
.IsWindows);
src\Compilers\Shared\BuildServerConnection.cs (4)
463
if (
PlatformInformation
.IsWindows)
548
if (
PlatformInformation
.IsWindows)
586
if (
PlatformInformation
.IsUsingMonoRuntime)
606
if (
PlatformInformation
.IsUsingMonoRuntime)
src\Compilers\Shared\NamedPipeUtil.cs (2)
28
if (
PlatformInformation
.IsUnix)
58
if (
PlatformInformation
.IsWindows)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
54
var (fileName, sep) =
PlatformInformation
.IsWindows
Microsoft.CodeAnalysis (3)
Emit\EmitOptions.cs (1)
19
internal static readonly EmitOptions Default =
PlatformInformation
.IsWindows
FileSystem\PathUtilities.cs (1)
31
internal static bool IsUnixLikePlatform =>
PlatformInformation
.IsUnix;
InternalUtilities\FileLockCheck.cs (1)
127
if (!
PlatformInformation
.IsWindows)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (34)
Semantics\InterceptorsTests.cs (34)
3085
var comp = CreateCompilation(new[] { (source,
PlatformInformation
.IsWindows ? @"C:\Users\me\projects\Program.cs" : "/Users/me/projects/Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors);
5260
var pathPrefix =
PlatformInformation
.IsWindows ? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
5315
var pathPrefix =
PlatformInformation
.IsWindows ? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
5336
var pathPrefix =
PlatformInformation
.IsWindows ? @"C:\My\Machine\Specific\Path\" : "/My/Machine/Specific/Path/";
5385
var pathPrefix =
PlatformInformation
.IsWindows ? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
5398
..(ReadOnlySpan<DiagnosticDescription>)[
PlatformInformation
.IsWindows
5452
var pathPrefix1 =
PlatformInformation
.IsWindows ? """C:\My\Machine\Specific\Path1\""" : "/My/Machine/Specific/Path1/";
5453
var pathPrefix2 =
PlatformInformation
.IsWindows ? """C:\My\Machine\Specific\Path2\""" : "/My/Machine/Specific/Path2/";
5494
var pathPrefix =
PlatformInformation
.IsWindows ? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
5529
var pathPrefix =
PlatformInformation
.IsWindows ? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
5542
..(ReadOnlySpan<DiagnosticDescription>)[
PlatformInformation
.IsWindows
5545
? Diagnostic(ErrorCode.ERR_InterceptorPathNotInCompilation, @"@""/_/Program.cs""").WithArguments(
PlatformInformation
.IsWindows ? @"C:\_\Program.cs" : "/_/Program.cs").WithLocation(11, 25)
5571
var pathPrefix =
PlatformInformation
.IsWindows ? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
5708
if (
PlatformInformation
.IsWindows)
5752
if (
PlatformInformation
.IsWindows)
5800
var verifier = CompileAndVerify(new[] { (source,
PlatformInformation
.IsWindows ? @"C:\src\Program.cs" : "/src/Program.cs"), (source2,
PlatformInformation
.IsWindows ? @"C:\obj\Generated.cs" : "/obj/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "1");
5836
var comp = CreateCompilation(new[] { (source,
PlatformInformation
.IsWindows ? @"C:\src\Program.cs" : "/src/Program.cs"), (source2,
PlatformInformation
.IsWindows ? @"Generator\Generated.cs" : "Generator/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors);
5874
var comp = CreateCompilation(new[] { (source,
PlatformInformation
.IsWindows ? @"src\Program.cs" : "src/Program.cs"), (source2,
PlatformInformation
.IsWindows ? @"C:\obj\Generated.cs" : "/obj/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors);
5881
Diagnostic(ErrorCode.ERR_InterceptorPathNotInCompilation, @"""../src/Program.cs""").WithArguments(
PlatformInformation
.IsWindows ? @"C:\src\Program.cs" : "/src/Program.cs").WithLocation(6, 25)
5913
var comp = CreateCompilation(new[] { (source,
PlatformInformation
.IsWindows ? @"C:\src\Program.cs" : "/src/Program.cs"), (source2,
PlatformInformation
.IsWindows ? @"C:\obj\Generated.cs" : "/obj/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors);
5947
var comp = CreateCompilation(new[] { (source,
PlatformInformation
.IsWindows ? @"C:\src\Program.cs" : "/src/Program.cs"), (source2,
PlatformInformation
.IsWindows ? @"C:\obj\Generated.cs" : "/obj/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors);
5981
var comp = CreateCompilation(new[] { (source,
PlatformInformation
.IsWindows ? @"C:\src\Program.cs" : "/src/Program.cs"), (source2,
PlatformInformation
.IsWindows ? @"C:\obj\Generated.cs" : "/obj/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors);
6011
var pathPrefix =
PlatformInformation
.IsWindows ? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
6052
var pathPrefix =
PlatformInformation
.IsWindows ? """My\Machine\Specific\Path\""" : "My/Machine/Specific/Path/";
6085
""",
PlatformInformation
.IsWindows ? @"C:\src1\file1.cs" : "/src1/file1.cs");
6087
var directory2 =
PlatformInformation
.IsWindows ? @"C:\src2\" : "/src2/";
6088
var path2 =
PlatformInformation
.IsWindows ? @"C:\src2\file1.cs" : "/src2/file1.cs";
6114
""",
PlatformInformation
.IsWindows ? @"C:\src1\interceptors.cs" : "/src1/interceptors.cs");
Microsoft.CodeAnalysis.Scripting (1)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GacFileResolver.cs (1)
34
PlatformInformation
.IsRunningOnMono;
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
MetadataShadowCopyProviderTests.cs (1)
18
using static Roslyn.Utilities.
PlatformInformation
;
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\IlasmUtilities.cs (1)
48
var ilasmExeName =
PlatformInformation
.IsWindows ? "ilasm.exe" : "ilasm";
vbc (13)
src\Compilers\Shared\BuildClient.cs (3)
296
if (
PlatformInformation
.IsRunningOnMono)
315
if (!
PlatformInformation
.IsRunningOnMono)
354
Debug.Assert(
PlatformInformation
.IsWindows);
src\Compilers\Shared\BuildServerConnection.cs (4)
463
if (
PlatformInformation
.IsWindows)
548
if (
PlatformInformation
.IsWindows)
586
if (
PlatformInformation
.IsUsingMonoRuntime)
606
if (
PlatformInformation
.IsUsingMonoRuntime)
src\Compilers\Shared\NamedPipeUtil.cs (5)
28
if (
PlatformInformation
.IsUnix)
58
if (
PlatformInformation
.IsWindows)
105
private static readonly PipeOptions CurrentUserOption =
PlatformInformation
.IsRunningOnMono
134
if (
PlatformInformation
.IsWindows)
150
if (
PlatformInformation
.IsRunningOnMono)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
54
var (fileName, sep) =
PlatformInformation
.IsWindows
VBCSCompiler (15)
src\Compilers\Server\VBCSCompiler\MemoryHelper.cs (1)
37
if (!
PlatformInformation
.IsWindows)
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnectionHost.cs (1)
196
if (!
PlatformInformation
.IsWindows)
src\Compilers\Shared\BuildClient.cs (3)
296
if (
PlatformInformation
.IsRunningOnMono)
315
if (!
PlatformInformation
.IsRunningOnMono)
354
Debug.Assert(
PlatformInformation
.IsWindows);
src\Compilers\Shared\BuildServerConnection.cs (4)
463
if (
PlatformInformation
.IsWindows)
548
if (
PlatformInformation
.IsWindows)
586
if (
PlatformInformation
.IsUsingMonoRuntime)
606
if (
PlatformInformation
.IsUsingMonoRuntime)
src\Compilers\Shared\NamedPipeUtil.cs (5)
28
if (
PlatformInformation
.IsUnix)
58
if (
PlatformInformation
.IsWindows)
105
private static readonly PipeOptions CurrentUserOption =
PlatformInformation
.IsRunningOnMono
134
if (
PlatformInformation
.IsWindows)
150
if (
PlatformInformation
.IsRunningOnMono)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
54
var (fileName, sep) =
PlatformInformation
.IsWindows