I had the same problem. (my VS is in Portuguese)
After that, I checked which SDKs I had installed and removed the ones that seemed unnecessary, leaving it like that.
The list to know which SDKs I should use, I found in this manual.
Filter by: platform sdk upgrades
And it will tell you which SDKs are recommended.
After that, I opened VS, and in my project I right-clicked and selected Clean.
After that, I recompiled normally, without any errors.