question

HSRBNSOUTH-4642 avatar image
0 Votes"
HSRBNSOUTH-4642 asked KyleWang-MSFT edited

My OS is Windows 10 Home Single Language i have installed Visual Studio Community 2019 version 16.11.0 .in my mobile app mainpage.xaml is missing

kindly help in solving this issue .

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

KyleWang-MSFT avatar image
0 Votes"
KyleWang-MSFT answered KyleWang-MSFT edited

Hi HSRBNSOUTH-4642,

Welcome to our Microsoft Q&A platform!

Try to create a new project to check if the mainpage.xaml still disappears.
If still, open the Visual Studio Installer, update VS to the latest then select More -> Repair. Make sure "Mobile development with .NET" component installed.

Or you can create a MainPage.xaml manually by steps: right click the project -> Add -> New Item -> Content Page. Then set it as the start page in App.xaml.cs.

 public App()
 {
     InitializeComponent();
    
     MainPage = new MainPage();
 }

Since it's a Visual Studio issue, you can report a problem on Developer Community.

Regards,
Kyle


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.