Can't add assemble reference to project

时光毁灭记忆、已成空白 提交于 2019-12-12 01:13:28

问题


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

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.

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 ?


回答1:


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.

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



来源:https://stackoverflow.com/questions/36490695/cant-add-assemble-reference-to-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!