无法将汇编引用添加到项目 [英] Can't add assemble reference to project

查看:95
本文介绍了无法将汇编引用添加到项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Framework 4.5.1上有一个网站。
编译时,缺少System.Data.DataExtensions的程序集引用错误。

I have a web site on Framework 4.5.1. When I compile I have a missing assembly reference error for System.Data.DataExtensions.

所以我要添加引用,在对话框关闭的框内打钩,重新编译。相同的程序集再次丢失。返回参考,程序集不再被打勾。它确实将其添加到web.config中,但引用始终消失。

So I go to add a reference tick the box close the dialog , recompile. Same assembly is missing again. Go back to references and the assembly is no longer ticked. It does add it the the web.config but the reference always disappears.

我遇到了此链接类似问题
但是解决方案仅使用System.Data而不是System.Data.DataExtensions。但是我的using语句已经仅仅是System.Data。

I came across this link similar issue but the solution was only having using System.Data instead of using System.Data.DataExtensions. But my using statement are already only System.Data.

任何人都可以提供帮助吗?

Can anyone assist ?

推荐答案

好,看来当项目迁移到4.5.1框架时,Web配置文件并未更新,并且仍然包含对3.0框架的引用。
这就是阻止添加程序集引用的原因。

Ok it seems that when the project was migrated to 4.5.1 framework the web config file wasn't update and still contains a reference to the 3.0 framework. That is what was is preventing the assembly reference being added.

升级框架似乎不会使用所做的更改来更新Web配置。

Upgrading the framework seems not to update the web config with the changes.

这篇关于无法将汇编引用添加到项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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