nuget client v1
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user