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?
This file has been truncated.
# Migrating from 3.8.0
Migrating from 3.8.0 should be straightforward for most platforms.
The major difference is that 3.8.1 now requires .NET 6 and Visual Studio 2022. You can follow the [environment setup tutorial](./getting_started/0_getting_started.md) to make sure that you are not missing any components.
The MGCB Editor is no longer a global .NET tool and we recommend that you use the new Visual Studio 2022 extension which helps accessing it without the need of CLI commands.
## WindowsDX, DesktopGL, and UWP
Upgrading from 3.8.0 should be as straightforward as upgrading your ```TargetFramework``` and MonoGame version.
Edit your csproj file to change your ```TargetFramework```:
Then edit your MonoGame ```PackageReference``` to point to 3.8.1:
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!