Hello @Finn Dawid ,
Welcome to Microsoft Q&A forum.
If this error appears in this specific project(not in a newly created project), then you may follow the error message => "Windows7 is not a supported OS Version" to check where you targeted Windows 7.
You may check the project file(right-click your project => Unload Project => right-click it again => Edit Project File). See if there’s any property like <TargetVersion>Windows7</TargetVersion>
and try to modify them manually. I also suggest you double check the methods/APIs… and avoid targeting Windows 7.
Sincerely,
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.