1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Visual Studioの「ビルドイベント」でビルド後のオプションを設定する

Last updated at Posted at 2021-04-03

Visual Studioの「ビルドイベント」という機能で
ビルド後のオプションが設定できると聞いたのですが

どこに有るか全然分からねえ!

となって探し回ったので、誰かの役に立てば幸いです。

設定方法#

[プロジェクト(P)]>[(プロジェエクト名)のプロパティ(p)]
からプロジェクトの設定を開きます。
プロパティの開き方.png

そして、ここから2パターンあって
後者だと見つけにくいと思います。

パターン1##

左のメニューに「ビルドイベント」があれば、こんな画面が出るので
ここビルド前後に実行したいコマンドを設定できます
プロジェクト プロパティ1.PNG

パターン2##

左のメニューに「ビルド」がなくて、「コンパイル」があるパターン
名称未設定.png

右下にさりげなく「ビルドイベント」という項目があるのですが

いや、分かりづらいわ!!!

私は全く気づかなくて、他のところを探し回ってましたw

クリックすればちゃんと「ビルドイベント」が出てきます

プロジェクト プロパティ2_2.PNG

感想#

無事見つけられて良かったです(´∇`)

イベントに.batを登録して、ビルド後にdllとかをコピーしてくれるようにしました

1
0
0

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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?