In this post, I show how replacing Swagger with Scalar in ASP.NET Core and NET10. Scalar is a UI that improve the experience in using the APIs
Search Results for: .net core
OpenAPI Enhancements in ASP.NET Core 10
A deep dive into the latest OpenAPI and Swagger improvements in ASP.NET Core 10, including Minimal APIs, versioning, Native AOT support, and UI customization.
Methods not Allowed in ASP.NET Core
If you create APIs, you can face that same Methods not Allowed in with ASP.NET Core, NET6 or NET7.
Adding an API using ASP.NET Core
Adding an API using ASP.NET Core is the subject of this new post related to explain how to implement a project in a clean architecture
Architecting ASP.NET Core applications
I want to explain how architecting ASP.NET Core applications for enterprise projects based on clean architecture principles
Setting up the application ASP.NET Core
I’m going to explain how setting up the application for ASP.NET Core with clean architecture from a blank project to complete solution
Creating .NET Core API with versioning
A versioning allows clients to continue using the existing REST API and migrate their applications to the newer API when they are ready.
Datatables in ASP.NET Core Server-Side
We will learn how to use Datatables in ASP.NET Core with Server-Side Processing with a simple real-world implementation to understand better
Create View Components in ASP.NET Core
In this post, I want to show how creating View Components in ASP.NET Core is simple and powerful and allows us to have reusable components.
ASP.NET Core on Windows with IIS
How to run a website built with ASP.NET Core on a Windows machine with IIS and create a self-certificate to test your application properly
Features for AdminLTE with ASP.NET Core
I want to add new cool features for AdminLTE with ASP.NET Core. The source code of this template is on GitHub #aspnetcore #adminlte #mvc #gravatar #breadcrumbs #navigation
Integrating AdminLTE with ASP.NET Core
I explain how integrating AdminLTE with ASP.NET Core 3.1 MVC or really any other Bootstrap based UI Frameworks completely from scratch
Protect static files with ASP.NET Core
I explain how to Protect static files with ASP.NET Core Razor Pages and IdentityServer 4. Working with almost every extensions
Windows Forms Designer for .NET Core
Windows Forms designer for .NET Core projects is now available as a preview in Visual Studio 2019 version 16.6!
Using an in-memory repository. Keys will not be persisted to storage. – ASP.NET Core under IIS
One of the main benefits of building a new .NET project using .NET Core is cross platform deployment, however, IIS will still be a common home for ASP.NET Core web applications.
Accessing the OIDC tokens in ASP.NET Core 2.0
In ASP.NET Core 1.1 So, for example, in ASP.NET Core 1.x, if you wanted to access the tokens (id_token, access_token and refresh_token) from your application, you could set the SaveTokens property when registering the OIDC middleware: 1 2 3 4 5 6 7 8 // Inside your Configure method app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions(“Auth0”) { // Set all your OIDC options… // and then set SaveTokens to save tokens to the AuthenticationProperties SaveTokens = true }); You would then subsequently be able to retrieve those tokens by calling GetAuthenticateInfoAsync inside your controllers, and…
Using dependency injection in a .Net Core console application
One of the key features of ASP.NET Core is baked in dependency injection. Whether you choose to use the built in container or a third party container will likely come down to whether the built in container is powerful enough for your given project. For small projects it may be fine, but if you need convention based registration, logging/debugging tools, or more esoteric approaches like property injection, then you’ll need to look elsewhere. Why use the built-in container? One question that’s come up a few times, is whether you can…
Gravatar Tag Helper for .NET Core 2.1
A tag helper is any class that implements the ITagHelper interface. However, when you create a tag helper, you generally derive from TagHelper, doing so gives you access to the Process method. In your ASP.NET Core project, create a folder to hold the Tag Helpers called TagHelpers. The TagHelpers folder is not required, but it’s a reasonable convention. Now let’s get started writing some simple tag helpers. Tag helpers use a naming convention that targets elements of the root class name (minus the TagHelper portion of the class name). In…
Scanning .NET Target Frameworks with PowerShell
Here a useful script to scan a folder to find out what .NET Target Frameworks is used across lot of projects with PowerShell
Building a Custom Matching Pairs Component in .NET MAUI
We will walk through the design and implementation of a flexible, reusable Matching Pairs component for .NET9 MAUI
.NET is the most loved platform
.NET is the most loved platform! It’s won most loved platform 3 years in a row in the annual StackOverflow developer survey
Uploading files in ASPNET Core
Uploading files in ASP.NET Core is largely the same as standard full framework MVC but now we can stream large files. Here I explain how
Azure Pipelines Error NETSDK1045: The current .NET SDK does not support targeting .NET 6.0
Azure Pipelines Error NETSDK1045: The current .NET SDK does not support targeting .NET 6.0. How to fix this error in pipeline on Azure DevOps
Managing a .NET Service with Blazor
In this post I will show you how creating a cross-platform and managing a .NET Service with Blazor that can be installed on Windows and Linux
Factory method in C# Core
Factory method in C# Core offering great flexibility in creating different objects. The Abstract class may provide a default object