I know there is ILMerge for .NET Framework (Full Framework) assemblies. But what about .NET Core? I would like to create a commandline utility tool, but I don't want it to be like 20 files, but only 1 .exe.
Is there any way to do it?
I know there is ILMerge for .NET Framework (Full Framework) assemblies. But what about .NET Core? I would like to create a commandline utility tool, but I don't want it to be like 20 files, but only 1 .exe.
Is there any way to do it?
You can use the new feature of .NET Core 3.0:
dotnet publish -r win10-x64 -p:PublishSingleFile=true
Fody ( https://github.com/Fody/Fody ) supports .NET Core since 2017 and you can install it as a NuGet package into your project so it will automatically run as part of your project's build process.