Dynamics 365 Business Central 2022 Wave 2 – Enable NoImplicitWith feature by default

With each update of Dynamics 365 Business Central, Microsoft enhances what is often referred to as the base application and enhances the development environment. Dynamics 365 Business Central 2022 Wave 2 has several exciting Development features for runtime 10.0. One of the exciting features is to Dynamics 365 Business Central 2022 Wave 2 – Enable NoImplicitWith feature by default.

Microsoft Dynamics 365 Business Central 2020 Wave 2 added the Obsolete implicit and explicit use of ‘with’ development feature. The implicit or explicit ‘with’ use introduces possible collisions when referencing only member names instead of the fully qualified name.

From Business Central 2020 Wave 2 forward, the use of implicit and explicit ‘with’ was managed by Compiler Warning AL0606 and AL0604.

Developers could suppress the warning by using the suppressWarnings property in the app.json file, the pragma compiler directive, or a Ruleset rule. The implicit and explicit use of ‘with’ can be switched on or off with the NoImplicitWith option in the features property in the app.json file. Beginning with Business Central 2022 Wave 2, the NoImplicitWith option is enabled by default with the AL:Go! template.

Read more about the feature Enable NoImplicitWith feature by default here.

Note: The code and information discussed in this article is for informational and demonstration purposes only. This content was created referencing Microsoft Dynamics 365 Business Central 2022 Wave 2 online.

Leave a Reply

Your email address will not be published.