In which CLR will my code be executed?

I have two versions of .Net (.Net 1.1.2.0) in my development machines. If I deploy my application X against .Net 1.1 and deploy another application Y agaings.Net 2.0 framework.

Now I need to know in which CLR (1.1 or 2.0) both applications will work?

Also give me a reason?

+3
source share
3 answers

This MSDN article explains this quite clearly:

The version of the .NET Framework that runs the application as follows:

  • If the version of the .NET Framework that the application was created against is present on the computer, the application runs in this version.

  • .NET Framework <supportedRuntime> , .NET Framework, .

  • .NET Framework <supportedRuntime> , .

, ASP.NET, IIS.

+12

: asp.net, . iis-, , , , , .

+2

Starting with Visual Studio 2008, you can target a specific version of .Net Framework - 2.0, 3.0, or 3.5

Until VS2008 its fixed -

VS2005 Goal .Net Framework v2.0

VS2003 Goal .Net Framework v1.1

VS2002 Goal .Net Framework v1.0

If you specify a target, it will require that version of the .NET Framework.

CORRECTION: it will work on the THAT version or higher, compatible.

+1
source

Source: https://habr.com/ru/post/1714858/


All Articles