Skip to content

Instantly share code, notes, and snippets.

View cpyfferoen's full-sized avatar

Cyril Pyfferoen cpyfferoen

  • Repete Corporation
  • Rochester, MN
  • 08:51 (UTC -05:00)
View GitHub Profile
@cpyfferoen
cpyfferoen / NugetManager.cs
Last active May 13, 2025 15:09
NuGet API wrapper to search/install packages WITH AUTHENTICATION the same way Nuget.Exe/Client does it - looks up CredentialProviders and plugins (also for Credentials). Specific use case was Azure DevOps feed access.
using NuGet.Common;
using NuGet.Configuration;
using NuGet.Credentials;
using NuGet.PackageManagement;
using NuGet.Packaging;
using NuGet.Packaging.Core;
using NuGet.Packaging.Signing;
using NuGet.ProjectManagement;
using NuGet.Protocol;
using NuGet.Protocol.Core.Types;