Hi @Juergen Babenhauserheide ,
Thanks for sharing us the code and the screenshot.
Did you try to retarget your project(right-click your project > Retarget Projects) and select the corresponding Windows SDK Version and Platform Toolset(right-click your project > Properties > Configuration Properties > General > Windows SDK Version, Platform Toolset)? If the corresponding version of Windows SDK is missing, you can install it from VS Installer > Modify > Individual components > SDKs, libraries, and frameworks.
If you have set the correct Windows SDK Version and Platform Toolset, then please try to close VS, delete the hidden .vs
folder in your solution folder and rebuild your project.
Kind Regards,
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.