I\'m a .NET newbie using VS Code while following an online course on Angular and .NET Core. The course requires the AutoMapper.Extensions.Microsoft.DependencyInjection>
I finally fixed the issue by deleting the NuGet.Config file in C:\Users\
Running dotnet restore created a fresh config file on the folder which i noticed has a different packageSources value than the old one.
The old one had https://www.nuget.org/api/v2/ while the new one had https://api.nuget.org/v3/index.json
I completely forgot that I have VS 2010 (with nuget) installed which was responsible for the old config file and I did not realize that nuget from the dotnet-cli was also using the same old configurations.