How do I create framework-dependent executables (FDE) with .NET Core 2.2? The MSDN documentation mentions them here as a new feature for .NET Core 2.2:
Framework-dependent executables (FDE)
Starting with .NET Core 2.2, you can deploy your app as an FDE, along with any required third-party dependencies. Your app will use the version of .NET Core that's installed on the target system.
Sadly the step-by-step examples still only refer to self-contained and framework-dependent deployments (FDD).
The way to do this is to specify a runtime identifier and then --self-contained false
:
dotnet publish -c Release -r win-x64 --self-contained false
This will generate an executable without including the whole .NET Core framework.
For .NET Core 3.0 the following can be used:
dotnet publish -c Release -r win-x64 --no-self-contained
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With