Using .net 3.0 namespaces in .net 2.0

Is there anyway to use .net 3.0 namespaces in a .net 2.0 application? I am specifically using the System.Windows.Media.Media3D namespace.

Edit: I'm looking to use actual assemblies, not just namespaces. Bad wording on my part.

+1


source to share


3 answers


Are you trying to use namespaces or code? You can use namespaces for whatever you want, as long as you don't import the appropriate DLLs. It will cause a nightmare of spaghetti nightmares, but you can.



As I'm sure you've figured out that you can't use 3.0 code ... or you'll have to call it ".Net 3.0".

0


source


No, you cannot use the new .NET 3.0 in your .NET 2.0



It's just that simple

+1


source


.NET 2.0 and .NET 3.0 / 3.5 use the same .NET .NET runtime. 3.0 added WCF WPF WF and Cardspace, 3.5 added Linq et al. only through libraries.

If you are using VS2008, you can compile your applications using csharp 3.0 functions (lambdas, anonymous types, anonymous methods, etc.) and still run them at 2.0 runtime as long as you set the project to target the 2.0 environment.

To use the functionality of one of the libraries in version 3.0, the user will need to install the 3.0 framework.

I think if you were more specific about what you mean by application 2.0 it would be helpful. Do you mean your application should work without installing 3.0 and 3.5? Do you mean your boss won't let you change the rolldown in your project settings to 3.0?

+1


source







All Articles