Skip to content

Commit da12759

Browse files
author
Erik Gassler
committed
Add script for reverting changes to blazorui index.html file
1 parent dbe0cdd commit da12759

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
$userprofile = $env:USERPROFILE
3+
$searchfolder = "$userprofile\.nuget\packages\stoicdreams.blazorui"
4+
5+
Get-ChildItem -Path $searchfolder -Directory -Recurse -Force -Filter "staticwebassets" | ForEach-Object {
6+
Write-Host $_.FullName
7+
$indexfile = "$($_.FullName)\index.html"
8+
$indexbackup = "$($_.FullName)\index.backup.html"
9+
if (Test-Path -Path $indexbackup) {
10+
$content = Get-Content -Path $indexbackup
11+
$content | Set-Content -Path $indexfile
12+
}
13+
}

StoicDreams.SampleWebsite/commands.json

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"fileName": "PowerShell.exe",
1010
"workingDirectory": ".",
1111
"arguments": ".\\PowerShell\\PrepLocalDebug.ps1"
12+
},
13+
"CleanLocalDebug": {
14+
"fileName": "PowerShell.exe",
15+
"workingDirectory": ".",
16+
"arguments": ".\\PowerShell\\CleanLocalDebug.ps1"
1217
}
1318
},
1419
"-vs-binding": {

0 commit comments

Comments
 (0)