This method automatically registers the pack with MSBuild and Visual Studio.
Depending on your version of Visual Studio, there are several ways to acquire these packs: microsoft .net framework 4 multi targeting pack
If you are missing a specific pack, you can typically find it on the official .NET Framework download page or through the Visual Studio Installer by selecting the "Individual components" tab. This method automatically registers the pack with MSBuild