C# MapScript & GAC

Tamas Szekeres szekerest at GMAIL.COM
Thu Jul 26 09:29:39 PDT 2007


Zhonghai,

I'm afraid you'll have to do some kind of compilation in any case. By
using the al.exe you might have to compile mapscript as a 'raw' module
with the /t:module csc option.

FYI: Currently I have an open ticket for the support of the signed
assemblies targeting the 5.0 release.

http://trac.osgeo.org/mapserver/ticket/2112

I'm planning to fix this in some days for the time of the beta2 (Wed
Aug. 1, 2007) so the ms4w package for the beta2 will possibly contain
this option.

Best regards,

Tamas



2007/7/26, Zhonghai Wang <zhonghaiw at gmail.com>:
> Hi Guys,
>
> I am now programming different windows applications with MapServer C#
> MapScript, to add reference to the mapscript_csharp.dll, sure that i can
> copy all the related DLLs into my projects, and all these work well. But
> it's not sort of elegant, i am trying now to generate an SNK file for the
> mapscript_csharp.dll and install it into GAC. Has anyone ever done anything
> like this and made it run?
>
> i got a problem with the AL.EXE command, because it needs a .netmodule file,
> i can not create it with the mapscript_csharp.dll. Since i use the binary
> MapServer version directly, i cannot add the strong name file per attribute.
>
> what I am trying to do are:
> 1. sn.exe -- > get the strong name file;
> 2. al.exe -- > link the .netmodule with the strong name file, get a DLL
> output;
> 3. GACUtil /i -- > install it into the GAC.
> 4. Add a reference to the DLL in my projects.
>
> any ideas are welcome.
>
> Cheers
>
> Zhonghai



More information about the MapServer-users mailing list