How do I specify the /closed argument?

Oct 24, 2014 at 9:42 PM
Hi.

Thank you for ILMerge MSBuild task NuGet package 1.0.2.

I'm wondering how I can specify the /closed argument when ilmerge.exe is run?

Thank you.
Coordinator
Oct 28, 2014 at 6:47 PM
Hi,

most of ILMerge flags are not supported "out-of-the-box" (someday I'll add all of them to the configuration properties).
For now, if you want transitive merge as default, you'll have to hack the targets file a bit - change
...
<MSBuild.ILMerge.Task TargetPlatform="net40"
    KeyFile="$(KeyOriginatorFile)"
   OutputFile="$(MergeOutputFile)"
    LibraryPath="$(ILMergeLibraryPath)"
    InputAssemblies="$(MergedAssemblies)"
    LibraryAssemblies="$(UnmergedAssemblies)"
    PackagesDir="$(ILMergePackagesPath)"
    MergeOrderFile="$(ILMergeOrderFile)"
    DebugInfo="true" ShouldLog="true" />
...
to
...
<MSBuild.ILMerge.Task TargetPlatform="net40"
    KeyFile="$(KeyOriginatorFile)"
    OutputFile="$(MergeOutputFile)"
    LibraryPath="$(ILMergeLibraryPath)"
    InputAssemblies="$(MergedAssemblies)"
    LibraryAssemblies="$(UnmergedAssemblies)"
    PackagesDir="$(ILMergePackagesPath)"
    MergeOrderFile="$(ILMergeOrderFile)"
    DebugInfo="true" ShouldLog="true"
    Closed="true" />
...
Warning: I hadn't tested it yet :)
Coordinator
Dec 11, 2015 at 10:09 AM
Made configurable in 1.0.5-rc1.