简体   繁体   中英

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

App.Xaml.cs and MainPage.xaml.cs cannot be included in my Xamarin Application's Solution Explorer of Visual Studio Community Edition 2017, while those are there in the Containing Folders of the Windows.

在此处输入图片说明

The error says, its not able to find out the App() in the Xamarin Forms project. In the Image you shared there is no App.xaml and its .cs class files. Hence while calling the LoadApplication(new App()) from Android and iOS projects, it throws error.

If it is available in the Windows folder, you can delete those files and try adding a new App.xaml file in the Forms project. Once it is done you can clean the solution and do a rebuild.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM