Microsoft's Owin will inevitably cause a storm, and we, as a part of the C # Camp, will inevitably get involved. Owin is what, I do not parse here, still do not know what is Owin Reader please open the browser, and then search, Chinese English has everything.
The development of Owin indicates that more and more Owin-based application frameworks will emerge in the future, and more owinhost will emerge. As I write this article, as I know, there are two supported Owin hosts: One is Microsoft preemptive katana, it can run in Windows, independent of IIS to support the framework of the OWIN protocol to provide host support While another is the first to support the Owin protocol for the Jexus Web Server running on Linux and FreeBSD (requires more than 5.6 versions of Jexus).
About Jexus, this article does not introduce, installation mode, use the same way as before, the reader can read the "linux.net study notes", this article, we still describe how to quickly install and how to use the Katana to debug our program. It is not a pleasant thing to think of using katana as a host under Windows, to develop with strong VS, to publish to Linux after development, and to use Jexus as a production server.
In this article, we will discuss:
(1), fast installation of a Katana
(2), in VS, simply use Katana to debug the program
1, fast installation of a Katana
To install a katana is actually very simple, add up to two commands.
First, we need to open our cmd.
Enter (glue) the following command:
@powershell-noprofile-executionpolicy Unrestricted-command "IEX (New-object net.webclient). Downloadstring (' Http://chocolatey.org/install.ps1 ')) "&& SET Path=%path%;%systemdrive%\chocolatey\bin
PowerShell will automatically help us install chocolatey before executing this command:
Choco Install Owinhost
The system will automatically help us install the katana.
This completes the installation of the Katana.
Note: In some cases, executing the second command cmd will prompt you not to understand the "Choco" command, when you simply close cmd and then open it again.
2, how to use Katana to the Owin program for simple debugging
First we need to open a project that uses the Owin protocol and then right-click the project file, select Properties
Open the Properties page, select "Web" in the left column, start the action to start the external program, and select the Katana.exe directory, the project directory. You can complete the configuration of the Katana by specifying the port's fill-to port number.
Debugging the program can also add breakpoints, and then F5.
Katana is not the focus of our discussion, so this article does not use too much language to describe, interested readers can go to Katana's official website for inspection.