Visual Studio 2019 stopped real-time scanning

Hello everyone,

I apologize if this has been answered somewhere else, but I haven’t been able to find it anywhere (yet).

I am a brand new user of SonarLint and SonarQube. I use Visual Studio 2019 as my IDE, and installed the SonarLint extension to get going. After running a Code Analysis it found a bunch of issues that I went through and fixed.

At this point, I installed SonarQube on a separate server on my network and configured everything. I created a Project in SonarQube and successfully sent a MSBuild scan to review the results.

Lastly, I went back into my Visual Studio project and Connected it to the SonarQube server. It created the .ruleset files.

For some reason, Visual Studio is no longer doing any real-time scanning and I’m not getting any SonarLint warnings/errors/info messages at all.

Has this happened to anyone else? If so, what did you to do resolve it?

Thank you!!

1 Like

Follow-up to my issue, it appears that SonarLint has stopped working in my “Debug” profile in Visual Studio. If I switch to my “UAT” or “Release” profiles it works fine.

Are there any settings in my .csproj file that I can/should look at to resolve this?

Hello @eforden,

You made this post late last year. You probably have resolved this.

Could you please give a guide to how you resolved this?

I joined this community a few minutes ago and I’d like to know how SonarLint really work.

Regards,
Peace