AssemblyVersion

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Mark (mfield_at_idonotlikespam.cce.umn.edu)
Date: 04/19/04


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);



Relevant Pages

  • Build v. Revision in AssemblyVersion
    ... and a Build and Revision that increment on their own. ... Will the code below display the correct related information ... ... string MyVersion = AppVersion.Major.ToString ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Build v. Revision in AssemblyVersion
    ... midnight, January 1, 2000, local time, divided by 2. ... Under what circumstances does the Build automatically increment? ... Will the code below display the correct related information ... ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Auto Increment records like a new emplyee number
    ... You'd use your other info for display. ... "TonySper" wrote in message ... > contains your id counter, increment it, and then unlock the record. ... >> As long as everyone attempts to lock the table before counting, ...
    (microsoft.public.fox.programmer.exchange)
  • Re: WHILE loop problems
    ... images to display on a profile page, then put a notice at the bottom. ... Below is my original script to display a single ... It seems that the increment is being discarded ...
    (alt.php)
  • Algorithms directly working on Gray code variables
    ... increment (for counting) ... conversion to decimal (for display) ...
    (comp.arch.embedded)