Visual studio 2015 deletes file on save - cordova Solution

后端 未结 4 1691
灰色年华
灰色年华 2020-12-05 16:00

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 r

相关标签:
4条回答
  • 2020-12-05 16:39

    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.

    0 讨论(0)
  • 2020-12-05 16:41

    Solved this issue by rolling back to old build.

    Undoing Feature update to Windows 10, version 1709 solved the problem.

    0 讨论(0)
  • 2020-12-05 16:48

    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

    0 讨论(0)
  • 2020-12-05 16:52

    This issue just occurred on my system too. Only files in the www folder have this issue. You can close a file that has not been edited. Or restart VS to fix.

    Issue: Saving a file closes it from view and removes it from the project. It is however saved and you can use add-existing to get it back. Everything else seems to be normal. Using vs2015 community with cordova on win 10.

    0 讨论(0)
提交回复
热议问题