Welcome to Microsoft Q&A!
Your device already has .Net Framework 4.8 installed? You need to check this. You can determine which .NET Framework versions are installed.
You can refer to this document to Include prerequisites with a ClickOnce application.
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