问题描述
当我在 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 中
In VS 2015
Visual Studio 2015 使用每个解决方案的 applicationHost.config.您的解决方案中有一个 .vs 文件夹.所以解决方案有一个 .vsconfigapplicationhost.config 文件
Visual Studio 2015 uses an applicationHost.config per solution. There is a a .vs folder in your solution. So the solution has a .vsconfigapplicationhost.config file
以前的版本
在 %userprofile%documentsIISExpressconfigapplicationhost.config
下查看.您的旧网站仍然在 IIS Express 下注册,因此 VS 会为新网站生成一个唯一名称.
Look under %userprofile%documentsIISExpressconfigapplicationhost.config
. Your old website is still registered under IIS Express, so VS generates a unique name for the new one.
这篇关于彻底删除Visual Studio网站解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!