A few people have been getting the following error when trying to Build a project after installing Visual Studio 2010 RC:
The OutputPath property is not set for project 'CloudService7.ccproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='MCD'.
There are variations on this “Platform=” bit, as I got HCD on my machine.
After about an hour of diving in to my build properties and reading up on “Any CPU” configuration settings, it turns out that a pretty simple solution is to be had.
It turns out that HP machines from the factory come with several global variables set for it’s own update software, including things such as “PCBRAND”. One of those variables are, you guessed it, PLATFORM.
In VS 2010 RC the build environment started respecting “Platform” as a compile time System variable. Therefore, because no such platform exists in your deployment configuration, it fails.
It’s a pretty simple fix, just delete the PLATFORM variable.
You need to do the following steps:
- Right-mouse click "Computer"
- Go to "Properties"
- Click "Advanced System Settings"
- Click "Environment Variables"
- Under "System Variables" find "PLATFORM" and delete it.
- Restart Visual Studio
Here’s hoping I saved you some Bing’ing and frustration.