How do you remove old version of entity framework in GAC?

非 Y 不嫁゛ 提交于 2020-01-15 11:26:06

问题


Yesterday I posted a question about a issue related to entity framework version after installing MVC 4 on visual studio.

Somehow visual studio is still pointing to the old version of the dll (4.3.1.0) eventhough I manualy set it in my reference to the new one

I tried solution suggested by danielovich gacutil /u "EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

But it did not find it

No Assemblies Found Matching EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

If I look in my project file I can see: <Reference Include="EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"> <HintPath>..\packages\EntityFramework.5.0.0\lib\net40\EntityFramework.dll</HintPath> </Reference>

Which is the new version I am trying to use. I wonder if the DLL is being referenced from somewhere else.


回答1:


gacutil /u <fully qualified assembly name> 

Try this:

gacutil /u "EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

EF 4.+ is not designed to be GAC'ed, it's designed to be bin deployed.



来源:https://stackoverflow.com/questions/16928265/how-do-you-remove-old-version-of-entity-framework-in-gac

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