Skip to content

Commit 929c382

Browse files
committed
Slight refactor
1 parent 59dd516 commit 929c382

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/packaging/createbinariesfordocs.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ try {
7575

7676
### Build the needed flavor for MRTK
7777
Write-Output "============ Building InEditor WSA ============ "
78-
dotnet msbuild ..\NuGet\BuildSource.proj -target:BuildWSAEditor > "Logs\Build.InEditor.WSA.$($Version).log"
78+
$logFilePath = "Logs\Build.InEditor.WSA.$($Version).log"
79+
dotnet msbuild ..\NuGet\BuildSource.proj -target:BuildWSAEditor > $logFilePath
7980
if ($lastexitcode -ge 1) {
80-
Write-Error "Building InEditor WSA Failed! See log file for more information $(Get-Location)\Logs\Build.InEditor.WSA.$($Version).log";
81-
Copy-Item -Path "Logs\Build.InEditor.WSA.$($Version).log" -Destination "$OutputDirectory\"
81+
Write-Error "Building InEditor WSA Failed! See log file for more information $(Get-Location)$logFilePath";
82+
Copy-Item -Path $logFilePath -Destination "$OutputDirectory\"
8283
exit($lastexitcode)
8384
}
8485

0 commit comments

Comments
 (0)