Search code examples
.net-coreasp.net-core-1.0fedora-25

No executable found matching command "dotnet-add"


I just did a fresh install of Fedora 25 (followed by an install of dotnet core 1.1) to explore the possibilities of doing some dotnet core development in an linux environment. On attempting to add my first package I received the following error:

No executable found matching command "dotnet-add"

I have seen some similar errors in other SO posts, but nothing that seems to be helping this issue. I attached some images below of the error, dotnet version info, system path, and dotnet location.

enter image description here

enter image description here

enter image description here

Thanks ahead of any tips!


Solution

  • You have installed a version of the dotnet SDK ("CLI" / dotnet-dev package) of the preview2 time, which is still project.json based. This version of the CLI does not contain the dotnet add set of verbs. These were publicly released with the 1.0.0 version. (at the time of writing, the current version of the SDK / CLI is 1.0.4).

    Depending on which instructions you followed to install the components, make sure to update to new versions of the SDK / CLI (e.g. microsoft's install instructions for Fedora).

    Note that the version of the SDK / CLI is a different one that the version of the runtime(s) on the machine.