The error message suggests that you can resolve this by installing the .NET Framework 4.8 Developer Pack (SDK/Targeting Pack) for the specific version mentioned.
You can download it from the link provided in the error message: https://aka.ms/msbuild/developerpacks
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
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.