Assembly 'Microsoft.SqlServer.Types' version 10 or higher could not be found

后端 未结 4 2050
谎友^
谎友^ 2020-12-05 04:48

I Have a problem. I\'m not able to add a Migration to my ASP.NET WebAPI 2 Project. I get error:

\"Spatial types and functions are not available for t

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 05:12

    the problem may be "virtual". You need to have SqlServerSpatial140.dll in bin folder at the moment you issue add-migration command. Just copy the .dll to bin for development purpose and replace manually the version (x86/x64) during deployment. Sql Server (2012+) already has the assembly installed.

提交回复
热议问题