c# - Is SonarQube VSTS Task version 3.0.1 unable to support multiple msbuild types? -


i trying make use of sonarqube task targeting dotnetcore solution, within solution there couple of projects use dotnetstandard framework. when attempting analyze code, new sonarqube task throws error stating unable locate microsoft.build.utilities.v4.0 shown below:

2017-07-26t20:33:04.5685747z  [c:\agent\_work\6\.sonarqube\bin\targets\sonarqube.integration.targets(166,5): error msb4062: "istestfilebyname" task not loaded assembly c:\agent\_work\6\.sonarqube\bin\sonarqube.integration.tasks.dll. not load file or assembly 'microsoft.build.utilities.v4.0, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a'. system cannot find file specified. confirm <usingtask> declaration correct, assembly , dependencies available, , task contains public class 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 return code: 1

the integrationtest project written on dotnetcore framework, project references 2 projects written on dotnetstandard framework. possible have task support multiple frameworks?

with output have posted seems using dotnet command dotnet build or dotnet msbuild.

according link https://www.sonarsource.com/resources/product-news/news.html#2017-04-13-sonarqube-scanner-for-msbuild-2-3-released sonarqube-scanner-msbuild supports msbuild 15 or later.

so try using msbuild directly instead of dotnet command. if doing in ci environment may need install msbuild tools 2017. download located @ bottom of page.

also, make sure using sonarqube-scanner-msbuild


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -