-
Create Solutions & Class Diagrams with SolutionUtil (slnutil)
New features in SolutionUtil! 1) Create entire solutions (including MAUI with xUnit Tests) and 2) UML class diagrams from .NET Assemblies
-
How to Fix C# Primary Constructor Warning: CS9107 “Parameter is captured into the state of the enclosing type”
In refactoring a C# project, the author encountered the CS9107 warning in Visual Studio 2022 while using Primary Constructors. This warning arises from a shared variable reference between the primary constructor and the base class. The fix involves using the base class variable exclusively to avoid dual references, eliminating the warning.
-
How to Fix Azure App Service Remote Debugging in Visual Studio 2022
I was getting a strange authentication error when trying to remote debug an Azure App Service using Visual Studio 2022. The issue was ultimately due to basic authentication being disabled. Here’s how to fix remote debugging in VS2022 and Azure App Services.
-
CORS Error: WebAPI Request Works from Swagger but Fails from Angular
An app that worked stopped working. The service calls were failing from Angular to the REST APIs. Turns out that I had a CORS misconfiguration in the Azure App Service.
-
How to Add Performance Counters to your .NET Core Application
The post discusses ways to monitor the performance of .NET Core applications for DevOps observability and for performance tuning. We start by explaining how to implement performance metrics in .NET Core applications using System.Diagnostics.Metrics. We wrap up by showing you how to use a tool called dotnet-counters to view the live performance data.
-
Fix: Azure App Services Log Stream is Empty for .NET Core App
When you’re trying to debug your .NET Core app that’s running on an Azure App Service, the Log Stream is an essential tool. So how do you connect the console logs from your .NET Core app to the Log Stream output?
-
.NET Core Solution & Project Utilities (slnutil)
Announcing the Solution & Project Utilities (slnutil)! These are a collection of the handy utilities that I’ve written for working with .NET Core Solutions, Projects, and configuration files. I hope you find them useful.