Set to Self-contained (includes the .NET runtime) or Framework-dependent .
Add the following properties to your project's : Single File
Create or edit a (e.g., targeting a folder). Set to Self-contained (includes the
win-x64 true true Use code with caution. Copied to clipboard Single File
You can enable this feature either through the or by directly editing your project file ( .csproj ). Method 1: Using Visual Studio