Suddenly my whole project stopped compiling at all, showing the following message:
Program \'path_to_obj_project_folder\' does not contain a static \'
Maybe the "Output type" in properties->Application of the project must be a "Class Library" instead of console or windows application.
Just in case anyone is having the same problem... I was getting this error, and it turned out to be my <Application.Resources>
in my App.xaml file. I had a resource outside my resource dictionary tags, and that caused this error.
Just in case someone is still getting the same error, even with all the help above: I had this problem, I tried all the solutions given here, and I just found out that my problem was actually another error from my error list (which was about a missing image set to be my splash screen. i just changed its path to the right one and then all started to work)