libhostpolicy.so not found
See original GitHub issueSteps to reproduce
- get the latest cli binaries (see version info below) and put them on the path
dotnet new console
- add rid to the project:
<RuntimeIdentifier>ubuntu.16.04-x64</RuntimeIdentifier>
dotnet restore
dotnet run
Expected behavior
Program runs and prints hello world.
Actual behavior
Could not find required library libhostpolicy.so in 1 probing paths:
/home/sven/.nuget/packages
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/home/sven/dotnettest/bin/Debug/netcoreapp1.0'.
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-rc4-004755)
Product Information:
Version: 1.0.0-rc4-004755
Commit SHA-1 hash: bffbee2b91
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /home/sven/bin/sdk/1.0.0-rc4-004755
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
A fatal error was encountered. The library 'libhostpolicy.so ...
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/app'. docker .
Read more >A fatal error was encountered. The library 'libhostpolicy.so ...
The library 'libhostpolicy.so' required to execute the application was not found in '/app/'. This is my Dockerfile: ` FROM mcr.microsoft.com/ ...
Read more >dotnet complaining that libhostpolicy.so doesn't exist, even ...
The library 'libhostpolicy.so' required to execute the application was not found in 'path/to/exe'. Failed to run as a self-contained app.
Read more >dll error on ubuntu 18
The library 'libhostpolicy.so' required to execute the application was not found in ',filepath>'. Failed to run as a self-contained app.
Read more >Under Linux, I cannot run my project; libhostpolicy.so is ...
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/mnt/UBUNTU_OPT/Dropbox/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In which CLI version was that fixed? I am experiencing this problem on 2.0.0-preview1-005977
I’m still experiencing this on 2.0.3.