-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuget-license does not find packages on Windows Server 2019 Standard 1809 #154
Comments
Thanks a lot for reporting. Would you be able to provide a small reproduction example? Github provides runners based on Windows Server 2019. https://github.com/actions/runner-images/blob/main/images/windows/Windows2019-Readme.md Unfortunately it will be exceptionally hard to track this down without a way to reproduce the issue. In general the app works as expected in all scenarios that are ran by the CI pipeline - See https://github.com/sensslen/nuget-license/actions/runs/13277124918/job/37068671976 and https://github.com/sensslen/nuget-license/actions/runs/13277124918/job/37068669986. Granted - one ran on ubuntu |
The problem can be related with "Empty Output after 3.1.0 update" #148. A colleague of mine also reproduced the problem on a Windows 11 system. |
The problem is not related to #148, as that was only happening for solution files, not project files. |
No traces have been implemented to nuget-license so far. I'll have a look when I get time. However if you want a fix sooner, feel free to download the code and debug it. Any Pull-Request will be highly appreciated. |
We are using nuget-license to generate automatically a list of used third party software with our NEC application.
On a development system this works OK, but on the build server not.
Input is the same BCT Agent.csproj file.
Development system: Windows 10 Pro 22H2
D:\trunk> dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Build server Windows Server 2019 Standard 1809
E:\trunk> dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.27[C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.27 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Output from build server:
+------------------------------------+-------------------------------+
| Package | Version | License Information Origin |
+------------------------------------+-------------------------------+
+------------------------------------+-------------------------------+
Output from development system:
D:\Trunk>nuget-license --version
3.1.1
D:\Trunk>nuget-license -i "D:\trunk\BCT_Agent\BCT Agent\BCT Agent.csproj"
+------------------------------------+---------+
| Package | Version |
+------------------------------------+---------+
| Microsoft.AspNet.SignalR.Client | 2.4.3 |
| Microsoft.Extensions.Logging.Debug | 9.0.1 |
| Microsoft.Maui.Controls | 9.0.30 |
| Microsoft.NET.ILLink.Tasks | 9.0.1 |
| Newtonsoft.Json | 13.0.3 |
+------------------------------------+---------+
(I removed everything after version.)
Remove txt from the attached file to try yourself.
BCT Agent.csproj.txt
Notes:
Please have a look at this.
Thanks,
Roeland
The text was updated successfully, but these errors were encountered: