A
A
Andrew2019-11-25 14:25:04
ASP.NET
Andrew, 2019-11-25 14:25:04

How to clean up references and dependencies in Asp Net Core?

There is an Asp Net Core 3 project that has only one library added (Npgsql).
This project, when published, generates 300+ dll libraries, and many of them are clearly not used in the project and it is not clear how they got there (for example, Microsoft.Extensions.*, System.Xml.*)
This is not the case in other Core projects.
I tried to do Optimize References with the removal of unused links (which is built into the resharper) - it did not help.

List of links in the project
5ddbba59d9b6c127301559.jpeg

List of resulting files
5ddbbaa0c1763560859913.jpeg

How can I understand where the references to libraries come from and remove them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-11-25
@sarapinit

The fact is that the aspnetcore package itself consists of metapackages. This article should clear things up.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question