Skip to content

[Preview] Unable to restore packages from feeds with encrypted passwords on windows #23498

@shadow-cs

Description

@shadow-cs

Describe the bug

After the recent update of VS Preview (I got the telemetry prompt earlier today), I'm not able to restore packages from feeds that use an encrypted password.

To Reproduce

  • Make sure some password-protected feeds are registered and they use encrypted password
  • Prepare a project that requests something from the feed
  • Run dotnet nuget locals all --clear just in case to make sure the restore operation is needed
  • Run dotnet restore

Exceptions (if any)

  Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.xyz.com/repository/nuget-prod/FindPackagesById()?id='Package'&semVerLevel=2.0.0'.
  Password decryption is not supported on .NET Core for this platform. The following feed uses an encrypted password: 'repo-name'. You can use a clear text password as a workaround.
    Windows Data Protection API (DPAPI) is not supported on this platform.

Detailed exception.

Further technical details

  • Windows 10 21H2
  • SDK 6.0.200-preview.21617.4

Workaround

Use global.json and downgrade to 6.0.100.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions