Mike Broderick
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?
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?
Hello, remove the attribute <Assembly: AssemblyFileVersion("1.0.0 .0")> from your AssemblyInfo.vb, then try again.
ASKER
I'm sorry, it is already removed.
ASKER
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...
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I closed out the IDS then reopened it, then rebuilt the solution. The revision number changed. Thanks.
Glad to help!