Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Completely deleting Visual Studio website solutions

When I create a new website project in Visual Studio 2013, even after completely removing the directory in Visual Studio 2013/Projects and also Visual Studio 2013/Website, VS 2013 still thinks it exists. As a result, it appends an incrementing index to the end of the solution name:

enter image description here

How can I completely remove all traces of the solutions (like unloading a normal project)?

like image 991
Chris Ryder Avatar asked Nov 19 '13 09:11

Chris Ryder


People also ask

How do I delete an entire solution in Visual Studio?

To delete a solutionIn Solution Explorer, select the solution you want to delete. On the File menu, click Close Solution. In Microsoft Windows Explorer, locate and select the files associated with the solution you want to delete. On the File menu, click Delete.

How do I delete a folder in Solution Explorer?

In either Solution Explorer or Source Control Explorer, browse to the folder or file that you want to delete. Select the items that you want to delete, open their context menu (right-click), and choose Delete.


2 Answers

The reason VS thinks the website still exists is because it's looking at the IIS Express applicationhost.config file.

In VS 2015

Visual Studio 2015 uses an applicationHost.config per solution. There is a a .vs folder in your solution. So the solution has a .vs\config\applicationhost.config file

Prior Versions

Look under %userprofile%\documents\IISExpress\config\applicationhost.config. Your old website is still registered under IIS Express, so VS generates a unique name for the new one.

like image 143
Jimmy Avatar answered Oct 15 '22 02:10

Jimmy


In my case, i have to remove the old registrations in the file [applicationhost.config] in the folder [.vs\config].

like image 21
Doan Vu Avatar answered Oct 15 '22 04:10

Doan Vu