How to do a partial build AFTER a file is removed because of a rebase?

I would like to do a partial build like usual, but I have recently done a rebase and a file, subdiv_ccg_material.c, was removed(or renamed). VS has given me an error during build.

I’m wondering, MUST I do a full rebuild whenever a file is removed after a rebase ?

Any tips on how to handle this situation ?

Thanks.

EDIT: It turns out that my repository was not actually up to date, and subdiv_ccg_material.c was not in it when I last tried to do a build. But what confused me was that the VS Solution Explorer somehow had it listed to be built. I have no idea how that is possible? I guess my problem is more or less solved…