ASP.Net showing operating system and framework version

Recently I was in the process of migrating a simple ASP.NET MVC application.
After setting up IIS, using Upgrade Assistant and a some code changes, I got this feeling that, somehow, I was being tricked and .Net 4.8 Framework was still there running my code...

So, I got into the layout page and places this on the page footer:

<small>
@System.Runtime.InteropServices.RuntimeInformation.OSDescription
 |
@System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription
</small>

That prints the operating system and the framework where the application is running.


./M6