[Mono-dev] Version metadata - reflection?

Edward Ned Harvey (mono) edward.harvey.mono at clevertrove.com
Fri Sep 12 02:17:17 UTC 2014


In Visual Studio, you right-click a project, properties, application, assembly information, and set the version, which corresponds to AssemblyVersion and AssemblyFileVersion in AssemblyInfo.cs, and it can be detected at runtime via System.Reflection.Assembly.GetEntryAssembly().GetName().Version.

However, in Xamarin Studio or MonoDevelop, you right-click a project, options, main settings, and set version... It doesn't change AssemblyInfo.cs. Instead, it modifies the csproj.  I'm not sure how/if this metadata can be accessed at runtime.  Can it?  Or better yet, does Xam Studio and/or Monodevelop have some interface that allows easy editing of AssemblyInfo.cs as VS does?  I can edit the file by double clicking it and editing text manually, I just wonder if that's what people are intended to do.  (I am surprised to see a completely separate and completely analogous and confusing redundant project "Version" metadata setting which is unrelated to the version inside AssemblyInfo.cs).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20140912/ff6ebfca/attachment.html>


More information about the Mono-devel-list mailing list