<div dir="ltr"><a href="https://github.com/OSGeo/gdal/blob/master/swig/csharp/CMakeLists.txt">https://github.com/OSGeo/gdal/blob/master/swig/csharp/CMakeLists.txt</a><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, 31 Jan 2025 at 13:36, Parveen Sharma <<a href="mailto:sharma1981@outlook.com">sharma1981@outlook.com</a>> wrote:<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-3734284381566731668">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks</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)">
Could you please point me to the relevant scripts?</div>
<div id="m_-2446728523227553016appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-2446728523227553016divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Paul Harwood <<a href="mailto:runette@gmail.com" target="_blank">runette@gmail.com</a>><br>
<b>Sent:</b> Friday, January 31, 2025 9:31 PM<br>
<b>To:</b> Parveen Sharma <<a href="mailto:sharma1981@outlook.com" target="_blank">sharma1981@outlook.com</a>><br>
<b>Cc:</b> Michał Kowalczuk via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br>
<b>Subject:</b> Re: [gdal-dev] Missing GDALMemDataset , GDALDatasetRasterIOEx , VSIMem when GDAL is built with CSHARP Bindings</font>
<div> </div>
</div>
<div>
<div dir="ltr"><font size="2">I have checked and the three .csproj projects that you listed are NOT currently being build by the build scripts - because they are not needed for the test scripts. You will need to build them yourself.</font></div>
<br>
<div>
<div dir="ltr">On Fri, 31 Jan 2025 at 13:23, Paul Harwood <<a href="mailto:runette@gmail.com" target="_blank">runette@gmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><font size="2">The first question that I would ask is what are you trying to achieve?<br>
<br>
DBUILD_APPS=ON will build the standard GDAL apps but does not affect the C# trial apps. I think this is the default anyway<br>
<br>
DBUILD_CSHARP_BINDINGS=ON will build the c# bindings and the c# trial apps. If that is what you are trying to do this should be sufficient.<br>
<br>
The directory structure is actually dependent on what is created by `dotnet` and can vary a little between platforms but sounds about right.<br>
<br>
I have a feeling that when we went to cmake builds, the three apps you mentioned mighted have been removed from the build scripts since they are not used by the test scripts. I will check but, since they are csproj projects you should anyway be able to just
 build them on top of the bindings using `dotnet`.</font></div>
<br>
<div>
<div dir="ltr">On Fri, 31 Jan 2025 at 12:56, Parveen Sharma via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi<br>
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am building GDAL Master branch (<a href="https://github.com/OSGeo/gdal/tree/master/swig/csharp/apps" id="m_-2446728523227553016x_m_6304745181460393230m_8537159787835076393LPlnk" target="_blank">https://github.com/OSGeo/gdal/tree/master/swig/csharp/apps</a>) using CMAKE. I am using
 below flags to build the CSHARP Bindings<br>
<br>
</div>
<table style="box-sizing:border-box;border-collapse:collapse;border-spacing:0px">
<tbody>
<tr>
<td style="width:644.829px;height:22px;border-width:1px;border-style:solid;border-color:rgb(171,171,171);background-color:rgb(204,204,204);vertical-align:top;box-sizing:border-box">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<arg value="-DBUILD_CSHARP_BINDINGS=ON"/><br>
<arg value="-DBUILD_APPS=ON"/></div>
</td>
</tr>
</tbody>
</table>
<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)">
However, </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<ol start="1">
<li style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);list-style-type:"a) "">
<div>I notice that in "<b>RelWithDebInfo</b>" build mode there is NO "<b>apps</b>" folder generated in "RelWithDebInfo\swig\csharp" folder. I do see individual apps folder like "GDALCreateCopy", "GDALDatasetWrite", "GDALInfo" generated though. Is this expected?<br>
<br>
<br>
</div>
</li><li style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);list-style-type:"b) "">
<div>I DO NOT see the any folder corresponding to <b>GDALMemDataset , GDALDatasetRasterIOEx ,  VSIMem
</b>in my "RelWithDebInfo\swig\csharp" folder<b> </b>even though the source file is present at <br>
<a href="https://github.com/OSGeo/gdal/blob/master/swig/csharp/apps/GDALMemDataset.cs" id="m_-2446728523227553016x_m_6304745181460393230m_8537159787835076393LPlnk397537" target="_blank">https://github.com/OSGeo/gdal/blob/master/swig/csharp/apps/GDALMemDataset.cs</a></div>
<div><a href="https://github.com/OSGeo/gdal/blob/master/swig/csharp/apps/GDALDatasetRasterIOEx.cs" id="m_-2446728523227553016x_m_6304745181460393230m_8537159787835076393LPlnk754331" target="_blank">https://github.com/OSGeo/gdal/blob/master/swig/csharp/apps/GDALDatasetRasterIOEx.cs</a></div>
<div><a href="https://github.com/OSGeo/gdal/blob/master/swig/csharp/apps/VSIMem.cs" target="_blank">https://github.com/OSGeo/gdal/blob/master/swig/csharp/apps/VSIMem.cs</a></div>
</li></ol>
<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><u>Am I missing any additional CMAKE Flags. Can you please let me know?</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)">
<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>
</blockquote>
</div>
</div>
</div>

</div></blockquote></div>