完全删除Visual Studio网站解决方案 [英] Completely deleting Visual Studio website solutions
问题描述
当我在Visual Studio 2013中创建新的网站项目时,即使在完全删除了Visual Studio 2013/Projects和Visual Studio 2013/Website中的目录之后,VS 2013仍然认为它存在.结果,它在解决方案名称的末尾附加了一个递增的索引:
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)?
推荐答案
VS认为网站仍然存在的原因是因为它正在查看IIS Express applicationhost.config文件.
The reason VS thinks the website still exists is because it's looking at the IIS Express applicationhost.config file.
在VS 2015中
Visual Studio 2015每个解决方案都使用applicationHost.config.解决方案中有一个.vs文件夹.因此该解决方案具有一个.vs \ config \ applicationhost.config文件
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
以前的版本
在%userprofile%\documents\IISExpress\config\applicationhost.config
下查看.您的旧网站仍在IIS Express下注册,因此VS为新网站生成一个唯一的名称.
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.
这篇关于完全删除Visual Studio网站解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!