开发者

Ilmerge causing dll's to open during build

开发者 https://www.devze.com 2023-02-03 02:34 出处:网络
I am using ILMerge as a post build event to combine some dll\'s into a single dll. It is working and combining the dll\'s but have this weird issue. As the project builds, the dll\'s are opened (only

I am using ILMerge as a post build event to combine some dll's into a single dll. It is working and combining the dll's but have this weird issue. As the project builds, the dll's are opened (only external dll's, not project dll's)! And the build wont only progress when I close the application that opens the dll, in this case I have set reflector as the default application for opening dll's. The post build event command I am using is:

"..\..\..\..\..\..\..\External\Tools\ILMerge\2.10.0\ILMerge" /out:"$(ProjectDir)$(OutDir)Combined.dll" "$(TargetPath)"  
"$(ProjectDir)$(OutDir)Core.dll" 
"$(ProjectDir)$(OutDir)Resolver.dll" 
"$(ProjectDir)$(OutDir)AjaxMin.dll" 
"$(ProjectDir)$(OutDir)Yahoo.Yui.Compressor.dll" "$(ProjectDir)$(OutDir)EcmaScript.NET.modified.dll"

Anyone have issues wi开发者_StackOverflow社区th this?


Hehe, kinda funny. Remove the line breaks between the DLL names. I'll edit your post to make them obvious.

With a DLL on a single line, it is interpreted as a build command instead of an argument to ILMerge. It invokes the default action for a .dll file, which in your case is "open in Reflector".

0

精彩评论

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

关注公众号