mercredi 27 avril 2016

Show Web App DLL Version Number in an AngularJS App

I have an AngularJS (v1) app and I'm trying to get the version of my web app's DLL in order to display it. How do I get that? The DLL is in the bin folder when the site is deployed to IIS.

The examples I've seen so far use something like this:

string version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();

But since I'm using AngularJS and plain-old HTML pages, I don't have a code-behind to use. How can I get the version number to display on the client?




Aucun commentaire:

Enregistrer un commentaire