Windows phone 7 如何将ILMerge与Windows Phone 7程序集一起使用?

Windows phone 7 如何将ILMerge与Windows Phone 7程序集一起使用?,windows-phone-7,ilmerge,Windows Phone 7,Ilmerge,我已经为SL4做了这项工作,但我需要为我的WP7项目做一项同等的工作: "c:\Program Files (x86)\Microsoft\ILMerge\ilmerge.exe" /lib:MyProj.Silverlight\bin\Release /internalize /ndebug /targetplatform:v4,"C:\Program Files (x86)\Microsoft Silverlight\4.0.50917.0" /out:Download\MyProj.

我已经为SL4做了这项工作,但我需要为我的WP7项目做一项同等的工作:

"c:\Program Files (x86)\Microsoft\ILMerge\ilmerge.exe" 
/lib:MyProj.Silverlight\bin\Release /internalize /ndebug 
/targetplatform:v4,"C:\Program Files (x86)\Microsoft Silverlight\4.0.50917.0" 
/out:Download\MyProj.Silverlight.dll MyProj.Silverlight.dll Newtonsoft.Json.Silverlight.dll

WP7的等效
/targetplatform
值是多少?

我认为WP7的ILMerge没有更新。您可以尝试silverlight 3程序集,看看它是否运行。

我设法让ILMerge使用WP7,这是一篇关于它的快速博客文章

我相信从上面的例子来看,您的“targetplatform”是错误的,应该是:

/targetplatform:v4,“%ProgramFiles(x86)%\Reference Assembly\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone