SelfContainedSlow
Defenders slows down .NET 6.0 SelfContained singleexe files
Code and Build
The c# program contains nothing
Console.WriteLine("Hello, World!");
Console.ReadLine();
dotnet publish -c Release -r win-x64 --output ./artifacts --self-contained true -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -p:IncludeAllContentForSelfExtract=true -p:CopyOutputSymbolsToPublishDirectory=false -p:EnableCompressionInSingleFile=true
How to Test
- Clone the repository to your computer "git clone https://github.com/EifelMono/SelfContainedSlow.git"
- Download .NET 6.0 SDK and install
- Run build.cmd
- Execute artifacts\SelfContainedSlow.exe
Result
Video when I open the file property dialog or starts the program