asp.net - Differences between App.Config and Web.Config? -


when building desktop app in wpf can read documentation of problems , safely subsititute 'app.config' when people's answer's refer 'web.config'?

if there glaring gotchas have out for?

tnx

read documentation:

web.config , app.config

the choice of configuration file name determined hosting environment choose service. if using iis host service, use web.config file. if using other hosting environment, use app.config file.

in visual studio, file named app.config used create final configuration file. final name used configuration depends on assembly name. example, assembly named "cohowinery.exe" has final configuration file name of "cohowinery.exe.config". however, need modify app.config file. changes made file automatically made final application configuration file @ compile time.

in using app.config, file configuration system merges app.config file content of machine.config file when application starts , configuration applied. mechanism allows machine-wide settings defined in machine.config file. app.config file can used override settings of machine.config file; can lock in settings in machine.config file used. in web.config case, configuration system merges web.config files in directories leading application directory configuration gets applied.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -