Cannot restore packages from Account nuget feed on Linux
Hi,
I get the following build error after adding the account_feed flag in my private project:
Retrying 'FindPackagesByIdAsyncCore' for source 'https://ci.appveyor.com/nuget/[my-account-feed]/FindPackagesById()?id='MediatR'&semVerLevel=2.0.0'.
Response status code does not indicate success: 401 (Unauthorized).
Could it be that the account_feed auto configuration doesn't work with .net core and Linux?
We have the following configuration in our appveyor.yml (irrelevent sections removed):
image: Ubuntu
stack: node 16
nuget:
account_feed: true
build_script:
- ps: dotnet publish projectname.csproj --output published-app --configuration Release
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 12 Sep, 2023 06:12 PM
Make sure you don't have
Nuget.config
checked in into your repository (either root of the repo or project/solution root).2 Posted by kristoffer+appv... on 13 Sep, 2023 06:05 AM
Removing the nuget.config file resolved the issue. The external nuget source that was configured in that file is now added with the nuget cli in the install step instead.
Thank you,
/Kristoffer