一个解决方案中的多个.NET框架 [英] Multiple .NET framework in one solution
问题描述
我在一个解决方案中有一个项目,我需要使用.NET 4.5.1或更高版本来使函数正常工作(确切地说是异步编程)。但在一个解决方案中,我有多个项目。
例如,项目A需要.NET 4.5.1而项目B需要.NET 4(我知道我可以改变他们的.NET版本,但我想保留它,以尽量减少未来的影响或可能的错误)。但是当我尝试运行解决方案时,它会返回一些错误消息(例如,你错过了一些程序集......)
任何帮助都将不胜感激。谢谢。
我尝试了什么:
1.改变.NET 4.5.1回到.NET 4但它不支持异步编程。
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.
推荐答案
为什么不在.NET 4.5.1上标准化 - 即项目B - > .Net 4.5.1,而非项目A'降级' - 我很确定这不会对项目B产生任何令人讨厌的影响,这意味着你的版本相同
或我错过了什么?
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 ?
这篇关于一个解决方案中的多个.NET框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!