It would be nice to have support for the single-file publication (.NET 5+).
Currently, library throws the exception:
System.TypeInitializationException The type initializer for 'RocksDbSharp.Native' threw an exception.
Void .ctor()
at RocksDbSharp.OptionsHandle..ctor()
at RocksDbSharp.ColumnFamilyOptions..ctor()
at RocksDbSharp.DbOptions..ctor()
NotSupportedException CodeBase is not supported on assemblies loaded from a single-file bundle.
System.String get_CodeBase()
It would be nice to have support for the single-file publication (.NET 5+).
Currently, library throws the exception:
Initializer here: https://github.com/curiosity-ai/rocksdb-sharp/blob/ef23652f005c60bed6c73d44d2c5b12ff2842ab6/csharp/src/AutoNativeImport.cs#L375
can use AppContext.BaseDirectory and wrap
CodeBase
lines to try-catch clause to prevent it.publish command:
Thanks in advance.