AssemblyVersion
From: Mark (mfield_at_idonotlikespam.cce.umn.edu)
Date: 04/19/04
- Next message: Lance R.: "Re: Credit cards charge"
- Previous message: Spike: "Re: Overloading and Arrays"
- Next in thread: Jochen Kalmbach: "Re: AssemblyVersion"
- Reply: Jochen Kalmbach: "Re: AssemblyVersion"
- Reply: sandman: "Re: AssemblyVersion"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Apr 2004 12:23:17 -0500
In the AssemblyInfo.cs page of a ASP.NET project, there is a defaulted
property of:
[assembly: AssemblyVersion("1.0.*")]
It's my understanding that this indicates a Major Version of 1, a Minor
Version of 0, and a Build and Revision that increment on their own. I could
modify the minor and major number above as it made "logical sense". Three
related questions:
1. Under what circumstances does the Build automatically increment?
2. Why does the revision increment by a 100+ each time I rebuild my
solution? Why not ... by one?
3. Will the code below display the correct related information ... or am I
misinterpreting their meaning by displaying them in this way (for internal
purposes)?
Thanks in advance!
Mark
System.Reflection.Assembly MyAssembly =
System.Reflection.Assembly.GetExecutingAssembly();
System.Version AppVersion = MyAssembly.GetName().Version;
string MyVersion = AppVersion.Major.ToString()
+ "." + AppVersion.Minor.ToString()
+ "." + AppVersion.Build.ToString()
+ "." + AppVersion.Revision.ToString();
Response.Write("Version: " + MyVersion);
- Next message: Lance R.: "Re: Credit cards charge"
- Previous message: Spike: "Re: Overloading and Arrays"
- Next in thread: Jochen Kalmbach: "Re: AssemblyVersion"
- Reply: Jochen Kalmbach: "Re: AssemblyVersion"
- Reply: sandman: "Re: AssemblyVersion"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|