Windows service container of dotnet core
A container for run dotnet core in windows service
##How to use.
-
- run command as administrator create service for this container.
sc create <serviceName> binPath= <path for this container>
-
- 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"
}
]
}
]
}
-
- run command as administrator to run the container.
sc start <serviceName>