59 references to IsWindows
BuildValidator (1)
IldasmUtilities.cs (1)
26
var ildasmExeName = PlatformInformation.
IsWindows
? "ildasm.exe" : "ildasm";
csc (5)
src\Compilers\Shared\BuildClient.cs (1)
351
Debug.Assert(PlatformInformation.
IsWindows
);
src\Compilers\Shared\BuildServerConnection.cs (2)
556
if (PlatformInformation.
IsWindows
)
667
if (PlatformInformation.
IsWindows
)
src\Compilers\Shared\NamedPipeUtil.cs (1)
58
if (PlatformInformation.
IsWindows
)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
88
var (fileName, sep) = PlatformInformation.
IsWindows
Microsoft.CodeAnalysis (3)
Emit\EmitOptions.cs (1)
19
internal static readonly EmitOptions Default = PlatformInformation.
IsWindows
InternalUtilities\FileLockCheck.cs (1)
127
if (!PlatformInformation.
IsWindows
)
InternalUtilities\PlatformInformation.cs (1)
61
public static string ExeExtension =>
IsWindows
? ".exe" : string.Empty;
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (2)
UnsafeEvolutionTests.cs (2)
1741
expectedDiagnostics = PlatformInformation.
IsWindows
1794
expectedDiagnostics = PlatformInformation.
IsWindows
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (35)
Semantics\InterceptorsTests.cs (34)
3076
var comp = CreateCompilation(new[] { (source, PlatformInformation.
IsWindows
? @"C:\Users\me\projects\Program.cs" : "/Users/me/projects/Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors);
5251
var pathPrefix = PlatformInformation.
IsWindows
? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
5306
var pathPrefix = PlatformInformation.
IsWindows
? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
5327
var pathPrefix = PlatformInformation.
IsWindows
? @"C:\My\Machine\Specific\Path\" : "/My/Machine/Specific/Path/";
5376
var pathPrefix = PlatformInformation.
IsWindows
? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
5389
..(ReadOnlySpan<DiagnosticDescription>)[PlatformInformation.
IsWindows
5443
var pathPrefix1 = PlatformInformation.
IsWindows
? """C:\My\Machine\Specific\Path1\""" : "/My/Machine/Specific/Path1/";
5444
var pathPrefix2 = PlatformInformation.
IsWindows
? """C:\My\Machine\Specific\Path2\""" : "/My/Machine/Specific/Path2/";
5485
var pathPrefix = PlatformInformation.
IsWindows
? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
5520
var pathPrefix = PlatformInformation.
IsWindows
? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
5533
..(ReadOnlySpan<DiagnosticDescription>)[PlatformInformation.
IsWindows
5536
? Diagnostic(ErrorCode.ERR_InterceptorPathNotInCompilation, @"@""/_/Program.cs""").WithArguments(PlatformInformation.
IsWindows
? @"C:\_\Program.cs" : "/_/Program.cs").WithLocation(11, 25)
5562
var pathPrefix = PlatformInformation.
IsWindows
? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
5699
if (PlatformInformation.
IsWindows
)
5743
if (PlatformInformation.
IsWindows
)
5791
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");
5827
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);
5865
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);
5872
Diagnostic(ErrorCode.ERR_InterceptorPathNotInCompilation, @"""../src/Program.cs""").WithArguments(PlatformInformation.
IsWindows
? @"C:\src\Program.cs" : "/src/Program.cs").WithLocation(6, 25)
5904
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);
5938
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);
5972
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);
6002
var pathPrefix = PlatformInformation.
IsWindows
? """C:\My\Machine\Specific\Path\""" : "/My/Machine/Specific/Path/";
6043
var pathPrefix = PlatformInformation.
IsWindows
? """My\Machine\Specific\Path\""" : "My/Machine/Specific/Path/";
6076
""", PlatformInformation.
IsWindows
? @"C:\src1\file1.cs" : "/src1/file1.cs");
6078
var directory2 = PlatformInformation.
IsWindows
? @"C:\src2\" : "/src2/";
6079
var path2 = PlatformInformation.
IsWindows
? @"C:\src2\file1.cs" : "/src2/file1.cs";
6105
""", PlatformInformation.
IsWindows
? @"C:\src1\interceptors.cs" : "/src1/interceptors.cs");
Semantics\SemanticErrorTests.cs (1)
3226
var prefix = PlatformInformation.
IsWindows
? @"C:\a\" : "/a/";
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\IlasmUtilities.cs (1)
48
var ilasmExeName = PlatformInformation.
IsWindows
? "ilasm.exe" : "ilasm";
vbc (5)
src\Compilers\Shared\BuildClient.cs (1)
351
Debug.Assert(PlatformInformation.
IsWindows
);
src\Compilers\Shared\BuildServerConnection.cs (2)
556
if (PlatformInformation.
IsWindows
)
667
if (PlatformInformation.
IsWindows
)
src\Compilers\Shared\NamedPipeUtil.cs (1)
58
if (PlatformInformation.
IsWindows
)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
88
var (fileName, sep) = PlatformInformation.
IsWindows
VBCSCompiler (7)
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)
351
Debug.Assert(PlatformInformation.
IsWindows
);
src\Compilers\Shared\BuildServerConnection.cs (2)
556
if (PlatformInformation.
IsWindows
)
667
if (PlatformInformation.
IsWindows
)
src\Compilers\Shared\NamedPipeUtil.cs (1)
58
if (PlatformInformation.
IsWindows
)
src\Compilers\Shared\RuntimeHostInfo.cs (1)
88
var (fileName, sep) = PlatformInformation.
IsWindows