Skip to content

Add ReferenceTrimmer and remove unused references - #2191

Merged
mgravell merged 3 commits into
DapperLib:mainfrom
dfederm:feature/reference-trimmer
May 16, 2026
Merged

mgravell merged 3 commits into
DapperLib:mainfrom
dfederm:feature/reference-trimmer

Conversation

@dfederm

@dfederm dfederm commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Add ReferenceTrimmer to enable detection of unnecessary project, package, and assembly references during build. Remove all unused references identified by ReferenceTrimmer.

Disclosure: I own ReferenceTrimmer, but I do think it will be helpful to this repo, as evidenced by the unused references it was able to identify. Adding it to the repo will help keep the references clean.

@mgravell

Copy link
Copy Markdown
Member

Interesting tool, thanks. I'm a little cautious of additional build-tools, but since I also own DapperAOT and a bunch of other build-time tools, it is probably hypocritical for me to get too paranoid about that! I've poked it a bit to deal with merge-conflicts, update to latest, etc, but if it goes green: great! appreciated

@mgravell
mgravell merged commit 72a54c4 into DapperLib:main May 16, 2026
1 of 2 checks passed
This was referenced May 17, 2026
github-actions Bot pushed a commit to sloweyyy/cloud-native-ecommerce-platform that referenced this pull request May 18, 2026
Updated [Dapper](https://github.com/DapperLib/Dapper) from 2.1.66 to
2.1.79.

<details>
<summary>Release notes</summary>

_Sourced from [Dapper's
releases](https://github.com/DapperLib/Dapper/releases)._

## 2.1.79

## What's Changed
* fix CI by @​mgravell in DapperLib/Dapper#2196
* Fix segfault when ICustomQueryParameter is a value type (#​2189) by
@​andreasblueher in DapperLib/Dapper#2198
* Update dependencies by @​mgravell in
DapperLib/Dapper#2202
* Make private & internal classes sealed and less enumeration of lists &
LINQ by @​Henr1k80 in DapperLib/Dapper#2197
* Fix/prefer typehandlers for enums by @​andreasblueher in
DapperLib/Dapper#2200
* keep deps up to date by @​mgravell in
DapperLib/Dapper#2204
* Add ReferenceTrimmer and remove unused references by @​dfederm in
DapperLib/Dapper#2191

## New Contributors
* @​andreasblueher made their first contribution in
DapperLib/Dapper#2198
* @​Henr1k80 made their first contribution in
DapperLib/Dapper#2197
* @​dfederm made their first contribution in
DapperLib/Dapper#2191

**Full Changelog**:
DapperLib/Dapper@2.1.72...2.1.79

## 2.1.72

## What's Changed
* TFM packaging for .NET 10 by @​mgravell in
DapperLib/Dapper#2195
* Fix and clarify OrWhere caveats in SqlBuilder docs by @​jnoordsij in
DapperLib/Dapper#2149
* OutputExpression wasn't working for methods that use QueryRowAsync by
@​ri-rgb in DapperLib/Dapper#2156
* CI: use preinstalled sdk by @​kbth in
DapperLib/Dapper#2160
* CI: serialize DB-dependent tests by @​kbth in
DapperLib/Dapper#2163

## New Contributors
* @​jnoordsij made their first contribution in
DapperLib/Dapper#2149
* @​ri-rgb made their first contribution in
DapperLib/Dapper#2156
* @​kbth made their first contribution in
DapperLib/Dapper#2160

**Full Changelog**:
DapperLib/Dapper@2.1.66...2.1.72

Commits viewable in [compare
view](DapperLib/Dapper@2.1.66...2.1.79).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Dapper&package-manager=nuget&previous-version=2.1.66&new-version=2.1.79)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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