-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepair.ps1
More file actions
29 lines (23 loc) · 941 Bytes
/
Copy pathrepair.ps1
File metadata and controls
29 lines (23 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$ErrorActionPreference = "Stop"
$root = Split-Path -Parent $MyInvocation.MyCommand.Path
$project = Join-Path $root "src\ChatContextBackup\ChatContextBackup.csproj"
Write-Host "1/5 Visual Studio를 닫은 상태에서 실행하는 것이 가장 안전합니다." -ForegroundColor Yellow
$folders = @(
(Join-Path $root ".vs"),
(Join-Path $root "src\ChatContextBackup\bin"),
(Join-Path $root "src\ChatContextBackup\obj")
)
foreach ($folder in $folders) {
if (Test-Path $folder) {
Remove-Item $folder -Recurse -Force
Write-Host "삭제: $folder"
}
}
Write-Host "2/5 NuGet 캐시 정리"
dotnet nuget locals all --clear
Write-Host "3/5 패키지 복원"
dotnet restore $project --force --no-cache
Write-Host "4/5 Debug 빌드"
dotnet build $project -c Debug --no-restore
Write-Host "5/5 완료" -ForegroundColor Green
Write-Host "이제 ChatContextBackup.sln을 다시 여세요." -ForegroundColor Green