Reputation: 5729
Is it possible to create a .NET Core DLL which contains the other .NET Core Framework DLLs in order to be run without installing the .NET Core?
Thanks a lot
Upvotes: 0
Views: 456
Reputation: 169228
.NET Core 3 supports single-file executables that contain all framework specific assemblies, resources, content files and other stuff that the app requires to run:
dotnet publish -r win10-x86 -c release /p:PublishSingleFile=true
Self-contained deployments (SCD) are supported in earlier versions.
Upvotes: 3
Reputation: 12849
Yes. What you are looking for is called Self-contained deployment and is possible with .NET Core, but not .NET Framework.
See more here : https://learn.microsoft.com/en-us/dotnet/core/deploying/#self-contained-deployments-scd
Upvotes: 1