I copied three classes in from another WPF project and then changed their namespaces.
Now when I run the project, I get errors in the \".g.cs\"
I found another way to solve this by deleting your 'obj' folder and rebuilding.