MGCB Task

I experience some problems when I change the code of the Content classes. Content Builder Task “forgets” to rebuild files when I launch a project. I tried to do it manually via MGCB, but the result is the same. To solve my question, I need to clear the Content/obj directory and start the project again. But I noticed that there are duplicate files in the Content/obj folder (see screenshot). Maybe the problem is related to this?