My previous post was about NDepend on Linux and how to utilize the NDepend to check your code quality. Now, I will explain some functions of NDepend for Visual Studio 2022. Let's get started.
Download NDepend & Install the Visual Studio Extension
- If you want to use the Trial version or have bought the license, please download here
-
After downloading and extracting it, please open the
VisualNDepend.exe
installer. -
If you don't have the license yet, press
Start Evaluation
. If you have the license, please insert into the box after theActivate
button and click theActivate
button. After activate the license, you may clickContinue
button. -
Since I will integrate with Visual Studio. Please select
Install Visual Studio Extension
button. -
Press
Install
for Visual Studio 2022. Please wait until the process is successful.
Let's Explore
I will use different code/repositories to explore my code. I will use my old project when I was a Computer Science Student.
berv-uni-project / tweety
Tweety, Twitter Tweet Analyzer
Tweety
Tweety, Twitter Tweet Categorizer. Using KMP and Boyer Moore Algorithm that find matching string.
Build Status
Demo & Related Projects
About App
This app build with C#
(Based Language for Logic in KMP & Boyer Moore Algorithm) and ASP.NET MVC
(v0.1), ASP.NET Core MVC
(v0.2).
This app using Twitter API
, so you must have token key.
Youtube Review (v0.1) : Youtube Link
Development
- Setup your Twitter API key in Environment
Deployment
- You can deploy to Azure (read the documentation) to deploy ASP .NET Core MVC (v0.2 or above).
Use Docker
You can use docker-compose.yml
and provide environment like this:
CUSTOMER_KEY=...
CUSTOMER_SECRET=...
TOKEN=...
TOKEN_SECRET=...
Created By
LICENSE
BSD 3-Clause License
BSD 3-Clause License
Copyright (c) 2018, Bervianto Leo
โฆDependency Graph
-
I will attach NDepend Project to my project.
-
You will get this dialog. Anyway, I will try the Dependency Graph.
The Dependency Graph is a cool feature. Usually, when I want to know and understand the business flow or class interaction, I need to read the code from the top (controller/etc.). The Dependency Graph really helps me to browse my code easily and interactively.
Code Coverage
-
Since in this project I use Unit Test, so I can explore more the Code Coverage too.
I also can see the visualization of my code coverage. This is cool!
TLDR
So, what do you think? It's awesome, right? Mostly my main job is maintaining the existing code. That is why I'm highlighting the feature of Dependency Graph and Code Metrics View.
Anyway, I'm going to write something about DevOps Extension: Code Quality NDepend for Azure DevOps, TFS 2017 and TFS 2018. So stay tune!
Top comments (0)