I'm currently reading the documentation about asp.net core. But this page about servers got me a little confused. As far as I understand is that ASP.NET Core applications are just console applications which are starting a http server. A http server like IIS can be used as reversed proxy.
I assume that is for performance reasons. Why would I run IIS express locally during development? Its not that I need real performance there? Is it because IIS is more feature rich? Which features work better in IIS?
答案 0 :(得分:1)
纯粹的方便。 IIS Express附带Visual Studio。启动F5或^ F5和IIS Express。为什么我会在开发过程中在本地运行IIS express?
答案 1 :(得分:0)
What server you run in development depends on which server you're planning on deploying with in production.
If you will be deploying your ASP.NET Core application to Linux or otherwise plan on using Kestrel with a reverse proxy like nginx, you should test with Kestrel locally in development.
If you will be deploying to a Windows Machine and IIS, you should test with IIS Express locally in development.
For simple applications, I've found there isn't much difference in ASP.NET Core features when running locally on Kestrel or IIS Express. I'm mostly interested in testing to make sure it works with the server I'm planning to deploy to.