<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 class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, 31 Jan 2025 at 12:56, Parveen Sharma via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</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="msg8537159787835076393">
<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_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_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_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>