Owin Startup Detection

前端 未结 1 1771
慢半拍i
慢半拍i 2021-01-13 04:16

I developed an application with Owin Startup class. When i am running the OwinHost.exe, it shows No Assembly found containing OwinStartupAttribute.

But

1条回答
  •  北海茫月
    2021-01-13 05:20

    Project-> right click add new item.

    Startup.cs

    using Microsoft.Owin;
    using Owin;
    
    [assembly: OwinStartup(typeof(SignalRChat.Startup))]
    namespace SignalRChat
    {
    
        public class Startup
        {
            public void Configuration(IAppBuilder app)
            {
                app.MapSignalR();
            }
        }
    }
    

    0 讨论(0)
提交回复
热议问题