簡體   English   中英

App.Xaml.cs和MainPage.xaml.cs不能包含在Visual Studio Community 2017的解決方案資源管理器中

[英]App.Xaml.cs and MainPage.xaml.cs cannot be included in Solutions Explorer of Visual Studio Community 2017

App.Xaml.cs和MainPage.xaml.cs不能包含在我的Xamarin應用程序的Visual Studio Community Edition 2017的解決方案資源管理器中,而這些包含在Windows的“包含”文件夾中。

在此處輸入圖片說明

該錯誤表明,它無法在Xamarin Forms項目中找到App()。 在您共享的映像中,沒有App.xaml及其.cs類文件。 因此,從Android和iOS項目調用LoadApplication(new App())時,它將引發錯誤。

如果Windows文件夾中提供了該文件,則可以刪除這些文件,然后嘗試在Forms項目中添加新的App.xaml文件。 完成后,您可以清洗解決方案並進行重建。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM