Open rodrigovidal opened 7 years ago
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.
Will ILMerge ever be able to support .NET Core? Is .NET Standard supported at least?
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:
(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?)
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.
Do you have a plan to support NETCore?