Dmitry Khryukin
Dmitry Khryukin

Reputation: 6438

Sharing app setting between two web projects

I have two separate solutions with web projects. I need to use one app setting in both. I don't want to duplicate this value in two web.config files - want to store it in one place (and not in machine.config!). These two web projects have other different appSettings and their web.config files are completely different.

Is it some way to share somehow just one appSetting between two web projects?

Upvotes: 0

Views: 1710

Answers (1)

DeanOC
DeanOC

Reputation: 7262

This link

explains how you can refer to another config file for some of the settings. The config file doesn't have to be stored in the same folder as your web.config file so you can share it with other projects.

Upvotes: 2

Related Questions