Trying to make android game in C# visual studio, need assist with packages and extensions

Hi, hope you guys are doing well.

Im currently using visual studio 2026. Ive got a simple c# game working on windows pc, however I want it to run on any android phone.

Im very new to programming, and to visual studio, although i try every now and again to see how far I can get.

I currently get the below errors during build. (Ive used monogame framework android as the template, as I couldnt work out how to convert my project to android format). I think Im missing packages and extensions. Would someone please assist by letting me know what is missing based on the below errors. Thanks, John U

(one example, I used to get the error microsoft .xna not found, and I read that the solution was to uninstall and reinstall Monogame.Content.Builder.Task package, which fixed it) So I think the below are also related to either packages, extensions, .net version or similiar.

I want to say a special thankyou to the monogame team and contributors, you have made making a game for a complete newbie c# programmer less tedious with the monogame frameworks. :slight_smile:

First guess is you’re just missing .NET for mobile libs (MAUI / Xamarin). To fix that open “Visual Studio Installer”, click “Modify” on your version of VS, then check the box to install MAUI libs (as seen in pic). You’ll likely also need to install Android SDKs and such, but VS should bring up popups about that when you attempt to build an Android project.

1 Like