Hello @Oktay Arslan,
Welcome to Microsoft Q&A forum.
Please try following methods and let us know if the error disappears.
- Update VS 2022 to the latest version.
- Search
Turn Windows features on or offin Windows Search box, open it, select(turn on).NET Framework 3.5. Make sure that .NET Framework 3.5 has been installed/turned on. Open VS Installer, Modify, switch to Individual components, make sure that.NET Framework 3.5 development toolscomponent has been selected and installed. - To narrow down this issue, please try to create a new WinForm project which targets .NET Framework 3.5 and check if the same error will appear. If this issue only appears on a specific project, can you confirm if there are any special settings in this project?
Best 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.