The build-ins variables $(PROJECT_FILE), $(PROJECT_NAME), $(PROJECT_DIR) is not changed when reloading projects. To reproduce this bug:
1. Create Console application test1.
2. Open Project build option->Pre/post build steps
3. Add Pre build steps
4. Save project test1
5. Close project test1
6. Repeat steps 1..5 for project test2
7. Load project test1
8. Rebuild test1
9. Look at the build log and see that build-ins variables is correct (test1).
10. Close Project test1
11. Load project test2
12. Rebuild test2
13. Look at the build log and see that build-ins variables is not correct (test1).
Its not changed and must be test2.
This bug is in all versions CB from 16.01.
My platform is Windows7 32 bit.