Is it possible that multiple services or applications have one single configuration file

If I have several applications or services, all of which have the same configuration value (for example, they all have access to the same database), is there a way that they share the same single configuration file instead of duplicating the values in all its configurations

+3
source share
3 answers

You can use the attribute configSourceto point to a specific file.

Use the same file location from multiple files .config.

, , ..

+2

machine.config , . ASP.NET web.config , machine.config .

+2

0

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


All Articles