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'.
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found - Linux nopCommerce no source (downloaded from the nopCommerce site) gives an error while running on a Linux machine. A fatal error was encountered.
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/var/nop420/'. Failed to run as a self-contained app. If this should be a framework-dependent app, specify the appropriate
nopCommerce no source (downloaded from the nopCommerce site) gives an error while running on a Linux machine. A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/var/nop420/'.
There may be some libs installed unnecessarily at the end, but it has no much harm. Did you try to change <OutputType>Library</OutputType> to <OutputType>Exe</OutputType>, as mentioned in this GitHub issue?
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With