Link to home
Start Free TrialLog in
Avatar of Mike Broderick
Mike BroderickFlag for United States of America

asked on

Visual Basic .net, Assembly Revision number not incrementing

What do I need to do to make the revision number change?

In my Assembly, I have <Assembly: AssemblyVersion("1.0.*")>  specified. When I right-click on the bin file, a dll, the Build number is correct (adds up to today's date) but the revision number adds up to a time around 3 am (21368). I rebuilt the dll. Same number. Deleted and recreated the dll. Same number...

How do I make the revision number increment?
Avatar of Carlos Villegas
Carlos Villegas
Flag of United States of America image

Hello, remove the attribute <Assembly: AssemblyFileVersion("1.0.0.0")>  from your AssemblyInfo.vb, then try again.
Avatar of Mike Broderick

ASKER

I'm sorry, it is already removed.
Update: About an hour elapsed, and when I rebuild the project, I get a new revision number. This doesnt make any sense.
Well... I'm not sure if it is a VS IDE bug... but if you reopen your project, change some thing and do a build it is refreshed...
Avatar of Mez4343
Mez4343

Does the Created/Modified/Accessed dates on General tab of DLL show correct compiled date? This will verify you are looking at the DLL that you recompiled.

Also, make sure assembly: AssemblyFileVersion line is commented out in assembly.vb file. using both AssemblyVersion and AssemblyFileVersion prevents autoincrement for some reason.

Is there any post build event in project properties setting assembly version number?
ASKER CERTIFIED SOLUTION
Avatar of Carlos Villegas
Carlos Villegas
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I closed out the IDS then reopened it, then rebuilt the solution. The revision number changed. Thanks.
Glad to help!