Now msbuild will build the entire solution instead of each project file. Remember not to submit the solution with some projects disabled.

This commit is contained in:
Sorin Sbarnea 2015-07-21 15:03:15 +01:00 committed by Mihaela Stoica
parent ed04845a96
commit a5f5298604

View File

@ -186,23 +186,14 @@ version_brand_csharp "XenAdmin CommandLib XenCenterLib XenModel XenOvfApi XenOvf
#build
run_msbuild()
{
MSBuild.exe /nologo /verbosity:quiet /p:Configuration=Release /p:TargetFrameworkVersion=v4.0
}
MSBUILD="MSBuild.exe /nologo /m /verbosity:minimal /p:Configuration=Release /p:TargetFrameworkVersion=v4.0"
run_vcbuild()
{
"/cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/VCPackages/VCBuild.exe" $1 "Release|Win32"
}
cd ${REPO}/XenAdmin && run_msbuild
cd ${REPO}/Xe && run_msbuild
cd ${REPO}/xva_verify && run_msbuild
cd ${REPO}/splash && run_vcbuild "Splash.vcproj"
cp ${REPO}/splash/XenAdmin/bin/Release/XenCenter.* ${REPO}/XenAdmin/bin/Release/
cd ${REPO}/VNCControl && run_msbuild
cd ${REPO}/XenServerHealthCheck && run_msbuild
cd ${REPO}
$MSBUILD XenAdmin.sln
$MSBUILD xe/Xe.csproj
$MSBUILD VNCControl/VNCControl.sln
SOLUTIONDIR=$(cygpath.exe -w "${REPO}/XenAdmin")
$MSBUILD /p:SolutionDir="$SOLUTIONDIR" splash/splash.vcxproj
#sign (splash has already been signed through a post-build event)
for file in XenCenter.exe XenCenterMain.exe CommandLib.dll MSTSCLib.dll XenCenterLib.dll XenCenterVNC.dll XenModel.dll XenOvf.dll XenOvfTransport.dll
@ -357,14 +348,14 @@ mv -f ${WIX}/vnccontrol.wxs.tmp ${WIX}/vnccontrol.wxs
compile_installer "VNCControl" "en-us" && sign_msi "VNCControl"
#build the tests
cd ${REPO}/XenAdminTests && run_msbuild
cd ${REPO}/XenAdminTests && $MSBUILD
#this script is used by XenRT
cp ${REPO}/mk/xenadmintests.sh ${REPO}/XenAdminTests/bin/Release/
cp ${REPO}/XenAdmin/ReportViewer/* ${REPO}/XenAdminTests/bin/Release/
cd ${REPO}/XenAdminTests/bin/ && tar -czf XenAdminTests.tgz ./Release
#build the CFUValidator
cd ${REPO}/CFUValidator && run_msbuild
cd ${REPO}/CFUValidator && $MSBUILD
cd ${REPO}/CFUValidator/bin/ && tar -czf CFUValidator.tgz ./Release
#include resources script and collect the resources for translations