question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

run baget as windows service

See original GitHub issue

Hi

how can i run baget as windows service?

when i create service using sc.exe it can’t run!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
WernerMairlcommented, May 12, 2020

You can use a tool like the Windows Service Wrapper

1reaction
SeppPennercommented, Jun 9, 2020

@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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found