Saturday 15 February 2014

visual studio 2012 - Can I reference a .NET 4.5 project from a .NET 4.0 project? -


For complex reasons related to historical projects, we have a core project that is shared in many products. The issue is that we can not migrate the project to 4.5 because we have some products that should work on Windows XP. Is there any solution so that I can refer to .NET 4.5 dll from that .NET 4.0 project.

I know that we can branch out the project for each NAT version, but this introduces a lot of maintenance overhead ....

Any help will be great! Edit - To be clear, we want to refer to it as a .NET 4.5 dll, but none of our products that run on Windows XP will do anything with it, only our new products

The problem is that we can not migrate the project to 4.5 because our There are some products that should work on Windows XP

If these products use "core project", you will need to leave it targeting .NET 4.0 or earlier. There is no way to use any .NET 4.5 assembly on any project on Windows XP.

If you need the .NET 4.5 features, then you have to upgrade those projects or maintain two versions.

No comments:

Post a Comment