Visual Studio 2015 project binding issue with SonarQube

1.2k Views Asked by At

I'm using Visual Studio 2015 and installed SonarLint Version 2.9.0. Getting below error when I try to bind solution with the SonarQube project. I couldn't find any references to resolve this issue.


Binding solution to SonarQube project: Started Binding solution to SonarQube project: Discovering solution projects

Included projects:

  • src\xxx.Core\xxx.Core.csproj
  • src\xxx.Core.Common\xxx.Core.Common.csproj
  • src\xxx.Core.Txxxxxxxxxxxx\xxx.Core.Txxxxxxxxxxxx.csproj

    Excluded projects:

  • src\UnitTest\xxx.CoreTests\xxx.CoreTests.csproj

  • src\UnitTest\xxx.Core.CommonTests\xxx.Core.CommonTests.csproj
  • src\UnitTest\xxx.Core.TxxxxxxxxxxxxTests\xxx.Core.TxxxxxxxxxxxxTests.csproj

    You can change the exclusion options via the SonarLint project-level context menu i.e. Solution Explorer -> Select project(s)

Binding solution to SonarQube project: Download quality profile(s):

Successfully downloaded quality profile. Name: 'xxxx.Net Rules', Key: 'cs-xxxx-net-rules-20246', Language: 'C#'

Unexpected error during workflow execution: Specified argument was out of the range of valid values. Parameter name: numberOfIncrements.


Try #2 Log

Connecting to SonarQube server: https://xxxxx.xxxx..net/

Connecting to SonarQube server: Detecting server plugins

Discovered a supported plugin: Language: 'C#', Minimum version: '5.0'

Discovered an unsupported plugin: Language: 'VB.NET', Minimum version: '3.0'

Connecting to SonarQube server: Succeeded

Connecting to SonarQube server: Downloading server settings.

Binding solution to SonarQube project: Started

Binding solution to SonarQube project: Discovering solution projects

Included projects:

  • ConsoleApplication2\ConsoleApplication2.csproj

    Excluded projects:

  • None (for selected SonarQube project's quality profile)

    You can change the exclusion options via the SonarLint project-level context menu i.e. Solution Explorer -> Select project(s)

Binding solution to SonarQube project: Download quality profile(s):

Successfully downloaded quality profile. Name: 'xxxxx .Net Rules', Key: 'cs-xxxxx-net-rules-20246', Language: 'C#'

Unexpected error during workflow execution: Specified argument was out of the range of valid values.

Parameter name: numberOfIncrements.


1

There are 1 best solutions below

9
On

Do you have any VB.Net project within your solution? For now the only ticket opened linked to this kind of issue is this one: SVS-132 and is linked to having some VB.Net project and no VB.Net plugin.


EDIT:

We have created a ticket for this bug (here). But you should keep in mind that SonarLint for VS will not display warnings/errors from third party plugins (FxCop, StyleCop...) because we want to control the quality of the user experience within SonarLint. So in your case with no rule from SonarC# (C# plugin) enabled the connected mode will bring nothing.