nuke-build / nuke

🏗 The AKEless Build System for C#/.NET
https://nuke.build
MIT License
3.07k stars 369 forks source link

dotnet-sonarscanner latest version not compatible with nuke #1348

Closed ArwynFr closed 8 months ago

ArwynFr commented 8 months ago

Usage Information

NUKE version 8.0.0 / SDK version 8.0.200 / net 8.0 / Win 10 21H2 LTSC

Description

Adding dotnet-sonarscanner fails with this error when targeting version 6.2.0:

Sequence contains more than one matching element

Reproduction Steps

nuke :add-package dotnet-sonarscanner --version 6.2.0

Expected Behavior

NUKE Global Tool 🌐 version 8.0.0 (Windows,.NETCoreApp,Version=v6.0) Installing dotnet-sonarscanner/6.2.0 to D:\xxx\build_build.csproj ... [INF] > "C:\Program Files\dotnet\dotnet.exe" restore D:\xxx\build_build.csproj Done installing dotnet-sonarscanner/6.2.0 to D:\xxx\build_build.csproj

Actual Behavior

NUKE Global Tool 🌐 version 8.0.0 (Windows,.NETCoreApp,Version=v6.0) Installing dotnet-sonarscanner/6.2.0 to D:\xxx\build_build.csproj ... [INF] > "C:\Program Files\dotnet\dotnet.exe" restore D:\xxx\build_build.csproj Sequence contains more than one matching element

Regression?

Probably more linked to the sonarscanner package than nuke.

Known Workarounds

Downgrade to package version 6.1.0 which works fine

Could you help with a pull-request?

No