·
Download Microsoft.NETFramework.ReferenceAssemblies.net45 from
nuget.org
·
Open the package as zip
·
copy the files from build\.NETFramework\v4.5\ to C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\.NETFramework\v4.5
For more details: Building a project that target
.NET Framework 4.5 in Visual Studio 2022