In which version of .net Framework will the library run

If I have a library that is compiled in .NET 4 and references it from an .net 4.5 executable file, which version of the framework performs the operations defined in the library to be executed with?

I have a cli application that is built in .net 4.5 and references the .net 4 and .net 4.5 projects, and they are wondering if they will use the same version of ADO.net components.

+5
source share
1 answer

They will work in the same CLR (in this case 4.5).

.NET <= 3.5 , ( , ADO.NET 4.0, 4.5 ). , CLR 4.0 (, , ).

: BTW - CLR (runtime running your code) .

CLR - , . , CLR 4.5 (1.0 → 4.5). 4.5 CLR. , CLR . CLR 4.5 4.0 , . CLR 1.0, 1.1, 2.0, 3.0 3.5 , . CLR 3.5 CLR 4.5 .

+5

All Articles