diff --git a/build/Build.cs b/build/Build.cs index ed0ee4f..1281d25 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -86,9 +86,13 @@ sealed class Build : NukeBuild .SetProjectKey("wonderking_continuity_AYeecUUTs-PH__JrTRky") .SetLogin(SonarToken) .SetServer(SonarHostUrl); + var sonarScannerEndSettings = new SonarScannerEndSettings() + .SetProjectKey("wonderking_continuity_AYeecUUTs-PH__JrTRky") + .SetLogin(SonarToken) + .SetServer(SonarHostUrl); var scannerBegin = SonarScannerTasks.SonarScannerBegin(sonarScannerSettings); DotNetTasks.DotNetBuild(settings => settings.SetNoRestore(true)); - SonarScannerTasks.SonarScannerEnd(scannerBegin); + SonarScannerTasks.SonarScannerEnd(sonarScannerEndSettings); }); Target Deploy => _ => _.DependsOn(Pack).Executes(() =>