Improve your .NET Apps Quality with these technologies

Improve your .NET Apps Quality with these technologies

Hello, I hope you are doing great!!!

Today, we are going to discuss how you can improve your ".NET Software Quality", however, before we begin, please remember you can help us help you by becoming a GitHub Sponsor here: Sponsor @efonsecab on GitHub Sponsors

Let's start.

One of the first things you should do in order to improve your ".NET Software Quality" is to "Treat warnings as errors", you can do that by using the project's properties page withing Visual Studio or by manually editing the ".csproj" file.

That will help you keep the Warnings tab clean.

The best thing is to target having "0 Errors", "0 Warnings", "0 Messages".

Something additional you should do to each project is adding the "Sonar Analyzer NuGet package".

Once you have the package added, you should start frequently running "Code Analysis", and take actions on the results.

One more step you should do is to include a ".editorconfig" file in the Visual Studio solution, this file will take precedence over the Visual Studio configuration which can be different among users, this file effectively makes it so that every single user using the Visual Studio solutions executes the same rules, for styling, naming, and even Analyzers.

Another thing you should do is to have your projects in a GitHub repository, and then include it in SonarCloud, and why not having the main statuses displayed in your README.

SonarCloud does an amazing job with "Code Analysis" and giving you recommendations on how to improve your code.

Your main goal should be having everything in green!!!

In order to learn more about "Code Analysis" check its official documentation, there you will also learn how to Suppress certain code analysis violations when you may think is the best to suppress them, however, be careful with it, try to avoid it as much as possible.

Visual Studio Code analysis documentation (Windows) - Visual Studio (Windows) | Microsoft Learn

One more thing you should do, is to integrate your solution with ".NET Aspire", since it helps you a lot by easily configuring "Open Telemetry" and includes a Dashboard for when in local Development, this Dashboard, helps you track actions being performed, queries being executed along with their duration, as well as metrics.


I hope this article has been helpful to you, please help us reaching more persons by sharing it in your Social Networks.

Have a great day, and don't forget to Sponsor @efonsecab on GitHub Sponsors

要查看或添加评论,请登录

Eduardo Fonseca的更多文章

  • Blazor How-To: Display Toast Notifications

    Blazor How-To: Display Toast Notifications

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

    3 条评论
  • How to use Instagram APIs with C# and .NET - Part I

    How to use Instagram APIs with C# and .NET - Part I

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

    3 条评论
  • Blazor How-To: Dynamically Set Page Render Mode

    Blazor How-To: Dynamically Set Page Render Mode

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • Features in the FairPlay platform

    Features in the FairPlay platform

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • Blazor How-To: Creating a Blog platform - Part 1

    Blazor How-To: Creating a Blog platform - Part 1

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • Progress Update on The FairPlay Platform

    Progress Update on The FairPlay Platform

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • How can Software Developers fight boredom

    How can Software Developers fight boredom

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • Using Artificial Intelligence to Improve Data Validations

    Using Artificial Intelligence to Improve Data Validations

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • How to Create Image Shares for LinkedIn Using C#

    How to Create Image Shares for LinkedIn Using C#

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • How to overcome legacy-fatigue?

    How to overcome legacy-fatigue?

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

社区洞察

其他会员也浏览了