Closed leppie closed 2 months ago
I think this should be a separate tool. ILRepack is not a swiss army knife for metadata, it should do one thing and do it well: merge assemblies.
There are multiple workarounds: as you mention, al exists and does the job.
Additionally, embedding a resource into a .dll is as easy as adding an EmbeddedResource item to the .csproj: https://github.com/KirillOsenkov/MSBuildTools/blob/77d80a2d6d28439666f4620f12d80ddfa5217fe0/src/SimpleResource/SimpleResource.csproj#L9
Add support for
/embed
flags as used by AL.This basically just adds manifest resources.
Flag syntax:
Example:
Realworld example:
I use this to just combine a bunch of files as resources into an assembly (which is later merged).
Single or double step would be nice.
Note: Adding suggestion as I think it is easy to do and fits in with an assembly modifier.