Our codebase where I work is .NET 2.0. For our new assembly/DLLs/web applications I would love to take advantage of what 3.5 has to offer.
Can one mix .NET frameworks(per assembly) in a solution? Are there any IIS related caveats to this?
I would love to hear any positive/negative/howto feedback. Let me know!
Thanks!
It is safe to install multiple versions of the . NET Framework on your computer.
NET Framework 4.5 (or one of its point releases) runs side by side with versions 1.1, 2.0, and 3.5, and is an in-place update that replaces version 4. For apps that target versions 1.1, 2.0, and 3.5, you can install the appropriate version of . NET Framework on the target machine to run the app in its best environment.
There are 4 distinct versions of the . net framework. All of those can be installed and uninstalled independently.
NET Framework 4 is backward-compatible with applications that were built with the . NET Framework versions 1.1, 2.0, 3.0, and 3.5. In other words, applications and components built with previous versions of the . NET Framework will work on the .
Yes you can do this in Visual Studio and it is called Multi-Targeting.
Scott Guthrie has a great blog-entry on Multi-Targeting Support in Visual Studio.
VS 2008 was the first release of Visual Studio that included multi-targeting support for .NET. What this meant was that you could use VS 2008 to create and edit not only .NET 3.5 projects, but also .NET 3.0 and .NET 2.0 projects as well. This allowed developers to more quickly upgrade and take advantage of new Visual Studio tooling features – without having to necessarily require the newer version of .NET to be installed on the clients and production servers running their applications.
Cheers
You can use 2.0, 3.0 and 3.5 together according to: http://msdn.microsoft.com/en-us/library/bb383796(v=vs.90).aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With