Include version number when deploying (assembly version numbers in general)

306 Views Asked by At

How do I include the version number of a project on the pages of my web site, especially on error pages? There is a file called AssemblyInfo.cs so I figure I could get the information from there using reflection. Do I have to manually increment the version numbers there? The file tells you that you can use default revision and build numbers by using *.

[assembly: AssemblyVersion("1.0.*")]

By this the version number will be incremented automatically it seems, but when does he do that and is it recommended to use the asterisk? Are there guidelines for manually incrementing the number? I mean there are four digits like 1.0.0.0. What does each of these digits do? So when I am showing the version number by using reflection I can show it at runtime. But is it possible to automatically include the number in a file so that you can figure it out without even running the project (which might not be possible in case of failure).

0

There are 0 best solutions below