Update 20160910 HOSTING .NET CORE ON LINUX WITH DOCKER - A NOOB'S GUIDE.md

This commit is contained in:
Lv Feng 2016-10-02 03:36:10 +08:00 committed by GitHub
parent a8e11abb81
commit f2d6d55d96

View File

@ -47,6 +47,15 @@ I wont describe the changes in detail because you can look at the commit on G
- Using SetBasePath in Startup (appsettings.json wont be found without this)
- Running via WebHostBuilder rather than WebApplication.Run
- Removed Serilog (at the time of writing it does not support .NET Core 1.0)
- 更新 global.json and project.json 上的版本数
- 删除 project.json 上的废弃章节
- 使用轻型 ControllerBase 而不是 Controller 因为我不需要与 MVC 视图相关的方法(这是一个可选的改变)。
- 从辅助方法中去掉前缀比如HttpNotFound -> NotFound
- LogVerbose -> LogTrace
- 名字空间改变: Microsoft.AspNetCore.*
- 使用 SetBasePath 启动(没有它 appsettings.json 将不会被发现)
- 通过 WebHostBuilder 来运行而不是通过 WebApplication.Run 来运行
- 删除 Serilog在写文章的时候它不支持 .NET Core 1.0
The only real headache here is the need to remove Serilog. I could have implemented my own file logger, but I just deleted file logging because I didnt want to focus on it for this exercise.
唯一令我真正头疼的事是需要移动 Serilog。我原本能够执行自己的文件记录器。但是我删除了文件记录因为我不想为了这次操作集中精力在这件事情上。