用ILMerge合并Silverlight, WindowsPhone或Mono for Android的程式集

來源:互聯網
上載者:User

為大家所知,ILMerge可用於合并.NET的程式集,但如何合并Silverlight,WindowsPhone或者Mono for Android的程式集呢?其實ILMerge命令參數targetplatform已經提供了對此項功能的支援。

ILMerge:

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17630

 

使用ILMerge合并Silverlight程式集:

set srcdir=D:\Bin\Silverlight

set outdir=D:\Bin\Silverlight\Output

set sldir=%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0
if not exist "%sldir%" (
    set sldir=%ProgramFiles%\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0
)

ILMerge /targetplatform:v4,"%sldir%" /ndebug /log /out:%outdir%\WebSocket4Net.dll %srcdir%\WebSocket4Net.dll %srcdir%\SuperSocket.ClientEngine.dll

 

使用ILMerge合并WindowsPhone程式集:

set srcdir=D:\Bin\WindowsPhone

set outdir=D:\Bin\WindowsPhone\Output

set wpdir=%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71
if not exist "%wpdir%" (
    set wpdir=%ProgramFiles%\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71
)

ILMerge /targetplatform:v4,"%wpdir%" /ndebug /log /out:%outdir%\WebSocket4Net.dll %srcdir%\WebSocket4Net.dll %srcdir%\SuperSocket.ClientEngine.dll

 

使用ILMerge合并Mono for Android程式集:

set srcdir=D:\Bin\MonoDroid

set outdir=D:\Bin\MonoDroid\Output

set mddir=%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0
if not exist "%mddir%" (
    set mddir=%ProgramFiles%\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0
)

ILMerge /targetplatform:v4,"%mddir%" /ndebug /log /out:%outdir%\WebSocket4Net.dll %srcdir%\WebSocket4Net.dll %srcdir%\SuperSocket.ClientEngine.dll


相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.