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>
2.1m questions
2.1m answers
60 comments
57.0k users