Answer the question
In order to leave comments, you need to log in
How to publish a .NET Core application with only the required set of libraries?
I am publishing a .net core application under linux, say under Ubuntu. In addition to the program itself, the publish folder contains a bunch of necessary DLLs. Many of them correspond to existing namespaces in .net core, but more than half of them are not used in the program. So the question is, is it possible to publish an application so that the source directory contains only the necessary ones to reduce its final size and reduce the number of files?
Answer the question
In order to leave comments, you need to log in
What is not used by you does not mean that it is not used by the linked libraries. When publishing, the extra is definitely not added.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question