Click here to Skip to main content
15,881,173 members
Articles / Programming Languages / Javascript

Incrementing AssemblyVersion revision number on each build

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
3 Oct 2011CPOL1 min read 6K  
Some people remarked that the Visual-Studio-generated build number actually contains a hidden timestamp, which, I think, is far from being intuitive. I wrote the following snippet to do something similar but is easier to understand.Beside changing the version number, we can even write build...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
2 Oct 2011wmjordan 3 alternatives  
Change the revision number of your project without manual intervention.
Please Sign up or sign in to vote.
15 Sep 2011vdasus
I have written two articles here with solutions to solve this problem. Maybe it'll be useful for somebody:Autoincrement Version in Visual StudioAutoincrement Build Version, Using VCS (bazaar plugin included)
Please Sign up or sign in to vote.
15 Sep 2011Anas Karkoukli
I would much rather taking advantage of the tools Visual Studio provides. If you have a continuous building in place, then you might as well use MSBUILD itself from the command line with a Custom MSBUILD TASK. For more infrmation and background on the concept, please refer to this...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
China China
I am now programming applications for the Internet of Things.

Comments and Discussions