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