Build Configuration automatically loads different files in explorer?
Hi all,
Related to an ealier post, I'm trying to find a way to get CrossStudio to change a path AND change the files that are included in a project based on the build configuration.
For example, I have a file "user.c" that changes based on user application. The rest of the project is fixed and common. User.c is located in subdirectories within the solution directory, and are specific to each user, i.e. ./USER_USER1/user.c, ./USER_USER2/user.c, etc.
If I create a Build Configuration called "USER 1", I would like CrossStudio to link to ./USER_USER1/user.c. I would also like the Project Explorer to be updated to include that folder and file so I can edit for that user.
This is less of a question about how to change includes based on build configuation (which I understand and am doing), but more of a question about how to change the solution as understood and displayed by CrossStudio.
Thanks,
Matt
-
Hi Paul,
Two followup questions:
1) How would you suggest excluding them? What field in the build configuration property should be used?
2) Does this remove that specific file from being visible in the project?
The thing I'm trying to avoid here is someone editing a user.c file thinking they are writing code that is applicable, but that they are in the wrong file. While I could have different file names, I'd like to keep the same name "user.c" just different copies in different directories. Probably a bass-ackwards way of doing it, but...
Thanks,
Matt
Please sign in to leave a comment.
Comments
4 comments