How do you show the asp.net application version?

Scene Setting:
My asp.net web application has a version number that is incremented in each release. We release every week within our test group and after four weeks or so to our client.

Question:
I want to include the version number in our application. What methods did you use to have your web application have a version number? meta tag? just added it to the footer?

+4
source share
5 answers

If you have a lot of contact with the client (bug fixes or changes), you should save the version number in a place convenient for searching (for example, footer). You will find that you are asking the client which version they are launching, if they cannot find it, it is frustrating for both the client and the service staff.

Make sure that the footer is a user control or that the version is stored in the database table or in the resource file, so you refresh once, and then view each page refresh. My recommendation is a user control, and if you want to track versioning, save the version numbers in the database and read them in your user control.

You can use the MS route for help β†’ about a given menu and display the version number, for example, a js popup or on another page.

If for some reason you don’t like the version number on the footer or even the help pop-up menu, and you don’t deal with the client regularly, you can put it in the metadata or in the source code of your HTML.

+2
source

We have an information page that displays the version number (SaaS application).

But seriously, with software version numbers on the Internet it doesn't matter. This is the transition point to the website, so users finally forget about these versions, updates, service packs, etc. Otherwise, the idea of ​​a constantly updated web application (perpetual beta) is not actually perceived by either side.

+1
source

In some projects, we added a version number to the footer. We displayed the assembly number (any of our assemblies).

With this method, we did not need to care about the text in the footer while we increased the version of the assembly.

The assembly version was extracted using Reflection.

+1
source

I saw many web applications (and websites) that I saw that add the version number as a comment in the generated HTML. The BBC is one of them - browse the source and you will see <!-- Barlesque v34.8 --> in the title. (Barlesque - BBC layout system).

+1
source

Check out the posted code here . It will collect and display version information for the .NET Framework. At any time, when you need version information of the current assembly, you can use

 Assembly.GetExecutingAssembly().GetName().Version 

Similarly, to get version information for a particular assembly, you can either think directly on the assembly, or simply use the class in the assembly

 typeof(ClassKnownToBeInTheTargetAssembly).Assembly.GetName().Version 

where ClassKnownToBeInTheTargetAssembly is the class declared in the assembly, which requires version information.

By the way, these comments suggest that assemblies are signed.

0
source

Source: https://habr.com/ru/post/1302996/


All Articles