I have a website that is currently running under .NET 3.5. I am thinking of making it run under 4.0, but I use many 3rd-party DLL’s for compressing, Bit.ly, Twitter, XML, etc. If these DLL’s were created for .NET 3.5 (in VS2008), will they continue to run under 3.5? Or is 4.0 somehow backwards compatible for old libraries?
Share
There’s no such thing as running under 3.5. .NET assemblies are compiled against a .NET version and then loaded and executed by the CLR. .NET 3.5 uses CLR 2.0 and .NET 4.0 uses CLR 4.0.
So if your application is running under the CLR 4.0 those assemblies will run under the CLR 4.0 which is backwards compatible with assemblies compiled against .NET 3.5. There could be some caveats if those assemblies call unmanaged functions but otherwise they should work just fine.
Go ahead and try running them.