SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Resident OCD goofball! bronze trophy Serenarules's Avatar
    Join Date
    Dec 2002
    Posts
    1,911
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)

    MVC Project References and Nuget.

    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!

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,633
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    Resident OCD goofball! bronze trophy Serenarules's Avatar
    Join Date
    Dec 2002
    Posts
    1,911
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,633
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    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.

  5. #5
    Resident OCD goofball! bronze trophy Serenarules's Avatar
    Join Date
    Dec 2002
    Posts
    1,911
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    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.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •