Properties does not exist in the current context

at compile-time, Visual Studio generates a c# class which allows access to user and application settings. the generated class is defined in the default namespace specified in the project settings.

  • you may have to prefix any access to the Properties namespace with the default namespace defined in the project settings;
  • or you may change the default namespace: go to project settings, application tab, and edit the default namespace of the project.

I had this same problem occur when I had been copying and pasting code for plug-ins. It turns out that I had accidentally left the namespace of the other project in place when I copied. By changing the namespace back to the appropriate project, I was able to use the Properties.

Tags:

C#

Wpf