OWIN Startup Class Missing

前端 未结 19 1188
攒了一身酷
攒了一身酷 2020-11-29 15:40

I\'m getting this error as my project is not able to find the reference for OWIN startup class. I\'ve even installed all the OWIN reference packages through Nug

19条回答
  •  北海茫月
    2020-11-29 16:40

    On Visual Studio 2013 RC2, there is a template for this. Just add it to App_Start folder.

    enter image description here

    The template produces such a class:

    using System;
    using System.Threading.Tasks;
    using Microsoft.Owin;
    using Owin;
    
    [assembly: OwinStartup(typeof(WebApiOsp.App_Start.Startup))]
    
    namespace WebApiOsp.App_Start
    {
        public class Startup
        {
            public void Configuration(IAppBuilder app)
            {
                // For more information on how to configure your application, visit http://go.microsoft.com/fwlink/?LinkID=316888
            }
        }
    }
    

提交回复
热议问题