microsoft / microsoft/artifacts-credprovider
Broken when referencing a Nuget package in F# interactive
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 947
- Forks
- 728
- PR merge metrics
- No merged PRs in 30d
Description
In my global Nuget config I have a source that requires authentication.
I've authenticated for this source before. dotnet restore works fine and can access packages from this source.
But in F# interactive (fsx script or console) all Nuget package commands like #r "nuget: Microsoft.ABC fail (even for packages that aren't from the problematic source).
Error message:
/Users/omcnoe/stdin(1,1): error FS3217: /usr/local/share/dotnet/sdk/7.0.306/NuGet.targets(156,5): warning : The plugin credential provider could not acquire credentials. Authentication may require manual action. Consider re-running the command with --interactive for 'dotnet', /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch for 'NuGet' [/Users/omcnoe/.packagemanagement/nuget/Projects/--SNIP--/Project.fsproj]
Unlike the error message suggests, dotnet fsi --interactive or dotnet --interactive fsi are not valid commands
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with an authenticated source using an fsx script or F# interactive console, then compare it with the working dotnet restore path. Start from the NuGet.targets warning at /usr/local/share/dotnet/sdk/7.0.306/NuGet.targets:156 and the credential provider integration. Done means F# interactive NuGet commands can authenticate without requiring the invalid --interactive command forms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fsharp
- Domain
- authentication, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100