How can I setup .NET Framework 4.6.1 for MSBuild on GitHub Actions?
11:02 15 Feb 2023

When I use the latest setup-dotnet, I get an error:

MSB3644: The reference assemblies for .NETFramework,Version=v4.6.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download the .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

I tried both setup-dotnet but it says version 4.6.1 has been deprecated.

.net msbuild github-actions .net-4.6 .net-4.6.1