Can't open MGCB editor

Whenever i double tap Content.mgcb, nothing happens, and if I type “dotnet mgcb-editor” in terminal it says:

"Could not execute because the specified command or file was not found.
Possible reasons for this include:

  • You misspelled a built-in dotnet command.
  • You intended to execute a .NET program, but dotnet-mgcb-editor does not exist.
  • You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH."

Not sure as to why as I have a freshly installed VS 2022 and the Monogame extension, everything the website states that you need for creating in Monogame.
Any help is appreciated!

Assuming you are using 3.8.1, have you tried following these steps?

I did do all of this, but it sadly didn’t fix the issue.
However I copied the old MGCB editor .exe file from my old PC and it does work, at least for now.

To anyone else having this issue.

I ran the following command in power shell, and after that i could open MGCB in visual studio

dotnet tool install -g dotnet-mgcb

I had this issue too.

I was loading v3.8.0 projects into a v3.8.1 install unknowingly, as I was using a new Windows 11 laptop with everything (Visual Studio, MonoGame, etc.) freshly installed. So, I was a bit lost.

My solution: I tried a new project with MonoGame v3.8.1 and MGCB loads as it should. My intended solution is to create a new project and import all my old project content. LEM’s solution above should be the same, only it’s performed manually. My solution is manual too, I suppose!