Skip to content

Commit 2b9b5c1

Browse files
fixed powershell errors
1 parent 6ea5a2a commit 2b9b5c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aspnet-core/build/build-with-ng.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $ngFolder = Join-Path $buildFolder "../../angular"
88

99
## CLEAR ######################################################################
1010

11-
Remove-Item $outputFolder -Force -Recurse
11+
Remove-Item $outputFolder -Force -Recurse -ErrorAction Ignore
1212
New-Item -Path $outputFolder -ItemType Directory
1313

1414
## RESTORE NUGET PACKAGES #####################################################
@@ -24,6 +24,7 @@ dotnet publish --output (Join-Path $outputFolder "Host")
2424
## PUBLISH ANGULAR UI PROJECT #################################################
2525

2626
Set-Location $ngFolder
27+
& yarn
2728
& ng build -prod
2829
Copy-Item (Join-Path $ngFolder "dist") (Join-Path $outputFolder "ng") -Recurse
2930
Copy-Item (Join-Path $ngFolder "Dockerfile") (Join-Path $outputFolder "ng")

0 commit comments

Comments
 (0)