0

How do we separate configuration files (appsettings.json) for different environments in dotnet core 1.1 console applications such as a windows service.

Note: I am not looking for web applications which suggest using ASPNETCORE_ENVIRONMENT.. Is there a similar technique that applies to console applications such as a windows service?

blogs4t
  • 1,705
  • 2
  • 13
  • 25
  • Possible duplicate of [.NET Core console application, how to configure appSettings per environment?](https://stackoverflow.com/questions/39573571/net-core-console-application-how-to-configure-appsettings-per-environment). If you don't want to use ASPNETCORE_ENVIRONMENT, then provide another way for your app to understand what the environment is. Maybe you will pass this as application parameters (args) or end up using another env variable. You as a developer always know which kind of env is used, so help the app with this. – Set Oct 09 '17 at 15:21
  • ok. thank you. i will check this out. – blogs4t Oct 09 '17 at 19:04

0 Answers0