I'm trying to use
using Microsoft.SqlServer.Management.Common
using Microsoft.SqlServer.Management.Smo
And I successfully found the .dll files on my C: drive in the usual place,
C:\Program Files\Microsoft SQL Server\
The problem is that apparently the two aren't compatible.
.Smo comes from \130\SDK\Assemblies
and
.Common comes from referencing the .ConnectionInfo.dll from \110\SDK\Assemblies
so I wonder since they're not in the same \number\SDK\Assemblies that's why they aren't the same version. When I run the application I get this message from Visual Studio
"Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to 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' which has a higher version than referenced assembly 'Microsoft.SqlServer.ConnectionInfo, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'"
I tried to do what Microsoft suggest which is set AutoGenerateBindingRedirects to true but that did not work.
ASK:
Where would I go to find the proper versions of the dlls?