ASP.NET 5 (ASP.NET vNext) is OWIN based like Katana was, but has different abstractions. Notably IAppBuilder has been replaced by IApplicationBuilder. Many middleware libraries depend on IAppBuilder and have not been updated to support ASP.NET 5
How can I use this OWIN middleware in ASP.NET 5 middleware. Both are OWIN based so it should be possible.
Microsoft.AspNet.Builder.OwinExtensions does provide a UseOwin method, but it is based on the low-level OWIN signatures so cannot be used with methods expecting IAppBuilder.
Edit: you can now use the
AspNet.Hosting.Katana.Extensionspackage for that.Here's a slightly different version, that uses
AppBuilder.DefaultApp:Note that referencing
Microsoft.Owinmakes your app incompatible withdnxcore50(Core CLR).