Unable to load LiteDB.dll using Powershell 5.1 on Windows 10
See original GitHub issueI cloned the repository. I opened the solution in Visual Studio 2017 Community. I built the solution. Using Powershell, one is able to load assemblies (most of the time).
When loading:
Set-Location -Path “C:\code\LiteDB-3.1.0\LiteDB-3.1.0\LiteDB\bin\Release\netstandard” Try {get-childitem"*.dll" | foreach { Write-host $.Name; $assembly = Add-type -path $.FullName}} catch { $error[0].Exception.LoaderExceptions}
I get this error:
Could not load file or assembly 'System.IO.FileSystem.Primitives, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Could not load file or assembly 'System.IO.FileSystem.Primitives, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
@lboening @mbdavid I think the reason of this is the global declaration of dependencies in the project.json. net461 doesn’t need them and more importantly doesn’t provide these assemblies and therefore loading fails.
I’ve change the project.json (see pull request) and its working now with powershell on my machine.
I think I should close this. The LiteDB project targets .net 4.0. Meanwhile, I am to grab the Litedb.dll, add it as an assembly, and work with it that way.