From ce0e580c02a700af70e602e45f9885634747b48e Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Thu, 31 Mar 2022 11:39:36 +0200 Subject: [PATCH] Added more vswhere logging to figure out why it fails on the build server --- ps/GetUmbracoBuildEnv.ps1 | 7 +++++++ src/SolutionInfo.cs | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ps/GetUmbracoBuildEnv.ps1 b/ps/GetUmbracoBuildEnv.ps1 index 3f3f046..9b5fd0c 100644 --- a/ps/GetUmbracoBuildEnv.ps1 +++ b/ps/GetUmbracoBuildEnv.ps1 @@ -232,6 +232,8 @@ $ubuild.DefineMethod("GetUmbracoBuildEnv", $vsPaths = new-object System.Collections.Generic.List[System.String] $vsVersions = new-object System.Collections.Generic.List[System.Version] + Write-Host "Finding MSbuild.exe" + # parse vswhere output $params = @() if ($options.VsPreview) { $params += "-prerelease" } @@ -252,6 +254,9 @@ $ubuild.DefineMethod("GetUmbracoBuildEnv", } } if ($vsIx2 -ge 0) { + + Write-Host "Detected VS version " $vsVersion.Major + $vsPath = $vsPaths[$vsIx2] if ($vsVersion.Major -gt 16) { @@ -277,6 +282,8 @@ $ubuild.DefineMethod("GetUmbracoBuildEnv", MsBuild = "$msBuild\MsBuild.exe" ToolsVersion = $toolsVersion } + + Write-Host "Using MsBuild.exe in $msBuild\MsBuild.exe" } } diff --git a/src/SolutionInfo.cs b/src/SolutionInfo.cs index 63cd516..38bcae5 100644 --- a/src/SolutionInfo.cs +++ b/src/SolutionInfo.cs @@ -16,5 +16,5 @@ [assembly: AssemblyVersion("0.2.11")] // these are FYI and changed automatically -[assembly: AssemblyFileVersion("0.2.17")] -[assembly: AssemblyInformationalVersion("0.2.17-aleph.20211109")] +[assembly: AssemblyFileVersion("0.2.18")] +[assembly: AssemblyInformationalVersion("0.2.18")]