Bug 165585 - LibreOffice SDK binaries lack cross platform .NET binding files
Summary: LibreOffice SDK binaries lack cross platform .NET binding files
Status: REOPENED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
25.2.0.3 release
Hardware: All All
: medium normal
Assignee: Hossein
URL:
Whiteboard: target:27.2.0
Keywords:
Depends on:
Blocks: .NET
  Show dependency treegraph
 
Reported: 2025-03-05 12:41 UTC by Hossein
Modified: 2026-08-07 14:54 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2025-03-05 12:41:36 UTC
Description:
If you open LibreOffice SDK binaries, you will see that they lack latest cross platform dotnet binding files.

Steps to Reproduce:
1. Download LibreOffice SDK for some platform. For example:

macOS:
https://downloadarchive.documentfoundation.org/libreoffice/old/25.2.0.1/mac/aarch64/LibreOffice_25.2.0.1_MacOS_aarch64_sdk.dmg

(can be opened on macOS, or with 7zip: https://7-zip.org/download.html)

Windows:
https://downloadarchive.documentfoundation.org/libreoffice/old/25.2.0.1/win/x86_64/LibreOffice_25.2.0.1_Win_x86-64_sdk.msi

Linux DEB:
https://downloadarchive.documentfoundation.org/libreoffice/old/25.2.0.1/deb/x86_64/LibreOffice_25.2.0.1_Linux_x86-64_deb_sdk.tar.gz

2. Install or extract the SDK
3. Look for folders named dotnet or similar inside it

Actual Results:
You only find dotnet examples, while there should be other dotnet binding files there, including DLLs and the Nuget package.

Expected Results:
At least these files from a LibreOffice build should be shipped inside the SDK binaries:

$ cd libreoffice/core

$ ls instdir/sdk/dotnet/
LibreOffice.Bindings.0.1.0.nupkg  nuget.config

$ ls ./instdir/program/dotnet
net_basetypes.dll  net_bridge.runtimeconfig.json  net_uretypes.dll
net_bridge.dll     net_oootypes.dll


Reproducible: Always


User Profile Reset: No

Additional Info:
On macOS, there is another issue, which is detecting installed dotnet at build time, and you should give the path to 'dotnet' binary manually. This may need another bug report.

For more information about the latest cross platform .NET support, please see the report from Ritobroto who developed it:

Work Report for .NET Bindings Project:
https://gist.github.com/RMZeroFour/80e5115ddd59030a0ec808abc396e839
Comment 1 Hossein 2025-03-26 23:17:04 UTC
Confirming the issue based on this message on dev mailing list:

Nuget package for C#, 2025-03-19
https://lists.freedesktop.org/archives/libreoffice/2025-March/093121.html
Comment 2 orakist.tr 2025-10-10 15:22:50 UTC
Is there any updates for this issue? Still there is no dotnet files under the sdk.
Comment 3 Kees van Spelde 2026-05-13 13:44:45 UTC
Does somebody know where I can find the new crossplatform bindings for .net? I installed the latest development version but could not find them.

I'm hitting the same problem as other people, I'm converting old legacy code from .net framework to .net 10 and are hitting the "Invalid Handle" error
Comment 4 tonyliveh 2026-06-17 04:17:44 UTC
I would like to add my support to this request. The .NET bindings (net_ure / LibreOffice.Bindings) are very useful, but the official SDK still lacks pre-built packages.
Could you please provide an update on the current progress? Also, has anyone successfully compiled the bindings and shared the resulting NuGet package or DLLs?
Comment 5 Commit Notification 2026-07-22 14:01:58 UTC
Hossein committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/71e1af33588dfbf31067fe759ecab58584a08f24

tdf#165585 Fix SDK lacking cross platform .NET binding files

It will be available in 27.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 tonyliveh 2026-07-28 08:41:56 UTC
I still cannot find LibreOffice.Bindings in either LibreOfficeDev_27.2.0.0.alpha0_Win_x86-64 or LibreOfficeDev_27.2.0.0.alpha0_Win_x86-64_sdk.
Comment 7 tonyliveh 2026-07-28 09:49:10 UTC
Where are net_bootstrap and net_uno?
Comment 8 Hossein 2026-08-07 14:54:30 UTC
(In reply to tonyliveh from comment #6)
> I still cannot find LibreOffice.Bindings in either
> LibreOfficeDev_27.2.0.0.alpha0_Win_x86-64 or
> LibreOfficeDev_27.2.0.0.alpha0_Win_x86-64_sdk.
I filed this bug to track the problem with building the installation packages, and this specific problem is now fixed. If you build LibreOffice packages on your system and you have .NET SDK installed, you will get the required .NET binding files in the SDK installation package.

But, unfortunately, this is not enough to see those packages in the final builds.
CI machines should have .NET SDK installed, which they do not have at the moment. There is a WIP patch for LODE to fix that issue, but that is stalled and is not yet merged:

.NET Bindings: Fix cygwin permissions and dotnet symlinks
https://gerrit.libreoffice.org/c/lode/+/170062

In order to see the required .NET binding files in the final builds, the above patch should be merged. Alternative would be to install .NET SDK manually, which is seemingly not possible.