Struggling to understand BuildMode and PreprocessorSymbols #1671
Replies: 1 comment 1 reply
-
If you add:
To settings, you will find that your apps are build two times - but they are identical. You can use ConditionalSettings to only apply build modes to a specific workflow:
and then you can apply another conditionalsettings to control the behavior of the two build modes, potentially have a different artifacts, versioning, preprocessor symbols and other setttings when running nextmajor.
Now, in your code you can use preprocessor directives to control the code included in the build, see: https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/directives/devenv-directives-in-al You can make a fork of this repo: https://github.com/BusinessCentralApps/AL-Go-OfficeHours-2025-1 and try things out. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello ,
i do understand that buildmode has different modes(default clean nextmajor etc.. ) and each has a purpose ,
but how does affect the build ?
how does each mode affect the build ?
and when we use clean and PreprocessorSymbols , how does the preprocessorSymbol tags affect the build ?
Beta Was this translation helpful? Give feedback.
All reactions