This happened to me in Visual Studio 2022. After copying the Resource files from another project.
Basically it was no adding it to the incorrert file. In my case I want them to be in "Texts", but it was adding them to "Resources". After choosing the right destination everything was fine again.