28 references to Platform
aspire (1)
Projects\ProjectUpdater.cs (1)
144if (Environment.OSVersion.Platform == PlatformID.Win32NT)
Aspire.Cli.Tests (1)
TestServices\TestDotNetCliRunner.cs (1)
74return Environment.OSVersion.Platform switch
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.AI.Evaluation.Console (1)
Telemetry\TelemetryHelper.cs (1)
52[TelemetryConstants.PropertyNames.OSPlatform] = Environment.OSVersion.Platform.ToString(),
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.Core (1)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
1142If Environment.OSVersion.Platform = PlatformID.Win32NT Then ' Platforms supporting MoveFileEx.
MSBuild (1)
XMake.cs (1)
2272(Environment.OSVersion.Platform != PlatformID.Win32NT ||
PresentationCore (1)
System\Windows\Interop\OperatingSystemVersionCheck.cs (1)
50return (os.Platform == platform) &&
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.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.Speech (1)
Recognition\RecognizerBase.cs (1)
882OS.Platform == PlatformID.Win32NT && // On Windows NT or above