On Thu, May 10, 2012 at 8:51 AM, Andre Arpin <ar...@kingston.net> wrote: > Hi, > > I am using a batch to make wxLua > > MSBuild wxLua.sln /t:build /p:Configuration=Debug > > Problem: > The sln contains some errors that Visual Studio ignores but MSBuild detects.
What is the error message? > Solution: > open the solution in Visual Studio add a file to the solution remove the file > and save the solution. This will fix the problem. > > These is some mismatch between the project being selected in the global > section. What does "global section" mean? If you open the sln in Visual Studio and select a project as the "Startup Project" does that help? I use devenv to build and it works ok. Here's the script I use to run it, note that I rerun cmake on it just to be sure. I combine these batch files to have a whole build system for 2.8/2.9/unicode/ansi/debug/release combinations. ------------------------------------------------------------------ @echo off "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" ..\wxLua call "c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat" for /f %%a IN ('dir /b *.sln') do ( devenv %%a /Build Debug 2>&1 | ..\mtee.exe devenv_build_log.txt set /a ERRCOUNT=%ERRCOUNT% + %ERRORLEVEL% ) echo. echo Errors found: %ERRCOUNT% if NOT "%1" == "NOPAUSE" pause EXIT /B %ERRCOUNT% ---------------------------------------------------------------------------- Regards, John ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users