.NET 4.5 has long been out of support
To use .NET Framework via Visual Studio 2022 you have to download the nunget package :
Rename the extension of the package in .zip to decomprime it.
Put the content in this Folder :
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5
You have to put at the first level the content of the folder
that you can find inside the nunget