I have a solution with multiple projects in, and all need to share the same My.Settings, or at least have local copies of the same set. How do I get the My.Settings from one of the projects into the others?
Asked
Active
Viewed 401 times
1
-
What do you have in there? Embedded resources, strings and such? – Marcel N. Jul 02 '12 at 16:05
3 Answers
0
I think you can add it as an existing item in each project which will create a shurtcut to it. here is my reference , so no need to update each project aside.
Hope it helps

HichemSeeSharp
- 3,240
- 2
- 22
- 44
0
Well you need to add the settings file to your solution, then you add the existing item to your project as a link item
How can I share Configuration Settings across multiple projects in Visual Studio?
0
The settings defined in My.settings are available to all assemblies which reference the assembly that defines those settings as long as they are public.
First ensure that "Access Modifier" is set to "Public" in the settings designer for My.settings.
Then, to access the settings, use the defining project's namespace: {My namespace}.Properties.Settings.Default.{my setting}

carlin.scott
- 6,214
- 3
- 30
- 35