Skip to content

Conversation

@olstakh
Copy link
Contributor

@olstakh olstakh commented Feb 11, 2026

Currently a lot of packages are skipped from being trimmed because they / their dependencies contain any build files. This can be a simple props / targets file with no consequence, but msbuild task can't determine whether it's safe to remove or not, so such packages are skilled. Like Microsoft.Extensions.Logging.Abstractions. This PR adds the ability for the user to have a list of such packages, so they're judged only whether they're used, and not on the presence of build files

Attempts to address #123

@dfederm dfederm enabled auto-merge (squash) February 11, 2026 05:42
@dfederm dfederm disabled auto-merge February 11, 2026 06:48
@dfederm dfederm self-requested a review February 11, 2026 06:49
@dfederm
Copy link
Owner

dfederm commented Feb 11, 2026

So this isn't quite right. The suppression ends up having to happen up the entire tree, not just on the package which has the build files.

Eg, I would expect an unused dependency on Microsoft.Extensions.Logging to require a suppression on Microsoft.Extensions.Logging.Abstractions (which actually has the build files), but I end up having to add one for Microsoft.Extensions.Logging, which does not.

EDIT: Pushed some fixes for this

@dfederm dfederm merged commit 2cab49a into dfederm:main Feb 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants