- Download Microsoft.NETFramework.ReferenceAssemblies.net45 from nuget.org (also available in this folder)
- Open the package as zip
- Copy the files from
build\.NETFramework\v4.5\
toC:\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