539 references to RuntimeInformation
aspire (29)
Certificates\CertificateGeneration\CertificateManager.cs (2)
742if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 770if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Certificates\CertificateService.cs (1)
96if (trustResult.IsPartiallyTrusted && RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
Commands\UpdateCommand.cs (4)
352var exeName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "aspire.exe" : "aspire"; 399if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 466RuntimeInformation.IsOSPlatform(OSPlatform.Windows) 473if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
DotNet\DotNetCliExecutionFactory.cs (1)
108RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet"
DotNet\DotNetSdkInstaller.cs (1)
104return RuntimeInformation.ProcessArchitecture switch
Projects\DotNetBasedAppHostServerProject.cs (1)
609var arch = RuntimeInformation.OSArchitecture switch
src\Shared\BundleDiscovery.cs (1)
280var arch = RuntimeInformation.OSArchitecture switch
Telemetry\AspireCliTelemetry.cs (7)
255if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 260if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 265if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 270return RuntimeInformation.OSDescription; 278if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 283if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 288if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Telemetry\TelemetryServiceCollectionExtensions.cs (3)
21if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 25else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 29else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
Templating\DotNetTemplateFactory.cs (1)
116var dotnetFileName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet";
Utils\CliDownloader.cs (5)
112if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 116else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 150else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 156throw new PlatformNotSupportedException($"Unsupported operating system: {RuntimeInformation.OSDescription}"); 162var arch = RuntimeInformation.ProcessArchitecture;
Utils\EnvironmentChecker\DotNetSdkCheck.cs (1)
60var architecture = System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
Utils\EnvironmentChecker\WslEnvironmentCheck.cs (1)
19if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
Aspire.Cli.Tests (5)
Certificates\CertificateServiceTests.cs (1)
102if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
Commands\UpdateCommandTests.cs (1)
126if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Telemetry\LinuxInformationProviderTests.cs (1)
18Assert.SkipUnless(RuntimeInformation.IsOSPlatform(OSPlatform.Linux),
Telemetry\MacOSXInformationProviderTests.cs (1)
18Assert.SkipUnless(RuntimeInformation.IsOSPlatform(OSPlatform.OSX),
Telemetry\WindowsInformationProviderTests.cs (1)
18Assert.SkipUnless(RuntimeInformation.IsOSPlatform(OSPlatform.Windows),
Aspire.Dashboard (1)
Utils\VersionHelpers.cs (1)
19var description = RuntimeInformation.FrameworkDescription;
Aspire.EndToEnd.Tests (6)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (4)
87string buildCmd = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".\\build.cmd" : "./build.sh"; 100.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 123.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 191if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
tests\Shared\TemplatesTesting\TestExtensions.cs (1)
39if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
188if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Aspire.Hosting (1)
src\Shared\BundleDiscovery.cs (1)
280var arch = RuntimeInformation.OSArchitecture switch
Aspire.Hosting.CodeGeneration.Python (3)
PythonLanguageSupport.cs (3)
165if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 198var pathSeparator = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ';' : ':'; 201var extensions = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Aspire.Hosting.DevTunnels (1)
DevTunnelCli.cs (1)
370if (!useShellExecute && RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Aspire.Templates.Tests (6)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (4)
87string buildCmd = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".\\build.cmd" : "./build.sh"; 100.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 123.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 191if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
tests\Shared\TemplatesTesting\TestExtensions.cs (1)
39if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
188if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
crossgen2 (7)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (6)
65if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 67else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 69else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 71else if (RuntimeInformation.IsOSPlatform(OSPlatform.FreeBSD)) 73else if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("OPENBSD"))) 100return RuntimeInformation.ProcessArchitecture switch
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (1)
115string jitInterfaceLibrary = "jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
Crossgen2Tasks (13)
PrepareForReadyToRunCompilation.cs (2)
83return RuntimeInformation.IsOSPlatform(OSPlatform.Windows); 95return RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
ResolveReadyToRunCompilers.cs (11)
293if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 297if (RuntimeInformation.OSArchitecture == _targetArchitecture) 314if (RuntimeInformation.OSArchitecture == _targetArchitecture) 323if (RuntimeInformation.OSArchitecture != Architecture.X64) 347else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 351if (RuntimeInformation.OSArchitecture == _targetArchitecture) 356else if (RuntimeInformation.OSArchitecture == Architecture.X64) 373else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 376if (_targetArchitecture != Architecture.X64 || RuntimeInformation.OSArchitecture != Architecture.X64) 397if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 402else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
dotnet (37)
Commands\Run\CSharpCompilerCommand.cs (1)
263var rid = RuntimeInformation.RuntimeIdentifier;
Commands\Run\RunCommand.cs (2)
677runtimeIdentifier: RuntimeInformation.RuntimeIdentifier, 678defaultAppHostRuntimeIdentifier: RuntimeInformation.RuntimeIdentifier,
Commands\Test\MTP\Terminal\AnsiTerminal.cs (1)
42private readonly bool _useBusyIndicator = !RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
Commands\Test\MTP\Terminal\NativeMethods.cs (1)
23s_isWindows ??= RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
Commands\Test\MTP\Terminal\NonAnsiTerminal.cs (5)
43_colorNotSupported ??= RuntimeInformation.IsOSPlatform(OSPlatform.Create("ANDROID")) || 44RuntimeInformation.IsOSPlatform(OSPlatform.Create("IOS")) || 45RuntimeInformation.IsOSPlatform(OSPlatform.Create("TVOS")) || 46RuntimeInformation.IsOSPlatform(OSPlatform.Create("WASI")) || 47RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER"));
Commands\Test\MTP\TestApplication.cs (3)
400{ HandshakeMessagePropertyNames.Architecture, RuntimeInformation.ProcessArchitecture.ToString() }, 401{ HandshakeMessagePropertyNames.Framework, RuntimeInformation.FrameworkDescription }, 402{ HandshakeMessagePropertyNames.OS, RuntimeInformation.OSDescription },
Commands\Test\VSTest\TestCommand.cs (1)
584s_isWindows ??= RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
Commands\Test\VSTest\VSTestForwardingApp.cs (1)
51["VSTEST_DOTNET_ROOT_ARCHITECTURE"] = RuntimeInformation.ProcessArchitecture.ToString()
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (1)
250string appHostSourceDirectory = _shellShimTemplateFinder.ResolveAppHostSourceDirectoryAsync(_architecture, framework, RuntimeInformation.ProcessArchitecture).Result;
Commands\Workload\Install\FileBasedInstaller.cs (1)
629return Path.Combine(_workloadMetadataDir, RuntimeInformation.ProcessArchitecture.ToString(), _sdkFeatureBand.ToString(), HistoryDir);
NuGetSignatureVerificationEnabler.cs (1)
57return RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
ParserOptionActions.cs (1)
183string currentRid = RuntimeInformation.RuntimeIdentifier;
src\sdk\src\Common\EnvironmentVariableNames.cs (2)
67=> TryGetDotNetRootVariableNameImpl(runtimeIdentifier, defaultAppHostRuntimeIdentifier, targetFrameworkVersion, RuntimeInformation.ProcessArchitecture, Environment.Is64BitProcess); 88=> TryGetDotNetRootVariableNameImpl(runtimeIdentifier, defaultAppHostRuntimeIdentifier, null, RuntimeInformation.ProcessArchitecture, Environment.Is64BitProcess, onlyUseArchSpecific: true);
Telemetry\DevDeviceIDGetter.cs (6)
41if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 49else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 68else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 83if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 97else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 113else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Telemetry\TelemetryCommonProperties.cs (4)
10using RuntimeInformation = System.Runtime.InteropServices.RuntimeInformation; 61{ OSArchitecture, RuntimeInformation.OSArchitecture.ToString() }, 63{ RuntimeId, RuntimeInformation.RuntimeIdentifier }, 129private static string GetKernelVersion() => RuntimeInformation.OSDescription;
ToolManifest\ToolManifestFinder.cs (1)
190return !RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
ToolPackage\ToolPackageDownloader.cs (2)
185RuntimeInformation.RuntimeIdentifier); 202RuntimeIdentifier = RuntimeInformation.RuntimeIdentifier
ToolPackage\ToolPackageDownloaderBase.cs (3)
346Reporter.Output.WriteLine($"Target RID: {RuntimeInformation.RuntimeIdentifier}"); 350var bestRuntimeIdentifier = Microsoft.NET.Build.Tasks.NuGetUtils.GetBestMatchingRid(runtimeGraph, RuntimeInformation.RuntimeIdentifier, toolConfiguration.RidSpecificPackages.Keys, out bool wasInGraph); 353throw new ToolPackageException(string.Format(CliStrings.ToolUnsupportedRuntimeIdentifier, RuntimeInformation.RuntimeIdentifier,
dotnet-dev-certs (10)
Program.cs (7)
273if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 278if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 283if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 380if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 402if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 411if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 417if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
745if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 773if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
dotnet-getdocument (1)
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
dotnet-openapi (1)
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
dotnet-sql-cache (1)
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
dotnet-suggest (2)
DotnetMuxer.cs (1)
50RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
DotnetProfileDirectory.cs (1)
15RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "USERPROFILE" : "HOME";
dotnet-svcutil-lib (4)
AppInsightsTelemetryClient.cs (3)
169if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 173else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 177else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
Shared\Utilities\RuntimeEnvironmentHelper.cs (1)
21return System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows);
dotnet-svcutil-lib.Tests (6)
FixupUtil.cs (2)
58if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 62else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
GlobalToolTests.cs (1)
105if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux))
TestInit.cs (2)
268if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && File.Exists(Path.Combine(linuxBaselinePath, Path.GetFileName(this_TestCaseLogFile)))) 354if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && File.Exists(Path.Combine(linuxBaselinePath, Path.GetFileName(this_TestCaseLogFile))))
UnitTest.cs (1)
207if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux))
dotnet-user-jwts (2)
Helpers\JwtStore.cs (1)
43if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
dotnet-user-secrets (3)
Internal\SecretsStore.cs (1)
77if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Internal\SetCommand.cs (1)
25var catCmd = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
GetDocument.Insider (1)
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
ilc (7)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (6)
65if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 67else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 69else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 71else if (RuntimeInformation.IsOSPlatform(OSPlatform.FreeBSD)) 73else if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("OPENBSD"))) 100return RuntimeInformation.ProcessArchitecture switch
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (1)
115string jitInterfaceLibrary = "jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
ILCompiler.DependencyAnalysisFramework (1)
EventSourceLogStrategy.cs (1)
59RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && // Processing these event source events is only implemented on Windows
ILCompiler.ReadyToRun (2)
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (2)
76libHandle = NativeLibrary.Load("jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant(), assembly, searchPath); 165return targetOSComponent + '_' + targetArchComponent + "_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
ILCompiler.RyuJit (2)
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (2)
76libHandle = NativeLibrary.Load("jitinterface_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant(), assembly, searchPath); 165return targetOSComponent + '_' + targetArchComponent + "_" + RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
Infrastructure.Common (2)
FrameworkHelper.cs (1)
30_currentFrameworkDescription = RuntimeInformation.FrameworkDescription;
OSHelper.cs (1)
70_currentOSDescription = RuntimeInformation.OSDescription;
Infrastructure.IntegrationTests (3)
OSAndFrameworkTests.4.1.1.cs (3)
18RuntimeInformation.FrameworkDescription)); 28RuntimeInformation.OSDescription, 64string runtimeOSDescription = RuntimeInformation.OSDescription;
Infrastructure.Tests (3)
PowerShellScripts\PowerShellCommand.cs (2)
166if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 323if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
WorkflowScripts\NodeCommand.cs (1)
158if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
test\ProjectTemplates\Infrastructure\WellKnownPaths.cs (1)
62var dotNetExeName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.Arcade.Common (2)
Command.cs (1)
14public static readonly string[] RunnableSuffixes = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
CommandFactory.cs (1)
54if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.AspNetCore.Components.Testing.Tasks (1)
GenerateE2EManifest.cs (1)
105var exeSuffix = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : "";
Microsoft.AspNetCore.Components.WebAssembly (1)
_generated\1\JSExports.g.cs (1)
21if (initialized || global::System.Runtime.InteropServices.RuntimeInformation.OSArchitecture != global::System.Runtime.InteropServices.Architecture.Wasm)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.AspNetCore.DataProtection (16)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (1)
82Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (1)
43Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
44Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
DataProtectionServiceCollectionExtensions.cs (1)
64Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
EphemeralDataProtectionProvider.cs (2)
50Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); 103Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
Internal\ContainerUtils.cs (2)
27if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 91if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
KeyManagement\XmlKeyManager.cs (5)
606else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && typeof(CngCbcAuthenticatedEncryptorDescriptorDeserializer).MatchName(typeNameToMatch, _typeNameResolver)) 610else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && typeof(CngGcmAuthenticatedEncryptorDescriptorDeserializer).MatchName(typeNameToMatch, _typeNameResolver)) 668Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); // Hint for the platform compatibility analyzer. 693Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); // Hint for the platform compatibility analyzer. 698Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); // Hint for the platform compatibility analyzer.
Repositories\DefaultKeyStorageDirectories.cs (2)
41if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && !string.IsNullOrEmpty(localAppDataFromSystemPath)) 53if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Repositories\FileSystemXmlRepository.cs (1)
144if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
745if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 773if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.AspNetCore.Hosting (3)
src\aspnetcore\src\Shared\ErrorPage\ErrorPageModelBuilder.cs (3)
50RuntimeInformation.FrameworkDescription, 51RuntimeInformation.ProcessArchitecture.ToString(), 54RuntimeInformation.OSDescription);
Microsoft.AspNetCore.Http.Connections.Client (4)
Internal\Constants.cs (4)
27var runtimeVersion = RuntimeInformation.FrameworkDescription; 34if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 38else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 42else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
Microsoft.AspNetCore.InternalTesting (19)
DumpCollector\DumpCollector.cs (1)
13if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
HttpClientSlim.cs (1)
111var retryCount = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? 1 : 3;
TestPlatformHelper.cs (3)
15RuntimeInformation.IsOSPlatform(OSPlatform.Windows); 18RuntimeInformation.IsOSPlatform(OSPlatform.Linux); 21RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
xunit\DockerOnlyAttribute.cs (1)
20if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
xunit\MaximumOSVersionAttribute.cs (4)
55if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 59else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 63else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 72if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
xunit\MinimumOsVersionAttribute.cs (4)
51if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 55else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 59else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 68if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
xunit\OSSkipConditionAttribute.cs (3)
47if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 51else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 55else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
xunit\SkipOnAlpineAttribute.cs (1)
30RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && File.Exists("/etc/os-release") &&
xunit\SkipOnHelixAttribute.cs (1)
64if (Queues.Contains("All.Linux") && RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
Microsoft.AspNetCore.Razor.Utilities.Shared (4)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\Utilities\PlatformInformation.cs (4)
10public static bool IsWindows { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); 11public static bool IsLinux { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Linux); 12public static bool IsMacOS { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.OSX); 15public static bool IsFreeBSD { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.FreeBSD);
Microsoft.AspNetCore.Server.IIS (3)
src\aspnetcore\src\Shared\ErrorPage\ErrorPageModelBuilder.cs (3)
50RuntimeInformation.FrameworkDescription, 51RuntimeInformation.ProcessArchitecture.ToString(), 54RuntimeInformation.OSDescription);
Microsoft.AspNetCore.Server.IntegrationTesting (9)
Common\DotNetCommands.cs (2)
88return (RuntimeInformation.OSArchitecture == Architecture.X64 || RuntimeInformation.OSArchitecture == Architecture.Arm64)
Common\RuntimeArchitectures.cs (2)
14return RuntimeInformation.OSArchitecture switch 21_ => throw new NotImplementedException($"Unknown RuntimeInformation.OSArchitecture: {RuntimeInformation.OSArchitecture.ToString()}"),
TestMatrix.cs (3)
60if (RuntimeInformation.OSArchitecture == Architecture.X64) 253return (RuntimeInformation.OSArchitecture == Architecture.Arm || RuntimeInformation.OSArchitecture == Architecture.X86)
xunit\SkipOn32BitOSAttribute.cs (2)
16RuntimeInformation.OSArchitecture == Architecture.Arm64 17|| RuntimeInformation.OSArchitecture == Architecture.X64;
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
745if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 773if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.AspNetCore.Testing (1)
FakeSslCertificateFactory.cs (1)
16private static readonly RSA _rsa = GenerateRsa(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
Microsoft.AspNetCore.WebUtilities (2)
FileBufferingReadStream.cs (1)
246if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
FileBufferingWriteStream.cs (1)
273if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.Build (6)
BuildCheck\Checks\UntrustedLocationCheck.cs (2)
68if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 95else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
Construction\Solution\SolutionFile.cs (1)
131private static readonly StringComparer _pathComparer = RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
Evaluation\IntrinsicFunctions.cs (1)
579return RuntimeInformation.IsOSPlatform(OSPlatform.Create(platformString.ToUpperInvariant()));
Logging\TerminalLogger\Terminal.cs (1)
87public bool SupportsProgressReporting { get; } = !RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
Resources\Constants.cs (1)
240var runtimeInformationType = new Tuple<string, Type>(null, typeof(RuntimeInformation));
Microsoft.Build.Framework (12)
EncodingUtilities.cs (2)
292else if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 303if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Environment.OSVersion.Version.Major >= 10) // UTF-8 is only officially supported on 10+.
FileClassifier.cs (1)
71private static readonly StringComparison PathComparison = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
NativeMethods.cs (8)
169processorArchitecture = RuntimeInformation.OSArchitecture switch 463get { return RuntimeInformation.IsOSPlatform(OSPlatform.Linux); } 474return RuntimeInformation.IsOSPlatform(OSPlatform.Create("FREEBSD")) || 475RuntimeInformation.IsOSPlatform(OSPlatform.Create("NETBSD")) || 476RuntimeInformation.IsOSPlatform(OSPlatform.Create("OPENBSD")); 488return RuntimeInformation.IsOSPlatform(OSPlatform.Create("HAIKU")); 502_isWindows ??= RuntimeInformation.IsOSPlatform(OSPlatform.Windows); 517_isOSX ??= RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
XMakeAttributes.cs (1)
422switch (RuntimeInformation.ProcessArchitecture)
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
1120if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
63bool runningOnWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
Microsoft.CodeAnalysis (5)
Compilation\DeterministicKeyBuilder.cs (2)
306writer.Write("frameworkDescription", RuntimeInformation.FrameworkDescription); 307writer.Write("osDescription", RuntimeInformation.OSDescription);
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
416if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
DiaSymReader\SymUnmanagedFactory.cs (2)
36=> RuntimeInformation.ProcessArchitecture switch 178switch (RuntimeInformation.ProcessArchitecture, createReader)
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
288if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.CodeAnalysis.Scripting (1)
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCache.cs (1)
28return System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription.Contains(".NET Framework")
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
450If RuntimeInformation.IsOSPlatform(OSPlatform.Windows) Then
Microsoft.CodeAnalysis.Workspaces (3)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
416if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Workspace\ProjectSystem\ReferenceFileChangeTracker.cs (2)
84else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 89else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
39private static readonly string DotnetExecutable = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet";
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Program.cs (1)
38logger.LogInformation($"BuildHost Runtime Version: {System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription}");
Microsoft.Diagnostics.NETCore.Client (19)
DiagnosticsClient\DiagnosticsClient.cs (3)
485if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 781if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 800if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
DiagnosticsClient\DiagnosticsClientConnector.cs (1)
65string fullPort = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? portConfig.Address : Path.GetFullPath(portConfig.Address);
DiagnosticsIpc\IpcEndpointConfig.cs (3)
54if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 63if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 129TransportType transportType = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? TransportType.NamedPipe : TransportType.UnixDomainSocket;
DiagnosticsIpc\IpcServerTransport.cs (1)
28if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
DiagnosticsIpc\IpcTransport.cs (9)
243public static string IpcRootPath { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? @"\\.\pipe\" : Path.GetTempPath(); 244public static string DiagnosticsPortPattern { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? @"^dotnet-diagnostic-(\d+)$" : @"^dotnet-diagnostic-(\d+)-(\d+)-socket$"; 260RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? string.Format(_procRootPathFormat, pid) : null; 312if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 372if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 429if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 508if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 529if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 543if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (1)
641if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
ReversedServer\ReversedDiagnosticsServer.cs (1)
402Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows), "Pipe stream should only be used on Windows.");
Microsoft.DiaSymReader (2)
SymUnmanagedFactory.cs (2)
53=> RuntimeInformation.ProcessArchitecture switch 210switch (RuntimeInformation.ProcessArchitecture, createReader)
Microsoft.DotNet.Arcade.Sdk (4)
src\InstallDotNetCore.cs (4)
97if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && string.Equals("x86", architecture, StringComparison.OrdinalIgnoreCase)) 208else if (RuntimeInformation.OSArchitecture == Architecture.X86 || 209RuntimeInformation.OSArchitecture == Architecture.X64) 256if (!string.Equals(architecture, RuntimeInformation.OSArchitecture.ToString(), StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\NativeMethods.cs (1)
22if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.DotNet.Cli.Definitions (2)
Common\CommonOptions.cs (1)
307RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
src\sdk\src\Resolvers\Microsoft.DotNet.NativeWrapper\Constants.cs (1)
14RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : string.Empty;
Microsoft.DotNet.Cli.Utils (20)
Constants.cs (1)
14RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : string.Empty;
EnvironmentProvider.cs (1)
25_executableExtensions = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
FileNameSuffixes.cs (2)
16if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 20else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
FrameworkDependencyFile.cs (1)
45RuntimeInformation.RuntimeIdentifier,
PathUtility.cs (3)
157if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 294if (result.EndsWith(":") && RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 317if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
RuntimeEnvironment.cs (10)
73return RuntimeInformation.OSDescription.Split(' ')[2].Split('.')[0]; 163var versionDescription = RuntimeInformation.OSDescription.Split(' ')[2]; 221if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 225if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 229if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 234if (RuntimeInformation.IsOSPlatform(OSPlatform.FreeBSD)) 238if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("OPENBSD"))) 242if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("ILLUMOS"))) 246if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("SOLARIS"))) 250if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("HAIKU")))
UILanguageOverride.cs (2)
122if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Environment.OSVersion.Version.Major >= 10) // UTF-8 is only officially supported on 10+. 131Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
Microsoft.DotNet.Configurer (1)
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
50var userProfileVariableName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.DotNet.HotReload.Watch (6)
Process\ProcessRunner.cs (4)
28private static readonly int s_processTerminatedExitCode = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? unchecked((int)0xC000013A) : 137; 159if (processSpec.IsUserApplication && RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 237var forceOnly = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && !processSpec.IsUserApplication; 327if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
UI\PhysicalConsole.cs (1)
53if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Utilities\PathUtilities.cs (1)
12=> RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : "";
Microsoft.DotNet.HotReload.WebAssembly.Browser (1)
_generated\0\JSExports.g.cs (1)
19if (initialized || global::System.Runtime.InteropServices.RuntimeInformation.OSArchitecture != global::System.Runtime.InteropServices.Architecture.Wasm)
Microsoft.DotNet.MacOsPkg.Cli (1)
Program.cs (1)
24if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Microsoft.DotNet.NativeWrapper (2)
Constants.cs (1)
14RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : string.Empty;
Interop.cs (1)
14public static readonly bool RunningOnWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
Microsoft.DotNet.ProjectTools (1)
VirtualProjectBuilder.cs (1)
145string directory = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.DotNet.StrongName (1)
Verification.cs (1)
147if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.DotNet.TemplateLocator (3)
src\sdk\src\Common\EnvironmentVariableNames.cs (2)
67=> TryGetDotNetRootVariableNameImpl(runtimeIdentifier, defaultAppHostRuntimeIdentifier, targetFrameworkVersion, RuntimeInformation.ProcessArchitecture, Environment.Is64BitProcess); 88=> TryGetDotNetRootVariableNameImpl(runtimeIdentifier, defaultAppHostRuntimeIdentifier, null, RuntimeInformation.ProcessArchitecture, Environment.Is64BitProcess, onlyUseArchSpecific: true);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadInstallType.cs (1)
36var architecture = RuntimeInformation.ProcessArchitecture.ToString();
Microsoft.Extensions.AI.Abstractions.Tests (2)
Utilities\AIJsonUtilitiesTests.cs (2)
654if (RuntimeInformation.FrameworkDescription.Contains(".NET Framework")) 890if (!RuntimeInformation.FrameworkDescription.Contains(".NET Framework"))
Microsoft.Extensions.AI.Evaluation.Console (12)
Telemetry\DeviceIdHelper.cs (8)
70if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 76else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 81else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 101if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 107else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 112else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 130if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 153if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Telemetry\TelemetryConstants.cs (1)
129RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "USERPROFILE" : "HOME");
Telemetry\TelemetryHelper.cs (3)
53[TelemetryConstants.PropertyNames.KernelVersion] = RuntimeInformation.OSDescription, 54[TelemetryConstants.PropertyNames.RuntimeId] = RuntimeInformation.RuntimeIdentifier, 60_telemetryClient.Context.Device.OperatingSystem = RuntimeInformation.OSDescription;
Microsoft.Extensions.AI.Templates.Tests (1)
test\ProjectTemplates\Infrastructure\WellKnownPaths.cs (1)
62var dotNetExeName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.Extensions.DependencyModel (3)
EnvironmentWrapper.cs (1)
23RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
Resolution\DotNetReferenceAssembliesPathResolver.cs (2)
36RuntimeInformation.IsOSPlatform(OSPlatform.Windows) 45RuntimeInformation.IsOSPlatform(OSPlatform.OSX) &&
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\StartupHook.cs (1)
104if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.Extensions.Hosting (1)
HostingHostBuilderExtensions.cs (1)
226!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ||
Microsoft.Extensions.Hosting.WindowsServices (3)
WindowsServiceLifetimeHostBuilderExtensions.cs (3)
110Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); 116Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); 137Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
Microsoft.Extensions.Logging.Console (1)
ConsoleLoggerProvider.cs (1)
80!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingCodeWriter.cs (1)
11 private static readonly string NewLine = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "\r\n" : "\n";
Microsoft.McpServer.ProjectTemplates.Tests (1)
test\ProjectTemplates\Infrastructure\WellKnownPaths.cs (1)
62var dotNetExeName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.ML.CpuMath.UnitTests (3)
UnitTests.cs (3)
36public static bool IsNetCore => Environment.Version.Major >= 5 || RuntimeInformation.FrameworkDescription.StartsWith(".NET Core", StringComparison.OrdinalIgnoreCase); 38public static bool SkipAvxSse => RuntimeInformation.ProcessArchitecture == Architecture.Arm || RuntimeInformation.ProcessArchitecture == Architecture.Arm64;
Microsoft.ML.FastTree (2)
Dataset\IntArray.cs (2)
40public static bool UseFastTreeNative => RuntimeInformation.ProcessArchitecture == Architecture.X64 || RuntimeInformation.ProcessArchitecture == Architecture.X86;
Microsoft.ML.OneDal (2)
OneDalUtils.cs (2)
24System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.X64) 26if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.ML.Predictor.Tests (3)
TestPredictors.cs (3)
286if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 377if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) // PR curves are only generated on Windows. 1678if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) // PR curves are only generated on Windows.
Microsoft.ML.StandardTrainers (1)
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
452System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.X64)
Microsoft.ML.Sweeper (1)
ConfigRunner.cs (1)
93if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows))
Microsoft.ML.TestFramework (20)
Attributes\NotArm32FactAttribute.cs (1)
20return RuntimeInformation.ProcessArchitecture != Architecture.Arm;
Attributes\OnnxTheoryAttribute.cs (1)
23return (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
Attributes\TensorflowFactAttribute.cs (1)
24(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ||
Attributes\TensorflowTheoryAttribute.cs (1)
24(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ||
Attributes\TorchSharpFactAttribute.cs (1)
29(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ||
BaseTestBaseline.cs (10)
128if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 130if (RuntimeInformation.ProcessArchitecture == Architecture.X64) 132else if (RuntimeInformation.ProcessArchitecture == Architecture.Arm64) 135if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 137if (RuntimeInformation.ProcessArchitecture == Architecture.X64) 139else if (RuntimeInformation.ProcessArchitecture == Architecture.Arm64) 141else if (RuntimeInformation.ProcessArchitecture == Architecture.Arm) 146if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 148if (RuntimeInformation.ProcessArchitecture == Architecture.Arm64) 164if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
BaseTestPredictorsMaml.cs (1)
202if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) // -rp.txt files are not getting generated for Non-Windows Os
GlobalBase.cs (2)
30if (RuntimeInformation.ProcessArchitecture == Architecture.X64 || RuntimeInformation.ProcessArchitecture == Architecture.X86)
TestCommandBase.cs (2)
2056if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 2110if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
Microsoft.ML.TestFrameworkCommon (13)
Attributes\AttributeHelpers.cs (1)
16if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Attributes\NativeDependencyFactAttribute.cs (2)
23if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.OSX) && System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.X64)
Attributes\NativeDependencyTheoryAttribute.cs (2)
23if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.OSX) && System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.X64)
Attributes\OnnxFactAttribute.cs (1)
28(!RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
Attributes\X64FactAttribute.cs (1)
22return Environment.Is64BitProcess && System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.X64;
Attributes\X86X64FactAttribute.cs (2)
22return RuntimeInformation.ProcessArchitecture == Architecture.X86 || RuntimeInformation.ProcessArchitecture == Architecture.X64;
Utility\LibraryLoader.cs (3)
171if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 175else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Utility\NativeLibrary.cs (1)
22if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Microsoft.ML.Tests (11)
DatabaseLoaderTests.cs (2)
43if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) //sqlite does not have built-in command for sleep 277if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
ExpressionLanguageTests\ExpressionLanguageTests.cs (1)
258if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
ImagesTests.cs (2)
23private static bool IsNotArm => RuntimeInformation.ProcessArchitecture != Architecture.Arm && RuntimeInformation.ProcessArchitecture != Architecture.Arm64;
TrainerEstimators\MatrixFactorizationTests.cs (6)
96if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 98if (RuntimeInformation.ProcessArchitecture == Architecture.Arm64) 134if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 140else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 146else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 494int precision = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? 5 : 3;
Microsoft.NET.Build.Containers (1)
LocalDaemons\DockerCli.cs (1)
58string fullPath = Path.Combine(directory, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? $"{command}.exe" : command);
Microsoft.NET.Build.Tasks (20)
FrameworkReferenceResolver.cs (1)
36if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
PrepareForReadyToRunCompilation.cs (2)
85return RuntimeInformation.IsOSPlatform(OSPlatform.Windows); 97return RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
ProcessFrameworkReferences.cs (1)
231!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) &&
ResolveReadyToRunCompilers.cs (11)
301if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 305if (RuntimeInformation.OSArchitecture == _targetArchitecture) 322if (RuntimeInformation.OSArchitecture == _targetArchitecture) 331if (RuntimeInformation.OSArchitecture != Architecture.X64) 355else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 359if (RuntimeInformation.OSArchitecture == _targetArchitecture) 364else if (RuntimeInformation.OSArchitecture == Architecture.X64) 381else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 384if (_targetArchitecture != Architecture.X64 || RuntimeInformation.OSArchitecture != Architecture.X64) 405if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 410else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
RunCsWinRTGenerator.cs (1)
196effectiveArchitecture ??= RuntimeInformation.ProcessArchitecture switch
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
50var userProfileVariableName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
src\sdk\src\Common\EnvironmentVariableNames.cs (2)
67=> TryGetDotNetRootVariableNameImpl(runtimeIdentifier, defaultAppHostRuntimeIdentifier, targetFrameworkVersion, RuntimeInformation.ProcessArchitecture, Environment.Is64BitProcess); 88=> TryGetDotNetRootVariableNameImpl(runtimeIdentifier, defaultAppHostRuntimeIdentifier, null, RuntimeInformation.ProcessArchitecture, Environment.Is64BitProcess, onlyUseArchSpecific: true);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadInstallType.cs (1)
36var architecture = RuntimeInformation.ProcessArchitecture.ToString();
Microsoft.NET.HostModel (4)
Bundle\Bundler.cs (1)
408if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && File.Exists(bundlePath))
HostModelUtils.cs (3)
36if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 64if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 82Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.OSX));
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
src\sdk\src\StaticWebAssetsSdk\Tasks\Utils\OSPath.cs (2)
8public static StringComparer PathComparer { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) 12public static StringComparison PathComparison { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.NET.Sdk.Publish.Tasks (2)
src\sdk\src\Common\EnvironmentVariableNames.cs (2)
67=> TryGetDotNetRootVariableNameImpl(runtimeIdentifier, defaultAppHostRuntimeIdentifier, targetFrameworkVersion, RuntimeInformation.ProcessArchitecture, Environment.Is64BitProcess); 88=> TryGetDotNetRootVariableNameImpl(runtimeIdentifier, defaultAppHostRuntimeIdentifier, null, RuntimeInformation.ProcessArchitecture, Environment.Is64BitProcess, onlyUseArchSpecific: true);
Microsoft.NET.Sdk.Razor.Tasks (1)
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerConnection.cs (1)
294var exeName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet";
Microsoft.NET.Sdk.StaticWebAssets.Tasks (3)
JSModules\ApplyJsModules.cs (1)
115if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Utils\OSPath.cs (2)
8public static StringComparer PathComparer { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) 12public static StringComparison PathComparison { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.NET.Sdk.WorkloadManifestReader (3)
src\sdk\src\Common\EnvironmentVariableNames.cs (2)
67=> TryGetDotNetRootVariableNameImpl(runtimeIdentifier, defaultAppHostRuntimeIdentifier, targetFrameworkVersion, RuntimeInformation.ProcessArchitecture, Environment.Is64BitProcess); 88=> TryGetDotNetRootVariableNameImpl(runtimeIdentifier, defaultAppHostRuntimeIdentifier, null, RuntimeInformation.ProcessArchitecture, Environment.Is64BitProcess, onlyUseArchSpecific: true);
WorkloadInstallType.cs (1)
36var architecture = RuntimeInformation.ProcessArchitecture.ToString();
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (1)
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
50var userProfileVariableName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.TemplateEngine.Edge (3)
Constraints\OSConstraint.cs (2)
43if (RuntimeInformation.IsOSPlatform(platform)) 48return TemplateConstraintResult.CreateRestricted(this, string.Format(LocalizableStrings.OSConstraint_Message_Restricted, RuntimeInformation.OSDescription, string.Join(", ", supportedOS)));
DefaultPathInfo.cs (1)
96bool isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
Microsoft.TestPlatform.Build (1)
Tasks\VSTestTask2.cs (1)
56protected override string? ToolName => RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet";
Microsoft.TestPlatform.CrossPlatEngine (2)
Adapter\FrameworkHandle.cs (1)
103var fmw = System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription;
PostProcessing\ArtifactProcessingManager.cs (1)
261if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Directory.Exists(path))
Microsoft.TestPlatform.Extensions.BlameDataCollector (15)
CrashDumperFactory.cs (4)
17EqtTrace.Info($"CrashDumperFactory: Creating dumper for {RuntimeInformation.OSDescription} with target framework {targetFramework}."); 29if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 57EqtTrace.Info($"CrashDumperFactory: This is {RuntimeInformation.OSDescription} on {targetFramework} .NETClient dumper which uses env variables to collect crashdumps of testhost and any child process that is .NET 5 or newer."); 61throw new PlatformNotSupportedException($"Unsupported operating system: {RuntimeInformation.OSDescription}, and framework: {targetFramework}.");
HangDumperFactory.cs (5)
20EqtTrace.Info($"HangDumperFactory: Creating dumper for {RuntimeInformation.OSDescription} with target framework {targetFramework}."); 32if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 52if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 58if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 64throw new PlatformNotSupportedException($"Unsupported operating system: {RuntimeInformation.OSDescription}");
NetClientHangDumper.cs (1)
86if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
ProcessCodeMethods.cs (4)
32if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 81return RuntimeInformation.IsOSPlatform(OSPlatform.Windows) 83: RuntimeInformation.IsOSPlatform(OSPlatform.Linux) 85: RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ?
WindowsHangDumper.cs (1)
67if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.TestPlatform.PlatformAbstractions (6)
net462\System\ProcessHelper.cs (1)
55if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
netcore\System\PlatformEnvironment.cs (4)
21return RuntimeInformation.OSArchitecture switch 44if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 49return RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? PlatformOperatingSystem.OSX : PlatformOperatingSystem.Unix; 58return RuntimeInformation.OSDescription;
netcore\System\ProcessHelper.cs (1)
34return RuntimeInformation.ProcessArchitecture switch
Microsoft.TestUtilities (3)
XUnit\OSSkipConditionAttribute.cs (3)
48if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 52else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 56else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Devices\ComputerInfo.vb (1)
90Return RuntimeInformation.OSDescription
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
717[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.RuntimeInformation))]
netstandard (1)
netstandard.cs (1)
1724[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.RuntimeInformation))]
NuGet.Common (4)
RuntimeEnvironmentHelper.cs (4)
31=> System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows); 69=> System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.OSX); 77if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux)) 84if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Create("FREEBSD")))
NuGet.Protocol (5)
Plugins\PluginDiscoverer.cs (1)
305if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
UserAgentStringBuilder.cs (4)
125if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 129else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 133else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 138else if (RuntimeInformation.IsOSPlatform(OSPlatform.FreeBSD))
RepoTasks (2)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
745if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 773if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
rzc (2)
ServerProtocol\ServerConnection.cs (1)
294var exeName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet";
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (1)
50var userProfileVariableName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
sdk-tasks (2)
Crossgen.cs (1)
114private string GetCreateSymbols() => RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "--pdb" : "--perfmap";
DotNetTool.cs (1)
33protected override string ToolName => $"dotnet{(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : string.Empty)}";
System.Configuration.ConfigurationManager (1)
System\Configuration\ClientConfigPaths.cs (1)
115applicationPath = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
System.Data.Odbc (1)
System\Data\Odbc\OdbcConnection.cs (1)
566catch (DllNotFoundException e) when (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System.Data.OleDb (1)
OleDb_Util.cs (1)
562internal static readonly bool IsRunningOnX86 = RuntimeInformation.ProcessArchitecture == Architecture.X86;
System.Management (1)
System\Management\ManagementScope.cs (1)
293string netFrameworkInstallRoot = (string)netFrameworkSubKey?.GetValue(RuntimeInformation.ProcessArchitecture == Architecture.Arm64 ?
System.Net.Security (2)
System\Net\Security\LocalAppContextSwitches.cs (2)
14internal static readonly bool IsOpenBsd = RuntimeInformation.IsOSPlatform(OSPlatform.Create("OPENBSD")); 46(OperatingSystem.IsLinux() && RuntimeInformation.RuntimeIdentifier.StartsWith("linux-bionic-", StringComparison.OrdinalIgnoreCase)));
System.Net.Sockets (2)
System\Net\Sockets\Socket.cs (1)
265internal static bool OSSupportsIPv6DualMode => !OperatingSystem.IsWasi() && OSSupportsIPv6 && !RuntimeInformation.IsOSPlatform(OSPlatform.Create("OPENBSD"));
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
53Architecture architecture = RuntimeInformation.ProcessArchitecture;
System.Private.Windows.Core.TestUtilities (2)
XUnit\SkipOnArchitectureAttribute.cs (2)
31if ((_testArchitectures.HasFlag(TestArchitectures.X86) && RuntimeInformation.ProcessArchitecture == Architecture.X86) 32|| (_testArchitectures.HasFlag(TestArchitectures.X64) && RuntimeInformation.ProcessArchitecture == Architecture.X64))
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
700[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.RuntimeInformation))]
System.Runtime.InteropServices.JavaScript (2)
System\Runtime\InteropServices\JavaScript\JSFunctionBinding.cs (2)
175if (RuntimeInformation.OSArchitecture != Architecture.Wasm) 192if (RuntimeInformation.OSArchitecture != Architecture.Wasm)
System.Runtime.InteropServices.RuntimeInformation (1)
System.Runtime.InteropServices.RuntimeInformation.cs (1)
6[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.RuntimeInformation))]
System.Security.Cryptography (1)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (1)
67RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
System.Security.Cryptography.Pkcs (4)
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (1)
422Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (2)
131Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); 171Debug.Assert(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (1)
67RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
System.Security.Cryptography.ProtectedData (1)
System\Security\Cryptography\ProtectedData.cs (1)
423if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Security\SecurityUtilsEx.cs (1)
178if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System.ServiceModel.NetNamedPipe (4)
System\ServiceModel\Channels\NamedPipeTransportBindingElement.cs (1)
19if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System\ServiceModel\NamedPipeTransportSecurity.cs (1)
21if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System\ServiceModel\NetNamedPipeBinding.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System\ServiceModel\NetNamedPipeSecurity.cs (1)
20if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System.ServiceModel.Primitives (9)
Internals\System\Runtime\Fx.cs (1)
46s_isUap = "Microsoft Windows".Equals(RuntimeInformation.OSDescription, StringComparison.Ordinal);
Internals\System\Runtime\IOThreadScheduler.cs (2)
443if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 548if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System\IdentityModel\Claims\ClaimComparer.cs (2)
317if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 355if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (1)
42if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System\ServiceModel\Security\SecurityUtils.cs (1)
794if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System\ServiceModel\Security\X509CertificateInitiatorClientCredential.cs (1)
37return RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
System\ServiceModel\Security\X509ServiceCertificateAuthentication.cs (1)
69RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
System.ServiceModel.UnixDomainSocket (3)
System\ServiceModel\UnixDomainSocketSecurity.cs (1)
14RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
System\ServiceModel\UnixDomainSocketTransportSecurity.cs (2)
140if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 165if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System.ServiceModel.UnixDomainSocket.Tests (1)
ServiceModel\UnixDomainSocketSecurityTest.cs (1)
18UnixDomainSocketSecurityMode mode = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
System.Transactions.Local (1)
System\Transactions\DtcProxyShim\DtcProxyShimFactory.cs (1)
69if (RuntimeInformation.ProcessArchitecture == Architecture.X86)
System.Windows.Forms (2)
System\Windows\Forms\Printing\PrintDialog.cs (2)
239PRINTDLGW_64* dialogSettings = RuntimeInformation.ProcessArchitecture == Architecture.X86 295BOOL result = RuntimeInformation.ProcessArchitecture == Architecture.X86
System.Windows.Forms.Primitives (1)
Windows\Win32\PInvoke.PrintDlg.cs (1)
16Debug.Assert(RuntimeInformation.ProcessArchitecture == Architecture.X86);
vstest.console (1)
Internal\FilePatternParser.cs (1)
106if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Internal\FilePatternParser.cs (1)
106if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))