views:

53

answers:

2

Hello,

I have a solution with one asp.net-mvc-2 project, one web service, one class library and three normal desktop apps. Currently I need to copy all app.config settings from one project to the other. That is a nightmare if I want to change something.

I know there is a solution to store all these information in the global .config files, but I am looking for a solution to store the values dedicated to my solution not to my machine. Is that possible?

A: 

Assuming you could have a path where both your website and webservice could access it, then you could potentially use the appsettings " file " attribute to have the settings stored in one common place. Refer http://www.codeproject.com/KB/dotnet/appsettings_fileattribute.aspx Hope this helps!

InSane
+1  A: 

See this post. Might point you in the right direction

net-configuration-app-config-web-config-settings-settings

Jason Watts