Azure-Samples / service-fabric-dotnet-quickstart

Service Fabric quickstart .net application sample
MIT License
131 stars 199 forks source link

Environment variable #9

Open FedericoBernardi opened 6 years ago

FedericoBernardi commented 6 years ago

The app runs in Production because is the default environment. .AddEnvironmentVariables() in Startup doesn't load the environment from ASPNETCORE_ENVIRONMENT and launchSettings.Development.json is never loaded. In order to manage the environment you need to set it in the Settings.xml first and then overwrite it in ApplicationManifest and ApplicationParameters