元数据文件'的.dll“找不到 [英] Metadata file '.dll' could not be found

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

问题描述

我工作的一个WPF,C#3.0的项目和我收到此错误:

I am working on a WPF, C#3.0 Project and I am getting this error:

错误1元数据文件   WORK = - \工具\ VersionManagementSystem \ BusinessLogicLayer \斌\调试\ BusinessLogicLayer.dll   不能   发现C: - ,=工作= - \工具\ VersionManagementSystem \ VersionManagementSystem \ CSC VersionManagementSystem

Error 1 Metadata file 'WORK=-\Tools\VersionManagementSystem\BusinessLogicLayer\bin\Debug\BusinessLogicLayer.dll' could not be found C:-=WORK=-\Tools\VersionManagementSystem\VersionManagementSystem\CSC VersionManagementSystem

编辑:

这是我引用我的用户控件

This is how I reference my usercontrols

xmlns:vms="clr-namespace:VersionManagementSystem"
<vms:SignOffProjectListing Margin="5"/>

,每天构建失败后发生。我能得到解决编制的唯一方法是注释掉我所有的用户控件和建造的项目,那么我取消了用户控件和一切都很好。

It happens after every failed build. The only way I can get the solution to compile is to comment out all my user controls and and built the project, then I uncomment the usercontrols and everything is fine.

我已经检查了建造顺序,依赖性配置。

I have checked build orders, dependencies configurations.

正如你所看到的,它似乎已被截断DLL的绝对路径......我已阅读,有一个与长度的错误。这是可能出现的问题?

As you can see it seems to have truncated the dll's absolute path... I have read that there is a bug with the length. Is this a possible problem?

这是非常讨厌,有评论,建,取消,建设变得非常无聊。

It's very annoying and having to comment, build, uncomment, build is becoming extremely tiresome.

推荐答案

我有同样的问题。 Visual Studio是无法构建正在被引用的项目。

I just had the same problem. Visual Studio isn't building the project that's being referenced.

  1. 右键单击该解决方案,然后单击属性。
  2. 点击左侧配置。
  3. 确保在建设项目无法找到被选中的复选框。如果它已被选中,取消选中,打申请,并再次检查框。

这篇关于元数据文件'的.dll“找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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