C
C#2y ago
nauvran

✅ DevOps .net core publish error

I'm using a DevOps setup with nugets pushed to artifacts, this works fine for the older projects But when I try and build this new project I get a "error NU1301: unable to load the service index for source https://api.nuget.org/v3/index.json I have permissions to the artifacts so it's not that. Thanks in advance
74 Replies
FusedQyou
FusedQyou2y ago
Perhaps you meant to load https://api.nuget.org/v3/index.json ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
I mistyped If that's what you mean Typing on a phone since I don't have discord on my work-laptop
FusedQyou
FusedQyou2y ago
Yes
nauvran
nauvranOP2y ago
If only that was the issue but no I just couldn't copy paste the error message Oh for crying out loud It might just be me that's an idiot and there is a package or two that still tries to connect to nuget.org instead of the local artifacts Fuck me it's Monday Is there any good way to check for which packages might be missing? I've tried removing reference to nuget.org in my project and tried to update-packages, reinstalling and all that but I get no errors locally
Wz
Wz2y ago
dotnet nuget locals command - .NET CLI
The dotnet nuget locals command clears or lists local NuGet resources such as http-request cache, temporary cache, or machine-wide global packages folder.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Reason I did that is because the server doesn't have access to nuget.org
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
I don't know it's just how work has it set up, security reasons I think I'm supposed to upload the nugets to artifacts and get them from there
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
I have no idea what half you're saying means I'm by no means experienced in pipelines or yaml
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Yes It's in the title of my question
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Shit sorry
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
As I said I'm a newbie at this I can do the coding part of a project fine but not this sort of stuff
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
So adding the artifact feed would be the same line as the nuget.org but with my irl in instead?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
I'm just not clear on where you want me to add it Or how
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
I have the nuget.config open
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Erh I'm on my phone It just lists the nuget.org after a <clear/>
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Just copy the URL from the artifacts page?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Yeah I'm on that page Hah
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Yeah that makes sense I'll try that Thanks btw for for helping and being patient I'm not the best webdev Yeah that's giving me 401 unauthorized Which doesn't really make sense How can it not access itself
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
From ci Ran the pipeline
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
By infrastructure you mean server, right?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
I'm pretty sure all of our Azure DevOps stuff is on the same machine
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
I'll try and have a look Thanks again
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
HM apparently already have this
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: $(solution)
vstsFeed:$ (vstsFeed)
includeNuGetOrg: false
noCache: true
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: $(solution)
vstsFeed:$ (vstsFeed)
includeNuGetOrg: false
noCache: true
VstsFeed is companyName/FeedName Hmm this happens when the publish command is ran
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
It works for the other older projects The main difference is this one is running .net6
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Yeah I don't know Most of this was set up before I started at this company
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Could it be the credentials And the links it says ir can't reach work fine when I click on them
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Hm Apparently the rest of our pipelines are having issues The only new thing I can think off is that the .net SDK 6 was added to the servers
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
An integration service is suddenly missing Microsoft.NETCore.App.Host.win-64 It worked fine last time it was run and has not had an update since,
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Main project is having issues with a branch check which it didn't have a week ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Ah so the integration one is because I updated to a new sdk
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Tell that to my boss or whoever decided that Yeah I don't think that's an option I am not even allowed to save my XD files in a cloud This has become such a rabbit hole
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Yeah that's fair You helped more than I expected
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
¯\_(ツ)_/¯
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
I'm just a stupid junior Dev, only been here a year
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
We are four Devs I didn't really have a choice Besides all I had to do was set up a pipeline for this new api
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX2y ago
tebeco#0205
and given what i'm reading i'd ask to be paid to help if that shit is real
Quoted by
React with ❌ to remove this embed.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Department but yeah probably
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Company 500-600 My team? 14
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nauvran
nauvranOP2y ago
Not German But yeah sensitive data SSN and so on But in EU yes I'm definitely going to try and suggest getting the feed to just copy nuget.org dsily Day 2: Renamed the packages folder in my local .nuget.folder Removed nuget.org from VS nugetmanager Built the project Got nine errors Unable to find X Look up Artifacts in Azure DevOps, sure enough those exact nine nuget packages have been uploaded before but have all been deleted 2.5 years ago Nvm Think I finally fixed it, everything builds now and I could deploy to Demo API still isnt working but I think thats a database not haven been updated issue not a build one so I fixed it by adding a --no restore to the publish command Figure we already have a restore command so why does it need to try and restore in the publish command as well, and who would have thunk, it worked
Want results from more Discord servers?
Add your server