[Mono-list] FileVersionInfo on an assebly file returns the AssemblyVersioin

mlintner mlintner at flash.net
Wed Nov 6 11:12:38 UTC 2013

On windows if you set these attributes on an assembly

[assembly: AssemblyVersion("2011.04.0.0")]
[assembly : AssemblyFileVersion("2011.02.0.0")]

calling FileVersionInfo.GetVersionInfo returns "2011.02.0.0"

on Linux the same call returns 2011.04.0. This seem sto be

this code will show the issue.

Assembly executingAssembly = Assembly.GetAssembly(typeof(Runtime));
 FileVersionInfo fvi =
 string version1 = fvi.FileVersion;
 Console.WriteLine("version: "+version1);

This seems like a bug. Does anyone kow anything about this?

View this message in context: http://mono.1490590.n4.nabble.com/FileVersionInfo-on-an-assebly-file-returns-the-AssemblyVersioin-tp4661257.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list