by kyriakos · 6y ago · 0 comments
This "publishTrimmed=true" is demo'd in this video https://channel9.msdn.com/Events/Build/2020/BOD106
Starting around 00:46:30
You'll have several GUI apps installed on user system...
UWP already handled that years ago, thought.
.msix/.appx supports dependency properly. If the app target's a new .NET version, and it doesn't have downloaded, it just.... download automatically on install. UWP .NET on Windows it's also inside .appx packages.
https://github.com/AustinWise/IlLinkerExample
You basically have to directly fiddle with the flags to the IL linker to really get the size down. It's a pain. They are working on designs to make it better:
https://github.com/dotnet/designs/pull/123
I think these changes can make self contained .NET apps compare more favorably to Go apps, at least for larger applications. It would probably take something more like CoreRT to get app size to be competitive with Rust and C.
(sobs woefully)
[1] https://devblogs.microsoft.com/dotnet/introducing-c-source-g...
JS is also exposed to this. Some libraries can be shaken but I've always ran into random things breaking when trying it.
> We're talking about saving how much disk space anyway?
Surely this is relevant to how the customer values disk space, not the developer.
Tons. Serialization, for one, And plugin systems are commonplace.
> You have zero grounds to dictate the value of resources.
Nonsense and worse words. We know how much disk costs. It is a rounding error for the overwhelming majority of people and the overwhelming majority of apps. Prioritize what matters.
Asp.net, entity framework, anytime you use an attribute, binding, autogenerating columns based on an object.