68 Replies
why is everything grayed out
also show the whole error message pls
[{
"resource": "/C:/Users/gabri/.nuget/packages/monogame.content.builder.task/3.8.3/build/MonoGame.Content.Builder.Task.targets",
"owner": "csharp-build",
"code": "MSB3073",
"severity": 8,
"message": "The command ""dotnet" "mgcb" /quiet /@:"C:\Users\gabri\OneDrive\Desktop\monotest\monotest\monotest\Content\Content.mgcb" /platform:DesktopGL /outputDir:"C:/Users/gabri/OneDrive/Desktop/monotest/monotest/monotest/Content/bin/DesktopGL/Content" /intermediateDir:"C:/Users/gabri/OneDrive/Desktop/monotest/monotest/monotest/Content/obj/DesktopGL/net8.0/Content" /workingDir:"C:/Users/gabri/OneDrive/Desktop/monotest/monotest/monotest/Content/"" exited with code 1. [C:\Users\gabri\OneDrive\Desktop\monotest\monotest\monotest\monotest.csproj]",
"startLineNumber": 155,
"startColumn": 5,
"endLineNumber": 155,
"endColumn": 5
}]
i restarted vsc and now it just does this with no errors

never used monogame before but what happens if you build from the cli
whats the cli?
And if you move it out of onedrive
onedrive is uninstalled from my pc so idk why its there
make sure you have a .config folder for the monogame mgcb tool

dotnet run
in the terminal
Ctrl+~ to open it
cd to the dir with csproj file
uh what does that mean
cd
is a command to move to a given directory
.csproj
file is the file that describes your project
You need to call dotnet run
from the directory that has the project file
Since you decided to use VS Code, you should get to know the CLI intimately lol
dotnet --list-sdks
And not cut off...?
dotnet --info

were you able to run it before?
before you added player.png
or was that always there
yes
Judging by https://github.com/MonoGame/MonoGame/discussions/8487, try
dotnet nuget locals --clear
followed by dotnet restore
and see what happens
Also, move the project out of OneDrive
i dont own onedrive
its uninstalled

As if Microsoft would let you uninstall it lmao
Just to be safe, move it out of OneDrive regardless
yeah i just never bothered
Judging by https://community.monogame.net/t/error-msb3073-the-command-dotnet-mgcb/19915/2, it could be the
dotnet-tools.json
got locked or whatever, and I can only suspect OD of doing thatcan i...unlock it?
Click the link
https://community.monogame.net/t/resolving-mgcb-editor-not-found-error/19419 here's some more ways to potentially resolve the issue
And once you do, move the project out of OneDrive
mf does it matter? or it is a pet peeve
Yes, it matters
OneDrive does weird shit with files
Doesn't matter when it's cat pictures, matters when it's code and OD suddenly decides it wants to sync the files up or w/e
my onedrive is not in use at all
Aight, let's continue trying to figure out the issue without ruling out one potential cause
Why not
If dragging and dropping a folder somewhere else is such a chore, we can do that, sure



I guess that looks fine
Try the solution from the other thread
moved it out of onedrive, no luck still
it might just be a normal build issue
it was working before he added the image
i can try removing it?
yes
when you build, copy down the error message
Angius
https://community.monogame.net/t/resolving-mgcb-editor-not-found-error/19419 here's some more ways to potentially resolve the issue
Quoted by
<@85903769203642368> from #monogame help (click here)
React with ❌ to remove this embed.
its gonna say something like command "dotnet mgcb /quiet ..."
copy that command
and run it manually without the quiet flag
or, if you are able to open the .mgcb file in the mgcb editor
click the build button at the top
and mgcb gives you detailed errors
removed the image and still nothing
.
do this

what does
dotnet tool list --global
show
hmm so it is local for you
run dotnet build again and copy the command it gives you, without the quiet flag

i dont understand what you mean
oh this might be a bug w/ the new stuff
so theres nothing i can do?
what does your .csproj look like

your .csproj file

here

change the * -> 3
3.8.3

does not work still
ugh
what about 3.8.2.1105
nope
@paperClip any more ideas?
join the monogame discord
i know who can help
you can uninstall it just fine...