From 6be3121a6ababba7dc0b588899a8cf6005f3e0a6 Mon Sep 17 00:00:00 2001 From: Max Kirchberger Date: Sat, 2 Dec 2023 13:16:09 +0100 Subject: [PATCH] use invocation --- scripts/buildscript.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/buildscript.ps1 b/scripts/buildscript.ps1 index c611842..d5c9fe5 100644 --- a/scripts/buildscript.ps1 +++ b/scripts/buildscript.ps1 @@ -1,3 +1,4 @@ -$currentFolder = (Get-Location).Path +$currentFolder = $MyInvocation.MyCommand.Path | Split-Path -Parent; +#$currentFolder = (Get-Location).Path echo $currentFolder dotnet build ../src/Webserver.API/Webserver.API.csproj \ No newline at end of file