The best way would be to include the config value in your first project too, to make it self-contained.
You can use a static class in the project that has the web.config file and expose the value in the web.config in an internal
property
You can use something like this:
static class Utility
{
internal static string FileUploadRoot
{
get
{
return ConfigurationManager.AppSettings["FileUploadRoot"];
}
}
}
Another solution would be to add the file as a link to your project.
- Right click on you project in solution explorer.
- Select Add Existing Item...
- Select the web.config file in the OpenFileDialog, but choose the Add as Link option in the dialog.
