I have an ASPNET Core 2.0 Windows Service executing on server A. It was created using:
sc create...
Server A has sytem ASPNETCORE_ENVIRONMENT="Staging". The Windows Service uses appsettings.Staging.json for settings.
I want to install a duplicate Windows service for demo purposes, which needs to point to appsettings.demo.json for settings.
How can the ASPNET Core 2.0 demo Windows Service execute with an unique ASPNETCORE_ENVIRONMENT="Demo"?
Thanks.