Xamarin.forms 命名空间AppCenter中不存在Start

Xamarin.forms 命名空间AppCenter中不存在Start,xamarin.forms,visual-studio-app-center,Xamarin.forms,Visual Studio App Center,安装AppCenter SDK并尝试使用此方法在Xamarin表单中初始化后: AppCenter.Start("ios={Your App Secret};android={Your App Secret};uwp={Your App Secret}", typeof(Analytics), typeof(Crashes)); 我得到了这个错误: The type or namespace 'Start' does not exist in the namespace 'AppCenter'

安装AppCenter SDK并尝试使用此方法在Xamarin表单中初始化后:

AppCenter.Start("ios={Your App Secret};android={Your App Secret};uwp={Your App Secret}", typeof(Analytics), typeof(Crashes));
我得到了这个错误:

The type or namespace 'Start' does not exist in the namespace 'AppCenter' (are you missing an assembly reference?)

即使我正在使用Microsoft.AppCenter导入
由于某种原因,它无法解析

我必须使用:

Microsoft.AppCenter.AppCenter.Start(...);

对于Xamarin Forms应用程序,请确保在引用任何库的所有项目中安装了这些包。您看到的错误主要是因为没有将软件包添加到所有项目中。

这非常具有欺骗性,因为您仍然可以在加载其他AppCenter模块时运行应用程序,而不会出现错误。但可以肯定的是,在排除其他故障后,我发现我从未真正安装过基本软件包“Microsoft.AppCenter”。在安装包并重新启动VS之后,我现在可以正确地解析该方法。