I am trying to use the SonarQube task solution to target dotnetcore, but there are several projects inside the solution that use the dotnetstandard infrastructure. Therefore, when you try to parse the code, a new SonarQube task generates an error stating that it cannot find Microsoft.Build.Utilities.v4.0, as shown below:
2017-07-26T20:33:04.5685747Z [C:\agent\_work\6\.sonarqube\bin\targets\SonarQube.Integration.targets(166,5): error MSB4062: The "IsTestFileByName" task could not be loaded from the assembly C:\agent\_work\6\.sonarqube\bin\SonarQube.Integration.Tasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. 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.ITask. [C:\agent\_work\6\s\PSG.Identity.Contracts\PSG.Identity.Contracts.csproj]
2017-07-26T20: 33: 05.1623435Z ## [error] Error: C: \ Program Files \ dotnet \ dotnet.exe failed with return code: 1
The IntegrationTest project is written on the dotnetcore platform, but this project refers to two projects that are written on the dotnetstandard platform. Is it possible for this task to support multiple frameworks?
source share