A file or folder with the name already exists Visu

2019-01-26 02:45发布

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. Please give a unique name to the item you are adding, or delete the existing item first.

I'm 100% sure that there is no file with the given name.

So how do I get VS to add items again?

8条回答
Luminary・发光体
2楼-- · 2019-01-26 03:34

You need to give attention if adding a file automatically add other files/folders..for example if I added a controller which automatically add folder with controller name in views..I couldn't add controller .cs file until I deleted folder with controller name from views.

查看更多
干净又极端
3楼-- · 2019-01-26 03:37

Simply, On Solution Explorer Right CLick on Project's name -> Unload Project. then right click on the same project and click 'Reload'.

Problem is Fixed (y)

查看更多
登录 后发表回答