From 3ea4e37f2b94ed5812246649dce5ad004dff935e Mon Sep 17 00:00:00 2001 From: Andy Butland Date: Wed, 6 Nov 2024 11:10:53 +0100 Subject: [PATCH] Pinned Semver version to ensure we have consistent dependency for builds --- ps/GetUmbracoBuildEnv.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ps/GetUmbracoBuildEnv.ps1 b/ps/GetUmbracoBuildEnv.ps1 index 9b5fd0c..41c04ef 100644 --- a/ps/GetUmbracoBuildEnv.ps1 +++ b/ps/GetUmbracoBuildEnv.ps1 @@ -136,7 +136,7 @@ $ubuild.DefineMethod("GetUmbracoBuildEnv", if (-not (test-path $semver)) { Write-Host "Download Semver..." - $params = "-OutputDirectory", $scriptTemp, "-Verbosity", "quiet", "-Source", $nugetsource + $params = "-Version", "2.3.0", "-OutputDirectory", $scriptTemp, "-Verbosity", "quiet", "-Source", $nugetsource &$nuget install semver @params $dir = ls "$scriptTemp\semver.*" | sort -property Name -descending | select -first 1 $file = "$dir\lib\net452\Semver.dll" @@ -233,7 +233,7 @@ $ubuild.DefineMethod("GetUmbracoBuildEnv", $vsVersions = new-object System.Collections.Generic.List[System.Version] Write-Host "Finding MSbuild.exe" - + # parse vswhere output $params = @() if ($options.VsPreview) { $params += "-prerelease" } @@ -254,9 +254,9 @@ $ubuild.DefineMethod("GetUmbracoBuildEnv", } } if ($vsIx2 -ge 0) { - + Write-Host "Detected VS version " $vsVersion.Major - + $vsPath = $vsPaths[$vsIx2] if ($vsVersion.Major -gt 16) { @@ -282,7 +282,7 @@ $ubuild.DefineMethod("GetUmbracoBuildEnv", MsBuild = "$msBuild\MsBuild.exe" ToolsVersion = $toolsVersion } - + Write-Host "Using MsBuild.exe in $msBuild\MsBuild.exe" } }