Click here to Skip to main content
15,888,218 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi, I got one project in a solution in which I need to use .NET 4.5.1 or above for the function to be working(asynchronous programming to be exact). But in the one solution, I have multiple projects.

For example, Project A need .NET 4.5.1 while Project B need .NET 4(I know I can alter their .NET version but I want to keep it as it be to minimize the impact or possible error in the future). But when i try to run the solution, it returns me some error message(e.g. are you missing some assembly...)

Any help would be appreciated. Thank you.

What I have tried:

1. Altering .NET 4.5.1 back into .NET 4 but it did not support asynchronous programming.
Posted
Updated 17-Apr-16 21:05pm
Comments
Sergey Alexandrovich Kryukov 18-Apr-16 3:04am    
Formally speaking, it's possible just because projects in a solution can be unrelated. You should ask about the use of different versions in the same process (but why?)
If some project needs 4.0, it can be compiled to the 4.5.1 target, which is fine because you use it anyway. Use different targets, but why? Error message? Fix the bug. We have no information to help you.
—SA

1 solution

why dont you standardise on .NET 4.5.1 then - ie, project B -> .Net 4.5.1, not Project A 'downgrade' - Im pretty sure this wont have any nasty effects for project B, and that means you're on the same versions

or have I missed something ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900