Build v. Revision in AssemblyVersion
From: Mark (mfield_at_idonotlikespam.cce.umn.edu)
Date: 04/06/04
- Next message: Reginald Blue: "Re: I've Had Enough"
- Previous message: C# Learner: "Re: I've Had Enough"
- Next in thread: Michael Mayer [C# MVP]: "Re: Build v. Revision in AssemblyVersion"
- Reply: Michael Mayer [C# MVP]: "Re: Build v. Revision in AssemblyVersion"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 6 Apr 2004 16:37:07 -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: Reginald Blue: "Re: I've Had Enough"
- Previous message: C# Learner: "Re: I've Had Enough"
- Next in thread: Michael Mayer [C# MVP]: "Re: Build v. Revision in AssemblyVersion"
- Reply: Michael Mayer [C# MVP]: "Re: Build v. Revision in AssemblyVersion"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|