.NET Core paket config add-credentials fails with PlatformNotSupportedException
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 2.1k
- Forks
- 528
- Avg merge
- 1d 12m
- Merged PRs (30d)
- 54
Description
Description
Trying to add NuGet credentials using .NET Core Paket on linux fails with
Paket failed with
-> PlatformNotSupportedException: Windows Data Protection API (DPAPI) is not supported on this platform.
Repro steps
Please provide the steps required to reproduce the problem
-
Install Paket as a dotnet tool on linux
-
Run
paket config add-credentials <your-url> -
Add user name and password
Expected behavior
paket.config file to be updated
Actual behavior
Paket failed with
-> PlatformNotSupportedException: Windows Data Protection API (DPAPI) is not supported on this platform.
Known workarounds
Use Paket full framework with mono
Contributor guide
No contributing guide indexed for this repository
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
Start by tracing the paket config add-credentials command and reproduce it on Linux as a .NET Core tool. Inspect the credential-storage path that invokes Windows DPAPI; done means credentials can be entered and paket.config is updated on Linux, while the existing Mono workaround remains unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fsharp
- Domain
- cli, operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100