<PackageReference Include="NUnit" Version="4.6.0" />

NUnit.Framework.PlatformNames

public static class PlatformNames

Canonical platform names for use with PlatformAttribute. Note that the platforms argument to PlatformAttribute supports syntax beyond just naming platforms, such as comma-delimited lists, but using these constants ensure that the precise name of a platform cannot be mistyped or misspelled.

[Platform(Include = PlatformNames.Linux)] // or [Platform(Excludes = [PlatformNames.Mono,PlatformNames.MonoTouch])]
public const string DotNET = "NET"

Platform: "NET"

public const string DotNETCore = "NETCore"

Platform: "NETCore"

public const string Linux = "Linux"

Platform: "Linux"

public const string MacOSX = "MacOSX"

Platform: "MacOSX"

public const string Mono = "Mono"

Platform: "Mono"

public const string MonoTouch = "MonoTouch"

Platform: "MonoTouch"

public const string NET = "NET"

Platform: "NET"

public const string NETCore = "NETCore"

Platform: "NETCore"

public const string NT3 = "NT3"

Platform: "NT3"

public const string NT4 = "NT4"

Platform: "NT4"

public const string NT5 = "NT5"

Platform: "NT5"

public const string NT6 = "NT6"

Platform: "NT6"

public const string Rotor = "Rotor"

Platform: "Rotor"

public const string SSCLI = "SSCLI"

Platform: "SSCLI"

public const string UNIX = "UNIX"

Platform: "UNIX"

public const string Vista = "Vista"

Platform: "Vista"

public const string Win = "Win"

Platform: "Win"

public const string Win10 = "Win10"

Platform: "Win10"

public const string Win11 = "Win11"

Platform: "Win11"

public const string Win2003Server = "Win2003Server"

Platform: "Win2003Server"

public const string Win2008Server = "Win2008Server"

Platform: "Win2008Server"

public const string Win2008ServerR2 = "Win2008ServerR2"

Platform: "Win2008ServerR2"

public const string Win2012Server = "Win2012Server"

Platform: "Win2012Server"

public const string Win2012ServerR2 = "Win2012ServerR2"

Platform: "Win2012ServerR2"

public const string Win2K = "Win2K"

Platform: "Win2K"

public const string Win32 = "Win32"

Platform: "Win32"

public const string Win32NT = "Win32NT"

Platform: "Win32NT"

public const string Win32s = "Win32s"

Platform: "Win32s"

public const string Win32Windows = "Win32Windows"

Platform: "Win32Windows"

public const string Win7 = "Win7"

Platform: "Win7"

public const string Win8 = "Win8"

Platform: "Win8"

public const string Win81 = "Win8.1"

Platform: "Win8.1"

public const string Win95 = "Win95"

Platform: "Win95"

public const string Win98 = "Win98"

Platform: "Win98"

public const string Windows10 = "Windows10"

Platform: "Windows10"

public const string Windows11 = "Windows11"

Platform: "Windows11"

public const string Windows7 = "Windows7"

Platform: "Windows7"

public const string Windows8 = "Windows8"

Platform: "Windows8"

public const string Windows81 = "Windows8.1"

Platform: "Windows8.1"

public const string WindowsServer10 = "WindowsServer10"

Platform: "WindowsServer10"

public const string WinME = "WinME"

Platform: "WinME"

public const string WinXP = "WinXP"

Platform: "WinXP"

public const string X32Bit = "32-bit"

Platform: "32-bit"

Specifies a 32-bit testing host process, regardless of the word size of the machine.

public const string X32BitOS = "32-bit-os"

Platform: "32-bit-os"

public const string X32BitProcess = "32-bit-process"

Platform: "32-bit-process"

Specifies a 32-bit testing host process, regardless of the word size of the machine.

public const string X64Bit = "64-bit"

Platform: "64-bit"

public const string X64BitOS = "64-bit-os"

Platform: "64-bit-os"

Specifies a 64-bit machine, regardless of the word size of the testing host process.

public const string X64BitProcess = "64-bit-process"

Platform: "64-bit-process"

public const string XBox = "XBox"

Platform: "XBox"