Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Cannot acces Property settings from a common project

$
0
0

Hello All,

I have a project called Common, and it contains classes and code that is used by three other projects. I have a Settings.setting file, and would like to share that along the three projects too, but when I try to access it by calling:

Common.Properties.Settings.Default.Save(); 

this fails with a error message that says:

The property cannot be used in this context because the set accessor is inaccessible.

So my question is:

1. Is the Settings.setting file designed to be used per project and not across projects?

2. If need be for only one Settings.setting file, what are myoptions? Do I have access to the code where the set message is defined, to change it to make it public?

Regards,

Harriet


Viewing all articles
Browse latest Browse all 18858

Trending Articles