From adec15e2ac8cd5a786f154ed63b1dbe2f3280327 Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Wed, 23 Aug 2023 23:40:40 +0100 Subject: [PATCH] CP-40739: Build with VS 2022. Signed-off-by: Konstantina Chremmou --- CFUValidator/CFUValidator.csproj | 2 +- CommandLib/CommandLib.csproj | 2 +- README.md | 2 +- XenAdmin/XenAdmin.csproj | 2 +- XenAdminTests/XenAdminTests.csproj | 2 +- XenCenterLib/XenCenterLib.csproj | 2 +- XenModel/XenModel.csproj | 2 +- XenOvfApi/XenOvfApi.csproj | 2 +- scripts/xenadmin-build.sh | 8 ++++---- xe/Xe.csproj | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CFUValidator/CFUValidator.csproj b/CFUValidator/CFUValidator.csproj index be6951a37..086c07a00 100644 --- a/CFUValidator/CFUValidator.csproj +++ b/CFUValidator/CFUValidator.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU diff --git a/CommandLib/CommandLib.csproj b/CommandLib/CommandLib.csproj index eedc9f828..c7b9c6ab4 100644 --- a/CommandLib/CommandLib.csproj +++ b/CommandLib/CommandLib.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU diff --git a/README.md b/README.md index acb4f8053..f83137a71 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ How to build XenCenter To build XenCenter, you need * the source from xenadmin repository -* Visual Studio 2019 +* Visual Studio 2022 * .NET Framework 4.8 and also some libraries which we do not store in the source tree: diff --git a/XenAdmin/XenAdmin.csproj b/XenAdmin/XenAdmin.csproj index e2a78a923..cce1335f0 100755 --- a/XenAdmin/XenAdmin.csproj +++ b/XenAdmin/XenAdmin.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU diff --git a/XenAdminTests/XenAdminTests.csproj b/XenAdminTests/XenAdminTests.csproj index cca8d873c..f736e827e 100644 --- a/XenAdminTests/XenAdminTests.csproj +++ b/XenAdminTests/XenAdminTests.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU diff --git a/XenCenterLib/XenCenterLib.csproj b/XenCenterLib/XenCenterLib.csproj index 0cf1b59ff..ec5ac3bad 100644 --- a/XenCenterLib/XenCenterLib.csproj +++ b/XenCenterLib/XenCenterLib.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU diff --git a/XenModel/XenModel.csproj b/XenModel/XenModel.csproj index 04d4f851c..051e7287b 100755 --- a/XenModel/XenModel.csproj +++ b/XenModel/XenModel.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU diff --git a/XenOvfApi/XenOvfApi.csproj b/XenOvfApi/XenOvfApi.csproj index 75dde5b67..029a2abab 100644 --- a/XenOvfApi/XenOvfApi.csproj +++ b/XenOvfApi/XenOvfApi.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU diff --git a/scripts/xenadmin-build.sh b/scripts/xenadmin-build.sh index d5c4ca3eb..01e5a4cc0 100644 --- a/scripts/xenadmin-build.sh +++ b/scripts/xenadmin-build.sh @@ -46,17 +46,17 @@ SCRATCH_DIR=${REPO}/_scratch OUTPUT_DIR=${REPO}/_output #build -MSBUILD="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe" -SWITCHES="/m /verbosity:minimal /p:Configuration=Release /p:TargetFrameworkVersion=v4.8 /p:VisualStudioVersion=16.0" +MSBUILD="/cygdrive/c/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/MSBuild.exe" +SWITCHES="/m /verbosity:minimal /p:Configuration=Release /p:TargetFrameworkVersion=v4.8 /p:VisualStudioVersion=17.0" if [ ! -f "${MSBUILD}" ] ; then echo "DEBUG: Did not find VS Community edition. Trying Professional" - MSBUILD="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Professional/MSBuild/Current/Bin/MSBuild.exe" + MSBUILD="/cygdrive/c/Program Files/Microsoft Visual Studio/2022/Professional/MSBuild/Current/Bin/MSBuild.exe" fi if [ ! -f "${MSBUILD}" ] ; then echo "DEBUG: Did not find VS Professional edition. Trying Enterprise" - MSBUILD="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/MSBuild.exe" + MSBUILD="/cygdrive/c/Program Files/Microsoft Visual Studio/2022/Enterprise/MSBuild/Current/Bin/MSBuild.exe" fi mkdir_clean ${SCRATCH_DIR} diff --git a/xe/Xe.csproj b/xe/Xe.csproj index 1fa5b6c01..4897aca9d 100755 --- a/xe/Xe.csproj +++ b/xe/Xe.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU