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:
How can I completely remove all traces of the solutions (like unloading a normal project)?
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.
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.
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.
In my case, i have to remove the old registrations in the file [applicationhost.config] in the folder [.vs\config].
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With