<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="text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Helvetica, sans-serif;">Hello tamas<br>
<br>
I am trying to build with these options<br>
<br>
</span><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;"><arg value="-DBUILD_CSHARP_BINDINGS=ON"/><!-- C# Bindings--></span></div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<arg value="-DCSHARP_LIBRARY_VERSION=netstandard2.0"/></div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<arg value="-DCSHARP_APPLICATION_VERSION=netstandard2.0"/> </div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
<br>
However, I am getting errors wrt to finding the executables like OGRInfo.exe etc among others<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 style="width: 974.532px; height: 22px; border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); vertical-align: top; box-sizing: border-box;">
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
[INFO] [exec] -- Installing: C:/workarea/Source/gdal/build_Debug/install/share/csharp/OgrInfo/OgrInfo.deps.json</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
[INFO] [exec] CMake Error at swig/csharp/cmake_install.cmake:152 (file):</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color: rgb(255, 255, 0);">[INFO] [exec] file INSTALL cannot find</span></div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color: rgb(255, 255, 0);">[INFO] [exec] "C:/workarea/Source/gdal/build_Debug/swig/csharp/OgrInfo/OgrInfo.exe</span>":</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</td>
</tr>
</tbody>
</table>
<div><br>
<br>
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
My question : If I set CMAKE OPTIONS as shown to "netstandard2.0" then do i expect to see the EXEs getting generated as I understand that .NET STANDARD is just specification and not any runtime. Will these make any difference?<br>
<br>
Best regards,</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Tamas Szekeres <szekerest@gmail.com><br>
<b>Sent:</b> Thursday, March 6, 2025 5:12 PM<br>
<b>To:</b> Parveen Sharma <sharma1981@outlook.com><br>
<b>Cc:</b> Michał Kowalczuk via gdal-dev <gdal-dev@lists.osgeo.org><br>
<b>Subject:</b> Re: [gdal-dev] Can we build CSharp Bindings in GDAL v3.9.3 or later with DOT NET FRAMEWORK 4.8?</font>
<div> </div>
</div>
<div>
<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="x_gmail_quote x_gmail_quote_container">
<div dir="ltr" class="x_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="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_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="x_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="x_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="x_m_-1817498141166190219image_0" size="40496" style="max-width:1267px" data-outlook-trace="F:1|T:1" 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>
</div>
</body>
</html>