Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
We are going to create Window Service with help of "Microsoft.Extension.Hosting (6.0)" And "Microsoft.Window.Extension.Hosting.WindowService" and others and step by step implementation

Why you need to uninstall old versions of .NET Core: security risks explained

the implementation of the CarCompany CRUD operations within an ASP.NET Core Web API, following the Clean Architecture principles, has been successfully structured. The separation of concerns into layers such as Web API, Application, Domain, and Infrastructure promotes maintainability and scalability. Leveraging the Flyweight Pattern ensures efficient management and sharing of common data, particularly with the inclusion of the FlyweightProperties within the CarCompany entity.

In this article, we will explore the features of BenchmarkDotNet and demonstrate how to use it to benchmark your .NET code.

By adhering to Clean Architecture principles, the codebase promotes a clear separation of concerns, ensuring that business logic is isolated from implementation details. This not only enhances code maintainability but also facilitates unit testing and the evolution of the application over time.

ASP.NET Core Web API using the Onion Architecture and Prototype Design Pattern. Note that this example is simplified for demonstration purposes, and in a real-world scenario, you might want to add more features, error handling, validation, and security measures.

In this post, we will explore the concept of mocking in unit testing using xUnit, discuss different types of mocks, and show how to write testable code that supports mocking.

This implementation serves as a foundation for building robust, modular, and scalable ASP.NET Core Web APIs. As the project evolves, additional features, security measures, and optimizations can be incorporated while adhering to the principles of the chosen architectural style.

This article is an Introduction of Rate Limiting middleware in ASP.NET Core 7.

In this article, you willl learn how to upload single and multiple files using the .NET Core 6 Web API.

This article contains explanation and code sample of how to implement circuit breaker in .net core

This example provides a basic structure for a Three-Tier Architecture in an ASP.NET Core Web API, implementing a Singleton Design Pattern for the Data Access Layer. Remember to adjust the code based on your specific requirements and consider using dependency injection for better testability and maintainability.

In this blog post, we will explore how to enhance your assertion capabilities in .NET Core unit testing, using the xUnit testing library. We'll start by examining the xUnit's built-in assertion methods and then introduce two alternative assertion libraries: FluentAssertions and Shouldly.

Building a microservices API Gateway with YARP in ASP.NET Core Web API provides a flexible and scalable solution for managing and routing traffic in a microservices architecture. By incorporating features such as service discovery, authentication, authorization, load balancing, rate limiting, and logging, you can create a robust and secure gateway that orchestrates communication between diverse microservices.

In the ever-evolving landscape of technology, the fusion of Artificial Intelligence (AI) and the .NET framework has paved the way for groundbreaking innovations. This dynamic duo offers a robust platform for developers to create intelligent applications that can analyze, learn, and adapt. In this article, we will explore the integration of AI with .NET and delve into a real-world use case that exemplifies the power of this combination.

In this article, we will explore how to seamlessly integrate Dynamics 365 CRM with .NET using Entity Framework Core, backed up with practical examples.

In ASP.NET Core Web API, you can use wrapper classes to standardize the format of your API responses. A wrapper class typically contains a status code, a message, and the actual data payload. This helps in providing a consistent structure for your API responses, making it easier for clients to understand and handle them.

Enabling CORS (Cross-Origin Resource Sharing) in .NET 7 involves configuring your application to allow cross-origin requests. This is important when your web application hosted on one domain needs to make requests to a server hosted on a different domain. CORS helps ensure that these cross-origin requests are safe and authorized.

Creating a CRUD (Create, Read, Update, Delete) API in ASP.NET Core with a MySQL database is a common scenario in web development. In this article, we'll walk through building a complete ASP.NET Core Web API with a real-world use case. We'll create a model called CSharpCornerArticle and implement CRUD operations for it using Entity Framework Core with MySQL.

In this article, we've built a complete CRUD API using ASP.NET Core and MongoDB. You've learned how to define a model, set up a MongoDB database, create a MongoDB context, and implement CRUD operations in a controller. This API can serve as a foundation for building more complex applications with MongoDB as the database backend.

Creating a complete CRUD (Create, Read, Update, Delete) operation using GraphQL in an ASP.NET Core Web API can be quite extensive, so I'll provide you with a simplified example using a "Task Management" application as a real-world use case. In this example, we'll manage tasks with GraphQL.

Microsoft Power BI empowers developers to craft highly customizable visuals using Vega and Vega-Lite's declarative JSON syntax. Create custom visuals in Power BI with our step-by-step guide, including installation, data integration, and advanced customization options.

In this example, I'll demonstrate how to perform CRUD (Create, Read, Update, Delete) operations using Dapper in an ASP.NET Core Web API with a real-world use case model named CSharpCornerArticle. This model represents articles, and we'll create endpoints to manage these articles.

Learn how to implement feature flags in .NET Core using appsettings.json or the FeatureToggle library for controlled releases, A/B testing, rollbacks, and environment-specific settings.

This article guides you through reading configuration values from the Appsettings.json file in .NET Core using IConfiguration and the Options Pattern, covering connection strings, key-value pairs, and structured data.

How to use userAgent to avoid bots in .NET Core applications. Implementing a middleware layer that filters incoming HTTP requests for known bot "User-Agent" strings is a practical way to mitigate unwanted bot traffic in private online applications or websites. This middleware intercepts each request, extracts the "User-Agent" header, and compares it to a predefined list of user-agent strings commonly associated with bots.

Explore ASP.NET Core SignalR's AutoReconnect feature, simplifying real-time communication. Learn how it ensures seamless connectivity, even in the face of network disruptions, with code examples.

In today's software development landscape, code quality is essential for success. It ensures smooth application functioning, simplifies maintenance, and enhances security. SonarLint is a vital tool that empowers developers to improve code quality from project inception.
Everything on .NET Core, not only its articles: the .NET Core page →
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article