Skip to content

Latest commit

 

History

History

netcore3-single-file

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Introduction

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

Running the example

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.

More information

Follow our documentation to see how to protect your single-file application by integrating SmartAssembly into your build process.

https://documentation.red-gate.com/sa7/building-your-assembly/using-smartassembly-with-single-file-executables-net-core-3