Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- how is SonarQube deployed: zip, Docker, Helm
- what are you trying to achieve
- what have you tried so far to achieve this
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
Hi,
Latest versions of SonarQube and Sonar-Scanner are being used and SonarQube is deployed using zip file.
Trying to scan .NET Framework repos
I am facing these errors while running the second command among the three commands for .NET scan.
While to achieve it facing errors as follows:
**(ResolveComReferences target) ->**
** C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(2015,5): error MSB3091: Task failed because "AxImp.exe" wa **
**s not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "AxImp.exe" in the "bin" subdirectory ben **
**eath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\ **
**Windows\v8.0A\WinSDK-NetFx40Tools-x86. You may be able to solve the problem by doing one of the following: 1) Install the Microsoft **
**Windows SDK. 2) Install Visual Studio 2010. 3) Manually set the above registry key to the correct location. 4) Pass the correct location into the "ToolPath" parameter of the task. [D:\PROJECTS\HARYANA\TOM\transport_tom\TOM\TOM.csproj]**
**(SonarCategoriseProject target) ->**
** D:\PROJECTS\HARYANA\TOM\transport_tom\.sonarqube\bin\targets\SonarQube.Integration.targets(231,5): error MSB4062: The "IsTestByReference" task could not be loaded fr**
**om the assembly D:\PROJECTS\HARYANA\TOM\transport_tom\.sonarqube\bin\SonarScanner.MSBuild.Tasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities.Core, V**
**ersion=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask>**
**declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.I**
**Task. [D:\PROJECTS\HARYANA\TOM\transport_tom\Updater\Updater.csproj]**
**"D:\PROJECTS\HARYANA\TOM\transport_tom\Duali\Duali.csproj" (Rebuild target) (4) ->**
** D:\PROJECTS\HARYANA\TOM\transport_tom\.sonarqube\bin\targets\SonarQube.Integration.targets(231,5): error MSB4062: The "IsTestByReference" task could not be loaded fr**
**om the assembly D:\PROJECTS\HARYANA\TOM\transport_tom\.sonarqube\bin\SonarScanner.MSBuild.Tasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities.Core, V**
**ersion=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask>**
**declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.I**
**Task. [D:\PROJECTS\HARYANA\TOM\transport_tom\Duali\Duali.csproj]**
Is it because of the java version non-compatibility or if the Sonar isn’t supporting the version of the .NET project that has been built on?
Could you please guide and help me achieve to scan it successfully.
Thanks