serenarules — 2012-06-07T20:13:12-04:00 — #1
It's been a while, and I am out of practice. I have a question for you guys. I have an MVC3 (empty) application. The template install an older version of EntityFramework, complete with packages file. Nuget wasn't recognizing that it was installed, but would allow to update it, so I did. I did so, just so I could do an uninstall of it. I want EF gone. Nuget doesn't seem to have an uninstall option though. I'm probably missing it. If there is one, can you tell me how to do it. Otherwise, can you tell me what references I need to remove from the project (besides deleting the packages file). Is it just System.Data.Entity, or is there anything else? Thanks!
wwb_99 — 2012-06-08T14:45:18-04:00 — #2
If the UI is failing, just run the package management console and run 'uninstall-package PACKAGENAME' -- not sure what the EF's is, but it would be the same name as the folder in the packages directory.
serenarules — 2012-06-10T06:07:09-04:00 — #3
That wasn't exactly my question. The package contains EntityFramework.dll. But there are things that DLL references that are part of the core system, and already present. Therefore, they aren't distributed with the package. I needed to know what these stocks things were. But I figured it out by creating a Class Library stub and importing the package, then comparing what was added with what was there before.
wwb_99 — 2012-06-12T14:06:25-04:00 — #4
Your question was "I can't find the uninstall button, how do I remove it" -- uninstall package does just that. It is what the UI calls.
serenarules — 2012-06-14T01:42:50-04:00 — #5
Yeah I guess that was part of it. =) I tested an install to a clean Class Library to see. It also adds System.Data.Entity as well as the custom EntityFramework.dll. In addition, it may add the ComponentModel.DataAnnotations namespace, but MVC also needs that, so you can just remove the EF dll and the System.Data.Entity.