« Native,Version=v0.0 »

Topics: WinForms Controls
Jun 13, 2014 at 5:41 PM
Edited Jun 13, 2014 at 6:07 PM
Well hello there,

I've been searching for a library that can read and display a map on a windows form for 2 days now. I watched shapelib, GDAL/OGR and now sharpmap but i'm unable to install those libraries.

I have visual studio ultimate 2012 on Windows 7. I tried to install sharpmap via NuGet but this error appears
http://s1371.photobucket.com/user/mati22mat1/media/SharpMap_zps607f2ed9.png.html

Those anyone have an idea why this happens?

Thanks a lot!
Math
Coordinator
Jun 13, 2014 at 8:55 PM
Do you have another version of System.Data.SQLite installed?
Which Framework does your project target? Platform?
Jun 16, 2014 at 4:16 PM
Edited Jun 16, 2014 at 7:29 PM
I didnt found SQLite at all in Visual studio and on my PC
No SQLite 1
No SQLite 2

My framework is .NETFramework, Version=v4.5
Framework

And my platform is Win32
Platform

Thanks for the help!
Jun 16, 2014 at 7:25 PM
Even in the Package Manager Console doing so...
PM> Install-Package SharpMap -IgnoreDependencies
The NuGet error
Coordinator
Jun 17, 2014 at 8:38 AM
You need Net45 framework, could you be changing to Net403?
Jun 17, 2014 at 2:08 PM
I've targeted framework to v4.0 and downloaded/installed the 4.03 update but the error is still the same.

And i targeted back to v4.5 and again same error as before!

I found this on the NuGet website. I'm not well understanding what to do with that but you may understand
Coordinator
Jun 18, 2014 at 9:27 AM
It seems the System.Data.SQLite package referenced (1.0.86) is not installable in managed VC++ projects.
An update to SQLite 1.0.92 seems to resolve the issue.
Jun 18, 2014 at 1:35 PM
I tried it and same error!

but I dont think the problem is from the dependencies. I'm pretty sure SQLite is having problem because its the first to be added to the project. Watch this!

mati22mat wrote:
Even in the Package Manager Console doing so...
PM> Install-Package SharpMap -IgnoreDependencies
The NuGet error
Coordinator
Jun 27, 2014 at 9:06 AM
Sorry for the delay. I have checked and it seems that for managed c++ projects you need to have the assemblies compiled for either 32bit or 64bit. The nuget packages only provide assemblies compiled for AnyCPU.

You will have to compile sharpmap yourself until we decide/get around to package platform specific assemblies.

Sorry.