在Visual Studio中找不到元数据文件'... \Release\project.dll' [英] Metadata file '...\Release\project.dll' could not be found in Visual Studio

查看:150
本文介绍了在Visual Studio中找不到元数据文件'... \Release\project.dll'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我开始随机得到这个消息。我有一个解决方案,其中有几个项目。当前构建模式为Debug,所有项目的配置都设置为Debug。但是当我尝试运行主项目时,有时候会给我一些错误,所有这些错误都是元数据文件... \Release\projectX.dll找不到 - 而且,它说RELEASE文件夹,虽然当前模式是Debug。为什么?我尝试在所有解决方案文件中搜索Release\projectX.dll的引用,并在ResolveAssemblyReference.cache文件中找到一个。



我在互联网上做了很好的搜索,发现有几个人有类似的问题,但没有解决方案,或至少没有工作的解决方案。



我试图删除对这些项目的引用并读取它们,但在某些时候,我再次收到这些错误。



这似乎是一个错误。当我总是使用调试模式时,为什么要在Release文件夹中搜索引用的项目?



PS。对于那些遇到这个问题的人:不要用简单的方法解决它,只有在我重新安装Windows后才消失:(

解决方案

每个人都是正确的...尝试所有...(按照一点点浪费很多时间)


  1. 你有不好的代码吗? / li>
  2. 清理解决方案并重新启动Visual Studio

  3. 删除/添加引用

  4. 检查您的构建顺序项目和验证

  5. 手动重建子项目

  6. 将项目之间的dll手动复制到相关的bin文件夹

  7. 去喝点咖啡,玩一些弹珠,明天再回来,你可能会想到别的东西。


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)

  1. Do you have bad code? Fix that first.
  2. Clean Solution & Restart Visual Studio
  3. Remove / Add References
  4. Check your build order w/ larger projects and verify
  5. Manually rebuild sub-projects
  6. Manually copy dlls between projects into associated bin folders
  7. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆