The first question that I would ask is what are you trying to achieve? DBUILD_APPS=ON will build the standard GDAL apps but does not affect the C# trial apps. I think this is the default anyway
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. The directory structure is actually dependent on what is created by `dotnet` and can vary a little between platforms but sounds about right. 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`. On Fri, 31 Jan 2025 at 12:56, Parveen Sharma via gdal-dev < gdal-dev@lists.osgeo.org> wrote: > Hi > > I am building GDAL Master branch ( > https://github.com/OSGeo/gdal/tree/master/swig/csharp/apps) using CMAKE. > I am using below flags to build the CSHARP Bindings > > <arg value="-DBUILD_CSHARP_BINDINGS=ON"/> > <arg value="-DBUILD_APPS=ON"/> > > However, > > > 1. I notice that in "*RelWithDebInfo*" build mode there is NO "*apps*" > folder generated in "RelWithDebInfo\swig\csharp" folder. I do see > individual apps folder like "GDALCreateCopy", "GDALDatasetWrite", > "GDALInfo" generated though. Is this expected? > > > 2. I DO NOT see the any folder corresponding to *GDALMemDataset , > GDALDatasetRasterIOEx , VSIMem *in my "RelWithDebInfo\swig\csharp" > folder even though the source file is present at > > > https://github.com/OSGeo/gdal/blob/master/swig/csharp/apps/GDALMemDataset.cs > > > https://github.com/OSGeo/gdal/blob/master/swig/csharp/apps/GDALDatasetRasterIOEx.cs > https://github.com/OSGeo/gdal/blob/master/swig/csharp/apps/VSIMem.cs > > > *Am I missing any additional CMAKE Flags. Can you please let me know?* > > > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev