Is app.config used only at compile time or is it required at runtime?

In WCF services and various other .NET applications, I understand that app.config is used to specify parameters. This file is used only at compile time, and settings are saved in the assembly or are necessary at runtime? Does it depend on the type of project?

+3
source share
4 answers

This is the time of work. There System.Configurationare many APIs in the namespace that you can use to read settings from the application configuration file ( Web.configin web applications, assembly.exe.configin others.)

+5
source

app.config YourAssemblyName.exe.config. --. - - web.config, .

+6

App.config is a .NET replacement for older .ini files ..

+1
source

If you use app.config to provide configuration options for the application, then this will be necessary at runtime.

0
source

Source: https://habr.com/ru/post/1715668/


All Articles