问题
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