Could not load LiteCore.Dll WPF Publish


#1

I’m trying to use CB Lite 2.0.3 with a WPF project using .NET Framework 4.7.2. I have both the Couchbase.Lite and Couchbase.Lite.Support.NetDesktop nuget packages referenced on the project. It works fine when I am debugging the application but when I publish to a clickonce application and try to install the application on a Vanilla VM of Windows 10 (with all updates) it is hitting the following exception.

I do not see the LiteCore.Dll anywhere on the project to include it, however, it is Application Files/[ProjectName]/x64 & x86 directory named LiteCore.dll.deploy

Any help is appreciated.


#2

You will need to install the Visual Studio 2015 C++ runtime onto the VM or else this message will pop up. I am definitely going to add this as part of the error message for future releases.


#3

Great, installing that fixed my issue. Thank you!