C
C#2d ago
.Kuromesa.

monogame help

what the fuck?
No description
68 Replies
sibber
sibber2d ago
why is everything grayed out also show the whole error message pls
.Kuromesa.
.Kuromesa.OP2d ago
[{ "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 }]
.Kuromesa.
.Kuromesa.OP2d ago
i restarted vsc and now it just does this with no errors
No description
sibber
sibber2d ago
never used monogame before but what happens if you build from the cli
.Kuromesa.
.Kuromesa.OP2d ago
whats the cli?
Angius
Angius2d ago
And if you move it out of onedrive
.Kuromesa.
.Kuromesa.OP2d ago
onedrive is uninstalled from my pc so idk why its there
paperClip
paperClip2d ago
make sure you have a .config folder for the monogame mgcb tool
.Kuromesa.
.Kuromesa.OP2d ago
No description
Angius
Angius2d ago
dotnet run in the terminal Ctrl+~ to open it
.Kuromesa.
.Kuromesa.OP2d ago
No description
Angius
Angius2d ago
cd to the dir with csproj file
.Kuromesa.
.Kuromesa.OP2d ago
uh what does that mean
Angius
Angius2d ago
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
.Kuromesa.
.Kuromesa.OP2d ago
No description
Angius
Angius2d ago
dotnet --list-sdks And not cut off...?
.Kuromesa.
.Kuromesa.OP2d ago
No description
Angius
Angius2d ago
dotnet --info
.Kuromesa.
.Kuromesa.OP2d ago
No description
paperClip
paperClip2d ago
were you able to run it before? before you added player.png or was that always there
.Kuromesa.
.Kuromesa.OP2d ago
yes
Angius
Angius2d ago
Judging by https://github.com/MonoGame/MonoGame/discussions/8487, try dotnet nuget locals --clear followed by dotnet restore and see what happens
.Kuromesa.
.Kuromesa.OP2d ago
No description
Angius
Angius2d ago
Also, move the project out of OneDrive
.Kuromesa.
.Kuromesa.OP2d ago
i dont own onedrive its uninstalled
Angius
Angius2d ago
No description
Angius
Angius2d ago
As if Microsoft would let you uninstall it lmao Just to be safe, move it out of OneDrive regardless
.Kuromesa.
.Kuromesa.OP2d ago
yeah i just never bothered
Angius
Angius2d ago
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 that
.Kuromesa.
.Kuromesa.OP2d ago
can i...unlock it?
Angius
Angius2d ago
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
.Kuromesa.
.Kuromesa.OP2d ago
mf does it matter? or it is a pet peeve
Angius
Angius2d ago
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
.Kuromesa.
.Kuromesa.OP2d ago
my onedrive is not in use at all
Angius
Angius2d ago
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
.Kuromesa.
.Kuromesa.OP2d ago
No description
Angius
Angius2d ago
No description
.Kuromesa.
.Kuromesa.OP2d ago
No description
Angius
Angius2d ago
I guess that looks fine Try the solution from the other thread
.Kuromesa.
.Kuromesa.OP2d ago
moved it out of onedrive, no luck still
paperClip
paperClip2d ago
it might just be a normal build issue it was working before he added the image
.Kuromesa.
.Kuromesa.OP2d ago
i can try removing it?
paperClip
paperClip2d ago
yes when you build, copy down the error message
MODiX
MODiX2d ago
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.
paperClip
paperClip2d ago
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
.Kuromesa.
.Kuromesa.OP2d ago
removed the image and still nothing
paperClip
paperClip2d ago
. do this
.Kuromesa.
.Kuromesa.OP2d ago
No description
paperClip
paperClip2d ago
what does dotnet tool list --global show
.Kuromesa.
.Kuromesa.OP2d ago
No description
paperClip
paperClip2d ago
hmm so it is local for you run dotnet build again and copy the command it gives you, without the quiet flag
.Kuromesa.
.Kuromesa.OP2d ago
No description
.Kuromesa.
.Kuromesa.OP2d ago
i dont understand what you mean
paperClip
paperClip2d ago
oh this might be a bug w/ the new stuff
.Kuromesa.
.Kuromesa.OP2d ago
so theres nothing i can do?
paperClip
paperClip2d ago
what does your .csproj look like
.Kuromesa.
.Kuromesa.OP2d ago
No description
paperClip
paperClip2d ago
your .csproj file
paperClip
paperClip2d ago
No description
paperClip
paperClip2d ago
here
.Kuromesa.
.Kuromesa.OP2d ago
No description
paperClip
paperClip2d ago
change the * -> 3 3.8.3
.Kuromesa.
.Kuromesa.OP2d ago
No description
.Kuromesa.
.Kuromesa.OP2d ago
does not work still
paperClip
paperClip2d ago
ugh what about 3.8.2.1105
.Kuromesa.
.Kuromesa.OP2d ago
nope @paperClip any more ideas?
paperClip
paperClip2d ago
join the monogame discord i know who can help
ero
ero2d ago
you can uninstall it just fine...

Did you find this page helpful?