Is it possible in an asp.net web site project for it to increment a build version number automatically (and display it to our test team)
Yes, in the AssemblyInfo.cs (or .vb, I guess) you can specify an [assembly: AssemblyVersion("1.1.*")]
attribute. The "*" means that that part of the 4-part number is generated automatically (it's based on date and time).
You can read out that version number using this code:
System.Reflection.Assembly.GetExecutingAssembly().GetName().Version
That AssemblyInfo file should exist in every project, nowadays within a Properties folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With