Dapper.Tvp Assembly is does not have a strong Name

dapper dapper-extensions nuget sql table-valued-parameters

Question

Recently I was working with Dapper.Net and it is awesome so far for dynamic object manipulations with sql, Great work by Dapper team.

But there is a need to have bulk insert and update and i used table valued parameter which is better in terms of performance and i decided to use dapper.tvp for that purpose. so i followed following steps

  1. Added Dapper.Tvp assembly using nuget command Install-Package Dapper.Tvp

  2. Then when i try to build the project it gives me the following error "Referenced Assembly Dapper Does Not have a Strong Name"

Please Advice me o this issue and appreciate your help

Accepted Answer

Indeed, dapper does not have a strong name. Many of my reasons for this are set out here. You can of course build dapper locally (or as part of your project) and sign it any way you like. Note also that dapper now includes table value parameter support, so it could be that you simply don't need dapper.tvp.


Popular Answer

Okay then follow the below steps that might resolve your problem.

  1. Right click on the project file
  2. Then Select Properties
  3. Then Select "Signing tab" (on the left side)
  4. Then Click the check box "Sign the assembly"
  5. Then Browse your .snk file.

Then rebuild your solution.

good luck...




Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why