Google API를 사용하는 프로젝트를 빌드 할 수 없습니다. 나는 빌드 지침을 https://code.google.com/p/google-api-dotnet-client/wiki/Build에 따라 갔다.Google API (.Net)로 프로젝트를 빌드 할 수 없습니다.
Warning 5 The primary reference "Google.Apis" could not be resolved because
it has an indirect dependency on the framework assembly "System.Net.Http, Version=1.5.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the
currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "Google.Apis" or retarget your application to a framework
version which contains "System.Net.Http, Version=1.5.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a".
가 나는 또한 종속성을 해결하기 위해 NuGet을 사용하여 시도,하지만 난 얻을 : 나는 다음과 같은 몇 가지 오류를 얻을 수
는Install failed. Rolling back...
Install-Package : Could not install package 'Zlib.Portable 1.9.2'. You are trying to install this package into a project that targe
ts '.NETFramework,Version=v4.0', but the package does not contain any assembly references that are compatible with that framework.
For more information, contact the package author.
At line:1 char:16
+ install-package <<<< google.apis -pre
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
문서에는 4.0의 전체 프로필이 지원했다. 내가 도대체 뭘 잘못하고있는 겁니까?
http://stackoverflow.com/questions/9431975/could-not-load-file-or-assembly-system-net-http-version-2 -0-0-0-in-mvc4-web-ap http://stackoverflow.com/questions/16756186/system-net-http-could-not-be-resolved-in-the-currently-targeted-framework- net-4 –
비슷한 문제에 대해 불평하는 여러 사용자가 있기 때문에 어떤 솔루션이 효과가 있는지 알려주십시오. 감사! – peleyal
@peleyal 나는이 프로젝트를 되돌아 보니 service.vb라는 프로젝트에 파일이 있기 때문에 실패했다고 생각한다. – Edwin