Skip to content

fix: reference Dapper instead of Dapper.StrongName in providers (#693)#701

Open
leno23 wants to merge 2 commits into
MiniProfiler:mainfrom
leno23:fix/dapper-strongname-cs0433-693
Open

fix: reference Dapper instead of Dapper.StrongName in providers (#693)#701
leno23 wants to merge 2 commits into
MiniProfiler:mainfrom
leno23:fix/dapper-strongname-cs0433-693

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 25, 2026

Summary

  • Replace Dapper.StrongName with Dapper in all SQL provider projects and sample apps
  • Avoids CS0433 when consumers reference the unsigned Dapper package (e.g. alongside Dapper.SqlBuilder)

Fixes #693

Test plan

  • CI build passes for provider projects
  • Consumer referencing both MiniProfiler.Providers.SqlServer and Dapper no longer hits SqlMapper type ambiguity

wuyangfan and others added 2 commits May 25, 2026 10:50
Switch provider and sample projects to the unsigned Dapper package to
avoid CS0433 type conflicts when consumers also reference Dapper and
packages such as Dapper.SqlBuilder.

Fixes MiniProfiler#693

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep Dapper.StrongName on net472 so signed provider assemblies load
correctly, while netstandard2.0/net8.0 use unsigned Dapper to avoid
CS0433 when consumers reference Dapper.SqlBuilder.

Co-authored-by: Cursor <cursoragent@cursor.com>
@leno23
Copy link
Copy Markdown
Author

leno23 commented May 26, 2026

AppVeyor failure on 7cff9071 was caused by unsigned Dapper on net472 signed provider assemblies (FileLoadException: A strongly-named assembly is required).

Pushed 3ef03ebf: TFM-conditional references — Dapper.StrongName on net472, unsigned Dapper on netstandard2.0/net8.0. This keeps #693 fixed for modern consumers while preserving strong-name compatibility on .NET Framework.

@leno23
Copy link
Copy Markdown
Author

leno23 commented May 26, 2026

CI green on 3ef03ebf (AppVeyor #54106485). TFM-conditional Dapper refs fix both #693 CS0433 on modern TFMs and net472 strong-name loading. Ready for review.

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.

CS0433 The type 'SqlMapper' exists in both 'Dapper.StrongName' and 'Dapper'

1 participant