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?
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