A file or folder with the name already exists Visual Studio

前端 未结 10 1240
南笙
南笙 2020-12-18 17:40

I try to add a new file to my source controlled VS2012 solution and receive this message:

A file or folder with the name \'xxx\' already exists. Pleas

相关标签:
10条回答
  • 2020-12-18 18:20

    Restarting Visual Studio helped me.

    0 讨论(0)
  • 2020-12-18 18:23

    Steps if a folder is Missing

    1. Select visual studio project which holds the missing folder.
    2. Select/turn on Show All Files in the Solution Explorer window to show the existing, but missing folder.
    3. Select the hidden folder then right click and select Include in Project
    0 讨论(0)
  • 2020-12-18 18:23

    I fixed it by actually adding a file and then deleting it again.

    0 讨论(0)
  • 2020-12-18 18:26

    Restarting Visual Studio didn't help, the folder is cached on the system.

    Open Solution Explorer there is an icon that looks like a many Pages: which is the Show All Files. Once clicked, one is able to see the hidden, to the visual studio project, the folder that was causing this error. (Look for the folder in the View section.)

    After I deleted the unwanted folder, and Rebuild Project, You should be able to Create the controller which will create the view automatically...

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