首页 > 解决方案 > how to properly remove files added under "My Project" in solution explorer?

问题描述

I deleted the file Form1.vb on folder/explorer because I accidentally created it under MyProject in the solutions explorer. but when I tried to rebuild it I'm having below error already.

Severity Code Description Project File Line Suppression State Error Unable to create a manifest resource name for "My Project\Form1.resx". Could not find file 'C:\Users......\My Project\Form1.vb'.

标签: vb.net

解决方案


文件的所有数据都存储在解决方案本身中,转到解决方案资源管理器,选择文件之一 1.) 右键单击​​文件夹,单击删除,如果出现提示,请确认删除过程。2.) 左键单击文件夹并按下键盘上的 Delete 键。执行其中任何一项都会将其从您的解决方案中删除,从而从项目中删除。如果您有与 git hub 同步的文件夹,它也会以这种方式更新它,但不要直接从实际的 Windows 资源管理器中删除文件夹,这可能会导致指针问题供参考。


推荐阅读