Quite/Silent Mode

Hi,

I’m using SonarQube on large dotnet solution in Gitlab, everytime I build it my log excess the max limit because the solution has a lot of sonarqube warning, is it possible have quite mode? I don’t want to see the error on console

The warnings are logged by the compiler, so you can control the level of detailed by specifying the verbosity in the msbuild / dotnet build command line
e.g. msbuild -v:minimal

The setting will apply to the whole build step - you can’t specify a separate verbosity level just for analysis issues.

@duncanp I’m using dotnet core on linux, so I only have access to dotnet build, but I’ve already tried it, but doesn’t work, the command I’m using:

/usr/bin/dotnet build /builds/carnext/backend/carnext-hydra/src/CarNext.Hydra.sln --configuration Release --no-restore --verbosity Quiet /property:AssemblyVersion=2.1.0.0 /property:FileVersion=2.1.0.0 /property:InformationalVersion=2.1.0-disable-sonar-output.1+331.Branch.feat-disable-sonar-output.Sha.cf00f04fd966092d7469b9e15332ce97aa13e241 /property:WarningLevel=0

Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
 
 Build succeeded.
     0 Warning(s)
     0 Error(s)
  Time Elapsed 00:01:16.20

Now with SonarQube:

/usr/bin/dotnet build /builds/carnext/backend/carnext-hydra/src/CarNext.Hydra.sln --configuration Release --no-restore --verbosity Quiet /property:AssemblyVersion=2.1.0.0 /property:FileVersion=2.1.0.0 /property:InformationalVersion=2.1.0-disable-sonar-output.1+331.Branch.feat-disable-sonar-output.Sha.cf00f04fd966092d7469b9e15332ce97aa13e241 /property:WarningLevel=0

Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

/builds/carnext/backend/carnext-hydra/src/CarNext.Hydra.Constants/OrderStepDeadlineGroups.cs(7,32): warning S3887: Use an immutable collection or reduce the accessibility of the non-private readonly field 'DeadlineGroups. [/builds/carnext/backend/carnext-hydra/src/CarNext.Hydra.Constants/CarNext.Hydra.Constants.csproj] 
...