Re: Solution format of file is not supported.

Bevan Arps <[email protected]> Fri, 27 May 2011 20:12:00 +1200
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
On 27/05/2011 8:00 a.m., Jed Padilla wrote:
>
> Now I am getting a better error message (I think)
>
> build.FACCBase:
>
>   [msbuild] Build started 5/26/2011 3:57:55 PM.
>
>   [msbuild] Project "C:\TESTTFS\FACCBase\FACCBase.sln" on node 0 
> (default target
>
> s).
>
>   [msbuild] C:\TESTTFS\FACCBase\FACCBase.sln.cache(136,5): error 
> MSB4126: The sp
>
> ecified solution configuration "debug|BNB" is invalid. Please specify 
> a valid so
>
> lution configuration using the Configuration and Platform properties 
> (e.g. MSBui
>
> ld.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or 
> leave those
>
> properties blank to use the default solution configuration.
>
>   [msbuild] Done Building Project "C:\TESTTFS\FACCBase\FACCBase.sln" 
> (default ta
>
>
[psychic debugging mode ON]
You're working on an HP or Compaq computer.
[psychic debugging mode OFF]

I ran into exactly this oddball error the other day and blogged about it 
here:

http://www.nichesoftware.co.nz/blog/2011-05/496/invalid-build-configuration-debugbnb

To save you the click, here's the lowdown.

For reasons entirely unconnected with MSBuild, my HP Probook has the 
environment variable PLATFORM defined as BNB.

Unfortunately, MSBuild picks this up as the default target platform, and 
bombs out because your solution file only includes things like "Any CPU" 
or "x86".

The solution is to be explicit about the platform you want to compile 
for, by using the commandline parameter included in the error message:

/p:Platform="Any CPU"

Hope this is useful.
Bevan.

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1

_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users