Automatic increase of version number for an assembly during the build process?

H

Henrik Dahl

Hello!

In VS.Net 2003 it was easy to make the build number to increase
automatically at each build. Therefore it was easy to ensure that only one
assembly would get a certain build number. I'm doing "No touch deployment"
so it's particularly important that the versioning works as it should as
assemblies otherwise do not get probed for.

May some of you provide me with a hint on how to make the version number to
increase automatically when using VS 2005, please?


Best regards,

Henrik Dahl
 
C

Chris Dunaway

That option is set in the Publish options of the project. Right click
on the project, select Properties then look at the Publish tab.
 
H

Henrik Dahl

Thank you very much, Chris!

Do you, or somebody else, know, what about referenced class libraries then?
May their version numbers also be increased automatically and if yes, how,
please?


Best regards,

Henrik Dahl
 
K

Kevin Yu [MSFT]

Hi Henrik,

In AssemblyInfo.cs, you can specify the assembly version like

[assembly: AssemblyVersion("1.0.*")]

so that it will use the default build and revision number(auto-increment).

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top