dotnet / dotnet/AspNetCore.Docs

.NET 6 changes for Host ASP.NET Core in a Windows Service

Open
#25,572 3 comments 0 reactions 1 assignee Claimed by @adityamandaleeka View on GitHub
doc-enhancement re-Aditya Source - Docs.ms
Dominant language
C#
Stars
13.1k
Forks
24.6k
Avg merge
1d 3h
Merged PRs (30d)
97

Description

* Fix #23387 by copying over [Create the Windows Service](https://docs.microsoft.com/en-us/dotnet/core/extensions/windows-service#create-the-windows-service)
* Update all the old SDK and other versions to the current version.
* [Worker Service template](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-6.0&branch=pr-en-us-25573&tabs=visual-studio#worker-service-template). Don't call it ASP.NET Core worker service, call it .NET worker service and link that to [Worker Services in .NET](https://docs.microsoft.com/en-us/dotnet/core/extensions/workers)
* What parts of the article change by using the new minimal hosting model?
* [App configuration](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-6.0&tabs=visual-studio#app-configuration)
* Point to [Minimal API Windows Service Sample](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/host-and-deploy/windows-service/samples/6.x/WebAppServiceSample)
* Update instructions

@tothalexlaszlo please review this issue and provide feedback on what needs to be updated for .NET 6

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: b0bd8cb8-7e28-8c4d-a550-3aea8f3ab4dd
* Version Independent ID: 4b60d24e-ef05-15e5-10b4-483094081bf3
* Content: [Host ASP.NET Core in a Windows Service](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-6.0&tabs=visual-studio)
* Content Source: [aspnetcore/host-and-deploy/windows-service.md](https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/host-and-deploy/windows-service.md)
* Product: **aspnet-core**
* Technology: **aspnetcore-hostdeploy**
* GitHub Login: @Rick-Anderson
* Microsoft Alias: **riande**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.