I am new to this Sonarqube, so i thought to doing a test into my local project. I downloaded the sonarqube community edition (sonarqube-8.9.6.50800).
After generating token for my project, the analyzing is working fine.
while executing dotnet build command I am getting below error
error CS2046 : Command-line syntax error : ‘C:\Users\7504561\OneDrive - TeleTech Holdings, Inc\Sonar Qube Testing Project\SonarQubeTest.sonarqube\out\0\Issues.json’ is not a valid value for the ‘/errorlog:’ option. The value must be of the form ‘[,version={1|1.0|2|2.1}]’. [C:\Users\7504561\OneDrive - TeleTech Holdings, Inc\Sonar Qube Testing Project\SonarQubeTest\SonarQubeTest.csproj]
I don’t know what i am doing wrong.
My project is a simple .netcore web app (3.1). Normal building is working fine and is running also.
Can anyone please help me out with this.
Tried the different version also (sonarqube-9.2.4.50792). Same error
I was able to reproduce this issue locally when building under any directory that has a comma or semi-colon in the name (the version of .NET the project is targeting doesn’t seem to have any effect).
It looks like an error in how the C# compiler parses the /errorlog: argument. I’ve raised a bug against the compiler.
Does the analysis succeed if you run it from a directory that does not have a comma or semi-colon in the name?