嚴重性 程式碼 說明 專案 檔案 行 隱藏項目狀態
警告 CS0618 'CompatibilityVersion.Version_2_2' 已經過時: 'This CompatibilityVersion value is obsolete. The recommended alternatives are Version_3_0 or later.' TLDE.Frontend.Host C:\Azure\TLDE.Service\TLDE.Frontend.Host\Startup.cs 43 作用中
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
改成
services.AddControllers();
嚴重性 程式碼 說明 專案 檔案 行 隱藏項目狀態
警告 CS0618 'IHostingEnvironment' 已經過時: 'This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.AspNetCore.Hosting.IWebHostEnvironment.' TLDE.Frontend.Host C:\Azure\TLDE.Service\TLDE.Frontend.Host\Startup.cs 46 作用中
Slack WebHook
===
## 參考文件
[透過自製的WebAPI,推送Slack訊息到指定頻道中](https://dotblogs.com.tw/maduka/2017/07/27/210759)
## :one:新增 Slack 的 channel

## :two:新增 App

點擊右上的設定「齒輪」按鈕
點擊「Add an app」
## :three:設定「incoming-webhook」

點擊「incoming-webhook」裡面會有一個 URL

POST 下面的內容,就能在 Slack 上看到提示訊息
```
{
"text": "This is posted to #alerts and comes from a bo