From 3d759c33e2839e892cdc8f1f6d3ed7971555b319 Mon Sep 17 00:00:00 2001 From: elzik <23397871+elzik@users.noreply.github.com> Date: Fri, 20 Oct 2023 21:30:33 +0100 Subject: [PATCH] Simplify path resolution --- Build/build-and-test.ps1 | 4 ++-- Build/build-windows-installer.ps1 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Build/build-and-test.ps1 b/Build/build-and-test.ps1 index 9822848..65ef6a8 100644 --- a/Build/build-and-test.ps1 +++ b/Build/build-and-test.ps1 @@ -1,6 +1,6 @@ +$ErrorActionPreference = "Stop" + $repoRootPath = (Resolve-Path "$PSScriptRoot/../").Path -$repoRootPath = $repoRootPath.Substring(0,$repoRootPath.Length-1) -Write-Output "Repo root path:$repoRootPath" dotnet test $repoRootPath/Elzik.FmSync.sln ` -c Release ` diff --git a/Build/build-windows-installer.ps1 b/Build/build-windows-installer.ps1 index 8c70ee1..9f607df 100644 --- a/Build/build-windows-installer.ps1 +++ b/Build/build-windows-installer.ps1 @@ -1,6 +1,6 @@ +$ErrorActionPreference = "Stop" + $repoRootPath = (Resolve-Path "$PSScriptRoot/../").Path -$repoRootPath = $repoRootPath.Substring(0,$repoRootPath.Length-1) -Write-Output "Repo root path:$repoRootPath" dotnet publish $repoRootPath\src\Elzik.FmSync.Worker\Elzik.FmSync.Worker.csproj ` --runtime win-x64 `