asp.net core 隨手筆記 - 使用 IIS 架設 .net core API 站台

安裝 .NET Core 裝載套件組合

官網下載 .net Core 裝載套件組合

安裝套件

架設 .net core API 站台

IIS 設定 API 站台
這邊要注意幾個要點

  1. 需使用 發行 發佈檔案

  2. 實體路徑須設定至 publish 位置

  3. hosts config 中加入本地 domain 127.0.0.1 www.appnetcore.test
    (host config 可於 C:\Windows\System32\drivers\etc 中找到)

以上都設定完後,即可測試 api 是否成功 (*ゝ∀・)v

Author: Vincent.xie
Link: http://happyhand.github.io/2019/02/12/asp-net-core-隨手筆記-使用-IIS-架設-net-core-API-站台/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.