我通过https://github.com/couchbase/couchbase-lite-net windows客户端对GitHub进行了分叉和克隆。
但是,当我打开Couchbase.Lite.Net45.VS2013.sln并构建。我收到10个错误,说明无法找到各种dll和“元数据文件”dll。
一些错误示例:
错误1无法复制文件"C:\dev\repo_git\couchbase-lite-net\src\Couchbase.Lite.Shared\vendor\cbforest\CSharp\prebuilt\CBForest-Interop.dll“,因为找不到它。C:\程序文件(x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets 3899 5 cbforest-Sharp.net 45 错误2元数据文件'C:\dev\repo_git\couchbase-lite-net\src\Couchbase.Lite.Shared\vendor\cbforest\CSharp\cbforest-sharp.Net45\bin\Debug\cbforest-sharp.dll‘找不到C:\dev\repo_git\couchbase-lite-net\src\Couchbase.Lite.Net45\CSC Couchbase.Lite.Net45 错误10元数据文件'C:\dev\repo_git\couchbase-lite-net\src\ListenerComponent\Couchbase.Lite.Listener.Net45\bin\Debug\Couchbase.Lite.Listener.dll‘找不到C:\dev\repo_git\couchbase-lite-net\src\Couchbase.Lite.Net45.Tests\CSC Couchbase.Lite.Net45测试
我注意到在Github readme.md上,它指出曾经需要发布:
git子模块更新-init-递归
但是我认为GitHub windows客户端已经更新了子模块,例如,我可以在GitHub中看到许多文件,但是在CBForest示例中没有“预置\CBForest-Interop.dll”文件。
通过构建\src\Couchbase.Lite.Shared\vendor\cbforest\CBForest.VS2015并将-Interop.dll复制到上面的位置,更新使其工作。
但是还有一个构建错误:
错误107错误读取资源文件'c:\dev\repo_git\couchbase-lite-net\src\Couchbase.Lite.Net45.Tests\Assets\local-test.properties‘--“系统找不到指定的文件。”C:\dev\repo_git\couchbase-lite-net\src\Couchbase.Lite.Net45.Tests\CSC Couchbase.Lite.Net 45.测试
发布于 2015-11-19 15:28:12
问题解决:有关详细信息,请参阅https://github.com/couchbase/couchbase-lite-net/issues/528。
https://stackoverflow.com/questions/33799196
复制相似问题