When I try to publish my (WPF, C#) application, I get these errors: Cannot publish because a project failed to build. Could not find file \'obj\\x86\\Debug
Closing and Opening Visual Studio worked for me.