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?
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.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)