Merge .Net 3.5

Nov 25, 2014 at 12:42 AM
What do I need to do, to merge dlls for target plattform .Net 3.5 ?
Dec 3, 2014 at 8:52 PM
Hi,

once again (sorry) - most of ILMerge flags are not supported "out-of-the-box" (someday I'll add all of them to the configuration properties, I truly will!).
For now, to target .Net 2.0...3.5, 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"
    TargetPlatform="v2" />
...
Warning: I hadn't tested it yet, please report your experience.
Dec 11, 2015 at 11:08 AM
Made configurable in 1.0.5-rc1.