For the basic console app, It can produce. It is a tool similar to ILMerge for the classic. Warp (thanks to Darien Shannon for mentioning it in the comment) and dotnet CoreRT. Or on the command line in a folder with csproj file: dotnet publish -r win-圆4 -p:PublishSingleFile=trueįor more details see a great answer given by Gopi. To configure single exe build edit your csproj file: There is PublishTrimmed=true option that can decrease size to ~28 MB by analyzing static code references and excluding unused framework assemblies from the final build. exe file (~68 MB for a basic console app). NET Core 3.0 supports it out of the box.
0 Comments
Leave a Reply. |