ILMerge icon indicating copy to clipboard operation
ILMerge copied to clipboard

Support for .NET Core

Open rodrigovidal opened this issue 8 years ago • 7 comments

Do you have a plan to support NETCore?

rodrigovidal avatar Jul 07 '17 12:07 rodrigovidal

Similar: https://github.com/Microsoft/ILMerge/issues/16

jnm2 avatar Jul 07 '17 12:07 jnm2

dotnet publish ... will output too many dll's, and no sensible "exe" to run. Users have to type dotnet some.dll on each platform every time. Maybe combine these dll's into one exe and +x will be an awesome feature.

miaodadao avatar Aug 31 '17 09:08 miaodadao

@miaodadao see https://github.com/dotnet/corefx/issues/13329#issuecomment-322494078

jnm2 avatar Aug 31 '17 11:08 jnm2

Will ILMerge ever be able to support .NET Core? Is .NET Standard supported at least?

matthiashenkel avatar Sep 26 '20 08:09 matthiashenkel

ILMerge appears to work just fine on a .NET 5.0 console app and two .NET Standard 2.0 class libraries in my brief test:

image

(Unmerged on the left, merged on the right. Note the lack of LibraryA and LibraryB on the merged one.)

People should probably quantify what they mean by "support". Do you want the tool to run under the .NET Core runtime? Do you want portable PDB support? Is it failing in situations where something similar worked in .NET Framework? Does it fail when newer runtime features are used in the assembly? (For the latter two: Can you make a minimal repro?)

PathogenDavid avatar Nov 05 '20 00:11 PathogenDavid

@PathogenDavid: https://github.com/dotnet/ILMerge/blob/master/ilmerge-manual.md#221-settargetplatform

AndrewSav avatar Nov 05 '20 02:11 AndrewSav

I'm sorry for not being specific enough. I wanted to ask whether there will ever be official support in ILMerge for merging .NET Core or .NET Standard dlls. I understand that it "might work" and "does work" in certain cases, but I couldn't find a statement that it is "supposed to work" in all cases. The only valid target platforms according to the documentation are v1, v1.1, v2, and v4 (see previous comment), which - among other reasons - led me to believe that merging .NET Core or .NET Standard dlls is not officially supported by ILMerge.

matthiashenkel avatar Nov 05 '20 14:11 matthiashenkel