The full error:
The "CheckForDuplicateFrameworkReferences" task could not be loaded from the assembly /usr/lib64/dotnet/sdk/5.0.100/Sdks/Micros