<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Tahoma, Geneva, sans-serif; font-size: 10pt; color: rgb(102, 102, 102);">
I would use one of the NuGet packages that are built for .NET Framework</div>
<div class="elementToProof" style="font-family: Tahoma, Geneva, sans-serif; font-size: 10pt; color: rgb(102, 102, 102);">
<br>
</div>
<div class="elementToProof" style="font-family: Tahoma, Geneva, sans-serif; font-size: 10pt; color: rgb(102, 102, 102);">
<a href="https://www.nuget.org/packages?q=MaxRev.Gdal" id="LPlnk902520">https://www.nuget.org/packages?q=MaxRev.Gdal</a></div>
<div class="elementToProof" style="font-family: Tahoma, Geneva, sans-serif; font-size: 10pt; color: rgb(102, 102, 102);">
<br>
</div>
<div class="elementToProof" style="font-family: Tahoma, Geneva, sans-serif; font-size: 10pt; color: rgb(102, 102, 102);">
These should suffice, rather than building the bindings yourself.</div>
<div class="elementToProof" style="font-family: Tahoma, Geneva, sans-serif; font-size: 10pt; color: rgb(102, 102, 102);">
<br>
</div>
<div class="elementToProof" id="Signature" style="color: inherit;">
<p><span style="font-family: Tahoma, sans-serif; font-size: 10pt; color: rgb(77, 77, 79);">Cheers,</span></p>
<p><span style="font-family: Tahoma, sans-serif; font-size: 10pt; color: rgb(77, 77, 79);"> </span></p>
<p><span style="font-family: Tahoma, sans-serif; font-size: 10pt; color: rgb(77, 77, 79);">Ross</span></p>
<p> </p>
</div>
<div id="appendonsend"></div>
<div style="font-family:Tahoma,Geneva,sans-serif; font-size:10pt; color:rgb(102,102,102)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> gdal-dev <gdal-dev-bounces@lists.osgeo.org> on behalf of Parveen Sharma via gdal-dev <gdal-dev@lists.osgeo.org><br>
<b>Sent:</b> Wednesday, 19 February 2025 19:58<br>
<b>To:</b> Michał Kowalczuk via gdal-dev <gdal-dev@lists.osgeo.org><br>
<b>Subject:</b> [gdal-dev] Can we build CSharp Bindings in GDAL v3.9.3 or later with DOT NET FRAMEWORK 4.8?</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello<br>
<br>
</div>
<div class="x_elementToProof" 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" data-auth="Verified" originalsrc="https://github.com/OSGeo/gdal/tree/v3.9.3/swig/csharp" shash="d6y1QyIa+GgmukZGpKLBAYE51UqPYUdl/+lm1QxPOIy+/HiqHTHmdW3k4OmOmNSyhHTTQDxM+x9kox5PdE/BNJxoBu4V94banoTVovNwcjg2I1xJpU3Y/LeqPBzBU+nGMt7M8PhAatUBi9ndhXejnGGSoXvnRjCd6+ey3Tu80Ac=" id="LPlnk593606" class="x_OWAAutoLink" title="https://github.com/OSGeo/gdal/tree/v3.9.3/swig/csharp">
v3.9.3 branch</a>.<br>
<br>
</div>
<div class="x_elementToProof" 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" data-auth="Verified" originalsrc="https://gdal.org/en/stable/api/csharp/csharp_compile_cmake.html#net-build-toolchain" shash="TbpI0Z5K6vrAr4W1VtBrQcg+RaBApoW0eS8zVZYtYOuODESuiJa8sgXsMBmz9LQ9EbAwfSzHL+pfPkWnP0wpPClu9MMnsnqhi/5maGPD5LOSeiTvlIRww82ve5P5E07476Wf5ksE9ZIaS5lH8l2IpE2lZcAwtak7ZvKIzmZN8EQ=" id="LPlnk" class="x_OWAAutoLink" title="https://gdal.org/en/stable/api/csharp/csharp_compile_cmake.html#net-build-toolchain">
documentation for v3.9.3</a> states that it needs .NET 5.0 OR Mono</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
<img id="x_image_0" size="40496" style="max-width:1267px" data-outlook-trace="F:2|T:2" src="cid:459f78aa-7867-445a-8c18-cbdc80f04432"></div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" 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 data-editing-info="{"topBorderColor":"#ABABAB","bottomBorderColor":"#ABABAB","verticalBorderColor":"#ABABAB","hasHeaderRow":false,"hasFirstColumn":false,"hasBandedRows":false,"hasBandedColumns":false,"bgColorEven":null,"bgColorOdd":"#ABABAB20","headerRowColor":"#ABABAB","tableBorderFormat":0,"verticalAlign":"top"}" style="box-sizing:border-box; border-collapse:collapse; border-spacing:0px">
<tbody>
<tr>
<td data-editing-info="{"bgColorOverride":true}" 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 class="x_elementToProof" 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 class="x_elementToProof" 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 class="x_elementToProof" 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 class="x_elementToProof" 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 class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Please let me know.</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Best regards,</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Parveen</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<h3><strong><em><span style="color:#ffcc00">Caution</span>: </em></strong><em>Please do not click links or open attachments unless you recognise the sender and know the content is safe.</em></h3>
</div>
<p><span style="font-size:10.0pt;font-family:"Times New Roman","serif"">This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to
<span class="GramE">whom</span> they are addressed. Any confidentiality is not waived or lost because this email has been sent to you by mistake. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy
laws in <st1:country-region w:st="on"><st1:place w:st="on">Australia</st1:place></st1:country-region>. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any
reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox.<span style="color:navy"><o:p></o:p></span></span></p>
<p><o:p> </o:p></p>
</body>
</html>