Compatibility with Powershell 7+

This commit is contained in:
Steve Streeting 2020-10-05 15:05:17 +01:00
parent 2966cf3be0
commit eade9b6bc1

View File

@ -22,7 +22,7 @@ function Get-Uproject-Filename {
} else {
# can return multiple results, pick the first one
$matchedfile = @(Get-ChildItem -Path $srcfolder -Filter *.uproject)[0]
$projfile = Join-Path $srcfolder $matchedfile
$projfile = $matchedfile.FullName
}
# Resolve to absolute (do it here and not in join so missing file is friendlier error)