如何将 ILMerge 与 Windows Phone 7 程序集一起使用?
我已经在 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
值是什么?
I've got this working for SL4, but I need an equivalent for my WP7 project:
"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
What's the equivalent /targetplatform
value for WP7?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我设法让 ILMerge 与 WP7 一起工作,关于它的快速博客文章 这里。
我相信从上面的示例中您的“目标平台”是错误的,它应该是:
/targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone< /em>
I managed to get ILMerge working with WP7, quick blog post about it here.
I believe from the example above your 'targetplatform' is wrong, it should be:
/targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone
我认为 ILMerge 尚未针对 WP7 进行更新。您可以尝试 silverlight 3 程序集并查看它是否运行。
I don't think ILMerge has been updated for WP7. You could try a silverlight 3 assembly and see if it runs.