Hi,
I use to organize my projects in multiple files like:
- main.ccsprj
- main.c
- variables.c
- functions.c
- serial.c
- defin.c
And use folders to organize the projects and versions like:
C:/prjectA/ver1
C:/prjectA/ver2
C:/prjectB/ver1
...
What happened is that I opened project B, and click save, the files of project B were overwritten with the content of same-name-files from project A (except main).
What happened?
I always open the projects by opening the file main.ccsprj
If I open the ccsprj with notepad I see that there is the list of the project files to open in the IDE tabs.
Ttelmah
Joined: 11 Mar 2010 Posts: 19369
Posted: Thu May 06, 2021 3:15 am
When I work with separate versions like this I always delete the ccsprj file.
Then simply open the main .c file of the project.
This then forms a new .prj file pointing to the files in the current directory.
Result no problem.
If you open the ccsprj file this is a complete 'description' of the current
'project' including what files are associated with it.
So long as you worked with separate .prj files in each version directory, and
opened the one for that project there would not be a problem. However if
you made a 'ver2', by copying the files from 'ver1', and included the prj
file, then this would be pointing to the old files. Problem.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum