Hello @Abdallah Haytham ,
Welcome to Microsoft Q&A forum.
Please try to close VS, navigate to your solution/project folder, remove the hidden .vs
folder and the "bin", "obj" folders. After that, restart VS and rebuild your project. See if this issue disappears.
Does this error appear in a newly created project?
Looking forward to hearing from you.
Tianyu
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.