question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to restore packages from pkgs.dev.azure.com

See original GitHub issue

Describe the bug

Like https://github.com/dotnet/interactive/issues/1399#issuecomment-858303908 talk, We also have Azure DevOps solutions, but we don’t know how to restore a similar (https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json) suite in Notebook?

Please complete the following:

Which version of .NET Interactive are you using? There are a few ways to find this out:

  • In a notebook, run the #!about magic command.
.NET Interactive
© 2020 Microsoft Corporation
Version: 1.0.225602+88e6d92f1cf8ead1c4c0b982e67b4a63902e00e6
Build date: 2021-05-27T09:16:11.3076724Z
https://github.com/dotnet/interactive
  • At the command line, run dotnet interactive --version.
1.0.230701+897ec27256aa312cc872b52b261726684b29d42b
  • OS
    • Windows 10
  • Browser
    • Chrome
    • Edge
  • Frontend
    • Visual Studio Code

Screenshots

If restore packages from Azure Artifacts, will show 401 (Unauthorized) Error.

Example:

Installing package Microsoft.DotNet.Interactive.SqlServer, version *-*.............
Error: C:\Program Files\dotnet\sdk\5.0.300\NuGet.targets(131,5): error : �L�k���J�ӷ� https://pkgs.dev.azure.com/xxx/_packaging/xxx/nuget/v3/index.json ���A�ȯ��ޡC [C:\Users\BruceChen\AppData\Local\Temp\nuget\17224--1f65547b-77a1-42ee-b521-3d390a54364d\Project.fsproj]
C:\Program Files\dotnet\sdk\5.0.300\NuGet.targets(131,5): error : Response status code does not indicate success: 401 (Unauthorized). [C:\Users\BruceChen\AppData\Local\Temp\nuget\17224--1f65547b-77a1-42ee-b521-3d390a54364d\Project.fsproj]

I reference https://docs.microsoft.com/en-us/azure/devops/artifacts/nuget/dotnet-exe?view=azure-devops, run dotnet restore --interactive is work, no 401 error.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jonsequiturcommented, Jul 26, 2023

@SeriousM, updates on which part?

It’s not clear to me that there’s a bug here, just that it’s very easy to have NuGet configurations that don’t work.

0reactions
SeriousMcommented, Apr 26, 2023

Any updates on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Restore NuGet packages in Azure Pipelines
To restore NuGet packages from a feed in a different Azure DevOps organization, you must use a personal access token to authenticate. Create...
Read more >
Publish and restore packages with dotnet CLI - Azure
Select Artifacts, and then select your feed from the dropdown menu. Select Connect to feed. Screenshot showing how to connect to a feed....
Read more >
Restore Package Version From Recycle Bin - NuGet
Restore a package version from a feed's recycle bin back into the active feed. The project parameter must be supplied if the feed...
Read more >
Delete and recover packages - Azure Artifacts
Recover deleted packages ; Select Artifacts, and then select Recycle Bin. A screenshot showing how to access the recycle bin. ; Select your ......
Read more >
Why can't Visual Studio restore NuGet packages from ...
I am setting up Visual Studio 2022 Community Edition on a new workstation. I have instructions for connecting to an Azure DevOps artifact...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found