From 7cff90718168cd7fe24c9c38b23b56488a2ed4d7 Mon Sep 17 00:00:00 2001 From: wuyangfan Date: Mon, 25 May 2026 10:50:32 +0800 Subject: [PATCH 1/2] fix: reference Dapper instead of Dapper.StrongName in providers 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 #693 Co-authored-by: Cursor --- samples/Samples.Console/Samples.Console.csproj | 2 +- samples/Samples.ConsoleCore/Samples.ConsoleCore.csproj | 2 +- .../MiniProfiler.Providers.MySql.csproj | 2 +- .../MiniProfiler.Providers.PostgreSql.csproj | 2 +- .../MiniProfiler.Providers.SqlServer.csproj | 2 +- .../MiniProfiler.Providers.Sqlite.csproj | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/Samples.Console/Samples.Console.csproj b/samples/Samples.Console/Samples.Console.csproj index 4a231934..027d60e3 100644 --- a/samples/Samples.Console/Samples.Console.csproj +++ b/samples/Samples.Console/Samples.Console.csproj @@ -14,7 +14,7 @@ - + diff --git a/samples/Samples.ConsoleCore/Samples.ConsoleCore.csproj b/samples/Samples.ConsoleCore/Samples.ConsoleCore.csproj index 69882b6f..5429ac5a 100644 --- a/samples/Samples.ConsoleCore/Samples.ConsoleCore.csproj +++ b/samples/Samples.ConsoleCore/Samples.ConsoleCore.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/MiniProfiler.Providers.MySql/MiniProfiler.Providers.MySql.csproj b/src/MiniProfiler.Providers.MySql/MiniProfiler.Providers.MySql.csproj index d42d7a2a..f1a47aaa 100644 --- a/src/MiniProfiler.Providers.MySql/MiniProfiler.Providers.MySql.csproj +++ b/src/MiniProfiler.Providers.MySql/MiniProfiler.Providers.MySql.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/MiniProfiler.Providers.PostgreSql/MiniProfiler.Providers.PostgreSql.csproj b/src/MiniProfiler.Providers.PostgreSql/MiniProfiler.Providers.PostgreSql.csproj index dc8806e9..167bdeb5 100644 --- a/src/MiniProfiler.Providers.PostgreSql/MiniProfiler.Providers.PostgreSql.csproj +++ b/src/MiniProfiler.Providers.PostgreSql/MiniProfiler.Providers.PostgreSql.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/MiniProfiler.Providers.SqlServer/MiniProfiler.Providers.SqlServer.csproj b/src/MiniProfiler.Providers.SqlServer/MiniProfiler.Providers.SqlServer.csproj index 581a8454..18e21be2 100644 --- a/src/MiniProfiler.Providers.SqlServer/MiniProfiler.Providers.SqlServer.csproj +++ b/src/MiniProfiler.Providers.SqlServer/MiniProfiler.Providers.SqlServer.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/MiniProfiler.Providers.Sqlite/MiniProfiler.Providers.Sqlite.csproj b/src/MiniProfiler.Providers.Sqlite/MiniProfiler.Providers.Sqlite.csproj index 35b32075..9792d0c1 100644 --- a/src/MiniProfiler.Providers.Sqlite/MiniProfiler.Providers.Sqlite.csproj +++ b/src/MiniProfiler.Providers.Sqlite/MiniProfiler.Providers.Sqlite.csproj @@ -9,7 +9,7 @@ - + From 3ef03ebf60b5a053dd9803f5ba9a29cd5c75880a Mon Sep 17 00:00:00 2001 From: wuyangfan Date: Tue, 26 May 2026 16:43:44 +0800 Subject: [PATCH 2/2] fix: use TFM-conditional Dapper package references (#693) 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 --- .../MiniProfiler.Providers.MySql.csproj | 7 ++++++- .../MiniProfiler.Providers.PostgreSql.csproj | 7 ++++++- .../MiniProfiler.Providers.SqlServer.csproj | 7 ++++++- .../MiniProfiler.Providers.Sqlite.csproj | 7 ++++++- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/MiniProfiler.Providers.MySql/MiniProfiler.Providers.MySql.csproj b/src/MiniProfiler.Providers.MySql/MiniProfiler.Providers.MySql.csproj index f1a47aaa..d6c74e0e 100644 --- a/src/MiniProfiler.Providers.MySql/MiniProfiler.Providers.MySql.csproj +++ b/src/MiniProfiler.Providers.MySql/MiniProfiler.Providers.MySql.csproj @@ -8,8 +8,13 @@ net472;netstandard2.0 - + + + + + + diff --git a/src/MiniProfiler.Providers.PostgreSql/MiniProfiler.Providers.PostgreSql.csproj b/src/MiniProfiler.Providers.PostgreSql/MiniProfiler.Providers.PostgreSql.csproj index 167bdeb5..3af2a5ee 100644 --- a/src/MiniProfiler.Providers.PostgreSql/MiniProfiler.Providers.PostgreSql.csproj +++ b/src/MiniProfiler.Providers.PostgreSql/MiniProfiler.Providers.PostgreSql.csproj @@ -8,8 +8,13 @@ net472;netstandard2.0 - + + + + + + diff --git a/src/MiniProfiler.Providers.SqlServer/MiniProfiler.Providers.SqlServer.csproj b/src/MiniProfiler.Providers.SqlServer/MiniProfiler.Providers.SqlServer.csproj index 18e21be2..832e94b0 100644 --- a/src/MiniProfiler.Providers.SqlServer/MiniProfiler.Providers.SqlServer.csproj +++ b/src/MiniProfiler.Providers.SqlServer/MiniProfiler.Providers.SqlServer.csproj @@ -8,8 +8,13 @@ net472;netstandard2.0 - + + + + + + diff --git a/src/MiniProfiler.Providers.Sqlite/MiniProfiler.Providers.Sqlite.csproj b/src/MiniProfiler.Providers.Sqlite/MiniProfiler.Providers.Sqlite.csproj index 9792d0c1..bf1e4f94 100644 --- a/src/MiniProfiler.Providers.Sqlite/MiniProfiler.Providers.Sqlite.csproj +++ b/src/MiniProfiler.Providers.Sqlite/MiniProfiler.Providers.Sqlite.csproj @@ -8,8 +8,13 @@ net472;net8.0 - + + + + + +