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