问题描述
我收到以下错误而编译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 2012,得到的NuGet定位包:。
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文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!