Hi guys,
I have an ASP.NET project that contains a Web Deployment project (to compile the website) and a Setup project (that creates the Setup and install the compiled version of the website).
I always change the application version on the Setup Project and I want to be able to reference that version number into the Website itself but without creating an entry in the web.config with the version number (not today, but I think that in the future I will forgot to change the version number in the web.config)
Is there any trick that I can use to get this behaviour?
Just like using the App.Config in WinForms using just:
Version vrs = new Version(Application.ProductVersion);
myVersionLabel.Text = "Major: " + vrs.Major + " Minor: " + vrs.Minor;