Build and publish a Windows Service (C# Code) in dotnet (.NET) Core

Published: 28 August 2023
on channel: Gautam Mokal
1k
13

This video illustrates how we can use Dotnet (.NET) Core technology to build a windows service.

Here are the steps for the same
STEPS:
1. Create Worker Application
2. Add package Microsoft.Extensions.Hosting.WindowsServices for hosting as windows service
dotnet add package Microsoft.Extensions.Hosting.WindowsServices
3. Publish/Release using sc.exe (requires administration mode)
sc.exe create "Servicename" binpath="ExePath"
4. Change/Re-Publish using sc.exe

Credits:
Music: YouTube Audio Library
Technology Stack: C .NET Core, Windows Services
Editor: Visual Studio Code


Watch video Build and publish a Windows Service (C# Code) in dotnet (.NET) Core online without registration, duration 07 minute 00 second in high hd quality. This video was added by user Gautam Mokal 28 August 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1 thousand once and liked it 13 people.