
I am just delving into the concept of conditional compilation using pre-compiler commands such as #if, #elseif, etc. I think I understand what this gets you but I wanted to lay out a scenario and ask a question for confirmation.
The way I think about this is it will get you a single project in your source control. You will still need to pull that code into a dictionary that matches the version for which you are building and which you have defined a constant defining your build numbers used in the code. So for deployment of your code you still build a chunk file which only works with a specific version.
Why I am laying out this scenario? I have a client who utilizes a customization across multiple versions of GP. They requested that a single chunk file work for all versions. I do not see a way of accomplishing their request.
Do you?
*This post is locked for comments
I have the same question (0)Hi Chad,
I do not know of a way to do it with a single chunk file. You may be able to do it with a single installer, but I think you'd still need to create version specific chunk files and cause the correct one to install based on reading the dictionary version. Curiously, why are they using multiple versions of GP? Do they have multiple licenses or are they hosting different versions?
Kind regards,
Leslie