Opened 13 years ago
Closed 13 years ago
#1903 closed task (fixed)
Refined LocalNative library
Reported by: | jng | Owned by: | jng |
---|---|---|---|
Priority: | low | Milestone: | Maestro-5.0 |
Component: | Maestro | Version: | |
Severity: | trivial | Keywords: | |
Cc: | External ID: |
Description
The current LocalNative library is hard-referenced against the 2.0 MapGuideDotNetApi assembly, and asssembly binding redirection is used to enable support for newer versions of MapGuide without re-compilation.
This technique is somewhat inflexible (and probably doesn't work) with the advent of 64-bit MapGuide and .net Framework 4.0. It is more efficient and simpler to just compile the LocalNative library directly against various versions of the MapGuide .net API.
Then instead of modifying web.config or app.config to set up assembly binding redirection, the user simply needs to register the desired LocalNative dll into ConnectionProviders.xml (for their version of MapGuide) and copy the required unmananged MapGuide dlls over to the LocalNative dll location.