40 references to Platform
xunit.console (40)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (8)
34
readonly
Platform
operatingSystemPlatform;
42
Platform
? operatingSystemPlatform = null,
115
case
Platform
.Windows:
119
case
Platform
.Darwin:
123
case
Platform
.Linux:
142
if (operatingSystemPlatform ==
Platform
.Windows)
146
else if (operatingSystemPlatform ==
Platform
.Darwin)
151
else if (operatingSystemPlatform ==
Platform
.Linux)
common\AssemblyResolution\Microsoft.DotNet.PlatformAbstractions\Native\PlatformApis.cs (14)
18
private static readonly Lazy<
Platform
> _platform = new Lazy<
Platform
>(DetermineOSPlatform);
26
case
Platform
.Windows:
28
case
Platform
.Linux:
30
case
Platform
.Darwin:
41
case
Platform
.Windows:
43
case
Platform
.Linux:
45
case
Platform
.Darwin:
72
public static
Platform
GetOSPlatform()
143
private static
Platform
DetermineOSPlatform()
147
return
Platform
.Windows;
151
return
Platform
.Linux;
155
return
Platform
.Darwin;
157
return
Platform
.Unknown;
common\AssemblyResolution\Microsoft.DotNet.PlatformAbstractions\RuntimeEnvironment.cs (7)
13
public static
Platform
OperatingSystemPlatform { get; } = PlatformApis.GetOSPlatform();
48
case
Platform
.Windows:
50
case
Platform
.Linux:
57
case
Platform
.Darwin:
94
case
Platform
.Windows:
96
case
Platform
.Linux:
98
case
Platform
.Darwin:
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\DotNetReferenceAssembliesPathResolver.cs (3)
25
var
os = RuntimeEnvironment.OperatingSystemPlatform;
27
if (os ==
Platform
.Windows)
32
if (os ==
Platform
.Darwin &&
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\PackageCompilationAssemblyResolver.cs (2)
41
internal static string[] GetDefaultProbeDirectories(
Platform
osPlatform, IEnvironment environment)
60
if (osPlatform ==
Platform
.Windows)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\ReferenceAssemblyPathResolver.cs (4)
87
internal static string[] GetFallbackSearchPaths(IFileSystem fileSystem,
Platform
platform, IEnvironment environment)
89
if (platform !=
Platform
.Windows)
103
internal static string GetDefaultReferenceAssembliesPath(IFileSystem fileSystem,
Platform
platform, IEnvironment environment)
112
if (platform !=
Platform
.Windows)
common\AssemblyResolution\XunitPackageCompilationAssemblyResolver.cs (2)
30
static List<string> GetDefaultProbeDirectories(
Platform
osPlatform, IMessageSink internalDiagnosticsMessageSink)
48
if (osPlatform ==
Platform
.Windows)