Managing build versions in Visual Studio

I often build libraries and websites and my versions are naturally always at 1.0.0.0.

How do you guys manage the versions to increment automatically?

Also, how can you specify a seed for example: I want to start at 0.5.0.0 and increment to 0.5.0.1, 0.5.0.2, 0.5.0.3, etc...

Or starting at 1.0.0.0 and increment like 1.0.1.0, 1.0.2.0, 1.0.3.0.

Thanks!

Upvotes: 2

Views: 987

Answers (3)

Oliver Friedrich
Oliver Friedrich

Reputation: 9250

You can just adjust the variable in your project/Properties/AssemblyInfo.cs.

From left to right you can either enter manually your Major, Minor, Revision and Build-Numbers, or you can substitute them with a '*' and let VisualStudio increment them with each build.

Upvotes: 2

bniwredyc
bniwredyc

Reputation: 8839

Thank you for the question! I thought about it before, you've just reminded me.

Now I've found visual studio add-in for that purposes:

Build Version Increment Add-In Visual Studio

I've installed and tested it - works fine for me.

Upvotes: 2

abmv
abmv

Reputation: 7108

I use Versioning Controlled Build

Upvotes: 0

Related Questions