Using C#, what is the best way to ask the .NET Runtime which version you are running under?
It is important to be careful about asking which version of the framework is running, and which version of the runtime is running, as they can be different. Your title and body ask subtly different questions.
@JaredPar is right on the money with the runtime version.
For framework versions, check out this closely-related post: How to detect what .NET Framework versions and service packs are installed?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With