InvalidPathException: Illegal char<*> in sonar.sources

Hi I’m using dotnet-sonarscanner v 5.1.0.
When I execute command like
dotnet sonarscanner begin /d:sonar.sources=MyLib/**/
I see error java.nio.file.InvalidPathException: Illegal char <*> at index 6: MyLib/**/

Hey there.

  • You shouldn’t set sonar.sources when using the Scanner for .NET – it’s all sorted out for you automatically, deriving the sources from the .sln or .csproj that gets built
  • sonar.sources does not anyway accept patterns – only a comma separated list of directories or files

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.