C# get os version

Code examples

0
0

c# get os version

// Save the OS info to an variable
OperatingSystem os = Environment.OSVersion;
// Print the OS info to the console
Console.WriteLine($"platform:       {os.Platform}\n" +
                  $"version:        {os.Version}\n" +
                  $"version string: {os.VersionString}");

Similar pages

Similar pages with examples

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................