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

Latest commit

 

History

History
33 lines (31 loc) · 820 Bytes

README.md

File metadata and controls

33 lines (31 loc) · 820 Bytes

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>