0

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

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Walter Fabio Simoni
  • 5,671
  • 15
  • 55
  • 80
  • That is why VS has a publish option which create a setup.exe like commercial software. The setup.exe installs the dlls so code will run on machines that do not have Net. – jdweng Oct 02 '19 at 12:26
  • You mean a self-contained application? This should already be possible. See: https://learn.microsoft.com/en-us/dotnet/core/deploying/ – jAC Oct 02 '19 at 12:26
  • Possible duplicate of [Use .net core with legacy .net framework dlls](https://stackoverflow.com/questions/45260792/use-net-core-with-legacy-net-framework-dlls) – Liam Oct 02 '19 at 12:28
  • 1
    There is no such thing as .NET Core Framework. There is .NET Framework (and Runtime) and .NET Core (and Runtime). Edit your question to be more clear. – Euphoric Oct 02 '19 at 12:29

2 Answers2

3

.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.

mm8
  • 163,881
  • 10
  • 57
  • 88
1

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

Euphoric
  • 12,645
  • 1
  • 30
  • 44