48 references to PlatformID
aspire (1)
Projects\ProjectUpdater.cs (1)
211if (Environment.OSVersion.Platform == PlatformID.Win32NT)
Aspire.Cli.Tests (1)
TestServices\TestDotNetCliRunner.cs (1)
91PlatformID.Win32NT => [Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "NuGet", "NuGet.Config")],
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\NoMessagePumpSyncContext.cs (1)
58if (Environment.OSVersion.Platform == PlatformID.Win32NT)
illink (1)
Microsoft.AspNetCore.Cryptography.Internal (1)
Cng\OSVersionUtil.cs (1)
15if (Environment.OSVersion.Platform is not PlatformID.Win32NT)
Microsoft.CodeAnalysis (1)
InternalUtilities\NoMessagePumpSyncContext.cs (1)
58if (Environment.OSVersion.Platform == PlatformID.Win32NT)
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\NoMessagePumpSyncContext.cs (1)
58if (Environment.OSVersion.Platform == PlatformID.Win32NT)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\NoMessagePumpSyncContext.cs (1)
58if (Environment.OSVersion.Platform == PlatformID.Win32NT)
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\NoMessagePumpSyncContext.cs (1)
58if (Environment.OSVersion.Platform == PlatformID.Win32NT)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\NoMessagePumpSyncContext.cs (1)
58if (Environment.OSVersion.Platform == PlatformID.Win32NT)
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\NoMessagePumpSyncContext.cs (1)
58if (Environment.OSVersion.Platform == PlatformID.Win32NT)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\NoMessagePumpSyncContext.cs (1)
58if (Environment.OSVersion.Platform == PlatformID.Win32NT)
Microsoft.Extensions.Hosting.Systemd (2)
SystemdHelpers.cs (2)
29if (Environment.OSVersion.Platform != PlatformID.Unix) 86if (Environment.OSVersion.Platform != PlatformID.Unix)
Microsoft.ML.Core (2)
Utilities\ResourceManagerUtils.cs (2)
218if (Environment.OSVersion.Platform == PlatformID.Unix) 237if (Environment.OSVersion.Platform == PlatformID.Unix)
Microsoft.ML.TestFrameworkCommon (1)
Utility\NativeLibrary.cs (1)
24else if (Environment.OSVersion.Platform == PlatformID.Unix)
Microsoft.Private.Windows.Core (1)
Windows\Win32\Graphics\GdiPlus\GdiplusStartupInputEx.cs (1)
14bool isWindows7 = os.Platform == PlatformID.Win32NT && os.Version.Major == 6 && os.Version.Minor == 1;
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Devices\ComputerInfo.vb (2)
98''' A string containing a <see cref="PlatformID"/> like "Win32NT", "Win32S", 99''' "Win32Windows". See <see cref="PlatformID"/> enum.
MSBuild (1)
XMake.cs (1)
2283(Environment.OSVersion.Platform != PlatformID.Win32NT ||
mscorlib (1)
parent\ref\mscorlib.cs (1)
386[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.PlatformID))]
netstandard (1)
netstandard.cs (1)
1350[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.PlatformID))]
PresentationCore (2)
System\Windows\Interop\OperatingSystemVersionCheck.cs (2)
24PlatformID platform = PlatformID.Win32NT;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\NoMessagePumpSyncContext.cs (1)
58if (Environment.OSVersion.Platform == PlatformID.Win32NT)
System.Data.OleDb (1)
System\Data\Common\AdapterUtil.cs (1)
926internal static readonly bool IsWindowsNT = (PlatformID.Win32NT == Environment.OSVersion.Platform);
System.Management (2)
System\Management\InteropClasses\WMIInterop.cs (1)
1372if (os.Platform == PlatformID.Win32NT && os.Version >= new Version(5, 0))
System\Management\ManagementScope.cs (1)
986if (Environment.OSVersion.Platform == PlatformID.Win32NT)
System.Private.CoreLib (15)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.OSVersion.Unix.cs (1)
27return new OperatingSystem(PlatformID.Unix, new Version(major, minor, build, revision));
src\runtime\src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (14)
51private readonly PlatformID _platform; 55public OperatingSystem(PlatformID platform, Version version) : this(platform, version, null) 59internal OperatingSystem(PlatformID platform, Version version, string? servicePack) 61if (platform < PlatformID.Win32S || platform > PlatformID.Other) 80public PlatformID Platform => _platform; 99case PlatformID.Win32S: os = "Microsoft Win32S "; break; 100case PlatformID.Win32Windows: os = (_version.Major > 4 || (_version.Major == 4 && _version.Minor > 0)) ? "Microsoft Windows 98 " : "Microsoft Windows 95 "; break; 101case PlatformID.Win32NT: os = "Microsoft Windows NT "; break; 102case PlatformID.WinCE: os = "Microsoft Windows CE "; break; 103case PlatformID.Unix: os = "Unix "; break; 104case PlatformID.Xbox: os = "Xbox "; break; 105case PlatformID.MacOSX: os = "Mac OS X "; break; 106case PlatformID.Other: os = "Other "; break;
System.Private.Windows.Core (1)
Windows\Win32\Graphics\GdiPlus\GdiplusStartupInputEx.cs (1)
14bool isWindows7 = os.Platform == PlatformID.Win32NT && os.Version.Major == 6 && os.Version.Minor == 1;
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
424[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.PlatformID))]
System.Runtime.Extensions (1)
System.Runtime.Extensions.cs (1)
24[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.PlatformID))]
System.Speech (1)
Recognition\RecognizerBase.cs (1)
882OS.Platform == PlatformID.Win32NT && // On Windows NT or above