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

2.4k views Asked by At

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

There are 1 answers

0
Toni Petrina On

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.