Restore extensions if publishing from Visual Studio Code fails

Important

Some of the functionality described in this release plan has not been released. Delivery timelines may change and projected functionality may not be released (see Microsoft policy). Learn more: What's new and planned

Enabled for Public preview General availability
Admins, makers, marketers, or analysts, automatically Oct 2024 Oct 2024

Business value

If publishing an extension from within Visual Studio Code fails, the publishing process tries to restore any previously installed extensions that were uninstalled and unpublished as part of the failed publishing. If a full restore fails, the developer is informed about which extensions could be restored and which ones failed, providing the developer with a better overview.

Feature details

When deploying an extension from Visual Studio Code, which is part of a graph of installed extensions on the target environment, first-level dependent extensions are uninstalled and unpublished in order to be recompiled once the extension has been deployed. However, if the deployment from Visual Studio Code fails (for example, due to a compilation issue on the server), the server is left with an incomplete graph of installed extensions. This results in unnecessary manual work to redeploy the previously installed extensions in the correct order. With this release, Visual Studio Code now tries to restore the previous extension state, removing the need for manual work in most cases.

Tell us what you think

Help us improve Dynamics 365 Business Central by discussing ideas, providing suggestions, and giving feedback. Use the forum at https://aka.ms/bcideas.