在尝试创建Windows手机应用时。 我想使用谷歌日历,我只是无法找到安装框架的方法。 我正在关注此链接中的google示例:
https://developers.google.com/google-apps/calendar/setup
我使用了包管理器控制台和follow命令
PM> Install-Package Google.Apis.Calendar.v3 -Pre
并且运行良好。 当我使用它时:
using Google.Apis.Authentication;
using Google.Apis.Authentication.OAuth2;
using Google.Apis.Calendar.v3;
using Google.Apis.Calendar.v3.Data;
我收到运行时错误。在0Auth2上,名称空间不会退出。 我尝试使用以下代码再次使用包管理器控制台:
PM> Install-Package Google.Apis.Authentication -Pre
我收到此消息:
Install failed. Rolling back...
Install-Package : Could not install package 'Google.Apis.Authentication 1.5.0-beta'. You are trying to install this package into a project that targets
'Silverlight,Version=v4.0,Profile=WindowsPhone71', but the package does not contain any assembly references or content files that are compatible with that
framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package Google.Apis.Authentication -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand