Closed cthlo closed 3 months ago
Can you provide the code you're running and a screen shot?
Can you provide the code you're running and a screen shot?
Here's a screenshot of the cell and output:
Does the feed require authentication?
.NET Interactive doesn't provide any way to authenticate with a NuGet feed. If the feed requires authentication, the recommendation is to include a PAT in your nuget.config.
Does the feed require authentication?
.NET Interactive doesn't provide any way to authenticate with a NuGet feed. If the feed requires authentication, the recommendation is to include a PAT in your nuget.config.
Yes, it does. Our setup is handled by VstsCredentialProvider.
I'm able to install via nuget install
in a pwsh cell in the same notebook:
Does #r
interact with NuGet differently?
#r
performs a dotnet restore
. It's not interactive, so if authentication is needed and no PAT is provided in nuget.config, it fails.
#r
performs adotnet restore
. It's not interactive, so if authentication is needed and no PAT is provided in nuget.config, it fails.
I see. Thanks, Jon.
Describe the bug
Hi,
I'm trying to use
#r
to install a nuget package from a private Azure Artifacts feed in my notebook. But the above error is shown. However, I am able to performnuget install
from a pwsh cell in the same notebook no problem. The creds are handled byVstsCredentialProvider
. By any chance, it is not authenticated properly when using the magic command? How can I debug this?Thank you!
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the
#!about
magic command. ):Screenshots