liuqiaosz / 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

NuGet package won't import properly #413

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem:
1. Go to package manager console
2. Type in: Install-Package Google.Apis.YouTube.v3 -Pre
3. Fail

I get this:

Attempting to resolve dependency 'Google.Apis (≥ 1.6.0-beta)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 5.0.5)'.
Attempting to resolve dependency 'Microsoft.Bcl (≥ 1.0.19)'.
Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.4)'.
Attempting to resolve dependency 'Microsoft.Bcl.Async (≥ 1.0.16)'.
Attempting to resolve dependency 'Microsoft.Net.Http (≥ 2.1.10)'.
Attempting to resolve dependency 'Zlib.Portable (≥ 1.9.2)'.
Attempting to resolve dependency 'Google.Apis.Auth (≥ 1.6.0-beta)'.
Successfully installed 'Newtonsoft.Json 5.0.8'.
You are downloading Microsoft.Bcl.Build from Microsoft, the license agreement 
to which is available at http://go.microsoft.com/fwlink/?LinkID=296407. Check 
the package for additional dependencies, which may come with their own license 
agreement(s). Your use of the package and dependencies constitutes your 
acceptance of their license agreements. If you do not accept the license 
agreement(s), then delete the relevant components from your device.
Successfully installed 'Microsoft.Bcl.Build 1.0.10'.
You are downloading Microsoft.Bcl from Microsoft, the license agreement to 
which is available at http://go.microsoft.com/fwlink/?LinkID=296435. Check the 
package for additional dependencies, which may come with their own license 
agreement(s). Your use of the package and dependencies constitutes your 
acceptance of their license agreements. If you do not accept the license 
agreement(s), then delete the relevant components from your device.
Successfully installed 'Microsoft.Bcl 1.0.19'.
You are downloading Microsoft.Bcl.Async from Microsoft, the license agreement 
to which is available at http://go.microsoft.com/fwlink/?LinkID=296434. Check 
the package for additional dependencies, which may come with their own license 
agreement(s). Your use of the package and dependencies constitutes your 
acceptance of their license agreements. If you do not accept the license 
agreement(s), then delete the relevant components from your device.
Successfully installed 'Microsoft.Bcl.Async 1.0.16'.
You are downloading Microsoft.Net.Http from Microsoft, the license agreement to 
which is available at http://go.microsoft.com/fwlink/?LinkID=306162. Check the 
package for additional dependencies, which may come with their own license 
agreement(s). Your use of the package and dependencies constitutes your 
acceptance of their license agreements. If you do not accept the license 
agreement(s), then delete the relevant components from your device.
Successfully installed 'Microsoft.Net.Http 2.1.10'.
You are downloading Zlib.Portable from AdvancedREI,  onovotny, the license 
agreement to which is available at http://en.wikipedia.org/wiki/Zlib_License. 
Check the package for additional dependencies, which may come with their own 
license agreement(s). Your use of the package and dependencies constitutes your 
acceptance of their license agreements. If you do not accept the license 
agreement(s), then delete the relevant components from your device.
Successfully installed 'Zlib.Portable 1.9.2'.
Successfully installed 'Google.Apis 1.6.0-beta'.
Successfully installed 'Google.Apis.Auth 1.6.0-beta'.
Successfully installed 'Google.Apis.YouTube.v3 1.6.0.87-beta'.
Successfully added 'Newtonsoft.Json 5.0.8' to Liker.
Successfully added 'Microsoft.Bcl.Build 1.0.10' to Liker.
Successfully uninstalled 'Microsoft.Bcl 1.0.19'.
Successfully uninstalled 'Microsoft.Bcl.Build 1.0.10'.
Successfully uninstalled 'Newtonsoft.Json 5.0.8'.
Install failed. Rolling back...
Install-Package : Could not install package 'Microsoft.Bcl 1.0.19'. You are 
trying to install this package into a project that targets 
'.NETFramework,Version=v2.0', but the package does not contain any assembly ref
erences that are compatible with that framework. For more information, contact 
the package author.
At line:1 char:16
+ Install-Package <<<<  Google.Apis.YouTube.v3 -Pre
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

I see something about .NET 2.0, does it not work on .NET 2.0 even though there 
are specific packages for 4.0? I shall assume this to be a bug, so please, a 
fix or workaround.

Original issue reported on code.google.com by thany81 on 10 Nov 2013 at 2:40

GoogleCodeExporter commented 9 years ago
From version 1.4.0-beta we stopped supporting .NET 2, 3 and 3.5 as you can find 
in our announcement blog - 
http://google-api-dotnet-client.blogspot.com/2013/06/announcing-release-of-140-b
eta_26.html.

If you want to get Youtube version that works on .NET 2, you should download it 
from 
 https://google-api-client-libraries.appspot.com/download/library/youtube/v3/csharp?lv=1.3.0-beta

My recommendation is that you should upgrade to .NET 4.0, because we don't 
support lower version anymore and we won't provide new updates\fixes for 
1.3.0-beta.

I'm closing this issue please feel free to reopen it.

Original comment by Pele...@gmail.com on 11 Nov 2013 at 3:02

GoogleCodeExporter commented 9 years ago
Issue 415 has been merged into this issue.

Original comment by Pele...@gmail.com on 11 Nov 2013 at 3:05

GoogleCodeExporter commented 9 years ago
Issue 416 has been merged into this issue.

Original comment by Pele...@gmail.com on 11 Nov 2013 at 3:05

GoogleCodeExporter commented 9 years ago
"My recommendation is that you should upgrade to .NET 4.0"

I can, but .NET 4.0 is so rediculuously heavyweight that I don't want to 
require that from my users. Besides, there's not a whole lot in there that 
would make for a real improvement for some library like this one.

Original comment by thany81 on 12 Nov 2013 at 8:49

GoogleCodeExporter commented 9 years ago
Can't find how to edit a comment, but one more thing: please don't close this 
issue. It looks as if the issue has been fixed, but it still exists.

Original comment by thany81 on 12 Nov 2013 at 8:50