<div dir="ltr">Hi,<div><br></div><div>You can let cmake to build the csharp libs for netstandard2.0 ("-DCSHARP_LIBRARY_VERSION=netstandard2.0") which makes it compatible with both the netframework and netcore versions.</div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Parveen Sharma via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> ezt írta (időpont: 2025. febr. 19., Sze, 9:59):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-1817498141166190219">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello<br>
<br>
</div>
<div style="direction:ltr;font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am trying to build GDAL CSharp bindings from <a href="https://github.com/OSGeo/gdal/tree/v3.9.3/swig/csharp" id="m_-1817498141166190219LPlnk593606" title="https://github.com/OSGeo/gdal/tree/v3.9.3/swig/csharp" target="_blank">
v3.9.3 branch</a>.<br>
<br>
</div>
<div style="direction:ltr;font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
The <a href="https://gdal.org/en/stable/api/csharp/csharp_compile_cmake.html#net-build-toolchain" id="m_-1817498141166190219LPlnk" title="https://gdal.org/en/stable/api/csharp/csharp_compile_cmake.html#net-build-toolchain" target="_blank">
documentation for v3.9.3</a> states that it needs .NET 5.0 OR Mono</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
<img id="m_-1817498141166190219image_0" size="40496" style="max-width: 1267px;" src="cid:ii_1956ab8f04dcb971f161"></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b>Question : </b><u>Is it possible to build GDAL source v3.9.3 using DOT NET Framework 4.8 or less?
</u>I am using below flags BUT it seems the build process is attempting to look for only .NET SDK and not the DOT NET FRAMEWORK<br>
<br>
</div>
<table style="box-sizing:border-box;border-collapse:collapse;border-spacing:0px">
<tbody>
<tr>
<td style="width:802.141px;height:22px;border-width:1px;border-style:solid;border-color:rgb(171,171,171);background-color:rgb(204,228,246);vertical-align:top;color:rgb(0,0,0);box-sizing:border-box">
<div style="text-align:left;text-indent:0px;margin:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<arg value="-DBUILD_CSHARP_BINDINGS=ON"/><!-- C# Bindings--></div>
<div style="text-align:left;text-indent:0px;margin:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<arg value="-DCSHARP_LIBRARY_VERSION=4.8"/></div>
<div style="text-align:left;text-indent:0px;margin:0px;font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<arg value="-DCSHARP_APPLICATION_VERSION=4.8"/></div>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b><u>Does GDAL still support building CSharp Bindings with .net framework?</u></b></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Please let me know.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Best regards,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Parveen</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></blockquote></div>