- Clone the source and execute following commands(.NET Core SDK required)
- dotnet restore
- dotnet build
- dotnet publish -o=C:\Dev\publish
- sc create MusicStoreAsService binPath= "C:\Dev\publish\MusicStoreAsService.exe"
- http://localhost:5050/ should work now.
muffadalis/MusicStoreAsWindowsService
Sample application; Running Asp.NET Core application as a Windows service
C#