Rory,

I was having the same problem.  I personally would consider it a bug, but I
did find this...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/tdlg_ch5.asp

If you read down a little, it says:
For a Microsoft Visual Basic® .NET project with an AssemblyVersion set to "1.0.*", the 
assembly version is only updated the first time the project is
rebuilt within the Visual Studio .NET integrated development environment (IDE). The 
version number remains constant for subsequent rebuilds within the
 same instance of Visual Studio .NET. This does not represent a problem because the 
assembly version is for information only in assemblies that do not
 have a strong name. For strong named assemblies, you should avoid the use of wild 
characters in the AssemblyVersion attribute, as explained in the
following section.
For C# projects with an AssemblyVersion set to "1.0.*", the assembly version is 
updated every time the project is rebuilt.

Also, if you build from the command line, it updates the version number.

Good luck.





From: "Mackay, Scott" <[EMAIL PROTECTED]> on 04/24/2002 08:11 AM

Please respond to dotnet discussion <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]

cc:


Subject:  Re: [DOTNET] Super stupid version question...

If you are using Visual Studio.NET, under the project properties dialog
there is an option (in 'Configuration Properties/Advanced') called
Incremental build.

Hope this helps.

Scott.


-----Original Message-----
From: Rory Becker [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 12:39
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Super stupid version question...

AssemblyInfo.vb is definitely in the project. (I assume that this will
be enough to get it compiled into the exe.
And the following line is the last in AssemblyInfo.vb

<Assembly: AssemblyVersion("1.0.*")>

As a test, I created a new VB.Net Windows Application Project.
I compiled this and checked the product file and Assembly Versions in
Explorer. The value was 1.0.844.20393.

Then I compiled it again ..... Same value

Then I changed the code to add a button to the form and a
messagebox("somethingOrOther").

Then I compiled it again ..... Same value

Something is definitely wrong. No?

Rory

>Only two ways I know of.
>One is, the file with your assembly properties isn't being compiled
into
>your project (AssemblyInfo.cs or AssemblyInfo.vb, if you use the
wizards).
>The other is, if you don't have "a.b.*" in your AssemblyVersion
property.


>Brad








You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to