c# - Finding Microsoft.SqlServer.Management.Smo and ConnectionInfo References that are Compatible -
i'm trying use
using microsoft.sqlserver.management.common using microsoft.sqlserver.management.smo
and found .dll files on c: drive in usual place,
c:\program files\microsoft sql server\
the problem apparently 2 aren't compatible.
.smo
comes \130\sdk\assemblies
,
.common
comes referencing .connectioninfo.dll
\110\sdk\assemblies
so wonder since they're not in same \number\sdk\assemblies
that's why aren't same version. when run application message visual studio
"found conflicts between different versions of same dependent assembly not resolved. these reference conflicts listed in build log when log verbosity set detailed."
and
"assembly 'microsoft.sqlserver.smo, version=13.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91' uses 'microsoft.sqlserver.connectioninfo, version=13.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91' has higher version referenced assembly 'microsoft.sqlserver.connectioninfo, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91'"
i tried microsoft suggest set autogeneratebindingredirects true did not work.
ask:
go find proper versions of dlls?
i can see both dlls in same directory on sql server installation:
c:\program files\microsoft sql server\110\sdk\assemblies\microsoft.sqlserver.connectioninfo.dll c:\program files\microsoft sql server\110\sdk\assemblies\microsoft.sqlserver.smo.dll
using vs 2015 .net 4.5.2 i'm able reference both dlls, build, , run console app uses serverconnection
, server
classes.
see if can find microsoft.sqlserver.connectioninfo.dll
in 110\sdk folder.
Comments
Post a Comment