It is sometimes advantageous to have a single executable with no external dependencies. It makes it easier to distribute and avoid versioning issues if multiple versions of a product are used.
The easiest way to consolidate the transform exe, the transform dll, and its runtime components is to use ILMerge.
ILMerge is a Microsoft product available as a Nuget from:
This will allow you to combine the DataTransformationApp.exe, DataTransformation.dll and LiquidTechnologies.DataMapper.Runtime.DLL into a single executable file.
If your project makes use of JSON you may also wish to add the Newtonsoft.Json.dll to the list.
Note : If the generated solution contained a DataTransformationApp.exe.config file then this will need renaming to match your single exe (i.e. MySingleExeTransform.exe.config, ensuring its is .exe.config).
Article ID: 135, Created: 4/19/2018 at 12:04 PM, Modified: 6/10/2020 at 8:27 AM