Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Properties does not exist in the current context

Tags:

c#

wpf

I have to store some strings in the Settings file of my project. However, I am not able to access the Settings file to store the strings.

I definitely have accessed Properties file in an earlier project without facing any problems to store values.

Properties.Settings.Default.test = ...
MyApp.Properties.Settings.Default.test = ...

But here in the current project, I am constantly being driven mad by getting the Properties does not exist in the current context Is there any setting or something that has changed because of which Properties does not appear in Intellisense?

like image 866
Cipher Avatar asked Mar 12 '12 10:03

Cipher


1 Answers

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.

like image 199
Daniel Avatar answered Sep 25 '22 06:09

Daniel