FS#59263 - [dotnet-sdk] `dotnet ef` not working starting from 2.1.1+301

Attached to Project: Community Packages
Opened by Yunhao Tian (t123yh) - Sunday, 08 July 2018, 02:42 GMT
Last edited by Maxime Gauduin (Alucryd) - Wednesday, 14 November 2018, 12:34 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:
The `dotnet ef` command seems to be unusable starting from this version. This command should be built into .NET Core CLI starting from 2.1.300 (https://github.com/aspnet/Announcements/issues/290), however, it doesn't seem to be there: https://github.com/aspnet/DotNetTools/issues/399#issuecomment-403196026

Steps to reproduce:
Run `dotnet ef` directly from commandline.

You will see
```
Cannot find command 'dotnet ef', please run the following command to install

dotnet tool install --global dotnet-ef

```

But dotnet-ef should work out-of-box, without any tool installation.
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Wednesday, 14 November 2018, 12:34 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.1.6+500
Comment by Matt (gaineraid) - Tuesday, 31 July 2018, 19:33 GMT
I'm having the same issue is there a workaround?

Edit:
To anyone looking for a workaround I've uninstall all dotnet -runtimes, -sdk, and -host with pacman and manually installed the binaries into my home directory and added the path to my .profile and everything works as expected.
Comment by Maxime Gauduin (Alucryd) - Friday, 24 August 2018, 12:23 GMT
This tool is not bundled by microsoft's source build, you'll have to install it manually until they fix their build process.
Comment by sergot (sergot) - Monday, 01 October 2018, 21:12 GMT
My solution was: export DOTNET_ROOT=/opt/dotnet
Comment by Marco A G Carvalho (marcoweb) - Monday, 05 November 2018, 18:42 GMT
Add a symlink to "/opt/dotnet" in "/usr/share"
Comment by Adilson Schmitt Junior (sirgallifrey) - Monday, 12 November 2018, 12:36 GMT
I like the simlink idea, can it be done by the PKGBUILD?
Comment by Maxime Gauduin (Alucryd) - Wednesday, 14 November 2018, 09:36 GMT
Yeah well you don't symlink, it's particularly ugly. I added a launcher script to dotnet, and exported DOTNET_ROOT in it, can you guys try again?
Comment by Marco A G Carvalho (marcoweb) - Wednesday, 14 November 2018, 09:51 GMT
I updated and removed my solution with the symlink, and it works perfectly. Thank you Maxime Gauduin.
Comment by Adilson Schmitt Junior (sirgallifrey) - Wednesday, 14 November 2018, 11:11 GMT
It worked! thanks! :)
Comment by Maxime Gauduin (Alucryd) - Wednesday, 14 November 2018, 12:34 GMT
Awesome, thanks for the heads up guys.

Loading...