October 16, 2021

Software Mile.com

Latest Software News and Hacks

Visualstudio can’t find entityframework

Visualstudio can’t find entityframework

I have created a new MVC web app project in Visualstudio 2019 (Targeting .net 5.0)

Now I want to install entityframeworkcore, but it doesn’t appear on the list when I search in the nuget manager. If I type “entity”, only 3 options appear. If I type more than that, nothing more appears.

Visualstudio can’t find entityframework

I also tried typing (in the console manager)

Install-Package Microsoft.EntityFrameworkCore -Version 5.0.11

and getting this error:

    `Install-Package : NU1101: Unable to find package` 
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packag
    At line:1 char:1
    + Install-Package Microsoft.EntityFrameworkCore -Version 5.0.11
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

I also tried cleaning and building the project several times. The VS2019 I recently just installed.
What might be wrong?

Go to Source of this post
Author Of this post: user1960836
Title Of post: Visualstudio can’t find entityframework
Author Link: {authorlink}

You may have missed