CubeMX package migration causes main.c file deletion
I created and developed a project for more than 4 years, and changes in the project have always forced us to migrate to newer versions of CubeMX and also newer software packages. The project is for an STM32F407VGT6 microcontroller. The last stable version was with CubeMX 6.2.1 and software package 1.26.2. Now when I try to migrate to CubeMX 6.5.0 software pack 1.27.0, after clicking generate, CubeMX deletes the main.c file from the project. Restoring the backup main.c file is not a good idea, since the changes are not made in the older file. The main.c file is generated when the project is made from scratch, but with migrated project, it is deleted.