Hi @Juan Manuel Sanchez,
Welcome to Microsoft Q&A!
Which version of Visual Studio are you using?
You can try the following workarounds:
- Update your VS to the latest version.
- Repair your VS with Visual Studio Installer > More > Repair.
- Switch to higher target framework for your project.
- Please check if the project's references load correctly.
- Close all running VS instances and delete the hidden .vs, bin and obj folders in the project folder. Then, clean and rebuild the solution.
- Create a new project and check if it occurs in new project.
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.