.NET Framework and Version Compatibility

If the .NET application (Form / Web) is built using Framework 2.0, will it work with a computer that has only version 4.0 from the framework?

For example, I installed a new copy of Win Server 2003 and upgraded the system using v4.0 of the .NET platform (then the system had only 1.0, 1.1 and 4.0.NET), but when installing SQL Server 2008 R2 Express setup I asked to install another v3.5 SP1 in the framework.

+3
source share
2 answers

Yes, your application 2.0 will run on a computer with a 4.0 framework. Backward compatibility exists in dot net 4.0.

See this msdn article for more information.

MSDN says

, .NET Framework . , .NET. 4 , . , .NET Framework , .NET Framework , . , .NET Framework .

4.0 2.0.

+5

app.config CLRv4.

<configuration>
    <startup>
        <supportedRuntime version="v2.0.50727"  />
        <supportedRuntime version="v4.0"  />
    </startup>
</configuration>

( v2, v4 CLR!)

+4

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


All Articles