warrenfalk / rocksdb-sharp

.net bindings for the rocksdb by facebook
Other
206 stars 65 forks source link

Live Unit Testing support #56

Open Peska opened 5 years ago

Peska commented 5 years ago

I'm using MS Tests with Visual Studio 2019 16.0.0 and 5.17.2 version of this library.

Running test in "standard" mode - right click -> Run Selected Tests is working as expected. However, when I enable Live Unit Testing, Visual Studio is unable to locate RocksDbSharp.Native library:

> System.TypeInitializationException: The type initializer for 'RocksDbSharp.Native' threw an exception. ---> NativeImport.NativeLoadException: Unable to locate rocksdb native library, either install it, or use RocksDbNative nuget package
> Searched:
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\native\amd64\rocksdb-5.17.2.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\native\amd64\rocksdb-5.17.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\native\amd64\rocksdb-5.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\native\amd64\rocksdb.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\native\rocksdb-5.17.2.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\native\rocksdb-5.17.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\native\rocksdb-5.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\native\rocksdb.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\amd64\rocksdb-5.17.2.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\amd64\rocksdb-5.17.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\amd64\rocksdb-5.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\amd64\rocksdb.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\rocksdb-5.17.2.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\rocksdb-5.17.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\rocksdb-5.dll: (Win32Exception) The specified module could not be found
> C:\PathToProject\.vs\ProjectName\lut\0\t\ProjectName.Tests\bin\Debug\rocksdb.dll: (Win32Exception) The specified module could not be found
> rocksdb-5.17.2.dll: (Win32Exception) The specified module could not be found
> rocksdb-5.17.dll: (Win32Exception) The specified module could not be found
> rocksdb-5.dll: (Win32Exception) The specified module could not be found
> rocksdb.dll: (Win32Exception) The specified module could not be found

When I examine this folder, I couldn't find 'native" directory as well.