AZFW0110:FunctionsEnableWorkerIndexing 已淘汰

Item 價值
規則識別碼 AZFW0110
類別 Sdk
Severity Warning

原因

該 FunctionsEnableWorkerIndexing 物件設定在一個使用 Azure.Functions.Sdk. 的專案中。

規則說明

使用 Azure.Functions.Sdk 時,工作者索引一律會啟用。 Microsoft.Azure.Functions.Worker.Sdk 屬性原本由舊版的 FunctionsEnableWorkerIndexing 用於切換建置時函式索引,但在新的 SDK 中已不再有任何作用。 設定它對組裝沒有影響。

修正方式

將該 FunctionsEnableWorkerIndexing 物業從你的專案檔案中移除:

  <PropertyGroup>
-   <FunctionsEnableWorkerIndexing>true</FunctionsEnableWorkerIndexing>
  </PropertyGroup>

何時應抑制警告

不建議抑制。 而是移除該屬性,因為它已不再有效。