Building Directory contains space

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.

  1. Right click on it
  2. Tools >> Edit
  3. Ctrl-H (replace ALL) “Any CPU” with “AnyCPU” [no space]
  4. File >> Save, Clean All, rebuild - should work.
7 Likes