57 references to IsWindows
BuildValidator (1)
IldasmUtilities.cs (1)
26
var ildasmExeName = PlatformInformation.
IsWindows
? "ildasm.exe" : "ildasm";
csc (5)
src\Compilers\Shared\BuildClient.cs (1)
354
Debug.Assert(PlatformInformation.
IsWindows
);
src\Compilers\Shared\BuildServerConnection.cs (2)
463
if (PlatformInformation.
IsWindows
)
548
if (PlatformInformation.
IsWindows
)
src\Compilers\Shared\NamedPipeUtil.cs (1)
58
if (PlatformInformation.
IsWindows
)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
54
var (fileName, sep) = PlatformInformation.
IsWindows
Microsoft.CodeAnalysis (2)
Emit\EmitOptions.cs (1)
19
internal static readonly EmitOptions Default = PlatformInformation.
IsWindows
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.Test.Utilities (1)
Metadata\IlasmUtilities.cs (1)
48
var ilasmExeName = PlatformInformation.
IsWindows
? "ilasm.exe" : "ilasm";
vbc (6)
src\Compilers\Shared\BuildClient.cs (1)
354
Debug.Assert(PlatformInformation.
IsWindows
);
src\Compilers\Shared\BuildServerConnection.cs (2)
463
if (PlatformInformation.
IsWindows
)
548
if (PlatformInformation.
IsWindows
)
src\Compilers\Shared\NamedPipeUtil.cs (2)
58
if (PlatformInformation.
IsWindows
)
134
if (PlatformInformation.
IsWindows
)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
54
var (fileName, sep) = PlatformInformation.
IsWindows
VBCSCompiler (8)
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 (1)
354
Debug.Assert(PlatformInformation.
IsWindows
);
src\Compilers\Shared\BuildServerConnection.cs (2)
463
if (PlatformInformation.
IsWindows
)
548
if (PlatformInformation.
IsWindows
)
src\Compilers\Shared\NamedPipeUtil.cs (2)
58
if (PlatformInformation.
IsWindows
)
134
if (PlatformInformation.
IsWindows
)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
54
var (fileName, sep) = PlatformInformation.
IsWindows