KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.44k stars 190 forks source link

Add publishing configuraiton for NativeAOT #564

Closed kant2002 closed 2 years ago

kant2002 commented 2 years ago

When publish on NativeAOT applicaiton starts significantly faster. I did not measure, but on old hardware I perceive this clearly. Publishing can be done using dotnet publish -c Release -r linux-x64 -p:PublishNativeAot=True src/StructuredLogViewer.Avalonia/StructuredLogViewer.Avalonia.csproj

KirillOsenkov commented 2 years ago

mind adding a new file PublishNativeAOT.sh with the command? dotnet publish -c Release -r linux-x64 -p:PublishNativeAot=True src/StructuredLogViewer.Avalonia/StructuredLogViewer.Avalonia.csproj

kant2002 commented 2 years ago

I add cmd as well. The final size of code is 144Mb for now. On Linux Native AOT put debug symbols to executable file, so it grow to 500Mb which would be percepted badly until all understand that. I will strip debug symbols on Linux for now.

KirillOsenkov commented 2 years ago

Thanks!