Nuget and The package manager on VS 2022 Community edition cannot find the Microsoft.EntityFrameworkCore

Jason Starbuck 0 Reputation points
2024-03-25T19:29:09.87+00:00

Typing Microsoft.EntityFrameworkCore into the Nuget package manager returns nothing and instead displays the NO package found message. The PM console prints the following error text when NuGet\Install-Package Microsoft.EntityFrameworkCore -Version 8.0.3 is entered:

PM> NuGet\Install-Package Microsoft.EntityFrameworkCore -Version 8.0.3

Restoring packages for C:\Users\jstar\Menu1\Menu1.csproj...

NuGet\Install-Package : NU1101: Unable to find package Microsoft.EntityFrameworkCore. No packages exist with this id in source(s): C:\Program

Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages

At line:1 char:1

  • NuGet\Install-Package Microsoft.EntityFrameworkCore -Version 8.0.3
  • 
        + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
     
    
    

NuGet\Install-Package : Package restore failed. Rolling back package changes for 'Menu1'.

At line:1 char:1

  • NuGet\Install-Package Microsoft.EntityFrameworkCore -Version 8.0.3
  • 
        + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
     
    
    

Time Elapsed: 00:00:00.0818689

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
749 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jiale Xue - MSFT 46,296 Reputation points Microsoft Vendor
    2024-03-26T03:21:38.4933333+00:00

    Hi @Jason Starbuck , Welcome to Microsoft Q&A,

    I am currently using Microsoft Visual Studio Community 2022 (64-bit) - CurrentVersion 17.9.3, and the problem you mentioned does not exist.

    I use .Net Framework.

    User's image

    You can also try to read the tutorial about efc:Getting Started with EF Core

    Best Regards,

    Jiale


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Bruce (SqlWork.com) 66,061 Reputation points
    2024-03-29T15:23:00.86+00:00

    You probable have configured nuget for offline mode, but never installed Microsoft.EntityFrameworkCore in the offline cache.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.