Skip to content
This repository has been archived by the owner on Sep 23, 2019. It is now read-only.

SimTsai/DotnetCoreWinService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DotnetCoreWinService

Windows service container of dotnet core

A container for run dotnet core in windows service

##How to use.

    1. run command as administrator create service for this container.
sc create <serviceName> binPath= <path for this container>
    1. config container, edit config.json
{
  "dotnetPath": "<path to your dotnet.exe or blank use envPath>",
  "configs": [
    {
      "assemblyPath": "<path to your dotnet core entrypoint>.dll",
      "workDirectory": "blank or path to your work directory",
      "parameter": "parameters",
      "environmentVariables": [
        {
          "Key": "environment variable name",
          "Value": "environment variable value"
        }
      ]
    }
  ]
}
    1. run command as administrator to run the container.
sc start <serviceName>

About

Windows service container of dotnet core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages