Nuget package for C#

Hossein Nourikhah hossein at libreoffice.org
Sun Mar 23 16:10:50 UTC 2025


Hello Ilya,

This is a known issue with the LibreOffice SDK, which lacks .NET binding 
files:

tdf#165585 LibreOffice SDK binaries lack cross platform .NET binding 
files
https://bugs.documentfoundation.org/show_bug.cgi?id=165585

On the other hand, this is binary only issue. You should be able to 
compile LibreOffice with cross platform .NET enabled, and build the 
required packages.

As you are on Windows, you may follow these instructions, using LODE:

https://wiki.documentfoundation.org/Development/lode

I have built LO with cross platform .NET support myself, and the 
resulting package is available in:

instdir/sdk/dotnet/LibreOffice.Bindings.0.1.0.nupkg

inside LibreOffice core source folder.

Regards,
Hossein

On 19.03.2025 06:50, Ilya Sokolov wrote:
> Hello
> 
> I have an application, which integrates with Libre Office via C#
> libraries. The application is being migrated from .Net Framework 4.5,
> where all works well, to .Net 8. However, when then the .Net 8
> application tries to connect to the Libre Office an exception
> occurres.
> 
> Brief googling provided the link 148857 – Handle is not initialized
> exception when bootstrapping with .Net (but not in .Net Framework) 3
> [1], where it is said that the latest Libre Office should have
> communicate with .Net if the corresponding LibreOffice.Bindings Nuget
> is used. Accordingly to the link the Nuget should be located at
> /dotnet/LibreOffice.Bindings.0.1.0.nupkg, however, after installing
> LibreOffice_25.2.1.2_Win_x86-64_sdk I have no dotnet folder in
> C:\Program Files\LibreOffice\sdk.
> 
> I have posted the question here
> (https://ask.libreoffice.org/t/nuget-package-for-c/119073) and got the
> advice to mail to this list.
> 
> Could you tell me how can I get the LibreOffice.Bindings Nuget?
> 
> --
> 
> Best Regards,
> Ilia Sokolov
> 
> 
> 
> Links:
> ------
> [1] https://bugs.documentfoundation.org/show_bug.cgi?id=148857

-- 
Hossein Nourikhah, Ph.D., Developer Community Architect
Tel: +49 30 5557992-65 | Email: hossein at libreoffice.org
The Document Foundation, Winterfeldtstraße 52, 10781 Berlin, DE
Gemeinnützige rechtsfähige Stiftung des bürgerlichen Rechts
Legal details: https://www.documentfoundation.org/imprint


More information about the LibreOffice mailing list