visual studio for Mac only supports a subset of .net projects and only up to .net 7 (no .net 8 support). also visual studio for Mac is retired and supports ends 8/31. you should pick a new tool, either visual studio code, or jet brains rider.
note: the retirement of Visual Studio Mac, caused me to abandon maui (which really requires an IDE).