13

We currently have to use separate codebases to support different BC versions. This usually is done using Git branches.


Most of the code does not depend on platform version - for example table definition in BC22 is the pretty much matches one in BC19, same for other object types. The differences in code are only because platform has different functionality or application has different functionality. These differences could be processed using preprocessor directives but in current form they not really useful.


So the idea is to define multiple configurations for each BC version and packages. Each configuration would be compiled in parallel - code would be conditionally disabled/replaced depending on preprocessor symbols.


The preprocessor symbols available should be typed and ordered (for example app version numbers) so we could alter code behavior depending on BC version, available BC runtime version, installed apps, etc.


I moved idea to Gist because I will not be able to edit it here because "We have encountered some malicious input. Please remove that and try again" error. At least give me the error line number please.


Gist:

Support for multiple BC versions at the same time idea (github.com)

Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team