Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens when .NET 4.0 references a .NET 2.0 assembly?

Tags:

What exactly does the .NET 4.0 runtime do if a .NET 4.0 executable contains a reference to a .NET 2.0 assembly?

Is the .NET 2.0 assembly run with the .NET 4.0 runtime (in other words, .NET 4.0 must be 100% API-compatible to .NET 2.0) or does the process somehow host the .NET 2.0 runtime and some magic happens to make the .NET 2.0 types transparently accessible to my .NET 4.0-based code?

like image 652
Cygon Avatar asked Apr 16 '10 14:04

Cygon


1 Answers

They say it should work fine. Check out this.

like image 148
m0s Avatar answered Sep 30 '22 04:09

m0s