Home General

Error Downloading Driver from Manager (MacOS Only)

I can load the Aerospike driver as an LPX6 file successfully (everything downloads and runs correctly) on the Mac. When I try to load it via NuGet/Manager, I get the below error:

Warning: No compatible assemblies found in package 'Aerospike.Database.LINQPadDriver'.

There is nothing in the LINQPad log file.

Has anyone experienced this issue and any hints on what I need to do on the Mac to get this working?

BTW, everything work correctly under windows...

Answers

  • Sorry - this is something I failed to mention in the docs. Before creating the NuGet package, you will need to remove the -windows suffix from any folders under lib. So lib/net8.0-windows should be renamed to lib/net8.0.

    The reason is that Microsoft (quite reasonably) assume that WPF is a windows-only technology. However, with XPF, this is no longer true.

    This applies only to the driver, which contains WPF code, not to any dependent packages which should be deployed as normal.

  • Thanks Joe for information!

    But you need to rename more than the "lib" folder. Any of the folder that has a reference to "netX.0-windows" needs to be renamed (e.g., contentFiles/any/net8.0-windows => contentFiles/any/net8.0).

    I also had to edit the metadata to reflect the renamed folders plus "dependencies/target framework" had to be renamed.

    Once completed, I was able to load the package from the manager. If you missed one of these changes, the package will fail to load, content missing, and/or the dependency packages did not load.

    I manually performed this with the NuGet Package Explorer. I just started to look into how to do this during my build.

    Do you have any suggestions on how to do this from my build pipeline?

Sign In or Register to comment.