How can one programmatically determine an application's targeted .NET platform at run-time?

  • Thread starter Thread starter RobertGustafson
  • Start date Start date
R

RobertGustafson

Guest
WHAT I HAVE:

Visual Basic 2019, .NET 4+, WinForms

MY PROBLEM:

I have programs that are targeted at multiple .NET platforms. How does a program, or a class library being run by a program for that matter, determine what version of .NET it's running under? I'd like a way to figure this out at run-time so that my programs can act accordingly. If possible, I'd like to be able to figure this out at compile-time too (i.e., using conditional compilation). Please give answers in VB.


Robert Gustafson

Continue reading...
 
Back
Top