Hi,
I have updated sonarcfamily version from 6.3 to 6.4 but now i am unable to build please find the logs below
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=16ms
INFO: Sensor C# [csharp]
INFO: Sensor C# [csharp] (done) | time=0ms
INFO: Sensor CFamily [cpp]
INFO: Using build-wrapper output: C:\New folder\sonar-scanner-cli-3.2.0.1227-win
dows\sonar-scanner-3.2.0.1227-windows\bin\build_wrapper_output_directory\build-w
rapper-dump.json
INFO: Available processors: 8
INFO: Using 1 thread for analysis according to value of “sonar.cfamily.threads”
property.
INFO: Load project repositories
INFO: Load project repositories (done) | time=15ms
INFO: 0 compilation units analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 19.909s
INFO: Final Memory: 37M/379M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: The “build-wrapper-dump.json” file was found empty. Please make sure that
:
- you are using the latest version of the build-wrapper and the SonarCFamily a
nalyzer
- your compiler is supported
- you are wrapping your build correctly
- you are wrapping a full/clean build
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging
.
C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-wind
ows\bin>build-wrapper-win-x86-64.exe --out-dir build_wrapper_output_directory M
SBuild.exe /t:Clean;Rebuild
Microsoft ® Build Engine version 12.0.21005.1
[Microsoft .NET Framework, version 4.0.30319.36543]
Copyright © Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build,
please add the “/m” switch.
Build started 10.10.2019 13:00:44.
Project “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0
.1227-windows\bin\Example.sln” on node 1 (Clean;Rebuild target(s)).
ValidateSolutionConfiguration:
Building solution configuration “Debug|Any CPU”.
Project “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0
.1227-windows\bin\Example.sln” (1) is building "C:\New folder\sonar-scanner-cli
-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows\bin\Example\Example.csproj
" (2) on node 1 (Clean target(s)).
CoreClean:
Deleting file “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scann
er-3.2.0.1227-windows\bin\Example\bin\Debug\Example.dll”.
Deleting file “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scann
er-3.2.0.1227-windows\bin\Example\bin\Debug\Example.pdb”.
Deleting file “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scann
er-3.2.0.1227-windows\bin\Example\obj\Debug\Example.csprojResolveAssemblyRefe
rence.cache”.
Deleting file “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scann
er-3.2.0.1227-windows\bin\Example\obj\Debug\Example.dll”.
Deleting file “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scann
er-3.2.0.1227-windows\bin\Example\obj\Debug\Example.pdb”.
Done Building Project “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar
-scanner-3.2.0.1227-windows\bin\Example\Example.csproj” (Clean target(s)).
Project “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0
.1227-windows\bin\Example.sln” (1) is building “C:\New folder\sonar-scanner-cli
-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows\bin\Example.Tests\Example.
Tests.csproj” (3) on node 1 (Clean target(s)).
CoreClean:
Deleting file “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scann
er-3.2.0.1227-windows\bin\Example.Tests\obj\Debug\Example.Tests.csprojResolve
AssemblyReference.cache”.
Done Building Project “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar
-scanner-3.2.0.1227-windows\bin\Example.Tests\Example.Tests.csproj” (Clean targ
et(s)).
Project “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0
.1227-windows\bin\Example.sln” (1) is building “C:\New folder\sonar-scanner-cli
-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows\bin\Example.Tests\Example.
Tests.csproj” (3:2) on node 1 (Rebuild target(s)).
Project “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0
.1227-windows\bin\Example.Tests\Example.Tests.csproj” (3:2) is building “C:\New
folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows\b
in\Example\Example.csproj” (2:3) on node 1 (default targets).
GenerateTargetFrameworkMonikerAttribute:
Skipping target “GenerateTargetFrameworkMonikerAttribute” because all output fi
les are up-to-date with respect to the input files.
CoreCompile:
C:\Program Files (x86)\MSBuild\12.0\bin\Csc.exe /noconfig /nowarn:1701,1702 /
nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /highentropyva+ /re
ference:“C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NET
Framework\v4.5\Microsoft.CSharp.dll” /reference:“C:\Program Files (x86)\Refer
ence Assemblies\Microsoft\Framework.NETFramework\v4.5\mscorlib.dll” /referen
ce:“C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFrame
work\v4.5\System.Core.dll” /reference:“C:\Program Files (x86)\Reference Assem
blies\Microsoft\Framework.NETFramework\v4.5\System.Data.DataSetExtensions.dl
l” /reference:“C:\Program Files (x86)\Reference Assemblies\Microsoft\Framewor
k.NETFramework\v4.5\System.Data.dll” /reference:“C:\Program Files (x86)\Refe
rence Assemblies\Microsoft\Framework.NETFramework\v4.5\System.dll” /referenc
e:“C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramew
ork\v4.5\System.Xml.dll” /reference:“C:\Program Files (x86)\Reference Assembl
ies\Microsoft\Framework.NETFramework\v4.5\System.Xml.Linq.dll” /debug+ /debu
g:full /filealign:512 /optimize- /out:obj\Debug\Example.dll /subsystemversion
:6.00 /target:library /utf8output IAnimal.cs Animals\Cat.cs Animals\Dog.cs Pr
operties\AssemblyInfo.cs “C:\Users\tiwarashext\AppData\Local\Temp\491.NETFra
mework,Version=v4.5.AssemblyAttributes.cs”
CopyFilesToOutputDirectory:
Copying file from “obj\Debug\Example.dll” to “bin\Debug\Example.dll”.
Example -> C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3
.2.0.1227-windows\bin\Example\bin\Debug\Example.dll
Copying file from “obj\Debug\Example.pdb” to “bin\Debug\Example.pdb”.
Done Building Project “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar
-scanner-3.2.0.1227-windows\bin\Example\Example.csproj” (default targets).
ResolveAssemblyReferences:
Primary reference “nunit.framework, Version=3.0.5813.39031, Culture=neutral,
PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL”.
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets
(1635,5): warning MSB3245: Could not resolve this reference. Could not locate t
he assembly “nunit.framework, Version=3.0.5813.39031, Culture=neutral, PublicKe
yToken=2638cd05610744eb, processorArchitecture=MSIL”. Check to make sure the as
sembly exists on disk. If this reference is required by your code, you may get
compilation errors. [C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-s
canner-3.2.0.1227-windows\bin\Example.Tests\Example.Tests.csproj]
For SearchPath “{HintPathFromItem}”.
Considered “…\packages\NUnit.3.0.1\lib\net45\nunit.framework.dll”, b
ut it didn’t exist.
For SearchPath “{TargetFrameworkDirectory}”.
Considered “C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra
mework.NETFramework\v4.5\nunit.framework.winmd”, but it didn’t exist.
Considered “C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra
mework.NETFramework\v4.5\nunit.framework.dll”, but it didn’t exist.
Considered “C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra
mework.NETFramework\v4.5\nunit.framework.exe”, but it didn’t exist.
Considered “C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra
mework.NETFramework\v4.5\Facades\nunit.framework.winmd”, but it didn’t exist
.
Considered “C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra
mework.NETFramework\v4.5\Facades\nunit.framework.dll”, but it didn’t exist.
Considered “C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra
mework.NETFramework\v4.5\Facades\nunit.framework.exe”, but it didn’t exist.
For SearchPath “{Registry:Software\Microsoft.NETFramework,v4.5,Assem
blyFoldersEx}”.
Considered AssemblyFoldersEx locations.
For SearchPath “{AssemblyFolders}”.
Considered “C:\Program Files\IIS\Microsoft Web Deploy V3\nunit.framew
ork.winmd”, but it didn’t exist.
Considered “C:\Program Files\IIS\Microsoft Web Deploy V3\nunit.framew
ork.dll”, but it didn’t exist.
Considered “C:\Program Files\IIS\Microsoft Web Deploy V3\nunit.framew
ork.exe”, but it didn’t exist.
Considered “C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra
mework\v3.0\nunit.framework.winmd”, but it didn’t exist.
Considered “C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra
mework\v3.0\nunit.framework.dll”, but it didn’t exist.
Considered “C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra
mework\v3.0\nunit.framework.exe”, but it didn’t exist.
For SearchPath “{GAC}”.
Considered “nunit.framework, Version=3.0.5813.39031, Culture=neutral,
PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL”, which was not
found in the GAC.
For SearchPath “{RawFileName}”.
Considered treating “nunit.framework, Version=3.0.5813.39031, Culture
=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL” as a f
ile name, but it didn’t exist.
For SearchPath “bin\Debug”.
Considered “bin\Debug\nunit.framework.winmd”, but it didn’t exist.
Considered “bin\Debug\nunit.framework.dll”, but it didn’t exist.
Considered “bin\Debug\nunit.framework.exe”, but it didn’t exist.
AssemblyFoldersEx location: “{Registry:Software\Microsoft.NETFramework,v4.5,
AssemblyFoldersEx}”
C:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies\
C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.9\bin\plugins\Diagn
ostics
C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.9\ref\Caching
C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.9\ref
C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAss
emblies
C:\Program Files (x86)\Microsoft Chart Controls\Assemblies
C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.9\ref
GenerateTargetFrameworkMonikerAttribute:
Skipping target “GenerateTargetFrameworkMonikerAttribute” because all output fi
les are up-to-date with respect to the input files.
CoreCompile:
C:\Program Files (x86)\MSBuild\12.0\bin\Csc.exe /noconfig /nowarn:1701,1702 /
nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /highentropyva+ /re
ference:“C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2
.0.1227-windows\bin\Example\bin\Debug\Example.dll” /reference:“C:\Program Fil
es (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\Microsof
t.CSharp.dll” /reference:“C:\Program Files (x86)\Reference Assemblies\Microso
ft\Framework.NETFramework\v4.5\mscorlib.dll” /reference:“C:\Program Files (x
86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\System.Core.d
ll” /reference:“C:\Program Files (x86)\Reference Assemblies\Microsoft\Framewo
rk.NETFramework\v4.5\System.Data.DataSetExtensions.dll” /reference:“C:\Progr
am Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\Sy
stem.Data.dll” /reference:“C:\Program Files (x86)\Reference Assemblies\Micros
oft\Framework.NETFramework\v4.5\System.dll” /reference:"C:\Program Files (x8
6)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\System.Xml.dll
" /reference:“C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework
.NETFramework\v4.5\System.Xml.Linq.dll” /debug+ /debug:full /filealign:512 /
optimize- /out:obj\Debug\Example.Tests.dll /subsystemversion:6.00 /target:lib
rary /utf8output AnimalTests.cs Properties\AssemblyInfo.cs “C:\Users\tiwarash
ext\AppData\Local\Temp\491.NETFramework,Version=v4.5.AssemblyAttributes.cs”
AnimalTests.cs(2,7): error CS0246: The type or namespace name ‘NUnit’ could not
be found (are you missing a using directive or an assembly reference?) [C:\New
folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows\b
in\Example.Tests\Example.Tests.csproj]
AnimalTests.cs(9,10): error CS0246: The type or namespace name ‘Test’ could not
be found (are you missing a using directive or an assembly reference?) [C:\New
folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows\b
in\Example.Tests\Example.Tests.csproj]
AnimalTests.cs(9,10): error CS0246: The type or namespace name ‘TestAttribute’
could not be found (are you missing a using directive or an assembly reference?
) [C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-
windows\bin\Example.Tests\Example.Tests.csproj]
AnimalTests.cs(22,10): error CS0246: The type or namespace name ‘Test’ could no
t be found (are you missing a using directive or an assembly reference?) [C:\Ne
w folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows
bin\Example.Tests\Example.Tests.csproj]
AnimalTests.cs(22,10): error CS0246: The type or namespace name ‘TestAttribute’
could not be found (are you missing a using directive or an assembly reference
?) [C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227
-windows\bin\Example.Tests\Example.Tests.csproj]
AnimalTests.cs(6,3): error CS0246: The type or namespace name ‘TestFixture’ cou
ld not be found (are you missing a using directive or an assembly reference?) [
C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-win
dows\bin\Example.Tests\Example.Tests.csproj]
AnimalTests.cs(6,3): error CS0246: The type or namespace name ‘TestFixtureAttri
bute’ could not be found (are you missing a using directive or an assembly refe
rence?) [C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0
.1227-windows\bin\Example.Tests\Example.Tests.csproj]
Done Building Project “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar
-scanner-3.2.0.1227-windows\bin\Example.Tests\Example.Tests.csproj” (Rebuild ta
rget(s)) – FAILED.
Done Building Project “C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar
-scanner-3.2.0.1227-windows\bin\Example.sln” (Clean;Rebuild target(s)) – FAILE
D.
Build FAILED.
“C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-wi
ndows\bin\Example.sln” (Clean;Rebuild target) (1) ->
“C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-wi
ndows\bin\Example.Tests\Example.Tests.csproj” (Rebuild target) (3:2) ->
(ResolveAssemblyReferences target) ->
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targe
ts(1635,5): warning MSB3245: Could not resolve this reference. Could not locate
the assembly “nunit.framework, Version=3.0.5813.39031, Culture=neutral, Public
KeyToken=2638cd05610744eb, processorArchitecture=MSIL”. Check to make sure the
assembly exists on disk. If this reference is required by your code, you may ge
t compilation errors. [C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar
-scanner-3.2.0.1227-windows\bin\Example.Tests\Example.Tests.csproj]
“C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-wi
ndows\bin\Example.sln” (Clean;Rebuild target) (1) ->
“C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-wi
ndows\bin\Example.Tests\Example.Tests.csproj” (Rebuild target) (3:2) ->
(CoreCompile target) ->
AnimalTests.cs(2,7): error CS0246: The type or namespace name ‘NUnit’ could n
ot be found (are you missing a using directive or an assembly reference?) [C:\N
ew folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows
\bin\Example.Tests\Example.Tests.csproj]
AnimalTests.cs(9,10): error CS0246: The type or namespace name ‘Test’ could n
ot be found (are you missing a using directive or an assembly reference?) [C:\N
ew folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows
\bin\Example.Tests\Example.Tests.csproj]
AnimalTests.cs(9,10): error CS0246: The type or namespace name 'TestAttribute
’ could not be found (are you missing a using directive or an assembly referenc
e?) [C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.122
7-windows\bin\Example.Tests\Example.Tests.csproj]
AnimalTests.cs(22,10): error CS0246: The type or namespace name ‘Test’ could
not be found (are you missing a using directive or an assembly reference?) [C:
New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-window
s\bin\Example.Tests\Example.Tests.csproj]
AnimalTests.cs(22,10): error CS0246: The type or namespace name ‘TestAttribut
e’ could not be found (are you missing a using directive or an assembly referen
ce?) [C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.12
27-windows\bin\Example.Tests\Example.Tests.csproj]
AnimalTests.cs(6,3): error CS0246: The type or namespace name ‘TestFixture’ c
ould not be found (are you missing a using directive or an assembly reference?)
[C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-w
indows\bin\Example.Tests\Example.Tests.csproj]
AnimalTests.cs(6,3): error CS0246: The type or namespace name ‘TestFixtureAtt
ribute’ could not be found (are you missing a using directive or an assembly re
ference?) [C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2
.0.1227-windows\bin\Example.Tests\Example.Tests.csproj]
1 Warning(s)
7 Error(s)
Time Elapsed 00:00:02.07
C:\New folder\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-wind
ows\bin>
Can you please suggest why build is failing