dotnet / dotnet/sdk

DNX: "Unable to cast object of type 'Microsoft.DotNet.Cli.Commands.Dnx.DnxCommandDefinition ...' error while running dotnet tool

Open
#52,819 5 comments 1 reaction 2 assignees Claimed by @marcpopMSFT View on GitHub
Area-Tools untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

With SDK `10.0.200-preview.0.26102.104`, the `dnx` command fails to run a dotnet tool with the following error:

```
C:\>dotnet --version
10.0.200-preview.0.26102.104

C:\>dnx dotnetsay
Unhandled exception: Unable to cast object of type 'Microsoft.DotNet.Cli.Commands.Dnx.DnxCommandDefinition' to type 'Microsoft.DotNet.Cli.Commands.Tool.Execute.ToolExecuteCommandDefinition'.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.