IAppBuilder找不到类型或命名空间(使用PR指令程序集引用丢失) [英] The type or namespace IAppBuilder could not be found(missing using a directive pr an assembly reference)

查看:3160
本文介绍了IAppBuilder找不到类型或命名空间(使用PR指令程序集引用丢失)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作中,我使用SignalR 2.0.1一个Asp.Net MVC 4应用程序,我映射它使用Owin启动类,它能正常工作在第一。

I am working on an Asp.Net MVC 4 Application in which I am using SignalR 2.0.1 and I Mapped it using Owin Startup class and it worked fine at first.

突然,当我试图重建我的应用程序它说该类型的命名空间 IAppbuilder 找不到。

All of a sudden when I tried to rebuild my app it said that the type are namespace IAppbuilder could not be found.

以下是我的开始补课

using Microsoft.Owin;
using Owin;
using WhiteBoardApp;

namespace WhiteBoardApp
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            app.MapSignalR();
        }
    }
}

我已经安装了 Owin 包过了,因为某些原因我无法找到Owin启动类,所以我只是增加了一个普通的类,其中包括所需要的所有引用。
我可以知道我犯了一个错误

I have installed Owin package too, and for some reasons I could not find Owin Startup class so I just added a normal class and included all the references that are needed. May I know where I am making a mistake

推荐答案

尝试使用打包管理控制台,并做

Try to use Package Manage Console and do

Update-Package Owin -Reinstall

这篇关于IAppBuilder找不到类型或命名空间(使用PR指令程序集引用丢失)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆