PS: Make it possible to run the build script from a command prompt that is running from %SYSTEMROOT%. See https://learn.microsoft.com/en-us/answers/questions/574694/msbuild-error-msb1009-project-file-does-not-exist

This commit is contained in:
Mathias Vorreiter Pedersen
2025-05-01 12:31:11 +01:00
parent 3cca0a6ec0
commit 337cb8b308

View File

@@ -3,7 +3,7 @@ param (
)
$toolsWin64Folder = Join-Path (Join-Path (Join-Path $cliFolder "powershell") "tools") "win64"
dotnet publish (Join-Path "extractor" "powershell.sln") -o $toolsWin64Folder
dotnet publish (Join-Path "extractor" "powershell.sln" | Resolve-Path) -o $toolsWin64Folder
if ($LASTEXITCODE -ne 0) {
Write-Host "Build failed"
exit 1