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 had defined XML namespace shortcuts in my AssemblyInfo.cs
[assembly: XmlnsDefinition("http://www.example.com/wpf", "MyCorp.Wpf.OldNamespace")]
where the old namespace was still present. Searching through all my *.xaml files obviously did not help …
After fixing the shortcuts, the error went away immediately.