Cannot restore packages from Account nuget feed on Linux

kristoffer+appveyor's Avatar


12 Sep, 2023 10:56 AM


I get the following build error after adding the account_feed flag in my private project:

Retrying 'FindPackagesByIdAsyncCore' for source '[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
  account_feed: true

- ps: dotnet publish projectname.csproj --output published-app --configuration Release

  1. Support Staff 1 Posted by Feodor Fitsner on 12 Sep, 2023 06:12 PM

    Feodor Fitsner's Avatar

    Make sure you don't have Nuget.config checked in into your repository (either root of the repo or project/solution root).

  2. 2 Posted by kristoffer+appv... on 13 Sep, 2023 06:05 AM

    kristoffer+appveyor's Avatar

    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,

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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