LoginSignup
9
12

More than 5 years have passed since last update.

Visual Studioのビルド時にプロセスが実行したままで失敗するのを何とかする

Posted at

ビルド前イベントでプロセスを終了させます
終了させるプロセスのイメージ名はプロジェクトごとに書きかえてください

C#

メニュー > プロジェクト > プロパティ > ビルド イベント > ビルド前に実行するコマンド ライン

taskkill /f /im Test.exe || exit /b 0

cs.png

C++

メニュー > プロジェクト > プロパティ > 構成プロパティ > ビルド イベント > ビルド前イベント > コマンド ライン

taskkill /f /im Test.exe || exit /b 0

cpp.png

9
12
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
12