evgomes / supermarket-api

Simple RESTful API built with ASP.NET Core and .NET 8 to show how to create RESTful services using a decoupled, maintainable architecture.

Home Page:https://medium.com/free-code-camp/an-awesome-guide-on-how-to-build-restful-apis-with-asp-net-core-87b818123e28

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotnet restore doesn't work

kenderipa opened this issue · comments

Hello,

I'm trying to follow your howto. However, dotnet restore doesn't work. I'm getting the following:

PS E:\Download\Work\git\supermarket-api\src\Supermarket.API> dotnet restore
  Determining projects to restore...
E:\Download\Work\git\supermarket-api\src\Supermarket.API\Supermarket.API.csproj : error NU1100: Unable to resolve 'Auto
Mapper (>= 13.0.1)' for 'net8.0'. [E:\Download\Work\git\supermarket-api\src\Supermarket.API\Supermarket.API.sln]
E:\Download\Work\git\supermarket-api\src\Supermarket.API\Supermarket.API.csproj : error NU1100: Unable to resolve 'Micr
osoft.EntityFrameworkCore.InMemory (>= 8.0.1)' for 'net8.0'. [E:\Download\Work\git\supermarket-api\src\Supermarket.API\
Supermarket.API.sln]
E:\Download\Work\git\supermarket-api\src\Supermarket.API\Supermarket.API.csproj : error NU1100: Unable to resolve 'Micr
osoft.EntityFrameworkCore.Relational (>= 8.0.1)' for 'net8.0'. [E:\Download\Work\git\supermarket-api\src\Supermarket.AP
I\Supermarket.API.sln]
E:\Download\Work\git\supermarket-api\src\Supermarket.API\Supermarket.API.csproj : error NU1100: Unable to resolve 'Micr
osoft.VisualStudio.Azure.Containers.Tools.Targets (>= 1.19.5)' for 'net8.0'. [E:\Download\Work\git\supermarket-api\src\
Supermarket.API\Supermarket.API.sln]
E:\Download\Work\git\supermarket-api\src\Supermarket.API\Supermarket.API.csproj : error NU1100: Unable to resolve 'Swas
hbuckle.AspNetCore (>= 6.5.0)' for 'net8.0'. [E:\Download\Work\git\supermarket-api\src\Supermarket.API\Supermarket.API.
sln]
  Failed to restore E:\Download\Work\git\supermarket-api\src\Supermarket.API\Supermarket.API.csproj (in 70 ms).

A little help?

Got it. Neede to delete old NuGet.config under C:\Users<User>\AppData\Roaming\NuGet\