Merge .Net 3.5

Nov 24, 2014 at 11:42 PM
What do I need to do, to merge dlls for target plattform .Net 3.5 ?
Coordinator
Dec 3, 2014 at 7: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.
Coordinator
Dec 11, 2015 at 10:08 AM
Made configurable in 1.0.5-rc1.