run baget as windows service
See original GitHub issueHi
how can i run baget as windows service?
when i create service using sc.exe
it can’t run!
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Run BaGet on your Computer
Run BaGet ¶ · Install the .NET Core SDK · Download and extract BaGet's latest release · Start the service with dotnet BaGet.dll...
Read more >Create Windows Service using BackgroundService - .NET
Learn how to create a Windows Service using the BackgroundService in .NET. ... If you're using Visual Studio Code, you can run ....
Read more >How do I run a Java .jar file as a Windows service on ...
jar file as a Windows service on a Windows 2008 server? I have a jar file called SomeJavaFile.jar located under the C:\SomeDirectory directory ......
Read more >Hosting your own NuGet Server and Feed for build artifacts ...
NOTE: You'll notice that the docs for things like "running BaGet on Azure" aren't complete. This is a great opportunity for YOU to...
Read more >How to Set Up All the NuGet Package Managers [In Depth]
While the below steps can be run on Linux with .NET Core or in a Docker image, these instructions will be used to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can use a tool like the Windows Service Wrapper
@PurTahan You should probably take a look at this article: https://devblogs.microsoft.com/aspnet/net-core-workers-as-windows-services/ and at my project under https://github.com/SeppPenner/NetCoreMQTTExampleCluster/blob/master/src/NetCoreMQTTExampleCluster.Cluster/Program.cs where you can see this at work. I have also the option to run my service in Linux (SystemD). As far as I know, this is the recommended way from Microsoft to run services in NetCore3.1+ right now.
I can add this to the project if it’s desired. However, I don’t know how or if this will affect the Docker build here. This is something @loic-sharma needs to answer. That said, just hit me up if you need help here 😃