How to change dll version

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I built an app of one .exe and several .dlls. I'd like to know how to force to change the version of dll everythime I rebuild the app

Thank
 
Li Pang said:
I built an app of one .exe and several .dlls. I'd like to know how to
force to change the version of dll everythime I rebuild the app?

By default it changes automatically. See the AssemblyVersion attribute in
the file AssemblyInfo.vb.
 
Hi Armin,

The file AssemblyInfor.vb contains:

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

I'd like to change the version event without change the codes. But it didn't.

Regards
 
Li Pang said:
The file AssemblyInfor.vb contains:

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

I'd like to change the version event without change the codes. But it
didn't.


The version does not change each time you compile? I can't reproduce this.
 
* "=?Utf-8?B?TGkgUGFuZw==?= said:
The file AssemblyInfor.vb contains:

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

I'd like to change the version event without change the codes. But it didn't.

Are you sure? At least the build number should change (not necessarily
increment).

Basic information on versioning:

<http://msdn.microsoft.com/library/en-us/dndotnet/html/managevers.asp>
<http://msdn.microsoft.com/library/en-us/dnbda/html/tdlg_ch5.asp>
<http://msdn.microsoft.com/library/en-us/cptutorials/html/versioning_components.asp>

Parts of the version number:

Main version
"Product" version.
Sub version
Sub version, for example Service Pack.
Build
During development, auto-increment.
Revision
Hotfix or Quick Fix Engineering (QFE).

When using auto incrementation of numbers, the build number contains the
number of days since January, 2000; the revision contains the number of
seconds since midnight divided by 2.

The version number can be changed in the file "AssemblyInfo.vb". The
version number will updated automatically when re-opening the solution.
 
No. The version was not always changed every thime I compiled it. However, the timestamp changed.
 
* "=?Utf-8?B?TGkgUGFuZw==?= said:
It changes the version everytime restart the solution.

Does that solve your problem? Maybe you can write an add-in for the IDE
which changes the version number every time a build event occurs.
 
Back
Top