[Mono-list] Assembly Version / Project Version / AssemblyVersion

Fernando Rodriguez frodriguez.developer at outlook.com
Fri Sep 12 00:25:44 UTC 2014


On Thursday, September 11, 2014 09:29:06 PM Edward Ned Harvey 
wrote:
> When I right-click a project and go to Options, Main Settings, there is 
a
> "Version" field there.  However, when I change that, it has no effect 
on
> 
System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.
> 
> I noticed if I edit Properties/AssemblyInfo.cs, there is a 
"AssemblyVersion"
> and "AssemblyFileVersion" in there.  And these do indeed control the
> executing assembly version.
> 
> So I have a couple of questions ... What's intended to be the 
difference?
> Or, more what I care about, Is there some way for the run-time 
application
> to detect the version as set in the Project Options?  (Because this is 
more
> convenient to maintain.)
> 
> Is there some other recommended place to set and/or detect the 
current
> running application version?
> 
> Thanks...

I think it is more like project/solution metadata than assembly 
information (notice that even the solution options have it). The visual 
studio feature it gets confused with is more of a code generation 
feature (it modifies the AssemblyInfo.cs file for you).




More information about the Mono-list mailing list