From: John L. <jla...@gm...> - 2012-05-10 21:02:54
|
On Thu, May 10, 2012 at 8:51 AM, Andre Arpin <ar...@ki...> 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 |