Clean an individual project in visual studio

时间:2016-07-11 21:00:43

标签: visual-studio visual-studio-2013 visual-studio-2015

I have a metadata file error that I am attempting to fix. One of the solutions that I want to attempt is to individually clean and rebuild the projects. I see two solutions that should work. 1) Right click on the project individually and select clean.
2) select the project, select build from the menu, select clean 'projectname'

the problem that I have is that the right click context menu is not showing clean. It shows build and rebuild but not clean.

In the build menu, it only shows options to clean / build the entire solution, no matter what I currently have selected.

I have done the rebuild on each project individually, but the Metadata error is still there.

What can I do to get the options to clean an individual project?

1 个答案:

答案 0 :(得分:1)

你总是可以做一个"手册"通过从项目文件夹中删除bin和obj -folders来清理项目。有时Visual Studio中的Clean-feature做得不够好,所以我这样做:

enter image description here

注意:有时Visual Studio正在使用这些文件夹中的文件,因此您无法打开和删除项目。关闭Visual Studio并从文件夹中手动删除文件夹,然后重新打开Visual Studio。