c# - Build Error after third party assembly was strongly named. -


i have been working on upgrading application use mongodb 2.0 driver, have hit road block since mongodb not releasing named version of assemblies. result cannot build assembly in solution gets registered in global assembly cache (gac) because gac requires assemblies named.

using technique explained on ian picknell's , ryan farley's blogs able name assemblies; mongodb.bson.dll, mongodb.driver.dll, , mongodb.driver.core.dll. after signing them removed old references these assemblies , added references new named versions. when try build project in vs2013 2 errors(see below) generated both of trying reference weakly named assembly (this understanding because error states publickeytoken=null).

i've tried building named assemblies straight source code since mongodb open source has been generating hundreds of errors i'm still working through.

error   1   type 'mongodb.bson.bsondocument' defined in assembly not referenced. must add reference assembly 'mongodb.bson, version=2.0.1.27, culture=neutral, publickeytoken=null'.  error   2   type 'mongodb.driver.iasynccursorsource`1<t0>' defined in assembly not referenced. must add reference assembly 'mongodb.driver.core, version=2.0.1.27, culture=neutral, publickeytoken=null'. 

read topic 331520 , dirk vollmar's answer (also give him upvote). link provides explained problem encountering.

a quick summary of problem original mongodb.driver.dll , mongodb.driver.core.dll built reference unsigned version of mongodb.bson, had update references inside of dll's include publickeytoken used sign assemblies. explained .net-fu article under foo, bar, baz section.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -