在 Developing Dynamics CRM 2011 中找不到类型或命名空间名称

The type or namespace name could not be found in Developing Dynamics CRM 2011

我不得不做一些逆向工程。 不管怎样,我在 decompiled 插件的基础上为 Dynamics CRM 2011 开发了一个插件。参考这个link。 我创建了一个新的 Class 库, 我解决了大部分错误。 但是存在一些错误,其中一个是最重复的! 实体存储库调用的所有地方,例如 QuoteProduct Entity :

QuoteProductRepository quoteProductRepository = new QuoteProductRepository(context);

编译器说:

Severity    Code    Description Project File    Line    Suppression State
Error   CS0246  The type or namespace name 'QuoteReceiptStepRepository' could not be found (are you missing a using directive or an assembly reference?)    

我应该在项目中添加什么参考?

从用法可以看出QuoteProductRepository是一个class。由于它不是 Microsoft\Dynamics CRM class,它一定是在您反编译的原始 .dll 上使用的第三方代码。

我在这里看到两个选项:

  1. 它是在您反编译的 .dll 的命名空间内声明的。如果是这样,请在那里寻找它。
  2. 它在另一个.dll 上声明,该.dll 被您反编译的.dll 引用。在这种情况下,您需要获取其他 .dll 以查看其实现。