[Mono-bugs] [Bug 345972] FileVersionInfo doesn't work

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Dec 13 08:50:03 EST 2007


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

User rkvinge at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345972#c5


Rolf Bjarne Kvinge <rkvinge at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|RESOLVED                                        |REOPENED
         Resolution|FIXED                                           |




--- Comment #5 from Rolf Bjarne Kvinge <rkvinge at novell.com>  2007-12-13 06:50:03 MST ---
There are still issues with at least the FileVersion, new repro:

using System;
using System.Reflection;
using System.Diagnostics;
class T
{
    static void Main (string [] args)
    {
        string filename = Assembly.GetExecutingAssembly ().Location;
        FileVersionInfo info = FileVersionInfo.GetVersionInfo (filename);
        Console.WriteLine ("FileVersion: '{0}', Length: {1}", info.FileVersion,
info.FileVersion.Length);
        for (int i = 0; i < info.FileVersion.Length; i++)
            Console.WriteLine ("#{0} = {1}", i, (int) info.FileVersion [i]);
    }
}

rolf at linux:~/test> mono --version
Mono JIT compiler version 1.2.6 (/trunk/ r91205)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none
rolf at linux:~/test> mono c.exe
FileVersion: ' ', Length: 2
#0 = 32
#1 = 0

There seems to be an extra null char at the end of the string.

MS reports:
Z:\>c.exe
FileVersion: ' ', Length: 1
#0 = 32


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


More information about the mono-bugs mailing list