Use these settings in the main PropertyGroup in the csproj file to make the smallest, single .exe file possible.
- OutputType =
Exe
- TargetFramework =
net6.0
(ornet6.0-windows
) - PublishSingleFile =
true
- RuntimeIdentifier =
win-x64
- SelfContained =
false
This corresponds to:
`dotnet build project.csproj --use-current-runtime...
> Keep reading