"Could not resolve coreclr path" on Ubuntu 14.04

TL DR

I follow the documentation http://dotnet.imtqy.com/getting-started/ for Ubuntu 14.04.

When I run dotnet run , it prints out Could not resolve coreclr path , and it immediately exits with a non-zero return code, and I cannot find in the documentation what I should do.

More details

  • In fact, something unexpected happened before this: although I added deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet/ trusty main to my sources, there is no dotnet package there. However, there is a dotnet-dev package, so I really installed this package.

  • When I run dotnet new , dotnet restore or dotnet compile , everything looks fine.

  • When I run locate coreclr , I find several files that match me. In particular, there is a directory /usr/share/dotnet-dev/runtime/coreclr with several .dll and .so in it. Also there is a file $HOME/.dnx/packages/runtime.ubuntu.14.04-x64.Microsoft.NETCore.Runtime.CoreCLR/1.0.1-rc2-23616/runtimes/ubuntu.14.04-x64/native/libcoreclr.so

+5
source share
2 answers

Use dotnet-nightly . I just tried it, it still works. dotnet not installed and dotnet-dev not working.

Source: http://apt-mo.trafficmanager.net/repos/dotnet/dists/trusty/main/binary-amd64/Packages

+3
source

I ran into the same problem. Neither dotnet , dotnet-nightly , nor dotnet-dev worked.

But it runs directly /usr/share/dotnet/bin/corerun on the corresponding dll . This is less convenient than dotnet run , but does the job.

To simplify my life, I added an alias for my .bash_rc :

 dotnet_run() { if [ $# -lt 1 ] then app=${PWD##*/} else app=$1 fi if [ ! -f $app ] then app=bin/Debug/dnxcore50/$app.dll fi echo "Running: $app" /usr/share/dotnet-dev/bin/corerun $app } 

On my computer, dotnet new , dotnet restore , dotnet compile , dotnet_run worked as expected. I have not tried more complex programs.

0
source

Source: https://habr.com/ru/post/1240749/


All Articles