Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/323.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# MSBuild SonarQube Runner Resharper插件接收到SonarQube中不存在的跳过信息错误文件_C#_Msbuild_Sonarqube_Sonarqube Msbuild Runner - Fatal编程技术网

C# MSBuild SonarQube Runner Resharper插件接收到SonarQube中不存在的跳过信息错误文件

C# MSBuild SonarQube Runner Resharper插件接收到SonarQube中不存在的跳过信息错误文件,c#,msbuild,sonarqube,sonarqube-msbuild-runner,C#,Msbuild,Sonarqube,Sonarqube Msbuild Runner,我正在运行以下命令: SonarQube - V 5.1.1 MSBuild SonarQube Runner - V 1.0 Resharper Plugin - V 2.0 Csharp Plugin - V 4.1 跳过我的所有resharper错误,并将以下问题记录到命令窗口: - D:\SonarQube\sonarqube-5.1.1\MSBuild\MSBuild.SonarQube.Runner.exe begin /key:Test6MSBKey /name:Test

我正在运行以下命令:

SonarQube - V 5.1.1
MSBuild SonarQube Runner - V 1.0
Resharper Plugin - V 2.0
Csharp Plugin - V 4.1
跳过我的所有resharper错误,并将以下问题记录到命令窗口:

    - D:\SonarQube\sonarqube-5.1.1\MSBuild\MSBuild.SonarQube.Runner.exe begin /key:Test6MSBKey /name:Test6MSBProject /version:2.0
    - msbuild Test6MSB.sln
    - D:\SonarQube\sonarqube-5.1.1\MSBuild\MSBuild.SonarQube.Runner.exe end
我不确定为什么没有使用MSBuild运行程序将代码文件放入SonarQube中。 在尝试使用MSBuild runner之前,我能够在一个类似的解决方案上成功地使用sonar runner.bat(v2.4),该解决方案具有相同的Resharper插件和使用Resharper命令行inspectcode可执行文件创建的xml,并且Resharper问题已成功添加到解决方案/项目的sonarqube中


但是,我注意到C#4.1插件的文档中说,sonar runner的使用现在已被弃用,使用MSBuildSonarQube runner 1.0来分析C#项目,但是,当我尝试使用MSBuildSonarQube runner时,我得到了如上所述的跳过错误。

这是由MSBuild SonarQube Runner 1.0版中存在的测试项目检测机制中的错误引起的。它已在新版本1.0.1中修复,请参见

如果您的项目路径中没有“测试”,是否上载结果?这就是问题所在。一旦我将“测试”移出路径,结果就会上传到sonarqube数据库中。感谢您的链接和回复。请在您的问题上添加
sonarqube
msbuild
c#
以便于查找。我们仍然存在相同的问题,但不是由上述测试检测引起的。这是挂号票吗。是的,这是很有可能的-你可以通过查看这些“跳过的”问题是否真的出现在SonarQube中来验证-如果出现,那么这些日志消息显然是多余的,并且被SonarShpr-21覆盖
10:20:11 PM  22:20:11.013 INFO  - Sensor org.sonar.plugins.resharper.CSharpReSharperProvider$CSharpReSharperSensor@1659dbf
10:20:11 PM  22:20:11.013 INFO  - Parsing ReSharper report: D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB.xml
10:20:11 PM  22:20:11.054 INFO  - Skipping the ReSharper issue at line 15 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Form1.cs" is not
in SonarQube.
10:20:11 PM  22:20:11.054 INFO  - Skipping the ReSharper issue at line 16 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Form1.cs" is not
in SonarQube.
10:20:11 PM  22:20:11.054 INFO  - Skipping the ReSharper issue at line 17 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Form1.cs" is not
in SonarQube.
10:20:11 PM  22:20:11.054 INFO  - Skipping the ReSharper issue at line 18 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Form1.cs" is not
in SonarQube.
10:20:11 PM  22:20:11.054 INFO  - Skipping the ReSharper issue at line 19 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Form1.cs" is not
in SonarQube.
10:20:11 PM  22:20:11.054 INFO  - Skipping the ReSharper issue at line 20 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Form1.cs" is not
in SonarQube.
10:20:11 PM  22:20:11.054 INFO  - Skipping the ReSharper issue at line 21 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Program.cs" is no
t in SonarQube.
10:20:11 PM  22:20:11.054 INFO  - Skipping the ReSharper issue at line 22 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Program.cs" is no
t in SonarQube.
10:20:11 PM  22:20:11.055 INFO  - Skipping the ReSharper issue at line 23 whose
file "D:\Chris\Schneider\Projects\SampleCode\Test6MSB\Test6MSB\Properties\Assemb
lyInfo.cs" is not in SonarQube.
10:20:11 PM  22:20:11.055 INFO  - Sensor org.sonar.plugins.resharper.CSharpReSha
rperProvider$CSharpReSharperSensor@1659dbf (done) | time=42ms