“OutputPath Property is not set for Project” Error when building a Windows Azure Cloud Service in VS 2010

If you’ve even seen the following error when trying to build a Windows Azure Cloud Service Visual Studio 2010:

OutputPath property is not set for project 'CloudService1.ccproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='HPD'.  

The solution is to delete the Platform environment variable that may have been added to your machine as it conflicts with an environment variable of the same name that MSBUILD uses. (more info here)


This environment variable is added on HP machines and does impact a number of different scenarios with Visual Studio and Expression Blend.