Home Dashboard Directory Help

PLATFORM set to HPD after install of RC by Mike J Kelly


 as By Design Help for as By Design

Sign in
to vote
Type: Suggestion
ID: 532754
Opened: 2/11/2010 12:12:47 AM
Access Restriction: Public


When I went to build my Azure solution after uninstalling Beta 2 and installing the RC, I got an error mentioning "OutputPath Property is not set" and showing the Platform as 'HPD'. This solution built fine with the Beta 2 VS earlier today. I poked around a bit and eventually found a blog post that mentioned that if the PLATFORM environment variable is set, it can screw up MSBuild. Sure enough, my PLATFORM environment variable was set to HPD (not sure if this is because I am on an HP Pavillion desktop PC). I deleted this environment variable, rebooted VS 2010 and the solution built fine.
Sign in to post a comment.
Posted by Tomas Niño on 5/6/2011 at 8:27 PM
Thanks Michael, this really sort my issue too.
Posted by Microsoft on 2/20/2010 at 8:06 AM

Thanks for taking the time to send us this suggestion.

The issue you are seeing is based on the use of the PLATFORM environment variable, as you mentioned. MSBuild (which is used by Visual Studio to build projects) uses the environment variables from the environment from which it launches. This is by design, and allows us to configure MSBuild through the environment settings. It so happens that the variable PLATFORM, or inside MSBuild $(Platform), is one of the key variables needed to setup a build. So, if it is set in the environment, it would cause an issue when loading or building projects, as you have described.

For Visual C++, we include a file called VCVARS.BAT, that is executed when you load a Visual Studio command prompt. This batch file basically adds a set of environment variables and paths to the command prompt environment, which are not found in the environment when just clicking on the default Command Prompt in Windows. You could use something like this to setup your environment (specifically to remove the PLATFORM environment variable).

Since this is the design of how this is intended to work, I am going to resolve this suggestion as "By Design".


Chuck England
Visual Studio Platform
Program Manager - MSBuild
Posted by Microsoft on 2/11/2010 at 3:03 AM
Thank you for your feedback, we are currently reviewing the feedback you have submitted.
Sign in to post a workaround.