This is an old topic but I do have a trick that works if anyone still needs to know.
When starting a new solution - uncheck “[] Create project directory within the solution directory” (don’t really need it anyway) and you may notice a red X beside “MyProjectName.Desktop” (for example) that says “invalid configuration” when you hover over the X.
- Right click on it
- Tools >> Edit
- Ctrl-H (replace ALL) “Any CPU” with “AnyCPU” [no space]
- File >> Save, Clean All, rebuild - should work.