nuget client v1

This commit is contained in:
Matt Parker
2025-11-01 13:21:51 +10:00
parent 1b1ca51f40
commit 5cca0b1bfc
5 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
using NuGet.Configuration;
using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
namespace SharpIDE.Application.Features.Nuget;
public class NugetClientService
{
public async Task Test(string directoryPath)
{
var settings = Settings.LoadDefaultSettings(root: directoryPath);
var packageSourceProvider = new PackageSourceProvider(settings);
var packageSources = packageSourceProvider.LoadPackageSources().Where(p => p.IsEnabled).ToList();
// Get top 100 packages across all sources, ordered by download count
}
}