kelvinRosa / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

compile error when using .net framework 4.5 #500

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When the visual studio project targets framework 4.5 and the 
"Google.Apis.Customsearch.v1" nuget package is added, I get the following 
warning:

Warning 56  The primary reference "Google.Apis, Version=1.9.0.26011, 
Culture=neutral, processorArchitecture=MSIL" could not be resolved because it 
has an indirect dependency on the framework assembly "System.Threading.Tasks, 
Version=2.6.9.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could 
not be resolved in the currently targeted framework. 
".NETFramework,Version=v4.5". To resolve this problem, either remove the 
reference "Google.Apis, Version=1.9.0.26011, Culture=neutral, 
processorArchitecture=MSIL" or retarget your application to a framework version 
which contains "System.Threading.Tasks, Version=2.6.9.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a".

How do i fix this? thanks

Original issue reported on code.google.com by shearer3...@gmail.com on 16 Oct 2014 at 4:03

GoogleCodeExporter commented 9 years ago
Can you start from scratch and check if it still happen?
Please open a new SO thread with this issue, it will be easier to track there 
your problem and other users and help, the community there is much much better.
I'm closing this issue for now, feel free to reopen it..

Thanks

Original comment by pele...@google.com on 23 Dec 2014 at 1:50