Add project to Sonarqube via visual studio

Hi there

Sonarqube version : 7.1
Integration : Visual Studio 2017

Issue: I was following this guide https://writeabout.net/2016/05/16/use-sonarlint-to-work-on-your-technical-debt-in-visual-studio/#comments to BIND my project to Sonarqube, but I don’t have a project in Sonarqube to BIND my project too. How do I add a project to Sonarqube using Visual Studio?

Can someone please help and share the details on how to do it.

Best regards

David,

The only way to operate in connected mode is if you have a project on SonarQube to bind to, and that creation cannot happen through Visual Studio itself.

Depending on the permissions on your SonarQube instance, you may be able to get that project created from your first analysis of the source code (https://docs.sonarqube.org/display/SONAR/Analyzing+Source+Code), or your instance may require that an administrator (or another user with the appropriate access) create the project (https://docs.sonarqube.org/display/SONAR/Project+Existence)

Once the project is created, through either method, you can bind to that project using SonarLint and take advantage of connected mode.

I’d also make sure you’re looking at the latest documentation, but I’m unable to link to it as I’ve already included two links in this post. Google “sonarlint visual studio” and the first link will take you to the right place.

Colin

1 Like

Hi Colin

I am so grateful that you responded. With your advice I was able to get it right.

Best regards
Pepe

Quick notes on this nice discussion.

Link for thread completeness: SonarLint for Visual Studio | Code Quality & Security Extension

Thanks for pointing this out. The restriction is currently a default one which applies to fresh new members. Once you reach basic level (simply a matter of visiting a few topics and reading content) then it’s waived. Will monitor in case it’s too impactful.

Thank you very much Nicolas.

I followed the thread, I am able to link the project also… But I am not able to see any issue in sonar cloud… could you help?

Hello, please see my answer on your other topic.