https://bugs.documentfoundation.org/show_bug.cgi?id=166857
--- Comment #1 from Skaret <[email protected]> --- Providing more information on reproduction. Used OS: Ubuntu 22.04 Steps: 1. Build LibreOffice from "d572a56bea0a5ad01f485b365b2135c682c9f65f" commit in master (follow the https://wiki.documentfoundation.org/Development/BuildingOnLinux) with "--with-dotnet=yes" option The next options was used in my build: --enable-odk --without-doxygen --disable-gtk4 --disable-firebird-sdbc --disable-postgresql-sdbc --disable-cve-tests --without-help --with-lang=en-US --with-dotnet=yes 2. Install dotnet 8 sdk and runtime: sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-8.0 sudo apt-get update && \ sudo apt-get install -y aspnetcore-runtime-8.0 3. Create a console C# project: dotnet new console -n LOTest -f net8.0 --use-program-main true 4. Make directory for local nuget files: mkdir LocalPackages 5. Copy "LibreOffice.Bindings.0.1.0.nupkg" from builded LibreOffice sdk/dotnet directory to LocalPackages directory 6. Go to project dir: cd LOTest 7. Add package to project: dotnet add package "LibreOffice.Bindings" --version 0.1.0 -s ../LocalPackages 8. Open Program.cs file with your text editor 9. Add next using statements at start of the file: using com.sun.star.beans; using com.sun.star.bridge; using com.sun.star.connection; using com.sun.star.frame; using com.sun.star.lang; using com.sun.star.uno; 10. Copy code provided in bug description in 3rd reproduce step into Main(string[] args) method 11. Add the new class for exception after Program class end: class UnoWrapperException(string msg) : ApplicationException(msg) { } 12. Save and close Program.cs file 13. Launch LibreOffice from other console with: soffice "--accept=socket,host=localhost,port=2083;urp;" 14. Back to first console and run "./setsdkenv_unix" script from LibreOffice sdk directory 15. Build and run test dotnet program from LOTest directory: dotnet run 16. See the error -- You are receiving this mail because: You are the assignee for the bug.
