473,386 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to change dll version

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

Nov 20 '05 #1
7 9348
"Li Pang" <an*******@discussions.microsoft.com> schrieb

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.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
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
Nov 20 '05 #3
"Li Pang" <an*******@discussions.microsoft.com> schrieb

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.
--
Armin

Nov 20 '05 #4
* "=?Utf-8?B?TGkgUGFuZw==?=" <an*******@discussions.microsoft.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
No. The version was not always changed every thime I compiled it. However, the timestamp changed.
Nov 20 '05 #6
Thanks Herfried

It changes the version everytime restart the solution

Regard

Nov 20 '05 #7
* "=?Utf-8?B?TGkgUGFuZw==?=" <an*******@discussions.microsoft.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Name | last post by:
To those that can save me from myself: I have a site that has been working perfectly for a few years now, under PHP 4.2.3. Since later versions of PHP run so much more quickly, I wanted to...
2
by: Daniel Lidström | last post by:
Hi, I would like to know the cleanest way to change the serialization of my Line class from: <Line staStart="2327.02" length="10.00000003390744"> <End>549016.570965 57945.741122</End>...
13
by: Andrew | last post by:
I use conditional compiler constants, set through the VBA IDE in Tools, <projectname> Properties, that I refer to throughout my code to control which code is used during development, and which...
2
by: Joel D Kraft | last post by:
I'm using controls in my ASP.NET application from a couple of vendors. Between the vendors and thier versioning, I've set up subfolders under my bin directory: bin bin\Infragistics\v5.2...
3
by: Tom | last post by:
I am writing a Visual basic .Net database application. There are many forms that first let you select and look at a DB record and then when you click a "modify" button you are allowed to change...
2
by: Pieter | last post by:
Hi, I'm using the Settings.settings of VB.NET to define a Connectionstring (Scope = application). When I deploy the Solution, and change this Setting in the app.config-file, it seems that...
1
by: TheCornjerker | last post by:
Sorry for the cross-posting, but I thought this was a better forum to get the answer. I posted it in the Sharepoint forum as well. I've upgraded to WSS3 but I'm getting a "Server Application...
11
by: meo | last post by:
Can I select version of .NET compiler to run my ASP.NET web application? I thought I can select version of compiler by config in Web.config when I need to change between 1.0 or 1.1 But in...
11
by: Simon | last post by:
Dear reader, The syntax for the VBA code to change the RowSource of a Master Report is: Me.RowSource = "TableOrQueryName"
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.