New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Every Other "dotnet run" command fails with libhostpolicy.so
error
#7374
Comments
Not sure that it matters, but when it does succeed, I see
|
I have a file called
If I delete this file, the error goes away. Am I supposed to move away from using |
@nguerrera This seems like an SDK issue. I think you guys may have an issue for this already, even. |
Yea, I recall this getting fixed in the SDK but I'm not sure if we have the fix in preview5 CLI yet. We are using |
I added links to the SDK issues in #7188. Looks like they're not both fixed at this point so we'll need to wait a bit. |
Workaround for dotnet/cli/issues/5059
@caleblloyd latest preview5 builds should have the necessary fixes. Can you give this a shot? |
I can, can you point me to the Ubuntu 16.04 .deb files for preview5? |
Fix confirmed in the preview5 link posted above. Thanks! |
@livarcocc Is there a version for MacOS, I'm getting this error using Preview 4 SDK |
You can simply get the latest from github.com/dotnet/cli. But you can get it here as well, though on the page above it will be a newer version: https://dotnetcli.blob.core.windows.net/dotnet/Sdk/1.0.0-preview5-004422/dotnet-dev-osx-x64.1.0.0-preview5-004422.pkg. |
Ok i though the latest was the preview 4 since all the links point to that but the one from the link you shared worked fine, thanks! |
Awesome. I encountered this issue today. Preview 5 fixed it. Had to run:
After installing the deb file. |
Hi @livarcocc . Where are you getting the download link you're referring on https://github.com/dotnet/cli/issues/5059#issuecomment-275155418 and https://github.com/dotnet/cli/issues/5059#issuecomment-271368022? I checked on github.com/dotnet/cli it's only mentioning about preview 4. |
@bangonkali https://github.com/dotnet/cli is listing links to RC4. This is the latest version [preview1-preview5, then RC3-RC4]. Sorry about the confusion. |
had the same issues. I created .NET Core Web Application from VS2015 template and used publish to folder. When I ran publish output content on ubuntu 16.04 manually using "dotnet" I got the error. Fixed it by changing the project.json dependency for Microsoft.NETCoreApp, from this:
to this:
The platform type added the runtimes directory to publish package. CLI version: 1.0.0-preview2-1-003177 |
Steps to reproduce
I recently transitioned a .NET core
project.json
project to msbuild.dotnet watch run -c Docker
used to work fine, but now half of the time it encounters an error.Expected behavior
App should rebuild and run every time
Actual behavior
Half of the time the app builds and runs properly. The other half of the time, the app fails with the error
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/dotnet/app/bin/Docker/netcoreapp1.1'.
Note that I was just adding a space when updating theapp.csproj
file to trigger a rebuild.Environment data
The text was updated successfully, but these errors were encountered: