在尝试创建 Windows Phone 应用程序时。我想使用谷歌日历,我只是找不到安装框架的方法。我正在关注此链接中的谷歌示例:
https://developers.google.com/google-apps/calendar/setup
我将包管理器控制台与以下命令一起使用
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