Skip to content

Commit 118e7b0

Browse files
committed
Fix caching during local build
1 parent 9d0a94a commit 118e7b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/build-dev.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ EnsureHttpServerIsInstalled
2929
VerifySuccessExitCode
3030

3131
if (-Not $NoBuild -Or -Not (Test-Path -Path _site)) {
32-
Remove-Item _site -Recurse -ErrorAction Ignore
32+
Remove-Item _site\* -Recurse -ErrorAction Ignore
3333

3434
dotnet build .. --configuration Release
3535
VerifySuccessExitCode
3636

3737
Invoke-Expression ./generate-examples.ps1
3838
} else {
39-
Remove-Item _site/xrefmap.yml -ErrorAction Ignore
39+
Remove-Item _site\* -Recurse -ErrorAction Ignore
4040
}
4141

4242
dotnet tool restore
@@ -60,4 +60,4 @@ Write-Host "Web server started. Press Enter to close."
6060
$key = [Console]::ReadKey()
6161

6262
Stop-Job -Id $webServerJob.Id
63-
Get-job | Remove-Job
63+
Get-job | Remove-Job -Force

0 commit comments

Comments
 (0)