简体   繁体   中英

Can't add assemble reference to project

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 ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM