I am trying with below command . dotnet sonarscanner begin /k:${project.name} but it is not picking value from sonar-project.properties file. i am working on .net project with latest version of dotnet sonarscanner.
please help me out. TIA
How to read values of sonar-project.properties file in. dotnet sonarscanner begin /k:${project.name}
Hi,
Welcome to the community!
The SonarScanner for .NET doesn’t use sonar-project.properties. You’ll want to pass any extra values on the analysis command line.
HTH,
Ann
So, as per comment we have to pass variables through command line, sonar-project properties file is of no use in .net and we should not use as it doesn’t support
Hi,
is there any update on this, on whether SonarScanner for .NET uses sonar-project.properties?
In particular, we wanted to use it for setting
sonar.issue.ignore.block
Thanks
Mauro
Hi Mauro,
Welcome to the community!
This thread is over a year old. Per the FAQ, we prefer you create a new thread rather than resurrect anything more than 2 months old. Ordinarily, I’d ask you to create a new thread with all your details. But this one is easy: there has been no changes, and as far as I know, no intent to change. This thread points you to the docs you need on passing this value.
Ann