如何让 Visual Studio 停止在我的项目名称中附加无用的数字?
How to get Visual Studio to STOP appending useless numbers to my project names?
当我用 Visual Studio 构建一个 ASP.NET 网站时,有时我需要删除项目并重写它,有时是因为我决定做一些非常新的事情需要重写,有时由于最简单的 fix/workaround 涉及 "starting fresh".
的错误
但是 Visual Studio 做的一件事真的让我很紧张。
当我删除所有网站和项目文件,然后创建一个同名的新网站时,Visual Studio然后决定将 (1) 追加到website/project 名称,或 (2) 或 (3)。因此,我的项目不是 Assignment Site,而是 AssignmentSite (1)。
我已经在我的整台计算机上搜索 'AssignmentSite (1)',但始终没有任何结果。但它仍然知道并且仍然将这个无用的垃圾附加到我的文件名中。我怎样才能让它停止?
The reason VS thinks the website still exists is because it's looking
at the IIS Express applicationhost.config file (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.
来源:
Completely deleting Visual Studio website solutions
当我用 Visual Studio 构建一个 ASP.NET 网站时,有时我需要删除项目并重写它,有时是因为我决定做一些非常新的事情需要重写,有时由于最简单的 fix/workaround 涉及 "starting fresh".
的错误但是 Visual Studio 做的一件事真的让我很紧张。
当我删除所有网站和项目文件,然后创建一个同名的新网站时,Visual Studio然后决定将 (1) 追加到website/project 名称,或 (2) 或 (3)。因此,我的项目不是 Assignment Site,而是 AssignmentSite (1)。
我已经在我的整台计算机上搜索 'AssignmentSite (1)',但始终没有任何结果。但它仍然知道并且仍然将这个无用的垃圾附加到我的文件名中。我怎样才能让它停止?
The reason VS thinks the website still exists is because it's looking at the IIS Express applicationhost.config file (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.
来源: Completely deleting Visual Studio website solutions