I’m writing some web applications where I must show the assembly version in the footer of all the pages. The applications are published online through Azure DevOps release pipelines and I’m using automatic date-based versioning for the assemblies. Here is how to show the application version using assembly the version tag helper.
I have multiple pages where the version is displayed. Besides the layout page, there are also standalone pages, like the login page and error pages. Plus, I have two web applications in the solution. I don’t want to keep the version displaying logic in all these pages as that would be code duplication.
I’m writing some web applications where I must show the assembly version in the footer of all the pages. The applications are published online through Azure DevOps release pipelines and I’m using automatic date-based versioning for the assemblies. Here is how to show the application version using assembly the version tag helper.
I have multiple pages where the version is displayed. Besides the layout page, there are also standalone pages, like the login page and error pages. Plus, I have two web applications in the solution. I don’t want to keep the version displaying logic in all these pages as that would be code duplication. […]