The msbuild version used by nuget command line on mono is hard coded:
Cf source code https://github.com/NuGet/NuGet.Client/blob/f24bad0668193ce21a1db8cabd1ce95ba509c7f0/src/NuGet.Clients/NuGet.CommandLine/MsBuildUtility.cs
The offending method is GetMsBuildFromMonoPaths(...)
There is no env var to override it. It's called "auto detection" lol.
A solution is to move away the /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0
folder, install msbuild 16.0 using dotnet-install.sh
method (use version 5.0.402 for msbuild 16), and create a symbolic link from dotnet/sdk/$netcoreversion
to the hard coded path /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0