create a new empty project and generate a cs project empty file from vs2022 and the copy your assets and projects settings only remove any vs generated files from previous damaged projects and it will be fine. that happen to me and it's fixed.