Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio 2015 deletes file on save - cordova Solution

I've just updated windows to the creative suite, and now when i run visual studio to develop my app (using an apache cordova solution), when ever i hit save on a file, it removes the file from the solution and closes the editing window for the file.

I can do a CTRL+F for content within the file, then it will open the file again and bring it back to the solution, but now the file in the solution has no 'lock' icon.

I have tried updating visual studio, but apparently i have the latest version of update 3 already.

It wasn't doing this before this morning which is when i got the creators update for windows, so i can only assume it was something to do with this?

If any one can help, it would be much appreciated, its driving me insane! I get no errors what so ever.

like image 984
Andrew Gordon Avatar asked Nov 09 '17 12:11

Andrew Gordon


2 Answers

Looks like Microsoft have issued a patch to fix this behaviour.

https://support.microsoft.com/en-ie/help/4089821/files-disappear-from-project-after-saving-in-visual-studio-2015

like image 89
Steve Chadbourne Avatar answered Nov 09 '22 08:11

Steve Chadbourne


I've been experiencing this as well, and I just noticed that it only happens in Cordova projects.

My current work around is File -> Recent Files and select the file(s) that just closed. The file(s) re-open and reappear in the file tree.

I think they must be re-opened for VS to find all the files necessary for a build.

like image 1
TechingCrewMatt Avatar answered Nov 09 '22 09:11

TechingCrewMatt