I have a pipeline on AWS for my api service which written in .Net core 3.1.
My buildspec.yml pretty simple, it runs dotnet restore and dotnet publish.
I get this error in the restore phase "error NU1100: Unable to resolve" for a lot of libraries, for example:
C:\codebuild\tmp\output\src363055303\src\ExternalClient\ExternalClient.csproj : error NU1100: Unable to resolve 'Serilog (>= 2.9.0)' for '.NETCoreApp,Version=v3.1'.
I tried to restore the project on my pc through the terminal using the same command and it works.
I see in the log that the pipeline use nuget org: "Feeds used: https://api.nuget.org/v3/index.json".
This pipeline already worked on AWS, and I have no idea why it started to fail over restore.