Analyze Asp.Net MVC Code Quality with SonarQube in 10 Minutes!

preview_player
Показать описание
In this video we will learn how to analyze ASP.NET/C#/VB.NET project with SonarQube. Code analysis for ASP.NET/C#/VB.NET project in three easy steps. After configure a project in SonarQube, there are three commands which will need to run in Command Line under Solution startup project directory.

There are some prerequisite to run code analysis, which are;
1. SonarQube must be installed on local machine.
3. SonarScanner for .NET must be configured.
4. Visual Studio 2015 Update 3, VS2017, VS 2019 or VS 2022 must be installed in the system.
5. Little Knowledge about Command Line (optional).
________________________________________________________________
If you have all above things ready, go to the next step which is 'How to run code analysis for ASP.NET/C#/VB.NET project'. Otherwise watch my video on that how to install, configure and setup the SonarQube server on local machine. A complete video for beginner as well as expert who want to setup the SonarQube server on local machine/server.
________________________________________________________________
Here is the Video link for How to install, configure and setup SonarQube for Windows 10.

Also like and share the channel if the content benefits you and don't forget to tell about the improvements in comments.

_____________________________/SOCIAL LINKS\___________________________________
___________________________________________________________________________
#SonarQube #AspNet #SonarScanner #CodeAnalysis #codequality

00:00 SonarQube: How to analyze ASP.NET/C#/VB.NET project
5:25 Run the command 1 with SonarQube Scanner for .NET - Analyze
7:38 Run the command 2 with SonarQube Scanner for .NET - Build
9:48 Run the command 3 with SonarQube Scanner for .NET - Generate Report
11:28 Browse through the code analysis report in SonarQube
12:28 How to effectively use SonarQube static code analysis report
Рекомендации по теме
Комментарии
Автор

Thank you very much, I had some issues with the paths in order to use correctly this tool, I searched in many sites and vids but no one explained what I needed until I found your video. You are the best man, keep it going with your great job 🤗

ColoqueNombreAqui
Автор

Sound perfect. Thanks for sharing such a great video. The way you explain things is awesome.

umaralvi
Автор

It's a great tutorial, loved the way it explained.
Issue: I did all the steps correctly but getting "The main branch of this project is empty." and no files are there. does anyone come across with such issue.

hardikpatel
Автор

Thank you for the video. I followed your instructions for couple of my projects. For project1, I got stuck at step 2. The msbuild did not like the solution (sln) file. So I gave up. For the 2nd project I got stuck on step 3 to run the command for "End". I get this error: The SonarScanner for MSBuild integration failed: SonarQube was unable to collect the required information about your projects.

I have no idea how to get pass these errors. Both of my projects are ASP.Net 4.8 and build as a website. Any recommendations are much appreciated.

fanzfanzilla
Автор

Thanks for your video and sharing your knowledge. Why should your code pass with 1.3k Code Smells? That is silly. I'm having the same issue and still didn't figure out how to make it not pass.

dgroh
Автор

Amazing video. Can you help me understand why coverage % is displayed as zero in your sonarqube report?

tracyquick
Автор

when I run command2, I will get the error " CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException", I don't know why, this is my path “C:\Program Files\Microsoft Visual /t:Rebuild

enqbzii
Автор

When i m running the second command it is saying enalble parallel build and build failed

vskvicky
Автор

Where can i get this STSWeb Demo code?

rehanbhombal