在Visual Studio中找不到元数据文件'... \Release\project.dll' [英] Metadata file '...\Release\project.dll' could not be found in Visual Studio
问题描述
我在互联网上做了很好的搜索,发现有几个人有类似的问题,但没有解决方案,或至少没有工作的解决方案。
我试图删除对这些项目的引用并读取它们,但在某些时候,我再次收到这些错误。
这似乎是一个错误。当我总是使用调试模式时,为什么要在Release文件夹中搜索引用的项目?
PS。对于那些遇到这个问题的人:不要用简单的方法解决它,只有在我重新安装Windows后才消失:(
每个人都是正确的...尝试所有...(按照一点点浪费很多时间)
- 你有不好的代码吗? / li>
- 清理解决方案并重新启动Visual Studio
- 删除/添加引用
- 检查您的构建顺序项目和验证
- 手动重建子项目
- 将项目之间的dll手动复制到相关的bin文件夹
- 去喝点咖啡,玩一些弹珠,明天再回来,你可能会想到别的东西。
Recently I started to get this message randomly. I have a solution with several projects in it. Current build mode is Debug and all projects' configuration is set to Debug. But when I try to run the main project - sometimes it gives me a few errors all of which are "Metadata file '...\Release\projectX.dll' could not be found" - and, look, it says about RELEASE folder, though current mode is Debug. Why? I tried to search for reference to "Release\projectX.dll" inside all solution files and I found one in ResolveAssemblyReference.cache file.
I made a good search over the internet and found a few people with the similar problem, but there was no solution, or at least no working solution.
I tried to delete references to those projects and readd them, but in some time I start getting these errors again.
It seems like a bug. Why does it search for referenced projects in Release folders when I always use Debug mode?
PS. For those who met this problem: I couldn't solve it with an easy way, it disappeared only after I reinstalled windows :(
Everyone is correct...try everything...(in order of a little to a lot of time wasted)
- Do you have bad code? Fix that first.
- Clean Solution & Restart Visual Studio
- Remove / Add References
- Check your build order w/ larger projects and verify
- Manually rebuild sub-projects
- Manually copy dlls between projects into associated bin folders
- Go get some coffee, play some pinball and come back tomorrow...you may think of something else in the meanwhile.
这篇关于在Visual Studio中找不到元数据文件'... \Release\project.dll'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!