Hi @Mariusz,
Welcome to Microsoft Q&A!
What is your project type?
Please update your VS2022 to the latest version with Visual Studio Installer.
Besides, please check if you have anti-virus software or third-party extensions installed, please temporarily disable them.
You can disable the installed extensions under Extensions > Manage Extensions > Installed.
Sincerely,
Anna
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.