On 2013-11-06 12:12, mlintner wrote:
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
bug.
this code will show the issue.
Assembly executingAssembly = Assembly.GetAssembly(typeof(Runtime));
FileVersionInfo fvi =
FileVersionInfo.GetVersionInfo(executingAssembly.Location);
string version1 = fvi.FileVersion;
Console.WriteLine("version: "+version1);
This seems like a bug. Does anyone kow anything about this?
MSDN says about GetVersionInfo():
"Returns a FileVersionInfo representing the version information
associated with the specified file."
That would imply to me that the AssemblyFileVersion is meant. Anyways
the MS Runtime behavior trumps that anyways.
If you can't fix it immediately in the code (and send a pull request on
github), please file a bugreport on https://bugzilla.xamarin.com/
Regards, David
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list