AgileArchitect / MSBuild.SonarQube.Runner.Tool

MIT License
7 stars 12 forks source link

.Net Core 2.0 Build error #7

Closed FilipeDominguesGit closed 6 years ago

FilipeDominguesGit commented 6 years ago

Hello.

Got the following error while build a .Net Core 2.0 project:

C:\Projects\SolutionName\.sonarqube\bin\targets\SonarQube.Integration.targets(166,5): error MSB4062: The "IsTestFileByName" task could not be loaded from the assembly C:\Projects\SolutionName\.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:\Projects\SolutionName\src\Project.Name.csproj]

Is .Net core 2.0 not supported at the moment or am i doing something wrong ?

Thanks.

tomstaijen commented 6 years ago

Hi, I haven't tried that myself. This project only packs the binaries from https://github.com/SonarSource/sonar-scanner-msbuild as a nuget package. So, I suppose you better try there.

FilipeDominguesGit commented 6 years ago

@tomstaijen Thanks for the fast reply.

Your last PR #6 merge fixed the issue. I guess the version update did the job. Thanks! 👍