.NETFramework 5.0 and 6.0 reference assemblies missing, but dotnet --list-sdks sees them [Answered]
Project "/home/sparr/src/Harmony/git/Harmony/Harmony.csproj" (2) is building "/home/sparr/src/Harmony/git/Harmony/Harmony.csproj" (2:8) on node 1 (Build target(s)).
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1232,5): error MSB3971: The reference assemblies for ".NETFramework,Version=v5.0" 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. [/home/sparr/src/Harmony/git/Harmony/Harmony.csproj]
Done Building Project "/home/sparr/src/Harmony/git/Harmony/Harmony.csproj" (Build target(s)) -- FAILED.
Project "/home/sparr/src/Harmony/git/Harmony/Harmony.csproj" (2) is building "/home/sparr/src/Harmony/git/Harmony/Harmony.csproj" (2:9) on node 1 (Build target(s)).
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1232,5): error MSB3971: The reference assemblies for ".NETFramework,Version=v6.0" 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. [/home/sparr/src/Harmony/git/Harmony/Harmony.csproj]
Done Building Project "/home/sparr/src/Harmony/git/Harmony/Harmony.csproj" (Build target(s)) -- FAILED.Project "/home/sparr/src/Harmony/git/Harmony/Harmony.csproj" (2) is building "/home/sparr/src/Harmony/git/Harmony/Harmony.csproj" (2:8) on node 1 (Build target(s)).
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1232,5): error MSB3971: The reference assemblies for ".NETFramework,Version=v5.0" 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. [/home/sparr/src/Harmony/git/Harmony/Harmony.csproj]
Done Building Project "/home/sparr/src/Harmony/git/Harmony/Harmony.csproj" (Build target(s)) -- FAILED.
Project "/home/sparr/src/Harmony/git/Harmony/Harmony.csproj" (2) is building "/home/sparr/src/Harmony/git/Harmony/Harmony.csproj" (2:9) on node 1 (Build target(s)).
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1232,5): error MSB3971: The reference assemblies for ".NETFramework,Version=v6.0" 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. [/home/sparr/src/Harmony/git/Harmony/Harmony.csproj]
Done Building Project "/home/sparr/src/Harmony/git/Harmony/Harmony.csproj" (Build target(s)) -- FAILED.and yet
$ dotnet --list-sdks
5.0.408 [/usr/share/dotnet/sdk]
6.0.108 [/usr/share/dotnet/sdk]$ dotnet --list-sdks
5.0.408 [/usr/share/dotnet/sdk]
6.0.108 [/usr/share/dotnet/sdk]What might I be missing to tell msbuild where to find these?