C
C#•9mo ago
Poller

Azure Devops Nuget restore Artifact error

Given the Pipeline in screenshot i get an error in the 'dotnet restore' task. "D:\a\1\s\src\cs[PROJECT].api.contract[PROJECT].api.contract.csproj : error NU1301: Unable to load the service index for source https://pkgs.dev.azure.com/[COMPANY]/_packaging/[FEEDID]/nuget/v3/index.json. [D:\a\1\s\src\cs\Tester.signalR\Tester.signalR.csproj]" i already spent more than 2 full work days on that and can not find the solution to this problem. Any help or ideas to diagnose it further is appreciated info: i tried with a nuget.config aswell as in the current pipeline a selection
No description
16 Replies
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Poller
PollerOP•9mo ago
the feed is in the same project. i will give it later a try. (i thought i had it that way already, but i test with your input again. i did not use the UseDotNet command. is that reuired/ what is it for?
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Poller
PollerOP•9mo ago
The issue that NuGet Restore throws an error still persists. Here the Task i am using: ''' - script: dotnet build --configuration $(BuildConfiguration) -r win-x64 displayName: "dotnet build" ''' and the resulting log: ''' D:\a\1\s\src\cs[PRODUCT].database.sqlite[PRODUCT].database.sqlite.csproj : error NU1301: Unable to load the service index for source https://pkgs.dev.azure.com/[COMPANY]/_packaging/[FEED]/nuget/v3/index.json. [D:\a\1\s[SOLUTION].sln] ''' since i now have used the following: - Nuget Task - dotnet restore - dotnet build - script dotnet build - script dotnet restore (all of them with choosing feeds by hand or via nuget.config) and the fact, that i do roughly the same in other projects where it works, i think the pipeline is NOT the issue (religions on how to create it internally beside). i suspect it is some kind of permission issue. but comparing with other projects of mine i cant spot the difference. the error message is always the same. no matter whos right way i try. its kind of ridiciulous, that there is no way to diagnose further what it is that causes the problem...
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Poller
PollerOP•9mo ago
thats kind of my suspicion. i use cloud pool and everything basically default. i give it a look this evening. business hours for that got cut at 35 for this.
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Poller
PollerOP•9mo ago
i think permissions. right yeah
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Poller
PollerOP•9mo ago
the feed is organization scoped
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Poller
PollerOP•9mo ago
yes. thats all in the same scope to say.
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Poller
PollerOP•9mo ago
that was it... (i illegally spent a few minutes to test) now i got another error but thats a publish related one. i need to look into at the evening.
Unknown User
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Poller
PollerOP•9mo ago
I had a issue with a variable 🙂 the pipeline works now. Thank you for hinting me to the right direction
Want results from more Discord servers?
Add your server