3

我正在关注教程,安装了 RanvenDB 并写入:

public static IDocumentStore archives =
    new EmbeddableDocumentStore { DataDirectory = "~/DataStore" };

然后我让 VS 找到 EmbeddableDocumentStore 的位置,然后添加:

using Raven.Client.Embedded;

还没有错误,一切看起来都很好。然后我建立:

Archives.cs(10,20):错误 CS0234:命名空间“Raven.Client”中不存在类型或命名空间名称“Embedded”(您是否缺少程序集引用?)

编译完成 -- 1 个错误,0 个警告

现在它是错误的,没有嵌入式......

如果我删除 package.config 并再次运行 install Ravendb Embedded 它将再次变为绿色(没有错误),但在我运行 build 之后...

如何修复它?

(测试不同的版本:相同的结果)

4

1 回答 1

5

确保您正在构建完整的 .NET 框架,而不仅仅是客户端配置文件。

于 2012-04-09T09:28:12.473 回答