Is it possible to use a .NET 2.0 based web application?

I feel like this is a stupid question and I am missing something, but I didn't even figure out how to look for it :(

Can an application written to target the .Net 3.5 Framework use libraries written in the 2.0 Framework?

Additional information in the answer, such as "why" and / or how this information was found, would be helpful!

+1


source to share


2 answers


Yes, you can. The underlying runtime hasn't changed, but CLR v2.0 and C # 3 are still compiled to MSIL 2.0, which runs in CLR 2.0. Additionally, ASP.NET is still effective in version 2.0 because the underlying reinforcements for this have not changed (C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ aspnet_isapi.dll).

.NET 3.5 is a complementary framework update, not a replacement. You will still be using v2.0 parts of BCL and FCL at the same time using 3.0 and 3.5.

Update: Just in case you're interested in this, I asked the question again about version 2.0 consuming 3.5 assemblies and it's the other way around:



C # 2.0 consuming assemblies compiled from C # 3.0

Hope it helps Kev

+3


source


Yes, maybe .NET Framework 2.0, 3.0 and 3.5 all under the cover have the same CLR 2.0, which means all assemblies are loaded with the same CLR and are binary compatible.



+1


source







All Articles