简体   繁体   English

找不到类型或名称空间名称“ IProductRepository”(程序集引用的Missing指令)

[英]The type or namespace name 'IProductRepository' couldn't be found (Missing directive of assembly reference)

I can't add using OnlineShoppingStore.Domain.Abstract; 我不能使用OnlineShoppingStore.Domain.Abstract添加; in my OnlineShoppingStore.WebUI AppStart > NinjectWeb common.cs files 在我的OnlineShoppingStore.WebUI AppStart> NinjectWeb common.cs文件中

    private static void RegisterServices(IKernel kernel)
    {
        kernel.Bind<IProductRepository>().To<EFProductRepository>(); 
    }

How to add reference in <IProductRepository> ? 如何在<IProductRepository>添加引用?

  1. Right click your WebUI project 右键单击您的WebUI项目
  2. Select Add reference 选择添加参考
  3. Go to Project tab 转到项目选项卡
  4. Select Domain project 选择域项目
  5. Rebuild 重建

I had this same problem and this cleared it up. 我遇到了同样的问题,并解决了这个问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到类型或名称空间名称(缺少使用指令或程序集引用吗?) - Type or namespace name could not be found (missing using directive or assembly reference?) 获取错误找不到类型或命名空间名称“T”(您是否缺少using指令或程序集引用?) - Getting error The type or namespace name 'T' could not be found (are you missing a using directive or an assembly reference?) 找不到类型或命名空间名称“T”(您是否缺少using指令或程序集引用?) - The type or namespace name 'T' could not be found (are you missing a using directive or an assembly reference?) CS0246:找不到类型或名称空间名称“ T”。 您是否缺少using指令或程序集引用? 在C#中 - CS0246: The type or namespace name `T' could not be found. Are you missing a using directive or an assembly reference? in c# 找不到类型或名称空间名称“ My_Interface_Name”(您是否缺少using指令或程序集引用?) - The type or namespace name 'My_Interface_Name' could not be found (are you missing a using directive or an assembly reference?) 找不到类型或命名空间(您是否缺少using指令或程序集引用?) - The type or namespace cannot be found (are you missing a using directive or an assembly reference?) 找不到类型或名称空间名称“ MySql”(您是否缺少using指令或程序集引用?)c#VS 2013 - The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?) c# VS 2013 如何修复“找不到类型或名称空间名称“ PlayerManager”(您是否缺少using指令或程序集引用? - how to fix 'The type or namespace name 'PlayerManager' could not be found (are you missing a using directive or an assembly reference? c#错误1找不到类型或名称空间名称”(是否缺少using指令或程序集引用?) - c# Error 1 The type or namespace name '' could not be found (are you missing a using directive or an assembly reference?) 找不到类型或名称空间名称“ PROJECTNAME”(您是否缺少using指令或程序集引用? - The type or namespace name 'PROJECTNAME' could not be found (are you missing a using directive or an assembly reference?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM