error after double click ClickToBuild.cmd of clean 1.7.1

Topics: General, Installing Orchard
Oct 15, 2013 at 3:15 PM
G:\Orchard171-default-git-zg\orchard>if "" NEQ "" goto build

G:\Orchard171-default-git-zg\orchard>if exist "C:\Program Files (x86)\Microsoft
Visual Studio 11.0\VC\vcvarsall.bat" goto initialize2k8on64Dev11

G:\Orchard171-default-git-zg\orchard>call "C:\Program Files (x86)\Microsoft Visu
al Studio 11.0\VC\vcvarsall.bat" x86
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18052]
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 15/10/2013 10:07:09 AM.
Project "G:\Orchard171-default-git-zg\orchard\Orchard.proj" on node 1 (Build ta
rget(s)).
Project "G:\Orchard171-default-git-zg\orchard\Orchard.proj" (1) is building "G:
\Orchard171-default-git-zg\orchard\src\Orchard.sln" (2) on node 1 (Clean target
(s)).
G:\Orchard171-default-git-zg\orchard\src\Orchard.sln.metaproj : error MSB4126:
The specified solution configuration "Debug|MCD" is invalid. Please specify a v
alid solution configuration using the Configuration and Platform properties (e.
g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or le
ave those properties blank to use the default solution configuration. [G:\Orcha
rd171-default-git-zg\orchard\src\Orchard.sln]
Done Building Project "G:\Orchard171-default-git-zg\orchard\src\Orchard.sln" (C
lean target(s)) -- FAILED.

Done Building Project "G:\Orchard171-default-git-zg\orchard\Orchard.proj" (Buil
d target(s)) -- FAILED.


Build FAILED.

"G:\Orchard171-default-git-zg\orchard\Orchard.proj" (Build target) (1) ->
"G:\Orchard171-default-git-zg\orchard\src\Orchard.sln" (Clean target) (2) ->
(ValidateSolutionConfiguration target) ->
G:\Orchard171-default-git-zg\orchard\src\Orchard.sln.metaproj : error MSB4126
: The specified solution configuration "Debug|MCD" is invalid. Please specify a
valid solution configuration using the Configuration and Platform properties (
e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or
leave those properties blank to use the default solution configuration. [G:\Orc
hard171-default-git-zg\orchard\src\Orchard.sln]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.11
Press any key to continue . . .
Oct 15, 2013 at 3:55 PM
in this article:

http://community.sharpdevelop.net/forums/t/8281.aspx

After a quick search on Google, it seems that HP laptops set the Platform environment variable to MCD for some reason. This then gets passed to MSBuild and so SharpDevelop's build fails. The workaround is as Daniel posted, edit the DebugBuild.bat file and add the following to the MSBuild command line:

/p:Platform="Any CPU"

I just use HP laptops, but i do not know how to put
/p:Platform="Any CPU"
on our orchard files.
can any one help? much thanks
andy
Oct 16, 2013 at 2:55 AM
resolved
I changed Platform to "Any CPU" of environment variable in system of HP
Marked as answer by infofromca on 10/17/2013 at 6:11 AM