Build Configuration automatically loads different files in explorer?

Comments

4 comments

  • Avatar
    Paul Curtis

    I suggest you add each "user" file to the prject then exclude them each in each build configuration they are not used for.

    0
    Comment actions Permalink
  • Avatar
    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

    0
    Comment actions Permalink
  • Avatar
    Paul Curtis

    1. There is an Exclude From Build property for each file.  Or folder.

    2. No.  You might want to create some folders of your own (logical ones in the IDE) or name the user.c files "user1.c" or somesuch.  The folder approach seems nicer.

    0
    Comment actions Permalink
  • Avatar
    Matt

    Thanks Paul, that'll work...

    Matt

    0
    Comment actions Permalink

Please sign in to leave a comment.