I am running dotnet core 2.0 console project. Ran into the following error when trying to run it from Docker.
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/app'.
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>
1.4m articles
1.4m replys
5 comments
57.0k users