rad
rad

Reputation: 1937

Sonar-runner Exception with .NET Project

I am trying to use Sonar with my .NET project (I have installed the c# plugin), but When I launch sonar-runner with this .properties file :

# identifiants du projet
sonar.projectKey=key.myproject
sonar.projectName=myproject
sonar.projectVersion=1.0
# fichier .sln
sonar.dotnet.visualstudio.solution.file="d:\dossier-source\myproject.sln"

# répertoires de sources
sources="d:\dossier-source"

# Tests
tests="d:\dossier-source\myproject.Tests"

# langage
sonar.language=cs

I have this exception :

Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org. picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public fin al void org.sonar.api.batch.bootstrap.ProjectBuilder.start()', instance 'org.son ar.plugins.csharp.core.VisualStudioProjectBuilder@11ecab56, java.lang.RuntimeExc eption: wrapper

Upvotes: 2

Views: 4007

Answers (1)

You should put this properties file in the same folder as your SLN file ("d:\dossier-source"), and with the following properties only:

sonar.projectKey=key.myproject
sonar.projectName=myproject
sonar.projectVersion=1.0
sources=.
sonar.language=cs

And then run "sonar-runner" from "d:\dossier-source".

This should work.

Upvotes: 2

Related Questions