I have a .NET MVC web application referencing System.Data.Spatial so I can use the DbGeography datatype on a property for some geolocation stuff. I
SqlGeometry and SqlGeography types can be used in VS projects (e.g.
C#) by referencing the Microsoft.SqlServer.Types.dll.Microsoft.SqlServer.Types.dll is a managed library and has some
unmanaged library as prerequisites and they are like
SqlServerSpatialXXX.dll and msvcrXXX.dllMicrosoft.SqlServer.Types.dll are available, however, I don't see any
functionality change from 2012 on.For a detailed solution you may want to see my answer on another similar post.