help setting up monogame

everytime i try setting up monogame with visual studio i keep getting these two annoying errors that i can’t find a good solution to, the first one being the Xna namespace not being found and the other error is related to something about directories i don’t know

Do you have a space in your windows username (user folder)? If yes maybe this is the reason?

i just made a new directory of the project with no spaces and i still have the same problems

I see a space in the highlighted error in the screenshot. Please recheck.

there isn’t a space in the project directory

It is most definitely due to having a space in your username.

the new project directory is in C:\ exactly and isn’t in any user foldersimage

Again. It doesn’t matter where your project is. Nugets are broken and don’t support usernames with spaces. You need to change your username and its directory to get it to work.

1 Like

what do you mean exactly by usernames?

С:/Users/YourUsername

1 Like

ohh alright

Glad you finally got it…

This, I did not think about… added to list of reasons I hate NuGET, despite it being pretty cool…

It’s not nuget, it’s Monogame team’s fault. There are quote marks missing in one of the .targets files. It is literally a five minute fix, and it’s beyond me why there’s still no patch release.

1 Like

Because NuGET is a pain?

But yes, some serious annoyances with the UWP package too but I already provided the fix in a post on here