Skip to content

Commit

Permalink
Added more vswhere logging to figure out why it fails on the build s…
Browse files Browse the repository at this point in the history
…erver
  • Loading branch information
nul800sebastiaan committed Mar 31, 2022
1 parent fa36769 commit ce0e580
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ps/GetUmbracoBuildEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand All @@ -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) {
Expand All @@ -277,6 +282,8 @@ $ubuild.DefineMethod("GetUmbracoBuildEnv",
MsBuild = "$msBuild\MsBuild.exe"
ToolsVersion = $toolsVersion
}

Write-Host "Using MsBuild.exe in $msBuild\MsBuild.exe"
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/SolutionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

0 comments on commit ce0e580

Please sign in to comment.