Metadata file … could not be found error when building projects

前端 未结 21 3190
北恋
北恋 2020-12-14 14:28

Every time I start Visual Studio 2008, the first time I try to run the project I get the error CS0006 The metadata file ... could not be found. If I do a rebuild of the comp

21条回答
  •  借酒劲吻你
    2020-12-14 14:42

    This is usually caused by a project that is referenced in a different solution than the one that is throwing the error. If you clean the other solution, or branch the code, you will more than likely see this error. The solution is to scroll down your list of "metadata not found" errors, and look at the references to the projects. 9/10 times, you will see a broken reference to a project that is not in this solution. Add the projects to fix the reference errors, and rebuild. That should fix it.

    (I just ran into this today, and have in the past, and this has ALWAYS worked)

提交回复
热议问题