# ========================================================================= # MusicStreaming リリースビルド & C:\docker\music\ への自動発行スクリプト # ========================================================================= Write-Host "MusicStreaming の発行プロセスを開始します..." -ForegroundColor Cyan $projectPath = "C:\VS2026\MusicStreaming\MusicStreaming\MusicStreaming.csproj" $publishDir = "C:\docker\music\" if (-not (Test-Path $publishDir)) { New-Item -ItemType Directory -Path $publishDir -Force | Out-Null } dotnet publish $projectPath -c Release /p:PublishProfile=FolderProfile if ($LASTEXITCODE -eq 0) { Write-Host "=========================================" -ForegroundColor Green Write-Host "正常に発行が完了しました: $publishDir" -ForegroundColor Green Write-Host "=========================================" -ForegroundColor Green } else { Write-Host "発行中にエラーが発生しました。" -ForegroundColor Red }