25

Suggested by Lars Black Completed 

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

Status Details

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 (1)
  • 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.