【发布时间】:2016-11-25 11:27:50
【问题描述】:
我正在尝试通过 NuGet 在 PCL iOS 项目中安装 Xamarin.Mobile,但出现此错误!
无法安装软件包“xamstore-xamarin.mobile 0.7.1”。你是 试图将这个包安装到一个目标项目中 'Xamarin.iOS,Version=v1.0',但包不包含任何 与之兼容的程序集引用或内容文件 框架。如需更多信息,请联系包作者。
这是我的 AppDelegate
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
// You have 17 seconds to return from this method, or iOS will terminate your application.
//
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
Xamarin.FormsMaps.Init();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
}
我的 SDK 版本是 10.1。
Xamarin.Mobile 在 Android 项目中运行良好。
知道如何解决这个问题吗?
【问题讨论】:
标签: ios xamarin.ios xamarin.mobile