GetSystemVersion() public static method

public static GetSystemVersion ( ) : string
return string
 public void RuntimeEnvironmentSysVersion()
 {
     Assert.NotEmpty(RuntimeEnvironment.GetSystemVersion());
 }
示例#2
0
        public static void Main()
        {
            var framework = Assembly
                            .GetEntryAssembly()?
                            .GetCustomAttribute <TargetFrameworkAttribute>()?
                            .FrameworkName;

            var procArch = Environment.Is64BitProcess ? "X64" : "X86";
            var osArch   = Environment.Is64BitOperatingSystem ? "X64" : "X86";

#if NETCORE2
            Console.Title = $"MonoStream {RI.FrameworkDescription}";
            Console.WriteLine($"Framework: {framework} ({RI.FrameworkDescription}) CLR: {RE.GetSystemVersion()}");
            Console.WriteLine($"OS: {Environment.OSVersion} ({RI.OSDescription.Trim()}) {procArch} {RI.OSArchitecture} {RI.ProcessArchitecture}");
#else
            Console.WriteLine($"Framework: {framework} CLR: {Environment.Version}");
            Console.WriteLine($"OS: {Environment.OSVersion} {procArch} {osArch}");
#endif
            Console.WriteLine();

            helloWorldZippedBytes = Convert.FromBase64String(helloWorldZippedBase64);

            defaultColor = Console.ForegroundColor;

            test(ms => new System.IO.Compression.GZipStream(ms, System.IO.Compression.CompressionMode.Decompress));
            test(ms => new ICSharpCode.SharpZipLib.GZip.GZipInputStream(ms));

#if !CI_BUILD
            Console.Write("Press any key to exit...");
            Console.ReadKey();
#endif
        }
示例#3
0
 public static void RuntimeEnvironmentSysVersion()
 {
     Assert.True(!String.IsNullOrEmpty(RuntimeEnvironment.GetSystemVersion()));
 }
 public static void RuntimeEnvironmentPosTest()
 {
     Assert.True(Directory.Exists(RuntimeEnvironment.GetRuntimeDirectory()));
     Assert.True(!String.IsNullOrEmpty(RuntimeEnvironment.GetSystemVersion()));
 }