30
33

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 5 years have passed since last update.

ILMergeの使い方

Posted at

ILMergeは、dllとexeをまとめて一つの実行ファイルにするコマンド。
ILMergeからダウンロードできる。

使用方法

ILMerge /out:piyo.exe hoge.exe foo.dll bar.dll foobar.dll

pdbファイルを生成したくない場合

/ndebug をつける。

ILMerge /ndebug /out:piyo.exe hoge.exe foo.dll bar.dll foobar.dll

An exception occurred during merging: が表示される場合

/targetplatform をつける。
v4の場合は

ILMerge /ndebug /targetplatform:v4 /out:piyo.exe hoge.exe foo.dll bar.dll foobar.dll

ワイルドカードを使いたい場合

/wildcards をつける。

ILMerge /ndebug /targetplatform:v4 /wildcards /out:piyo.exe hoge.exe *.dll

参考

アプリケーションのEXEファイルやDLLファイルを1つにまとめるには?
ILMergeのエラー回避
実行ファイルとDLLを一つにまとめる

30
33
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
30
33

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?