I used dotConnect version 7.17 with NetTopologySuite 1.14 + GeoAPI 1.7.4.
I update dotConnect to version 8.0.
Now I can't run my application:
When I compile I have the warning
warning MSB3277: détection de conflits non résolus entre différentes versions de "NetTopologySuite".
warning MSB3277: Conflit existant entre "NetTopologySuite, Version=1.14.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1" et "NetTopologySuite, Version=2.0.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1".
warning MSB3277: "NetTopologySuite, Version=1.14.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1" a été sélectionné, car il était de type primaire et "NetTopologySuite, Version=2.0.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1" ne l'était pas.
warning MSB3277: Références qui dépendent de "NetTopologySuite, Version=1.14.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1" [D:\MyProject\packages\NetTopologySuite.1.14\lib\net45\NetTopologySuite.dll].
warning MSB3277: D:\MyProject\packages\NetTopologySuite.1.14\lib\net45\NetTopologySuite.dll
warning MSB3277: Item Include d'un fichier projet ayant généré la référence "D:\MyProject\packages\NetTopologySuite.1.14\lib\net45\NetTopologySuite.dll".
warning MSB3277: NetTopologySuite, Version=1.14.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1, processorArchitecture=MSIL
warning MSB3277: Références qui dépendent de "NetTopologySuite, Version=2.0.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1" [].
warning MSB3277: C:\Program Files (x86)\Devart\dotConnect\PostgreSQL\Entity\EF6\Devart.Data.PostgreSql.Entity.EF6.dll
warning MSB3277: Item Include d'un fichier projet ayant généré la référence "C:\Program Files (x86)\Devart\dotConnect\PostgreSQL\Entity\EF6\Devart.Data.PostgreSql.Entity.EF6.dll".
warning MSB3277: Devart.Data.PostgreSql.Entity.EF6, Version=8.0.0.0, Culture=neutral, PublicKeyToken=09af7300eec23701, processorArchitecture=MSIL
And when I Run the program try to open NetTopologySuite 2.0.0 (but I don't have it) and fail.
It's indicate that "With EF5 and EF6, NetTopologySuite 1.14 is supported only.".
When I try to use NetTopologySuite 2.0 or 2.5, I cannot use GeoAPI and so I can't use it.
What the way ?
It seem that devart dotconnect 8.0 need to use NetTopologySuite 2.0 and NetTopologySuite 2.0 is not compatible with GeoAPI, this code not work anymore:
var geometryService = new NetTopologySuite.NtsGeometryServices();
geometryService.DefaultSRID = 4326;
GeoAPI.GeometryServiceProvider.Instance = geometryService;
Devart.Data.PostgreSql.Entity.Configuration.PgSqlEntityProviderConfig.Instance.config.SpatialOptions.SpatialServiceType = Devart.Data.PostgreSql.Entity.Configuration.SpatialServiceType.NetTopologySuiteSigned;
It's seem that dotconnect / NetTopologySuite 2.5 is compatible with Core but I use .Net framework 4.8.
Need to stay in older version of dotconnect for Postgresql?
Waiting reply, don't know what to do.