无法像在互联网上的示例那样创建Xamarin Cross应用程序

问题描述 投票:0回答:1

我开始使用Xamarin,我在互联网上看到了很多例子,我不能像示例那样创建一个项目。我的意思是,我遵循所有步骤,但是当我必须选择PCL时,我没有那个选项。如果我继续,所有代码都有引用错误。我没有看到的所有示例中的另一件事是,我看不到New Universal Windows Project对话框。

自项目创建开始以来,我有不同的选择。

谁能告诉我我做错了什么?我用红色方块放了一些截图,其中包含与教程不同的新选项。我还提到了我尝试遵循的教程,希望它有所帮助。

截图:

enter image description here

enter image description here

enter image description here

教程:

http://www.c-sharpcorner.com/article/developing-first-cross-platform-mobile-app-using-visual-studio-20172/

http://www.dotnettricks.com/learn/xamarin/xamarin-dvelopment-with-vs-2017

c# visual-studio xamarin
1个回答
1
投票

您可以使用.NET standard而不是pcl库。关于错误,只需安装Xamarin.Forms nuget包,然后在MainPage中使用它。

© www.soinside.com 2019 - 2024. All rights reserved.