The issue is that
the System.Windows.Application
class[
^] has
a property called Properties
[
^], which is hiding your application's
Properties
namespace. Any code within the
Application
class which tries to access
Properties
is looking at the property, not the namespace.
To work around the problem, you can either use the fully-qualified name to refer to the settings:
var aSetting = YourNamespace.Properties.Settings.Default.SomeSetting;
or you can add an alias for the
Settings
class:
namespace YourNamespace
{
using Settings = Properties.Settings;
public partial class YourApplication : Application
{
public YourApplication()
{
var aSetting = Settings.Default.SomeSetting;
}
}
}