By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,852 Members | 2,116 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,852 IT Pros & Developers. It's quick & easy.

How to set version

P: n/a
I've been looking and looking for how to set the version numbers for my
visual studio project...where the heck is it? Used to be able to do it from
project properties in VB6. I found out how to read the version number, but
where to set it?

It's probably so obvious that I'm going to feel really dumb!

Thanks in advance,
Jeff
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Tue, 17 Aug 2004 23:00:23 -0600, Jeff wrote:
I've been looking and looking for how to set the version numbers for my
visual studio project...where the heck is it? Used to be able to do it from
project properties in VB6. I found out how to read the version number, but
where to set it?

It's probably so obvious that I'm going to feel really dumb!

Thanks in advance,
Jeff


Look in the AssemblyInfo.vb file that is automatically added to your
project... You should see:

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

This means, version 1.0 and automatically increment the build number with
each compile. So , you want to make it 2.5 - change it to:

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

--
Tom Shelton [MVP]
Nov 21 '05 #2

P: n/a
I discovered this solution earlier today - it provides automatic
incrementing of the Build number.

With a little modification, it could be made to increment Revision number
instead, or what ever you want.

See http://www.codeguru.com/Csharp/.NET/...cle.php/c5961/

Jeff Law
New Zealand

"Jeff" <jk******@yahoo.com.spam-no> wrote in message
news:ut**************@TK2MSFTNGP11.phx.gbl...
I've been looking and looking for how to set the version numbers for my
visual studio project...where the heck is it? Used to be able to do it
from
project properties in VB6. I found out how to read the version number, but
where to set it?

It's probably so obvious that I'm going to feel really dumb!

Thanks in advance,
Jeff

Nov 21 '05 #3

P: n/a
* "Jeff" <jk******@yahoo.com.spam-no> scripsit:
I've been looking and looking for how to set the version numbers for my
visual studio project...where the heck is it? Used to be able to do it from
project properties in VB6. I found out how to read the version number, but
where to set it?


Some additional information:

Basic information on versioning:

<URL:http://msdn.microsoft.com/library/en-us/dndotnet/html/managevers.asp>
<URL:http://msdn.microsoft.com/library/en-us/dnbda/html/tdlg_ch5.asp>
<URL: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.

Getting the program version number:

\\\
MsgBox( _
System.Reflection.Assembly.GetExecutingAssembly( _
).GetName().Version.ToString() _
)
///

- or -

\\\
MsgBox( _
System.Windows.Forms.Application.ProductVersion.To String() _
)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.