I have a few .NET versions under C:\WINDOWS\Microsoft.NET\Framework\
What system variable controls what gets run by default??
I have a few .NET versions under C:\WINDOWS\Microsoft.NET\Framework\
What system variable controls what gets run by default??
There is no "System" variable for this.
Your application (.Net assembly) is compiled for certain framework and that framework is then used when you execute it.
It's the individual applications that determine on which version of the .NET framework it will run.
If you're talking about ASP.NET applications, the version it will run on is set in IIS.
The application itself comes with a manifest that tells your system what version of the framework it is targetting at.
The host your application runs in determines this. With the ASP.NET (IIS) host, you configure the web application to run against a specific version. With SQL server 2005, it will always pick .NET 2.0. With a console or windows application, it will by default run in the version the application is compiled against, unless you specify differently in the application's configuration file.