AmpScm / SharpProj

.Net / C# wrapping of PROJ
Apache License 2.0
36 stars 8 forks source link

SharpProj for platform target x64 #67

Open torbjornd opened 5 months ago

torbjornd commented 5 months ago

Hi. I'm trying to use this library in an ArcGIS Pro Add-in. The ArcGIS Pro SDK supports only x64, and I'm not able to use this library now. I first got the FileNotFoundException mentioned in #25 and after adding

`

PreserveNewest

`

and

`

true

`

I now get an error saying

System.BadImageFormatException: Could not load file or assembly 'C:...\net8.0\runtimes\win-x64\lib\netcoreapp\SharpProj.dll'. Format of the executable (.exe) or library (.dll) is invalid.

Does SharpProj support x64, or are you going to add this support any time soon?

silsoe commented 4 days ago

I believe the reason why it does not support x64 is because this configuration is missing from the project file: SharpProj.NetTopologySuite.csproj This project only has the "any CPU". If the x64 configuration is added, the package runs fine on an x64 only project I have created. My project is only running net6.0, so I do not know if there are other net8.0 issues. It will be really nice it this gets fixed, and a new version of the nuget package is release. This makes maintenance a lot easier in the future.