I'm using Microsoft.SQLServer.Types to use the spacial type. I'm installing version 11.x from Nuget.
When I publish the solution using Visual studio (2013) it's copying version 11.x to the bin folder.
However, when I build using MSBuild, it's copying version 10.x into the bin folder.
Any thoughts why?
Here's the bit of the csproj file that references the dll:
<Reference Include="Microsoft.SqlServer.Types, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.SqlServer.Types.11.0.1\lib\net20\Microsoft.SqlServer.Types.dll</HintPath>
</Reference>
Also, copy local is set to true.
Also I've got this in the web.config for that project:
<dependentAssembly>
<assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
</dependentAssembly>