视觉工作室 - 收到错误"元数据文件“XYZ”找不到"编辑后继续 [英] Visual studio - getting error "Metadata file 'XYZ' could not be found" after edit continue
问题描述
我迷迷糊糊成实在是烦人的问题。结果
当调试我的软件,一切运行正常,但如果我打一个断点,并编辑代码,当我尝试继续运行,我得到错误:结果
的元数据文件XYZ找不到
I have stumbled into an issue that is really annoying.
When I debug my software, everything runs OK, but if I hit a breakpoint and edit the code, when I try to continue running I get an error:
Metadata file 'XYZ' could not be found
环顾四周后一会儿,我发现了一些一类似的问题,但他们都对构建失败,这不是我的情况(这种情况只有在编辑 - 继续)。
After looking around for a while, I found some a similar issues, but they were all regarding a build failure, which is not my case (this happens only after edit-continue).
的我迄今为止尝试:的
- 我的代码被编译并运行。
- 我打扫的解决方案,并重新启动VS
- 我确信,缺少的文件的项目正在建立我运行(在配置管理器)的配置。
- 我手动建立丢失的文件的项目。
- My code is compiling and running.
- I cleaned the solution and restarted VS.
- I made sure that the missing file's project is being build for the configuration I am running (in configuration manager).
- I manually built the missing file's project.
的一些额外的信息的:
- 不要紧,我的改变,仍然得到同样的错误(变化是不相关的丢失的文件)。
- 发生这种情况还当我停下来,继续(不仅断点)
- 我运行了使用自定义配置项目(配置管理器...)。当我使用默认的
调试
配置不会出现错误运行它。
- It does not matter what I change, still get the same error (the change is not related to the missing file).
- This happens also when I pause and continue (not only breakpoints)
- I am running the project using a custom configuration (configuration manager...). When I run it using the default
Debug
configuration the error does not occur.
任何想法
推荐答案
最后有什么解决的问题是:
Eventually what solved the issue was:
- 清洁每个项目单独(右键点击> 清除)。
- 单独重建每一个项目(< STRONG>右键点击> 重建)。
- 重建启动项目。
- Clean every project individually (Right click> Clean).
- Rebuild every project individually (Right click> Rebuild).
- Rebuild the startup project.
我想出于某种原因,只清洗液有较明确单独清洗每个项目不同的效果。
I guess for some reason, just cleaning the solution had a different effect than specifically cleaning every project individually.
修改结果
按@maplemale评论,看起来,有时候删除并重新添加每个参考也是必需的。
As per @maplemale comment, It seems that sometimes removing and re-adding each reference is also required.
这篇关于视觉工作室 - 收到错误"元数据文件“XYZ”找不到"编辑后继续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!