25
I would be very useful to have preprocessor directives for the compiler (mainly #IF and #ENDIF I think) in the same way that Visual Studio / C# has it. (https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives/preprocessor-if)

That will make it very easy to compile the same extension with different functionality like .NET, File access etc. for OnPrem / Cloud or even include additional code that help debugging but is not in the release build
Category: Development
STATUS DETAILS
Completed
Ideas Administrator

Thank you for this suggestion! As part of obsoleting implicit and explicit WITH we also implemented a number of compiler directives, including ability to suppress warnings, defining regions, and conditional directives

Best regards,
Business Central Team

Comments

L

Have been missing preprocessor functionality since i started with extension development in 2018.

With all the deprecation's & changes on every version it´s really needed.
#region/#endregion would be nice to be included also.

Category: Development