Hi @Taeo Kim ,
Welcome to Microsoft Q&A!
Which version of Visual Studio are you using?
For .NET Framework 4.7.2, please go to your Visual Studio Installer > Modify > Individual components > ensure that “.NET Framework 4.7.2 targeting pack” and “.NET Framework 4.7.2 SDK” are checked.
For .NET Framework 4.0, it has ended for support and its developer pack is not available currently.
Alternatively, you can add a reference to Microsoft.NETFramework.ReferenceAssemblies.net40 by right-clicking on project > Manage NuGet Packages > Browse > search “Microsoft.NETFramework.ReferenceAssemblies.net40” > install it.
Then, rebuild your solution.
For more details, please refer to: Build apps against reference assemblies.
For .NET Framework 2.0, please type “Turn Windows features on or off“ in the start search box > select “.NET Framework 3.5 (includes .NET 2.0 and 3.0)” check box > OK > wait for installing > restart computer.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.