fsprojects / fsprojects/Paket

.NET Core paket config add-credentials fails with PlatformNotSupportedException

Open
#3,462 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Install Paket as a dotnet tool on linux

  2. Run paket config add-credentials <your-url>

  3. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.