A file or folder with the name already exists Visual Studio

前端 未结 10 1243
南笙
南笙 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:19

    If you're using MVC, and trying to create a new Controller, you should also check the Views and Models. Even though there was no folder or file with the Controller name, I had to delete a View folder with the same name (that already existed for some reason) using Show All Files and rebuild the solution.

提交回复
热议问题