All scripts are missing after updating visual studio

I updated the visual studio from 2019 to 2022 and all the scripts in the project went missing.
I can still see the name of the scripts so I can put everything back one by one but I was hoping to solve it automatically and restore the values I set on the inspector.

196009-untitled.png

I tried deleting the Library folder and visual studio solution but it didn’t help.

After fixing the unrelated errors I had in some scripts, everything returned to normal.
If you have an error in your project don’t update the visual studio.