MSB3971: The reference assemblies for 'name' were not found

The full error is:

The reference assemblies for 'framework-version' were not found. You might be using an older .NET SDK to target .NET 5.0 or higher. Update Visual Studio and/or your .NET SDK.

This error occurs when you're building for .NET 5 or later, but you're using an older version of the .NET SDK. This issue can usually be resolved by upgrading to a newer version of your build tools.