nuget-license icon indicating copy to clipboard operation
nuget-license copied to clipboard

Multiple NuGet Source Support

Open ohanedan opened this issue 2 years ago • 4 comments

Hello, Can we use multiple nuget sources? It looks check only api.nuget.org but I have also a private repository for my packages. Do you think about any improvement for this? Thanks

ohanedan avatar May 25 '22 09:05 ohanedan

There is a branch for version 3.0.0 (be aware that this branch is still a prerelease) which uses the microsoft provided capabilities to receive the nuget packages. With this branch the feature you describe works.

Feel free to check this out.

sensslen avatar May 25 '22 13:05 sensslen

Hi @sensslen, Thanks for quick response, Do you plan to push version 3.0.0 to nuget as a prerelease for testing with "dotnet tool install" command easily?

ohanedan avatar May 26 '22 11:05 ohanedan

@tomchavakis what do you think?

sensslen avatar May 26 '22 17:05 sensslen

@ohanedan, as a workaround in the mainstream branch, you could do a NuGet restore and then employ --use-project-assets-json option to check licenses of the packages. Thus, the nuspecs would already be cached regardless of their sources.

Lexy2 avatar May 27 '22 01:05 Lexy2

I propose to close this issue in favour of the newly released alpha version that will eventually replace the current version of the application. Please check https://github.com/tomchavakis/nuget-license/releases/tag/v3.0.0-alpha.5 if it will fit your needs.

The newly released alpha version is also available as dotnet tool.

sensslen avatar Sep 03 '22 20:09 sensslen