Devlico.Us
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @devlicious

Derik Whittaker

Thoughts on Software Development, .Net, OOP, Design Patterns and all things cool



Nasty MSBuild Error - MSB4126 "Debug|HPD" issue

Today I was trying to put together a simple NAnt build script for a 'play' project of mine.  This build script is real simple, it only calls MSBuild right now.  However, when I was running the script I kept getting the message 'error MSB4126: The specified solution configuration "Debug|HPD" is invalid.'

For the life of me I could not figure out what this was.  I spent time on Google, and could not find anything useful.  What made this more strange was that I could compile via the solution file.

Finally it dawned on me to check my Environmentimage Variables on my  machine.  About half way down was a variable 'Platform' with a value of 'HPD'.  I removed that variable, and rebooted, now all is right with the world again (ok, all is right with the build).

Hope this helps someone else out, cause I know it was pissing me of.

Till next time,



Comments

Derik Whittaker said:

That did not seem to work for me.

# February 29, 2008 5:49 PM

Johnny Triantafyllopoulos said:

Thanks for the tip, it saved me hours of frustration!

# April 9, 2008 6:46 AM

sylvain rodrigue said:

You're right ! Many thanks for this tip !

By the way, after having read your post, I found on this page (channel9.msdn.com/.../checkwhetheranenvironmentvariablehasbeenset) that MSBUILD use env var for any property missing.

I also found this page (forums.microsoft.com/.../ShowPost.aspx) where a guy explains that the PLATFORME environment variable is set by an HP utility (see the last post of the page).

Thanks again !

# June 5, 2008 4:12 PM

Shane Barrington said:

Thanks that tip helped. I opted to notepad my solution file then pick the appropriate platform instead of removing the variable.

# September 22, 2008 10:41 AM

Arun Surendran said:

My System I had the issue with "Debug|BPC" this post solved me a day ... Thanks

# December 2, 2008 4:18 AM

Aruna said:

Thanks...this saved me a lot of time

# December 22, 2008 11:06 PM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Derik Whittaker

Derik is a .Net Developer/Architect specializing in WinForms working out the northern suburbs of Chicago. He is also believer and advocate for Agile development including SCRUM, TDD, CI, etc.

When Derik is not writing code he can be found spending time with his wife and young son, climbing on his bouldering wall, watching sports (mostly baseball), and generally vegging out. Check out Devlicio.us!

Our Sponsors

Proudly Partnered With


This Blog

Syndication

News