Specify MSBuild Working Directory

Hi,

When running SonarQube through the MSBuild project which builds my C# application, it fails with the following message:

  The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
  Possible causes:
    1. The project has not been built - the project must be built in between the begin and end steps
    2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 12.0 upwards are supported
    3. The begin, build or end steps have not all been launched from the same folder


It works when I manually execute MSBuild from the project folder. I reproduced the issue when I execute MSBuild from a different folder.

Would it be possible to add a “Start In” option on the MSBuild FinalBuilder action? TeamCity does this to solve the issue: http://stackoverflow.com/questions/39201642/error-integration-sonarqube-msbuild-runner-with-teamcity

Alternatively, what else can be done to solve this issue? (Except using an “Execute Program” action instead of MSBuild action.)

Thanks,
Carl

Hi Carl,

I have added a Working Directory property to the msbuild action. There is no UI entry for this as we don’t foresee this as a feature that everyone would use. The default directory we set works in most cases. Requiring or presenting the working directory option might confuse more than it would help.

You will be able to access the property in the UI from the properties tab when the action is selected. When the value is set, the specified directory will be used as the working directory.

http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_1926.exe