.NET Core 3.0 introduced the ability to create single-file executables. This allows for distribution of only one application file, as all configs and dependencies are included within the binary itself.
The feature provides a native way for dependencies embedding which is most beneficial when publishing self-contained applications generating hundreds of assemblies. It can be used for framework-dependent or self-contained applications, but requires setting a runtime identifier in both cases to target a specific environment and bitness.
This directory contains an example of integrating SmartAssembly into .NET Core 3 single-file executable build:
- simplified-example - .NET Core 3.1 console application protected by SmartAssembly, published as single-file.
Execute the publish-and-run.bat
file from example above, to build, publish, and run the application protected by SmartAssembly.
Follow our documentation to see how to protect your single-file application by integrating SmartAssembly into your build process.