<div>Hey guys. I am trying to use mapscript from a dotnet core application. Works OK on Windows, but am not able to get csharp_mapscript compiled on Linux. <br></div><div>Has anyone ever did this? From the recent efforts to have a cross platform dotnet this seems to be a good bet.<br></div><div><br></div><div>A couple of things seem to show that this is not possible, for example the environment variables in the build.make generated are Windows format. Also the use of the command <i>copy  </i>is a Windows command.<br></div><div><br></div><div><b>the file build.make generated </b><br></div><div>mapscript/csharp/mapscript.so: mapscript/csharp/CMakeFiles/<a href="http://mapscript.dir/link.txt">mapscript.dir/link.txt</a><br></div><div>@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/linusr/projs/mapserver/ms_src/mapserver/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Linking C shared module mapscript.so"<br></div><div>cd /home/linusr/projs/mapserver/ms_src/mapserver/build/mapscript/csharp && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/<a href="http://mapscript.dir/link.txt">mapscript.dir/link.txt</a> --verbose=$(VERBOSE)</div><div>@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold "Compiling c# source files"<br></div><div>cd /home/linusr/projs/mapserver/ms_src/mapserver/build/mapscript/csharp && set MAPSCRIPT_SNK=/home/linusr/projs/mapserver/ms_src/mapserver\mapscript\csharp\mapscript.snk</div><div>cd /home/linusr/projs/mapserver/ms_src/mapserver/build/mapscript/csharp && set MAPSCRIPT_SNK=%MAPSCRIPT_SNK:/=\%</div><div>cd /home/linusr/projs/mapserver/ms_src/mapserver/build/mapscript/csharp <b>&& copy /Y "%MAPSCRIPT_SNK%"</b><br></div><div><br></div><div><b>The file mapscriptCSHARP_wrap.c</b><br></div><div>this file is using instructions only valid for Microsoft compilers. <br></div><div><br></div><div>SWIGINTERN imageObj *mapObj_draw(struct mapObj *self){<br></div><div><br></div><div>    //__try {<br></div><div>        return msDrawMap(self, 0);<br></div><div>    //}   <br></div><div>    //__except(1 /*EXCEPTION_EXECUTE_HANDLER, catch every exception so it doesn't crash IIS*/) { <br></div><div>    //    msSetError(15, "Unhandled exception in drawing map image 0x%08x", "msDrawMap()", GetExceptionCode());<br></div><div>    //}<br></div><div>  }<br></div>