Leemyy
Leemyy
CC#
Created by Leemyy on 12/21/2023 in #help
dotnet tool not recognized after local install
I solved the issue. In case anyone stumbles upon this in the future, the issue is in this innocuous little line: * You intended to execute a .NET program, but dotnet-mgcb-editor-windows does not exist. Notice how it doesn't say dotnet-mgcb-editor? Yeah well I did not. The solution is to also add dotnet-mgcb-editor-windows (or -linux/-mac) as a tool. Tl;dr: make sure your .config/dotnet-tools.json contains all these entries:
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-mgcb": {
"version": "3.8.1.303",
"commands": [
"mgcb"
]
},
"dotnet-mgcb-editor": {
"version": "3.8.1.303",
"commands": [
"mgcb-editor"
]
},
"dotnet-mgcb-editor-linux": {
"version": "3.8.1.303",
"commands": [
"mgcb-editor-linux"
]
},
"dotnet-mgcb-editor-windows": {
"version": "3.8.1.303",
"commands": [
"mgcb-editor-windows"
]
},
"dotnet-mgcb-editor-mac": {
"version": "3.8.1.303",
"commands": [
"mgcb-editor-mac"
]
}
}
}
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-mgcb": {
"version": "3.8.1.303",
"commands": [
"mgcb"
]
},
"dotnet-mgcb-editor": {
"version": "3.8.1.303",
"commands": [
"mgcb-editor"
]
},
"dotnet-mgcb-editor-linux": {
"version": "3.8.1.303",
"commands": [
"mgcb-editor-linux"
]
},
"dotnet-mgcb-editor-windows": {
"version": "3.8.1.303",
"commands": [
"mgcb-editor-windows"
]
},
"dotnet-mgcb-editor-mac": {
"version": "3.8.1.303",
"commands": [
"mgcb-editor-mac"
]
}
}
}
And then run dotnet tool restore.
9 replies
CC#
Created by Leemyy on 12/21/2023 in #help
dotnet tool not recognized after local install
Hmm, that worked for the other tool I was trying to install, but this one is still giving me the same error. Even after a full restart.
9 replies