How do I output the version of C# an application is using from with C# code (whether it be an MVC app, website or console app).
I have spent a long time searching for this - I just can't find anything on Google - it's strange.
I searched for: "output C# version in code" "how to get C# version of current application" and many others.
Is this even possible?
I want it to output something like "C# version 7" or "5" etc.