Why are so many DLLs in the package? #67

Closed
opened 2026-01-29 16:28:28 +00:00 by claunia · 2 comments
Owner

Originally created by @aggsol on GitHub (Sep 16, 2019).

Even a small console application is 30MB. Inside are a lot of DLL that are part of the runtime. Is the runtime not a dependency, why also provide those DLLs? Also there is Visual basic DLL and I don't even use that. How can I strip it?

Originally created by @aggsol on GitHub (Sep 16, 2019). Even a small console application is 30MB. Inside are a lot of DLL that are part of the runtime. Is the runtime not a dependency, why also provide those DLLs? Also there is Visual basic DLL and I don't even use that. How can I strip it?
Author
Owner

@qmfrederik commented on GitHub (Sep 19, 2019):

The DLLs which are packaged are the result of publishing your application as a framework-independent package using dotnet publish. It includes the runtime.

You are right that it may be easier to declare the runtime as a dependency. This would reduce the size of the application.

There's no built-in support for that right now, but it's something worth considering.

One caveat here would be that your users would be required to add the .NET Core repository for your operating system to their list of repositories before they can install your app, since .NET Core is not packaged by any of the major distro's (that I know of).

@qmfrederik commented on GitHub (Sep 19, 2019): The DLLs which are packaged are the result of publishing your application as a framework-independent package using `dotnet publish`. It includes the runtime. You are right that it may be easier to declare the runtime as a dependency. This would reduce the size of the application. There's no built-in support for that right now, but it's something worth considering. One caveat here would be that your users would be required to add the .NET Core repository for your operating system to their list of repositories before they can install your app, since .NET Core is not packaged by any of the major distro's (that I know of).
Author
Owner

@aggsol commented on GitHub (Sep 23, 2019):

Ok. That explains the large packages.

@aggsol commented on GitHub (Sep 23, 2019): Ok. That explains the large packages.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#67