问题:
A fatal error was encountered. The library ‘hostpolicy.dll’ required to execute the application was not found in ‘C:\Program Files\dotnet’.
Failed to run as a self-contained app.
解决方案
添加以下配置,然后重新生成
<GenerateRuntimeConfigDevFile>true</GenerateRuntimeConfigDevFile>