我开始使用Xamarin,我在互联网上看到了很多例子,我不能像示例那样创建一个项目。我的意思是,我遵循所有步骤,但是当我必须选择PCL时,我没有那个选项。如果我继续,所有代码都有引用错误。我没有看到的所有示例中的另一件事是,我看不到New Universal Windows Project对话框。
自项目创建开始以来,我有不同的选择。
谁能告诉我我做错了什么?我用红色方块放了一些截图,其中包含与教程不同的新选项。我还提到了我尝试遵循的教程,希望它有所帮助。
截图:
教程:
http://www.dotnettricks.com/learn/xamarin/xamarin-dvelopment-with-vs-2017
您可以使用.NET standard
而不是pcl库。关于错误,只需安装Xamarin.Forms
nuget包,然后在MainPage
中使用它。