524 references to RuntimeInformation
Aspire.EndToEnd.Tests (6)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (4)
91string buildCmd = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".\\build.cmd" : "./build.sh"; 104.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 127.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 188if (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.Templates.Tests (6)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (4)
91string buildCmd = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".\\build.cmd" : "./build.sh"; 104.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 127.Select(path => Path.Combine(path, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet")) 188if (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))
BuildValidator (3)
IldasmUtilities.cs (3)
29if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 33else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 37else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
ClientSample (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Crossgen2Tasks (15)
PrepareForReadyToRunCompilation.cs (4)
143if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && hasValidDiaSymReaderLib) 149else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 249if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && hasValidDiaSymReaderLib) 254else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
ResolveReadyToRunCompilers.cs (10)
249if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 253if (RuntimeInformation.OSArchitecture == _targetArchitecture) 270if (RuntimeInformation.OSArchitecture == _targetArchitecture) 279if (RuntimeInformation.OSArchitecture != Architecture.X64) 303else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 306if (_targetArchitecture != Architecture.X64 || RuntimeInformation.OSArchitecture != Architecture.X64) 319if (RuntimeInformation.OSArchitecture == _targetArchitecture) 324else if (RuntimeInformation.OSArchitecture == Architecture.X64) 349if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 354else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
RunReadyToRunCompiler.cs (1)
321if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
dotnet-dev-certs (10)
Program.cs (7)
270if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 275if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 280if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 377if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 399if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 408if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 414if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
src\Shared\CertificateGeneration\CertificateManager.cs (2)
635if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 663if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
dotnet-getdocument (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
dotnet-openapi (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
dotnet-sql-cache (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
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)
91if (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\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
dotnet-user-secrets (3)
Internal\SecretsStore.cs (1)
83if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Internal\SetCommand.cs (1)
25var catCmd = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
GetDocument.Insider (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
HttpStress (1)
Program.cs (1)
403if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Infrastructure.Common (2)
FrameworkHelper.cs (1)
30_currentFrameworkDescription = RuntimeInformation.FrameworkDescription;
OSHelper.cs (1)
68_currentOSDescription = RuntimeInformation.OSDescription;
Infrastructure.IntegrationTests (3)
OSAndFrameworkTests.4.1.1.cs (3)
18RuntimeInformation.FrameworkDescription)); 28RuntimeInformation.OSDescription, 64string runtimeOSDescription = RuntimeInformation.OSDescription;
Interop.FunctionalTests (3)
H2SpecCommands.cs (1)
48if (RuntimeInformation.OSArchitecture != Architecture.X64)
SkipOnArchitectureAttribute.cs (2)
21public bool IsMet => (Array.IndexOf(_excludedArchitectures, RuntimeInformation.OSArchitecture) == -1); 23public string SkipReason => $"This test is running on {RuntimeInformation.OSArchitecture} which is marked as to be skipped.";
KeyManagementSample (1)
Program.cs (1)
21if (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.App.UnitTests (1)
TestData.cs (1)
166if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) &&
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.AspNetCore.Components.WebView.Photino (1)
PhotinoWebViewManager.cs (1)
20internal static readonly string BlazorAppScheme = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.AspNetCore.Components.WebViewE2E.Test (1)
BasicBlazorHybridTest.cs (1)
26var newNativePath = Path.Combine(thisProgramDir, "runtimes", RuntimeInformation.RuntimeIdentifier, "native");
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.DataProtection.Extensions.Tests (1)
DataProtectionProviderTests.cs (1)
78if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.AspNetCore.DataProtection.Tests (4)
Internal\KeyManagementOptionsSetupTest.cs (1)
129public bool IsMet => (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && LazyHkcuTempKey.Value != null);
RegistryPolicyResolverTests.cs (1)
301public bool IsMet => (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && LazyHkcuTempKey.Value != null);
Repositories\FileSystemXmlRepositoryTests.cs (1)
18var baseDir = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Repositories\RegistryXmlRepositoryTests.cs (1)
252public bool IsMet => (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && LazyHkcuTempKey.Value != null);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
635if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 663if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (4)
CertificateManagerTests.cs (4)
552Manager = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? 554RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? 570if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
Microsoft.AspNetCore.Hosting (3)
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.InternalTesting.Tests (23)
DockerTests.cs (1)
18Assert.False(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
MaximumOSVersionTest.cs (6)
20RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && 31RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && 41Assert.True(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); 54Assert.True(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); 71RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && 84if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
MinimumOSVersionTest.cs (5)
19RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && 30RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && 40Assert.True(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); 53Assert.True(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); 69RuntimeInformation.IsOSPlatform(OSPlatform.Windows) &&
OSSkipConditionTest.cs (11)
16RuntimeInformation.IsOSPlatform(OSPlatform.Linux), 25RuntimeInformation.IsOSPlatform(OSPlatform.OSX), 34RuntimeInformation.IsOSPlatform(OSPlatform.Windows), 43RuntimeInformation.IsOSPlatform(OSPlatform.Linux), 46RuntimeInformation.IsOSPlatform(OSPlatform.OSX), 56RuntimeInformation.IsOSPlatform(OSPlatform.Linux), 66RuntimeInformation.IsOSPlatform(OSPlatform.OSX), 76RuntimeInformation.IsOSPlatform(OSPlatform.Windows), 86RuntimeInformation.IsOSPlatform(OSPlatform.Linux), 89RuntimeInformation.IsOSPlatform(OSPlatform.OSX), 101RuntimeInformation.IsOSPlatform(OSPlatform.Windows),
Microsoft.AspNetCore.OpenApi.Build.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.AspNetCore.Server.IIS (3)
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.IntegrationTesting.IIS (1)
ProcessTracker.cs (1)
18if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || Environment.OSVersion.Version < new Version(6, 2))
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
635if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 663if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
SkipOnMarinerAttribute.cs (1)
25RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && File.Exists("/etc/os-release") &&
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Docker.cs (1)
57if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
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 (8)
BuildCheck\Checks\UntrustedLocationCheck.cs (2)
62if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 79else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
Construction\Solution\SolutionFile.cs (1)
132private static readonly StringComparer _pathComparer = RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
Evaluation\IntrinsicFunctions.cs (1)
583return RuntimeInformation.IsOSPlatform(OSPlatform.Create(platformString.ToUpperInvariant()));
InprocTrackingNativeMethods.cs (1)
153private static readonly Lazy<string> fileTrackerDllName = new Lazy<string>(() => RuntimeInformation.ProcessArchitecture == Architecture.Arm64 ? "FileTrackerA4.dll" : (IntPtr.Size == sizeof(Int32)) ? "FileTracker32.dll" : "FileTracker64.dll");
Logging\TerminalLogger\Terminal.cs (1)
71public bool SupportsProgressReporting { get; } = !RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
Resources\Constants.cs (1)
309var runtimeInformationType = new Tuple<string, Type>(null, typeof(RuntimeInformation));
XMakeAttributes.cs (1)
431switch (RuntimeInformation.ProcessArchitecture)
Microsoft.Build.BuildCheck.UnitTests (3)
ExecCliBuildCheck_Tests.cs (2)
48string.Join(";", new string('a', RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? MaxStackSizeWindows * 2 : MaxStackSizeLinux * 2), "dotnet build")); 58new string('a', RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? MaxStackSizeWindows * 2 : MaxStackSizeLinux * 2));
TestAssemblyInfo.cs (1)
127if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.Build.CommandLine.UnitTests (2)
TestAssemblyInfo.cs (1)
127if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
XMake_Tests.cs (1)
910if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && !EncodingUtilities.CurrentPlatformIsWindowsAndOfficiallySupportsUTF8Encoding())
Microsoft.Build.Engine.OM.UnitTests (1)
TestAssemblyInfo.cs (1)
127if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.Build.Engine.UnitTests (2)
Evaluation\Expander_Tests.cs (1)
2888var currentArchitectureString = RuntimeInformation.OSArchitecture.ToString();
TestAssemblyInfo.cs (1)
127if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.Build.Framework (9)
EncodingUtilities.cs (2)
287else if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 298if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Environment.OSVersion.Version.Major >= 10) // UTF-8 is only officially supported on 10+.
FileClassifier.cs (1)
69private static readonly StringComparison PathComparison = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
NativeMethods.cs (6)
768get { return RuntimeInformation.IsOSPlatform(OSPlatform.Linux); } 782return RuntimeInformation.IsOSPlatform(OSPlatform.Create("FREEBSD")) || 783RuntimeInformation.IsOSPlatform(OSPlatform.Create("NETBSD")) || 784RuntimeInformation.IsOSPlatform(OSPlatform.Create("OPENBSD")); 803_isWindows ??= RuntimeInformation.IsOSPlatform(OSPlatform.Windows); 823_isOSX ??= RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
Microsoft.Build.Framework.UnitTests (1)
TestAssemblyInfo.cs (1)
127if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.Build.Tasks.Core (2)
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
62bool runningOnWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
XMakeAttributes.cs (1)
431switch (RuntimeInformation.ProcessArchitecture)
Microsoft.Build.Tasks.UnitTests (2)
TestAssemblyInfo.cs (1)
127if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
WriteCodeFragment_Tests.cs (1)
577public static readonly string VBLineSeparator = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? $"{VBCarriageReturn}&{VBLineFeed}" : VBLineFeed;
Microsoft.Build.UnitTests.Shared (5)
EnvironmentProvider.cs (1)
22public static readonly bool RunningOnWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
LongPathSupportDisabledFactAttribute.cs (1)
23if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
ObjectModelHelpers.cs (3)
1140if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 1144else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 1148else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Microsoft.Build.Utilities.UnitTests (1)
TestAssemblyInfo.cs (1)
127if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.CodeAnalysis (5)
Compilation\DeterministicKeyBuilder.cs (2)
246writer.Write("frameworkDescription", RuntimeInformation.FrameworkDescription); 247writer.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.CommandLine.UnitTests (6)
CommandLineTests.cs (6)
5989ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? 6012string output = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? 6025ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? 6058ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? 6092ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? 6104ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
213if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
182int numberFluentCalls = (IntPtr.Size, ExecutionConditionUtil.Configuration, RuntimeUtilities.IsDesktopRuntime, RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) switch
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\FileModifierTests.cs (1)
831var (root1, root2) = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? (@"q:\", @"j:\") : ("/q", "/j");
Microsoft.CodeAnalysis.Features (1)
SymbolSearch\Windows\SymbolSearchUpdateEngineFactory.cs (1)
39return RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.CodeAnalysis.LanguageServer (6)
FileBasedPrograms\VirtualProjectXmlProvider.cs (1)
133string directory = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (2)
68private static readonly StringComparer s_stringComparer = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? StringComparer.Ordinal : StringComparer.OrdinalIgnoreCase; 69private static readonly StringComparison s_stringComparison = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
Program.cs (3)
75if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 92logger.LogTrace($".NET Runtime Version: {RuntimeInformation.FrameworkDescription}"); 319return RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (2)
75return RuntimeInformation.IsOSPlatform(OSPlatform.Windows) 84FileName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet",
Microsoft.CodeAnalysis.Rebuild.UnitTests (4)
CSharpDeterministicKeyBuilderTests.cs (3)
145var path = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) 234""frameworkDescription"": ""{RuntimeInformation.FrameworkDescription}"", 235""osDescription"": ""{RuntimeInformation.OSDescription}""
DeterministicKeyBuilderTests.cs (1)
563var path = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\ProcessTelemetry\RemoteProcessTelemetryService.cs (1)
59m["Framework"] = RuntimeInformation.FrameworkDescription;
Microsoft.CodeAnalysis.Remote.Workspaces (2)
ServiceDescriptors.cs (2)
134=> !RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework") && 135!RuntimeInformation.FrameworkDescription.StartsWith(".NET Native");
Microsoft.CodeAnalysis.Scripting (1)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCache.cs (1)
28return System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription.Contains(".NET Framework")
Microsoft.CodeAnalysis.Test.Utilities (4)
Assert\ConditionalFactAttribute.cs (2)
156public static bool IsMacOS => RuntimeInformation.IsOSPlatform(OSPlatform.OSX); 157public static bool IsLinux => RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
Compilation\RuntimeUtilities.cs (1)
37=> IsCoreClrRuntime && RuntimeInformation.FrameworkDescription.StartsWith(".NET 6.", StringComparison.Ordinal);
TestableCompiler.cs (1)
49internal static string RootDirectory => RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? @"q:\" : "/";
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (4)
CommandLineTests.vb (4)
651If RuntimeInformation.IsOSPlatform(OSPlatform.Windows) Then 679Dim output As String = If(RuntimeInformation.IsOSPlatform(OSPlatform.Windows), 692If RuntimeInformation.IsOSPlatform(OSPlatform.Windows) Then 742Dim result As ProcessResult = If(RuntimeInformation.IsOSPlatform(OSPlatform.Windows),
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
HasValidFonts.vb (1)
15If RuntimeInformation.IsOSPlatform(OSPlatform.Windows) Then
Microsoft.CodeAnalysis.Workspaces (3)
Storage\SQLite\v2\Interop\SqlConnection.cs (1)
136var attachString = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (2)
95else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 100else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (2)
172FileName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet", 319var frameworkHostType = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? BuildHostProcessKind.NetFramework : BuildHostProcessKind.Mono;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Program.cs (1)
49logger.LogInformation($"BuildHost Runtime Version: {System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription}");
Microsoft.CodeAnalysis.XunitHook (1)
XunitDisposeHook.cs (1)
40switch (RuntimeInformation.ProcessArchitecture)
Microsoft.DotNet.Arcade.Sdk (3)
src\InstallDotNetCore.cs (3)
102if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && string.Equals("x86", architecture, StringComparison.OrdinalIgnoreCase)) 197else if (RuntimeInformation.OSArchitecture == Architecture.X86 || 198RuntimeInformation.OSArchitecture == Architecture.X64)
Microsoft.DotNet.Arcade.Sdk.Tests (4)
RepoWithConditionalProjectsToBuildTests.cs (1)
32var packArg = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Utilities\TestApp.cs (3)
38var cmd = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) 50var cmd = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) 64if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.DotNet.ArcadeAzureIntegration (3)
AzureCliCredentialWithAzNoUpdateWrapper.cs (3)
40private static readonly string DefaultPath = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? DefaultPathWindows : DefaultPathNonWindows; 41private static readonly string DefaultWorkingDir = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? DefaultWorkingDirWindows : DefaultWorkingDirNonWindows; 62if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\NativeMethods.cs (1)
34if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.DotNet.Internal.SymbolHelper (2)
SymbolUploadHelperFactory.cs (2)
176if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || RuntimeInformation.ProcessArchitecture != Architecture.X64)
Microsoft.DotNet.RemoteExecutor (17)
PasteArguments.cs (1)
26if (pasteFirstArgumentUsingArgV0Rules && RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
RemoteExecutor.cs (10)
60string hostName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet"; 84else if (RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase)) 95Environment.Version.Major >= 5 || RuntimeInformation.FrameworkDescription.StartsWith(".NET Core", StringComparison.OrdinalIgnoreCase); 111!RuntimeInformation.IsOSPlatform(OSPlatform.Create("IOS")) && 112!RuntimeInformation.IsOSPlatform(OSPlatform.Create("ANDROID")) && 113!RuntimeInformation.IsOSPlatform(OSPlatform.Create("TVOS")) && 114!RuntimeInformation.IsOSPlatform(OSPlatform.Create("MACCATALYST")) && 115!RuntimeInformation.IsOSPlatform(OSPlatform.Create("WATCHOS")) && 116!RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER")) && 117!RuntimeInformation.IsOSPlatform(OSPlatform.Create("WASI")) &&
RemoteInvokeHandle.cs (5)
115if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 150if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 179if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && // As of Microsoft.Diagnostics.Runtime v1.0.5, process attach only works on Windows. 237int expected = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? Options.ExpectedExitCode : unchecked((sbyte)Options.ExpectedExitCode); 238int actual = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? Process.ExitCode : unchecked((sbyte)Process.ExitCode);
RemoteInvokeOptions.cs (1)
52if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.DotNet.SignTool (9)
src\FileSignInfo.cs (4)
112(IsUnpackableWixContainer() && RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) || 116(IsPkg() && RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) || 117(IsAppBundle() && RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) || 121(IsRpm() && RuntimeInformation.IsOSPlatform(OSPlatform.Linux));
src\SignTool.cs (2)
75if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 108if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
src\SignToolTask.cs (1)
224if (PkgToolPath == null && RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
src\VerifySignatures.cs (1)
179if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
src\ZipData.cs (1)
294if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Microsoft.DotNet.SignTool.Tests (3)
SignToolTests.cs (3)
1838if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 1869if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 3178RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
Microsoft.DotNet.StrongName (1)
Verification.cs (1)
147if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Microsoft.DotNet.XUnitExtensions (28)
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\LinuxOnlyFactAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\LinuxOnlyTheoryAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\MacOSOnlyFactAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\MacOSOnlyTheoryAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\UnixOnlyFactAttribute.cs (1)
22if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\UnixOnlyTheoryAttribute.cs (1)
22if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\WindowsFullFrameworkOnlyFactAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\WindowsFullFrameworkOnlyTheoryAttribute.cs (1)
23if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\WindowsOnlyFactAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\WindowsOnlyTheoryAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Microsoft.DotNet.XUnitExtensions.Shared\DiscovererHelpers.cs (18)
17public static bool IsRunningOnNetCoreApp { get; } = (Environment.Version.Major >= 5 || !RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase)); 18public static bool IsRunningOnNetFramework { get; } = RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase); 22(platforms.HasFlag(TestPlatforms.FreeBSD) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("FREEBSD"))) || 23(platforms.HasFlag(TestPlatforms.Linux) && RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) || 24(platforms.HasFlag(TestPlatforms.NetBSD) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("NETBSD"))) || 25(platforms.HasFlag(TestPlatforms.OSX) && RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) || 26(platforms.HasFlag(TestPlatforms.illumos) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("ILLUMOS"))) || 27(platforms.HasFlag(TestPlatforms.Solaris) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("SOLARIS"))) || 28(platforms.HasFlag(TestPlatforms.iOS) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("IOS")) && !RuntimeInformation.IsOSPlatform(OSPlatform.Create("MACCATALYST"))) || 29(platforms.HasFlag(TestPlatforms.tvOS) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("TVOS"))) || 30(platforms.HasFlag(TestPlatforms.MacCatalyst) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("MACCATALYST"))) || 31(platforms.HasFlag(TestPlatforms.LinuxBionic) && RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ANDROID_STORAGE"))) || 32(platforms.HasFlag(TestPlatforms.Android) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("ANDROID"))) || 33(platforms.HasFlag(TestPlatforms.Browser) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER"))) || 34(platforms.HasFlag(TestPlatforms.Wasi) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("WASI"))) || 35(platforms.HasFlag(TestPlatforms.Haiku) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("HAIKU"))) || 36(platforms.HasFlag(TestPlatforms.Windows) && RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
Microsoft.DotNet.XUnitV3Extensions (28)
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\LinuxOnlyFactAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\LinuxOnlyTheoryAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\MacOSOnlyFactAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\MacOSOnlyTheoryAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\UnixOnlyFactAttribute.cs (1)
22if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\UnixOnlyTheoryAttribute.cs (1)
22if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\WindowsFullFrameworkOnlyFactAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\WindowsFullFrameworkOnlyTheoryAttribute.cs (1)
23if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\WindowsOnlyFactAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\WindowsOnlyTheoryAttribute.cs (1)
22if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Microsoft.DotNet.XUnitExtensions.Shared\DiscovererHelpers.cs (18)
17public static bool IsRunningOnNetCoreApp { get; } = (Environment.Version.Major >= 5 || !RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase)); 18public static bool IsRunningOnNetFramework { get; } = RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase); 22(platforms.HasFlag(TestPlatforms.FreeBSD) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("FREEBSD"))) || 23(platforms.HasFlag(TestPlatforms.Linux) && RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) || 24(platforms.HasFlag(TestPlatforms.NetBSD) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("NETBSD"))) || 25(platforms.HasFlag(TestPlatforms.OSX) && RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) || 26(platforms.HasFlag(TestPlatforms.illumos) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("ILLUMOS"))) || 27(platforms.HasFlag(TestPlatforms.Solaris) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("SOLARIS"))) || 28(platforms.HasFlag(TestPlatforms.iOS) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("IOS")) && !RuntimeInformation.IsOSPlatform(OSPlatform.Create("MACCATALYST"))) || 29(platforms.HasFlag(TestPlatforms.tvOS) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("TVOS"))) || 30(platforms.HasFlag(TestPlatforms.MacCatalyst) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("MACCATALYST"))) || 31(platforms.HasFlag(TestPlatforms.LinuxBionic) && RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ANDROID_STORAGE"))) || 32(platforms.HasFlag(TestPlatforms.Android) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("ANDROID"))) || 33(platforms.HasFlag(TestPlatforms.Browser) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER"))) || 34(platforms.HasFlag(TestPlatforms.Wasi) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("WASI"))) || 35(platforms.HasFlag(TestPlatforms.Haiku) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("HAIKU"))) || 36(platforms.HasFlag(TestPlatforms.Windows) && RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
Microsoft.Extensions.AI.Abstractions.Tests (2)
Utilities\AIJsonUtilitiesTests.cs (2)
454if (RuntimeInformation.FrameworkDescription.Contains(".NET Framework")) 690if (!RuntimeInformation.FrameworkDescription.Contains(".NET Framework"))
Microsoft.Extensions.AI.Templates.Tests (1)
Infrastructure\WellKnownPaths.cs (1)
68var dotNetExeName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (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.Diagnostics.ResourceMonitoring.Tests (1)
Linux\Resources\TestResources.cs (1)
39public readonly bool IsWindows = 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)
82!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.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.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
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\Devices\ComputerInfoTests.cs (1)
36RuntimeInformation.OSDescription.Should().Be(fullName);
MSBuild (1)
XMakeAttributes.cs (1)
431switch (RuntimeInformation.ProcessArchitecture)
mscorlib (1)
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))]
NonDISample (1)
Program.cs (1)
21if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
PrepareTests (1)
MinimizeUtil.cs (1)
279if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Roslyn.Test.PdbUtilities (1)
Reader\SymReaderFactory.cs (1)
42switch (RuntimeInformation.ProcessArchitecture)
RunTests (5)
HelixTestRunner.cs (2)
57var testOS = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? TestOS.Windows 58: RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? TestOS.Mac
Options.cs (1)
275var programName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "dotnet.exe" : "dotnet";
ProcessUtil.cs (1)
18if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Program.cs (1)
262if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
ServerComparison.TestSites (1)
Startup.cs (1)
25return ctx.Response.WriteAsync("Hello World " + RuntimeInformation.ProcessArchitecture);
Sockets.BindTests (1)
SocketTransportOptionsTests.cs (1)
90if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Swaggatherer (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
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.Drawing.Common.Tests (1)
System\Drawing\Imaging\MetafileTests.cs (1)
968if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
System.Net.Security (1)
System\Net\NegotiateAuthenticationPal.Unix.cs (1)
30(OperatingSystem.IsLinux() && RuntimeInformation.RuntimeIdentifier.StartsWith("linux-bionic-", StringComparison.OrdinalIgnoreCase));
System.Net.Sockets (1)
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)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
685[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.RuntimeInformation))]
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 (2)
src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.cs (1)
54if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\libraries\Common\src\System\Security\Cryptography\MLKemCng.cs (1)
55if (!RuntimeInformation.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.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.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);
System.Windows.Forms.Primitives.TestUtilities (4)
Extensions\AssertExtensions.cs (1)
15RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.Ordinal);
PlatformDetection.cs (2)
18public static bool IsArmProcess => RuntimeInformation.ProcessArchitecture == Architecture.Arm; 19public static bool IsArm64Process => RuntimeInformation.ProcessArchitecture == Architecture.Arm64;
PlatformDetection.Windows.cs (1)
12public static bool IsNetFramework => RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase);
System.Windows.Forms.Tests (7)
System\Windows\Forms\AxHost.VisualBasic6Tests.cs (1)
15if (RuntimeInformation.ProcessArchitecture != Architecture.X86)
System\Windows\Forms\CheckBoxRendererTests.cs (1)
51&& RuntimeInformation.ProcessArchitecture == Architecture.X86)
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
211if (RuntimeInformation.ProcessArchitecture != Architecture.X86)
System\Windows\Forms\DataGridViewTests.cs (1)
1917&& columnHeadersVisible && RuntimeInformation.ProcessArchitecture == Architecture.X86)
System\Windows\Forms\RadioButtonRendererTests.cs (1)
110if (RuntimeInformation.ProcessArchitecture == Architecture.X86 && focus)
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
366if (insideTreeView && isHovered && expected && RuntimeInformation.ProcessArchitecture == Architecture.X64)
TestResources\ComClasses.cs (1)
12= RuntimeInformation.ProcessArchitecture == Architecture.X86
Templates.Blazor.Tests (5)
BlazorTemplateTest.cs (1)
81error = !isRequired ? null : $"Browser '{browserKind}' is required but not configured on '{RuntimeInformation.OSDescription}'";
src\ProjectTemplates\Shared\Project.cs (1)
392switch (RuntimeInformation.ProcessArchitecture)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
635if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 663if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Templates.Blazor.WebAssembly.Auth.Tests (7)
src\ProjectTemplates\Shared\Project.cs (1)
392switch (RuntimeInformation.ProcessArchitecture)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
635if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 663if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Shared\E2ETesting\BrowserFixture.cs (2)
38RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && RuntimeInformation.ProcessArchitecture == Architecture.X64,
src\Shared\E2ETesting\SauceConnectServer.cs (1)
92if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Templates.Blazor.WebAssembly.Tests (7)
src\ProjectTemplates\Shared\Project.cs (1)
392switch (RuntimeInformation.ProcessArchitecture)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
635if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 663if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Shared\E2ETesting\BrowserFixture.cs (2)
38RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && RuntimeInformation.ProcessArchitecture == Architecture.X64,
src\Shared\E2ETesting\SauceConnectServer.cs (1)
92if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Templates.Mvc.Tests (7)
src\ProjectTemplates\Shared\Project.cs (1)
392switch (RuntimeInformation.ProcessArchitecture)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
635if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 663if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Shared\E2ETesting\BrowserFixture.cs (2)
38RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && RuntimeInformation.ProcessArchitecture == Architecture.X64,
src\Shared\E2ETesting\SauceConnectServer.cs (1)
92if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Templates.Tests (8)
GrpcTemplateTest.cs (1)
98var isWindowsOld = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Environment.OSVersion.Version < new Version(6, 2);
src\ProjectTemplates\Shared\Project.cs (1)
392switch (RuntimeInformation.ProcessArchitecture)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
635if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 663if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
src\Shared\E2ETesting\BrowserFixture.cs (2)
38RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && RuntimeInformation.ProcessArchitecture == Architecture.X64,
src\Shared\E2ETesting\SauceConnectServer.cs (1)
92if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Test.Utilities (2)
WindowsOnlyFactAttribute.cs (1)
14if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
WindowsOnlyTheoryAttribute.cs (1)
14if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Wasm.Performance.ConsoleHost (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
59if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
WinFormsControlsTest (2)
MainForm.cs (1)
41Text = RuntimeInformation.FrameworkDescription;
MdiParent.cs (1)
17Text = RuntimeInformation.FrameworkDescription;
xunit.console (5)
common\AssemblyResolution\Microsoft.DotNet.PlatformAbstractions\Native\PlatformApis.cs (3)
145if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 149if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) 153if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
common\ConsoleHelper.cs (1)
15if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows))
ConsoleRunner.cs (1)
180var platform = System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription;