今天為了一個專案發佈後無法執行花了兩個小時: 錯誤訊息如下
HTTP Error 500.31 - ANCM Failed to Find Native Dependencies in IIS -- 沒用
The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found -- 沒用
An assembly specified in the application dependencies manifest (...) was not found -- OK
最後是改了 .csproj 然後再發佈一次。
<PropertyGroup>
<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
</PropertyGroup>
參考:
https://stackoverflow.com/questions/48896443/an-assembly-specified-in-the-application-dependencies-manifest-was-not-fou