开发者

sonar c# eco system: how to specify diffent binaries folder

开发者 https://www.devze.com 2023-04-02 21:43 出处:网络
I am actually evaluate sonar (sonarsource.org) for using it with c#. Is it possible to specify a different binaries folder (MsBuild OutDir Property) for csharp projects? I use a custom OutDir on our

I am actually evaluate sonar (sonarsource.org) for using it with c#.

Is it possible to specify a different binaries folder (MsBuild OutDir Property) for csharp projects? I use a custom OutDir on our build server to have the binaries/Buildoutput of every csharp project in one place.

Tried (开发者_开发技巧with java runner and sonar-project.properties)

binaries=Binaries

And

sonar.gendarme.assemblies=Binaries/*.*
sonar.fxcop.assemblies=Binaries/*.*

BTW: how to specify search paths for gallio code coverage? My test assemblies are also not in bin/Debug.

Any Ideas?


Found out that wild cards aren't possible. But: should the path to the assembly be relative or absolute? Relative...

File basedir = (vsProject == null) ? solution.getSolutionDir() : vsProject.getDirectory();
...
File file = new File(basedir, filePath);

But still no success with sonar.fxcop.assemblies=../Binaries/Assembly1.dll;../Binaries/Assembly2.dll

0

精彩评论

暂无评论...
验证码 换一张
取 消