Search Wiki:
Resource Page Description
A command line utility that updates the version number in an AssemblyInfo.cs or AssemblyInfo.vb file.

The new version number can be provided as a fixed value such as 3.2.0.0 or as a pattern like 3.*.0.0. The wildcard argument through the command line will increment the existing value by 1.

For example if the existing version in AssemblyInfo.vb is 1.4.0.0 and SetVersion is invoked with the pattern 0.*.0.0 the new version will be set to 1.5.0.0.

Usage:

SetVersion <AssemblyFilePath> <VersionNumber>
The version number can also be a wildcard pattern, this will cause the wildcard value to be incremented by 1.

Examples:
SetVersion C:\Projects\Foo\Properties\AssemblyInfo.cs 1.5.0.0
SetVersion C:\\Projects\\Foo\\Properties\\AssemblyInfo.cs 0.0.*.0

*Author: Merill Fernando http://www.merill.net

See this post for more details: http://www.merill.net/post/2008/10/Automate-Build-for-a-ClickOnce-Application-Hosted-on-CodePlex-using-MSBuild.aspx
Last edited Oct 22 2008 at 12:54 AM  by merill, version 3
Updating...
Page view tracker