MonoGame .NET 10 compile errors on Android
Prerequisites
- I have verified this issue is present in the
developbranch - I have searched open and closed issues to ensure it has not already been reported.
MonoGame Version
MonoGame 3.8.3.1
Which MonoGame platform are you using?
MonoGame Android Application (mgandroid)
Operating System
Windows
Description
We need to support Target SDK 36 to be compliant with new Google Play requirement and sdk 36 is only supported on .NET 10. We have monogame source code vendored, so I tried to change .net framework version inside the MonoGame.Framework.Android.csproj as follows: net10.0-android Doing that lead to errors, I was able to fix it by specifying global:: on missing types
Steps to Reproduce
- Change Target framework inside the MonoGame.Framework.Android.csproj to net10.0-android
- Build monogame source with .NET 10 for Android
Minimal Example Repo
No response
Expected Behavior
MonoGame builds without errors
Resulting Behavior
Project fails to build: Code\MonoGame.Master\MonoGame.Framework\Media\Album.cs(43,25): error CS0234: The type or namespace name 'Net' does not exist in the namespace 'Microsoft.Android' (are you missing an assembly reference?) \Code\MonoGame.Master\MonoGame.Framework\Platform\Media\Song.Android.cs(21,24): error CS0234: The type or namespace name 'Net' does not exist in the namespace 'Microsoft.Android' (are you missing an assembly reference?) Code\MonoGame.Master\MonoGame.Framework\Platform\Media\SuperVideoPlayer.Android.cs(20,25): error CS0234: The type or namespace name 'Media' does not exist in the namespace 'Microsoft.Android' (are you missing an assembly reference?) ...
Files
No response
Source: MonoGame/MonoGame