FS#60571 - [dotnet-sdk] Needs DOTNET_ROOT=/opt/dotnet to work
Attached to Project:
Community Packages
Opened by alpha numeric (alphanumeric) - Tuesday, 23 October 2018, 21:53 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 04 November 2018, 00:52 GMT
Opened by alpha numeric (alphanumeric) - Tuesday, 23 October 2018, 21:53 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 04 November 2018, 00:52 GMT
|
Details
Description:
For some commands like `dotnet dev-certs` it is needed to have the environment variable `DOTNET_ROOT` set to `/opt/dotnet`. Otherwise it complains of a missing file `libhostfxr.so` (which actually exists in /opt/dotnet/host/fxr/2.1.5/libhostfxr.so). It would be nice if the package had a file `/etc/profile.d/dotnet.sh` with the content `export DOTNET_ROOT=/opt/dotnet` so it gets added automatically. Additional info: * package version(s): 2.1.5+403-1 Steps to reproduce: * Install dev-certs with `dotnet tool install --global dotnet-dev-certs` * dotnet instructs to add `~/.dotnet/tools` to our $PATH (this still has to be done by the user manually but at least we get a notification beforehand) * run `dotnet dev-certs --help` * dotnet gives an error regarding missing `libhostfxr.so` |
This task depends upon
Closed by Doug Newgard (Scimmia)
Sunday, 04 November 2018, 00:52 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#59263
Sunday, 04 November 2018, 00:52 GMT
Reason for closing: Duplicate
Additional comments about closing:
FS#59263Is a symlink from /usr/share/dotnet pointing to /opt/dotnet a good idea? It would at least not be a breaking change.
Is a symlink from /usr/share/dotnet pointing to /opt/dotnet a good idea? It would at least not be a breaking change.