Understand GitHub Copilot Chat Window in Visual Studio Code |
In the previous article, we learned how to install GitHub Copilot in Visual Studio Code. In this article, we will learn how to use GitHub Copilot Chat in Visual Studio Code. We will first understand various parts of the GitHub Chat window and then we will ask a few ASP.NET Core questions to GitHub Copilot Chat. |
Posted On : 15 Apr 2025 |
|
Leverage GitHub Copilot in Visual Studio Code and ASP.NET Core |
AI is everywhere. Almost all the leading software development platforms and tools use AI in some of the other way. As an ASP.NET Core developer wanting to use Visual Studio Code for your development, you must know how to leverage the power of GitHub Copilot from within the VS Code editor. In this series of articles I am going to explain a few features of GitHub Copilot the can help you increase your productivity, efficiency and code quality. |
Posted On : 01 Apr 2025 |
|
Use Scalar to invoke CRUD operations of a Web API |
In the previous article we learned to add Swagger and Scalar to a Web API project. I have already explained Swagger integration in more detail here and here. So, it's time to focus on Scalar and learn how to test Web API CRUD operations. |
Posted On : 13 Jan 2025 |
|
Understand OpenAPI document generation in ASP.NET Core |
If you are following the latest happenings in the ASP.NET space then you are probably aware that Swagger UI support has been removed from the default Web API project template. The default project template now simply provides support for generating OpenAPI documents. Of course, you can still use third party tools such as Swagger and Scalar to read the OpenAPI documents. |
Posted On : 02 Dec 2024 |
|
Perform custom fluent validation in Blazor |
In the previous article we created a custom validation attribute to validate Blazor's EditForm. If you developed ASP.NET Core MVC apps before, you might have used FlientValidation library for validation instead of using validation attributes. Can we use FluentValidation in Blazor? |
Posted On : 28 Oct 2024 |
|
Perform custom validation in Blazor |
Validating form data is one of the most common task in any web application. ASP.NET Core offers a set of validation attributes for performing model level data validations. Blazor apps can also make use of the same validation attributes. Some of the validation attributes include [Required], [StringLength], [Range], and [Compare]. At times you want to perform some validation not covered by these attributes. This is when you want to create a custom validation attribute. In this article we will discuss how that can be done. |
Posted On : 14 Oct 2024 |
|
Use keyed services in ASP.NET Core |
A few years ago I wrote an article describing how ASP.NET Core DI container behaves when multiple implementations of an interface are registered. It's time to revisit the concept because .NET 8 has something better to offer -- Keyed Services. I am going to use the same example that I used in the earlier article. We will modify the example for .NET 8. |
Posted On : 23 Sep 2024 |
|
Store connection string in Azure App Service and Azure Key Vault |
In the previous article you learned to deploy an ASP.NET Cor web app in an Azure App Service using two techniques. Recollect that we are storing the database connection string in the appsettings.json file. And we need to change it to match the production setup at the time of deployment. In this article we will discuss two better ways of storing the database connection string. Firstly, we will learn to store the connection string into the Azure App Service itself. And then we will store it in Azure Key Vault. |
Posted On : 02 Sep 2024 |
|
|
Use IExceptionHandler to handle errors in ASP.NET Core |
No matter how carefully you design your web pages and components there is always a possibility that your application throws an error at runtime. To trap and handle such unforeseen circumstances you can use IExceptionHandler interface introduced in ASP.NET Core 8. |
Posted On : 20 May 2024 |
|