The type 'System.Threading.Tasks.Task<TResult>' exists in both dlls

假装没事ソ 提交于 2019-12-11 01:36:25

问题


I get the following error while compiling the code.

The type 'System.Threading.Tasks.Task' exists in both 'c:\Go\WP7CodeSamples\Pradna\packages\AsyncAwaitCTP.1.0\lib\sl4-wp71\AsyncCtpLibrary_Phone.dll' and 'c:\Go\WP7CodeSamples\Pradna\packages\System.Threading.Tasks.3.0.2-beta2\lib\sl4-wp71\System.Threading.Tasks.WP71.dll'

not sure how to fix this issue.


回答1:


You are using the old version of Async CTP. If you are still on Visual Studio 2010, download Visual Studio Async CTP (Version 3). If you are using Visual Studio 2012, get the targeting pack from NuGet: http://nuget.org/packages/Microsoft.Bcl.Async.



来源:https://stackoverflow.com/questions/13775015/the-type-system-threading-tasks-tasktresult-exists-in-both-dlls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!