类型'System.Threading.Tasks.Task< TResult>'存在于两个dll文件 [英] The type 'System.Threading.Tasks.Task<TResult>' exists in both dlls

查看:467
本文介绍了类型'System.Threading.Tasks.Task< TResult>'存在于两个dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误而编译code。

I get the following error while compiling the code.

该型'System.Threading.Tasks.Task'两个'C:\\转到\\ WP7 codeSamples \\ Pradna \\包\\ AsyncAwaitCTP.1.0 \\ LIB \\ SL4-wp71 \\ AsyncCtpLibrary_Phone.dll'存在,并且'c:\\Go\\WP7$c$cSamples\\Pradna\\packages\\System.Threading.Tasks.3.0.2-beta2\\lib\\sl4-wp71\\System.Threading.Tasks.WP71.dll'

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.

推荐答案

您使用的是旧版本的CTP异步的。如果你仍然对Visual Studio 2010中,下载的Visual Studio异步CTP(第3版)。如果您在使用Visual Studio 2012,得到的NuGet定位包: http://nuget.org/包/ Microsoft.Bcl.Async

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.

这篇关于类型'System.Threading.Tasks.Task< TResult>'存在于两个dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆