.Net 8.0 Unable to install EntityFrameworkCore.Tools 8.0.2 from Nuget package manager

Rajesh Erukulla 0 Reputation points
2024-03-04T14:00:18.5966667+00:00

I have installed Visual Studio 2022 community edition, created a .Net Core Web API project and installed below 2 packages from Nuget package manager successfully.

EntityFrameworkCore.SqlServer 8.0.2

EntityFrameworkCore 8.0.2

But, when I try to install EntityFrameworkCore.Tools 8.0.2, it throws an error as below

Failed to download package 'Microsoft.EntityFrameworkCore.Tools.8.0.2' from 'https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore.tools/8.0.2/microsoft.entityframeworkcore.tools.8.0.2.nupkg'.

Response status code does not indicate success: 403 (Forbidden).

I made sure that I am running VS in admin mode and the project properties shows the framework as .Net 8.0. Please suggest what is wrong here and how can I sort this out.

Thanks

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,167 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
297 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ruikai Feng - MSFT 2,526 Reputation points Microsoft Vendor
    2024-03-05T06:44:49.6066667+00:00

    Hi,@Rajesh Erukulla,you may try input https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore.tools/8.0.2/microsoft.entityframeworkcore.tools.8.0.2.nupkg'. in browser and check if you could access it ,if not,try download the package here,and install the package from local

    0 comments No comments