[Mono-bugs] [Bug 681552] New: There is no service pack information in Environment.OSVersion

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 22 08:12:10 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=681552

https://bugzilla.novell.com/show_bug.cgi?id=681552#c0


           Summary: There is no service pack information in
                    Environment.OSVersion
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.10.x
          Platform: x86
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: generics
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: d.kucinskas at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows NT 6.0; rv:2.0) Gecko/20100101
Firefox/4.0

public static void Main (string[] args)        
{
    OperatingSystem sys = Environment.OSVersion;
    Console.WriteLine("Platform: " + sys.ToString());
    Console.WriteLine("VersionString: " + sys.VersionString);
    Console.WriteLine("Platform: " + sys.Platform);
    Console.WriteLine("ServicePack: " + sys.ServicePack);
    Console.WriteLine("Major: " + sys.Version.Major + 
    " ,MajorRevision: " + sys.Version.MajorRevision +
    " ,Minor:" + sys.Version.Minor + 
    " ,MinorRevision:" + sys.Version.MinorRevision +
    " ,Revision: " + sys.Version.Revision);
}

Reproducible: Always

Steps to Reproduce:
1.Create new console application
2.Get value from Environment.OSVersion

Actual Results:  
Platform: Microsoft Windows NT 6.0.6002.0
VersionString: Microsoft Windows NT 6.0.6002.0
Platform: Win32NT
ServicePack: 
Major: 6 ,MajorRevision: 0 ,Minor:0 ,MinorRevision:0 ,Revision: 0



Expected Results:  
Platform: Microsoft Windows NT 6.0.6002 Service Pack 2
VersionString: Microsoft Windows NT 6.0.6002 Service Pack 2
Platform: Win32NT
ServicePack: Service Pack 2
Major: 6 ,MajorRevision: 2 ,Minor:0 ,MinorRevision:0 ,Revision: 131072

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list