遇到致命错误.需要库“libhostpolicy.so" [英] A fatal error was encountered. The library 'libhostpolicy.so' required
本文介绍了遇到致命错误.需要库“libhostpolicy.so"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在运行 dotnet core 2.0 控制台项目.尝试从 Docker 运行时遇到以下错误.
I am running dotnet core 2.0 console project. Ran into the following error when trying to run it from Docker.
遇到致命错误.需要库libhostpolicy.so"在/app"中找不到要执行的应用程序.
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/app'.
推荐答案
对我来说,我必须将以下行添加到项目文件的 PropertyGroup 部分中:
For me it was the following line that I had to add to the project file's PropertyGroup section that did the trick:
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
这篇关于遇到致命错误.需要库“libhostpolicy.so"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文