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