From eade9b6bc1c063cd03cb3e1769f4e445f584e5a8 Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Mon, 5 Oct 2020 15:05:17 +0100 Subject: [PATCH] Compatibility with Powershell 7+ --- inc/uproject.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/uproject.ps1 b/inc/uproject.ps1 index 2b1d239..2d006b3 100644 --- a/inc/uproject.ps1 +++ b/inc/uproject.ps1 @@ -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)