You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
convert projects to .net sdk format and modify design of rocksdbnative to deploy an assembly to act as a beacon
This fixes the problem with using RocksDbSharp in a unit test environment as well as any environment that uses shadow copying or runs from a different codebase than usual.
The native libraries have been removed from the RocksDbSharp csproj and moved to a new RocksDbNative csproj. The RocksDbNative csproj now also builds an assembly with a single class and a single method for getting the codebase. If you previously had a project reference to the RocksDbSharp project, native binaries were automatically copied for you. This is no longer true and not desired. Now the project reference works like the package reference and you should add a project reference to RocksDbNative to get the native binaries.
<ErrorText="The RocksDbSharp native binaries could not be found. Run the download script (download-native.cmd or download-native.sh in the RocksDbSharp project folder)"Condition="!Exists('native\amd64\rocksdb.dll')" />
@@ -401,7 +418,7 @@ public static T Import<T>(INativeLibImporter importer, string libName, string ve
401
418
returnt;
402
419
}
403
420
404
-
thrownewNativeLoadException("Unable to locate rocksdb native library, either install it, or use RocksDbNative nuget package\nSearched:"+string.Join("\n",search.Select(s =>$"{s.Path}: ({s.Error.GetType().Name}) {s.Error.Message}")),null);
421
+
thrownewNativeLoadException("Unable to locate rocksdb native library, either install it, or use RocksDbNative nuget package\nSearched:\n"+string.Join("\n",search.Select(s =>$"{s.Path}: ({s.Error.GetType().Name}) {s.Error.Message}")),null);
<Description>.Net Bindings for RocksDb. See the Project Site for more information. (Note: Also install RocksDbNative package to have native binaries included with build)</Description>
<ErrorText="The RocksDbSharp native binaries could not be found. Run the download script (download-native.cmd or download-native.sh in the RocksDbSharp project folder)"Condition="!Exists('..\native\amd64\rocksdb.dll')" />
0 commit comments