Method LocatePackagedExtension()
Locate the REDB native extension shipped inside the NuGet package, relative to
the running application (). Returns the full
path (suffix included) or null if not found.
Probes the runtimes/<rid>/native layout, then a flattened copy next to the
app. Note the package does NOT ship that layout: the binaries live under
buildTransitive/native/<rid>/ so platform SDKs (notably .NET Android, which
harvests every runtimes//native/.so into the APK) cannot pick them up. The
package's .targets reproduces this layout in consumer output instead. Used by the
Free DI registration to auto-configure without
an explicit REDB_SQLITE_EXTENSION env var. As a dev fallback it also walks
up the source tree to the CMake build output, so a ProjectReference run straight
from the repo (a worker, tests) loads the extension with no manual setup.
public static string? LocatePackagedExtension()