Hi,
I just install a fresh docker service from image sonarqube:25.7.0.110598-community with Embeded database for testing.
I use version MSBuildVersion :
Version MSBuild 17.11.9+a69bbaaf5 pour .NET Framework
17.11.9.46202
and version SonarScanner.MSBuild :
SonarScanner for MSBuild 10.3
Using the .NET Framework version of the Scanner for MSBuild
Default properties file was found at C:\Users\buu\Documents\AppPortables\SonarQube\sonar-scanner-10.3.0.120579-net-framework\SonarQube.Analysis.xml
Loading analysis properties from C:\Users\buu\Documents\AppPortables\SonarQube\sonar-scanner-10.3.0.120579-net-framework\SonarQube.Analysis.xml
I analyse a C# project and some issues are well detected but I can’t understand why the “Condition always true” is not detected for the code below :
if ((!String.IsNullOrEmpty(input)) && (input != “” && Main.STRING_TO_REPLACE_LIST.Count > 0))
I expect the input != "" to be detected as “Condition always True”, why not?
Note that I’ve previously made some test with image sonarqube:9.9.8-community and the issu was detected on this version.