简体   繁体   English

Visual Studio - 删除的文件不断返回

[英]Visual Studio - Deleted files keep coming back

I have an ASP.NET project where i added a folder in the project directory.我有一个 ASP.NET 项目,我在项目目录中添加了一个文件夹。 Now that I don't need the folder, I deleted it from the project directory but whenever I reopen the solution, it keeps coming back.现在我不需要该文件夹,我从项目目录中删除了它,但是每当我重新打开解决方案时,它就会不断回来。 Any help would be greatly appreciated.任何帮助将不胜感激。

Thanks.谢谢。

If a missing folder is referenced in your project (.csproj/.vbproj) file then on load it will be recreated.如果您的项目 (.csproj/.vbproj) 文件中引用了丢失的文件夹,则在加载时将重新创建该文件夹。

Remove the unneeded folder using Solution Explorer and this will remove the references, or alternatively open the project file in a text editor and remove the referencing lines manually.使用解决方案资源管理器删除不需要的文件夹,这将删除引用,或者在文本编辑器中打开项目文件并手动删除引用行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM