Build doesn't find .NET SDK even though it's installed

ok so I have change to .net 5 because i only used .net 6 because it was downloaded. But I still get an error about .net 5 so where may the problem be now?
error

/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1193,5): error MSB3644: The reference assemblies for .NETFramework,Version=v5.0.401 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [/home/travis/build/zaze06/TextGame/Game.csproj]

full log
travis log (github.com)

https://gist.github.com/zaze06/3021e4f0994f7fb258a783c4465c81a6#file-travis-log-L235-L236:

travis_fold:start:mono-install
e[0Ke[33;1mInstalling Monoe[0m

https://gist.github.com/zaze06/3021e4f0994f7fb258a783c4465c81a6#file-travis-log-L1917:

[?1he=e[6ne[He[2JMSBuild auto-detection: using msbuild version ‘15.0’ from ‘/usr/lib/mono/msbuild/15.0/bin’

You didn’t disable Mono installation.

works now thx