On Windows for a console app I use the App.config , appSettings section to store some configuration parameter, see example:
<Configuration>
<AppSettings>
<Add key="param1" value="value1 "/>
<Add key="param2" value="value2 "/>
</ AppSettings>
</Configuration>
Using .Net Core for a console app on Linux, where I save the configuration, is there something like App.config
?
If it exists, you can use whatever name you want for the configuration file but usually it's something like appsettings.json, the technique for doing this is called "strongly typed configuration classes" which implies that you create your configuration class as any other class and during application startup you link this class against a json file, which will be created and maintained by .Net core.
For more information, check here:
https://blogs.msdn.microsoft.com/fkaduk/2017/02/22/using-strongly-typed-configuration-in-net-core-console-app/
I am from my cell phone and it would be a bit difficult for me to place the required code.