From bf92b90f993fa66c2c108ea71419443264506e5f Mon Sep 17 00:00:00 2001 From: Arlo Godfrey Date: Fri, 9 Feb 2024 15:17:48 -0600 Subject: [PATCH] Fixed an issue preventing script from running from any directory --- Scripts/PackEachExperiment.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/PackEachExperiment.ps1 b/Scripts/PackEachExperiment.ps1 index f9e502b3..65f4eaa4 100644 --- a/Scripts/PackEachExperiment.ps1 +++ b/Scripts/PackEachExperiment.ps1 @@ -6,6 +6,6 @@ Param ( [string]$postfix ) -foreach ($experimentProjPath in Get-ChildItem -Recurse -Path '../../components/*/src/*.csproj') { +foreach ($experimentProjPath in Get-ChildItem -Recurse -Path "$PSScriptRoot/../../components/*/src/*.csproj") { & msbuild.exe -t:pack /p:Configuration=Release /p:DebugType=Portable /p:DateForVersion=$date /p:PreviewVersion=$postfix $experimentProjPath }