Hi,@Eduardo Gomez . Welcome Microsoft Q&A.
Even if an error is displayed, the program can run successfully. For this known VS bug, you could try the following solutions.
- Restarting VS and cleaning/rebuilding the solution.
- In VS, right click on your Solution -> Properties -> Configuration Properties .And try to change the project configurations from Debug to Release or vice versa.
- If your current build target platform is x64, change to x86. If it's currently x86, change to x64.
Clean and Build solution for new target platform.
Change back to desired target platform and re-build.
If the response 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.