Fixed --build flag to work with VS2026+

master
Hecklezz 2025-11-18 09:32:42 +10:00
parent c05b709d43
commit 4961ed126f
1 changed files with 10 additions and 1 deletions

View File

@ -615,7 +615,16 @@ if [ $WANTS_BUILD -eq $TRUE ] ; then
make -j $JOBS | tee -a "$LOG" make -j $JOBS | tee -a "$LOG"
fi fi
elif [ $TARGET_PLATFORM == "windows" ] ; then elif [ $TARGET_PLATFORM == "windows" ] ; then
msbuild.exe Firestorm.sln -p:Configuration=${BTYPE} -flp:LogFile="logs\\FirestormBuild_win-${AUTOBUILD_ADDRSIZE}.log" \ # VS2026+ now uses .slnx so determine which one exists
if [ -f "Firestorm.slnx" ]; then
SOLUTION="Firestorm.slnx"
elif [ -f "Firestorm.sln" ]; then
SOLUTION="Firestorm.sln"
else
echo "Build failed! No Firestorm.slnx or Firestorm.sln found"
exit 1
fi
msbuild.exe "$SOLUTION" -p:Configuration=${BTYPE} -flp:LogFile="logs\\FirestormBuild_win-${AUTOBUILD_ADDRSIZE}.log" \
-flp1:"errorsonly;LogFile=logs\\FirestormBuild_win-${AUTOBUILD_ADDRSIZE}.err" -p:Platform=${AUTOBUILD_WIN_VSPLATFORM} -t:Build -p:useenv=true \ -flp1:"errorsonly;LogFile=logs\\FirestormBuild_win-${AUTOBUILD_ADDRSIZE}.err" -p:Platform=${AUTOBUILD_WIN_VSPLATFORM} -t:Build -p:useenv=true \
-verbosity:normal -toolsversion:Current -p:"VCBuildAdditionalOptions= /incremental" -verbosity:normal -toolsversion:Current -p:"VCBuildAdditionalOptions= /incremental"
fi fi