开发者

Merging dlls using ILMerge

I am trying to merge some dlls into one merge dll using ILMerge. i have tried several post build commands and nothing worked.

C:\Program Files (x86)\Microsoft\ILMerge\ILMerge.exe /lib:C:\Windows\Microsoft.NET\Framework\v4.0.30319 /lib:”C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies” /t:dll /closed /targetplatform:v4, ”C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0″ /out:DataAccessMerged.dll Frameworks.dll ObservableDictionary.dll

OR开发者_如何学Python

placed the macros even of TargetDir and so on....

it didnt work. the .net frameworks is 4 my vs is 2010 sp1.


Well guys. I hope this help someone. The problem is of course frameworks 4, there are several ways to solve this issue. my way is to create a ILMerge.exe.config file to the ILMerge exe, and enter this xml <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <requiredRuntime safemode="true" imageVersion="v4.0.30319" version="v4.0.30319"/> </startup> </configuration>


ILMerge.exe also has a /targetplatform command line option.

For example, ILMerge.exe /targetplatform:v4

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜