https://bugs.documentfoundation.org/show_bug.cgi?id=135138
Peter Hagen <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|1 |0 Status|NEEDINFO |UNCONFIRMED --- Comment #3 from Peter Hagen <[email protected]> --- I installed the latest SDK in Windows (sorry, I'm using a Mac), and then copied the dll's from the GAC to my Mac. There with Rider I made a little project containing the DLL's and part of the sample code. It builds, but it doesn't run: /Users/peter/Downloads/LBNet/bin/Debug/net6.0/LBNet Sample caught exception! System.BadImageFormatException: Could not load file or assembly 'cli_cppuhelper, Version=1.0.23.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e'. An attempt was made to load a program with an incorrect format. File name: 'cli_cppuhelper, Version=1.0.23.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e' at SpreadsheetDocHelper.connect(String[] args) at SpreadsheetDocHelper..ctor(String[] args) in /Users/peter/Downloads/LBNet/Program.cs:line 272 at GeneralTableSample..ctor(String[] args) in /Users/peter/Downloads/LBNet/Program.cs:line 51 at GeneralTableSample.Main(String[] args) in /Users/peter/Downloads/LBNet/Program.cs:line 36 Process finished with exit code 0. Looking at cli_cppuhelper, it references kernel32.dll. I guess there is some pinvoke in that dll? Well, at least its not a .netstandard DLL, but .Net 6 can load these on any platform. It would be great if these would be .NetStandard, and preferable available as nuget packages. -- You are receiving this mail because: You are the assignee for the bug.
