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); 25case Platform.Windows: 27case Platform.Linux: 29case Platform.Darwin: 40case Platform.Windows: 42case Platform.Linux: 44case Platform.Darwin: 71public static Platform GetOSPlatform() 142private static Platform DetermineOSPlatform() 146return Platform.Windows; 150return Platform.Linux; 154return Platform.Darwin; 156return 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)