简体   繁体   中英

share app.config with different projects

I have multiple projects in my solution. Across all the projects I have app.config file with all the config sections same for them. How can I share the config file in different projects but when I change the main one, the changes should be replicated across other app config files.

Thanks.

Put the app.config in a shared location (within the project directory, not on a network drive or something like that) and use the Add As Link feature in Visual Studio:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM