[Mono-dev] AssemblyFileVersion

Marek Safar marek.safar at gmail.com
Sun May 25 10:58:43 UTC 2014


Hi,

When compiling an assembly , the File version info of the file is set by
> reading the AssemblyInfo.AssemblyFileVersion attribute. On mono it seems to
> be reading the AssemblyVersion attribute.
>

At first look this looks like mono bug. Please fill a bug report.

Thanks
Marek


>
> As a test, set these 2 attributes into an assembly:
> [assembly: AssemblyVersion("2011.04.0.0")]
> [assembly : AssemblyFileVersion("2011.02.0.0")]
>
> Then build it and try this:
> Assembly executingAssembly = Assembly.GetAssembly(typeof(Runtime));
> FileVersionInfo fvi =
> FileVersionInfo.GetVersionInfo(executingAssembly.Location);
> string version1 = fvi.FileVersion;
> Console.WriteLine("version: "+version1);
>
> In our test it was returning 2011.04.0.0 but on Windows it would return
> 2011.02.0.0 and right clicking on the files in Windows Explorer would show
> the same things. Could Linux be putting this in a different area?
>
> Neale
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20140525/8367a5fa/attachment.html>


More information about the Mono-devel-list mailing list