Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

【Visual Studio】Visual StudioのビルドイベントをPowerShellで書く

要旨

Windowsサービスアプリをビルドする時は、ビルド前にサービスを停止する必要があります。Visual Studioのビルドイベントを書いて自動化すると楽です。

バッチコマンドで書くのはつらそうなので、PowerShellで書いてみました。

続きを読む