Use the Environment.OSVersion and OperatingSystem.Platform properties to obtain the PlatformID enumeration for the currently executing operating system or development platform. Use the PlatformID enumeration to help determine whether the current operating system or development platform supports your application.
You can use the underlying integer value of each PlatformID enumeration member, as shown in the table, as the PlatformId argument for the SignTool.exe (Sign Tool) utility.
PlatformID.Win32S |
0 |
PlatformID.Win32Windows |
1 |
PlatformID.Win32NT |
2 |
PlatformID.WinCE |
3 |
PlatformID.Unix |
4 |
PlatformID.Xbox |
5 |
PlatformID.MacOSX |
6 |