4 ms·
That's exactly what it is. You can even cross-compile for all supported platforms. $ dotnet new console -n HelloWorld $ dotnet publish --project HelloW
by abdusco 5y ago
That's exactly what it is. You can even cross-compile for all supported platforms.
$ dotnet new console -n HelloWorld
$ dotnet publish --project HelloWorld -r osx-arm64 --self-contained -o out -p:PublishTrimmed=true
$ du -sh out
10M
- qwertox 5y agoWow... I didn't know. Since when can it do this?
- chunkyks 5y agoI've been using this for at least a year or two. With their stripping, my binaries (which use very little other than system.* and math.*) are 12M in size on each OS. I tested with today's release of version six, the binaries are about 1M smaller each.
- tester756 5y agoI believe it was introduced around .NET Core 5? or 3? so at least 1 year ago
- metaltyphoon 5y agoSince .net core 3.0
- the_arun 5y agoI haven't used .net. But how memory management happens when you are running a binary executable? Does it have a builtin CLR (Common Language Runtime[1])? Because CLR provides the tools for managing memory & security? [1] https://en.wikipedia.org/wiki/Common_Language_Runtime https://en.wikipedia.org/wiki/Common_Language_Runtime
- sitharus 5y agoYes, it embeds the CLR in to the application see the PR at https://github.com/dotnet/runtime/issues/43072 https://github.com/dotnet/runtime/issues/43072