Where should I store the version information of my ASP.NET application?
The best way to implement the project - set attributes AssemblyVersion
and AssemblyFileVersion
in this file:
AssemblyInfo.cs
The easiest way to set this is to use the property sheet for the project itself (right-click on the project file and select Properties). On the first tab (Application), click the Build Information ... button and install the versions in the dialog that appears. These changes will be saved in the file mentioned above.
a source to share
The easiest way to save the version information of an application is through the AssemblyInfo.cs file. You can get this update automatically by using something like the UpdateVersion utility in conjunction with a prebuild event (see fooobar.com/questions/18549 / ... for details ).
On a related note, I have a blog post that you might find helpful, with details on how to create an ASP.NET About Page that can pull information from an AssemblyInfo file into your web application, along with information about other assemblies in the folder bin.
a source to share