App.config <supportedRuntime>

Suppose I have a WinForms application that is built and compiled against .NET 2.0 using VS2008.

I understand that at run time, the application will first try to load CLR.NET 2.0 (because this is what was compiled), regardless of anything that can be specified in any "supportedRuntime" element in the app.config file.

If he cannot find it, he will then proceed to the decision-making process for a different version by checking app.config, etc.

For example, if .NET 2/3 / 3.5 and .NET 4.0 are installed on the computer, and I have:

<supportedRuntime>V4.0</supportedRuntime>

in app.config, the application will still decide to download and run .NET 2.0.

Is it correct?

Thank.

+3
1

MSDN , - :

http://msdn.microsoft.com/en-us/library/w4atty68.aspx

<supportedRuntime> , , .

, MSDN?

+9

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


All Articles