First, .net 5 is out of support and should not be used for new projects. Second it’s just a nuget package you add, rather than project type.
https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service?pivots=dotnet-7-0
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to create a program written in C# .NET 5.0 as a Windows service program.
I am currently using Visual Studio 2019, but I do not see a Windows Service template for .NET, only for .NET Framework. Has the template been discontinued? Does this mean there is no way to create a Windows service project with .NET 5.0 or .NET Core?
I have tried various methods but have been unsuccessful. Can you provide a solution?
thank you,
First, .net 5 is out of support and should not be used for new projects. Second it’s just a nuget package you add, rather than project type.
https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service?pivots=dotnet-7-0