2
Vote

Allow ILMerge to be conditional

description

The ILMerge build process is integrated regardless of selected Configuration and Platform.

For projects targeting .NET runtime 2 it will break debugging:
Error while trying to run project: Could not load file or assembly 'XXX' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Unless https://ilmergemsbuild.codeplex.com/workitem/4 is fixed.

For larger projects it will increase the compile & debug time alot which may be undesired since only the Release configuration could be targeted for ILMerge.

Suggested solution is to add conditions to the ILMerge.props file. Perhaps an expression that could be evaluated; e.g.: '$(Configuration)' != 'Debug'

comments

archnae wrote Mar 7, 2016 at 10:18 AM

missed this one for 1.0.5...