A file or folder with the name already exists Visual Studio
Solution 1:
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...
Solution 2:
Restarting Visual Studio helped me.
Solution 3:
Steps if a folder is Missing
- In the
Solution Explorer
window- Select visual studio project which holds the missing folder.
- Select or turn on the
Show All Files
button ( ) to show the existing, but missing folder.
- Select the hidden folder then right click and select the menu item
Include in Project
to add into the project in the project view.