简体   繁体   English

升级.NET 4.5后如何删除Microsoft Async Targeting Pack

[英]How to remove Microsoft Async Targeting Pack after upgrading .NET 4.5

I've installed Async Targeting Pack to be able to use its benefits with .NET 4.0 and now I upgraded the project to .NET 4.5 and I don't need it anymore. 我已经安装了Async Targeting Pack以便能够在.NET 4.0中使用它的优点,现在我将该项目升级到了.NET 4.5,并且不再需要它了。

Case 1: If I keep it the project gets about 7-8 warnings saying " The predefined type System.Runtime.CompilerServices.xxx is defined in multiple assemblies in the global alias..." 情况1:如果我保留它,则该项目将收到约7-8条警告,内容为“在全局别名中的多个程序集中定义了预定义类型System.Runtime.CompilerServices.xxx ...”

Case 2: If I remove the Microsoft.CompilerServices.AsyncTargetingPack.1.0.0 folder from [Project]\\Packages path I get more than a hundred warnings all about the contents of Microsoft.Commons.targets which is located at Windows\\Microsoft.NET\\4.0.xxx 情况2:如果从[Project] \\ Packages路径中删除Microsoft.CompilerServices.AsyncTargetingPack.1.0.0文件夹,我将收到关于Windows.Microsoft.NET上Microsoft.Commons.targets内容的一百多条警告\\ 4.0.xxx

How can I get rid of it without getting any warning? 我如何在没有任何警告的情况下摆脱它?

So I've deleted it via NuGet for the unit test project too in the same solution and it solved it. 因此,在相同的解决方案中,我也已通过NuGet删除了单元测试项目,它也解决了。 The unit testing project was the one making the problem. 单元测试项目就是问题所在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM