Sample App Created in Console Application for starting with Microsoft Katana
Create a new project, install Nuget packages , paste the content in Program.cs file to your main file
- Open Microsoft Visual Studio 2015
- File -> New -> Project -> Visual C# -> Console Application
- Enter Name: KatanaIntro
- Open Package Manager Console
- Package source as
nuget.org
- Run
install-package Microsoft.Owin.Hosting
install-package Microsoft.Owin.Host.HttpListener
install-package Microsoft.Owin.Host.Diagnostics
Ctrl + f5
for running the Application.- Open a browser and type
http://localhost:8080
as the URL. - If you want to see some of the Default middleware available in 'Microsoft.Owin.Diagnostics' type 'app.' then you can see 'app.UseWelcomePage()' as an example.