java.io.IOException: Cannot run program "C:\WINDOWS\Micros oft.NET\Framework\v4.0.30319\MSBuild.exe": CreateProcess error=2, The > system cannot find the file specified at > org.sonar.api.utils.command.CommandExecutor.execute(CommandExecutor.java:86) > at > org.sonar.dotnet.tools.stylecop.StyleCopRunner.execute(StyleCopRunner.java:143) > at > org.sonar.plugins.csharp.stylecop.StyleCopSensor.launchStyleCop(StyleCopSensor.java:122) > at > org.sonar.plugins.csharp.stylecop.StyleCopSensor.analyse(StyleCopSensor.java:106) > at > org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)*** > * > > at org.sonar.batch.phases.Phases.execute(Phases.java:93) at > org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)*** > * > > at org.sonar.batch.bootstrap.Module.start(Module.java:83) at > org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:111) at > org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:106) at > org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:101)

marc.info | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    'Re: [sonar-user] Minimum requirement to execute the C# plugin' - MARC

    marc.info | 8 months ago
    java.io.IOException: Cannot run program "C:\WINDOWS\Micros oft.NET\Framework\v4.0.30319\MSBuild.exe": CreateProcess error=2, The > system cannot find the file specified at > org.sonar.api.utils.command.CommandExecutor.execute(CommandExecutor.java:86) > at > org.sonar.dotnet.tools.stylecop.StyleCopRunner.execute(StyleCopRunner.java:143) > at > org.sonar.plugins.csharp.stylecop.StyleCopSensor.launchStyleCop(StyleCopSensor.java:122) > at > org.sonar.plugins.csharp.stylecop.StyleCopSensor.analyse(StyleCopSensor.java:106) > at > org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)*** > * > > at org.sonar.batch.phases.Phases.execute(Phases.java:93) at > org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)*** > * > > at org.sonar.batch.bootstrap.Module.start(Module.java:83) at > org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:111) at > org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:106) at > org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:101)

    Root Cause Analysis

    1. java.io.IOException

      Cannot run program "C:\WINDOWS\Micros oft.NET\Framework\v4.0.30319\MSBuild.exe": CreateProcess error=2, The > system cannot find the file specified at > org.sonar.api.utils.command.CommandExecutor.execute(CommandExecutor.java:86) > at > org.sonar.dotnet.tools.stylecop.StyleCopRunner.execute(StyleCopRunner.java:143) > at > org.sonar.plugins.csharp.stylecop.StyleCopSensor.launchStyleCop(StyleCopSensor.java:122) > at > org.sonar.plugins.csharp.stylecop.StyleCopSensor.analyse(StyleCopSensor.java:106) > at > org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)*** > * > > at org.sonar.batch.phases.Phases.execute(Phases.java:93) at > org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)*** > * > > at org.sonar.batch.bootstrap.Module.start(Module.java:83) at > org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:111) at > org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:106) at > org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:101)

      at org.sonar.batch.bootstrap.Module.start()
    2. SonarQube
      Module.start
      1. org.sonar.batch.bootstrap.Module.start(Module.java:83)
      1 frame