Forum Visual Studio
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Visual Studio 2019 Automatically Closing & Disconnecting Xamarin.Forms Files

njsokalskinjsokalski Member ✭✭✭

I don't know what happened, since I didn't change any settings or configuration, but Visual Studio 2019 (for Windows 10) recently started unexpectedly closing & unassociating my MainPage.xaml, MainPage.xaml.cs, App.xaml, & App.xaml.cs files. This happens mostly when I save the files, although which file(s) it happens to are not always the ones I am saving. My changes do get saved, and restarting Visual Studio 2019 reassociates the *.xaml & *.xaml.cs files, so no files are (to the best of my knowledge) damaged, but it is very frustrating to continuously reopen the files & not have them displayed correctly in Solution Explorer. Has anybody else had this problem? Does anybody know how to fix it?



    @njsokalski Are you conected with TFS? please update the visual studio into latest version.I hope it will fix automatically if not reopen the solution after disable network it may help you, if it help yoy you have to change your firewall rules

  • njsokalskinjsokalski Member ✭✭✭

    No, I am not using TFS, everything is local.

  • JohnHJohnH GBMember ✭✭✭✭✭
    Never seen this, maybe try a VS repair?
Sign In or Register to comment.