Automatic versioning

Show how to automize versioning by modifing a line in the AssemblyInfo file.

// Modify the AssemblyVersion line in the 
// "AssemblyInfo.cs" file:
// Add a "*" to the section you want to increase automatically
[assembly: AssemblyVersion("0.9.0.*")]
// Remove this if you add the star
//[assembly: AssemblyFileVersion("")]
// In your windows application you can access the current version
// like this:
// "this" contains the the current "Form" object.
Snippet Details

Sorry folks, comments have been deactivated for now due to the large amount of spam.

Please try to post your questions or problems on a related programming board, a suitable mailing list, a programming chat-room,
or use a QA website like stackoverflow because I'm usually too busy to answer any mails related
to my code snippets. Therefore please just mail me if you found a serious bug... Thank you!

Older comments:

onkel October 01, 2010 at 14:34
nice - does work with forms NOT with wpf
jan June 04, 2010 at 23:16