Kiril Vandov (Progress Software) asked a question.

Upgrade changes for extension development for the AdminApp in Sitefinity CMS 13.1

We have updated Sitefinity CMS 13.1 to use Angular 9.1.9. We have also upgraded the Angular CLI project structure to improve the development experience and make the future upgrades of the Angular framework easier.  

With Sitefinity CMS 13.1, all extensions are moved to the “src” folder and are not on the root level anymore.  

Due to breaking changes introduced in Sitefinity CMS 13.1 release, all your previously built AdminApp extensions will stop working. 

RECOMMENDATION: Because changes to the file structure are almost impossible to resolve when merging from the master branch, we recommend updating your source code following this procedure: 

1.    Clone this repository. 

2.    Copy your custom extension inside the src folder. 

3.    Update the __extensions_index.ts file to include your custom module. 

4.    Rebuild the extensions using npm run build:prod command. 

IMPORTANT: Angular 9.1.9 has its breaking changes too. If you have a deprecated dependency, you might need to change it. For more information, see: 

 

Breaking changes upcoming in a post-13.1 release 

We are planning to turn on ahead-of-time compilation for the Sitefinity Admin app extensions. This change will come with one of the releases of Sitefinity CMS after 13.1. 

RECOMMENDATION: To accommodate for this change, you should write your extension to be compatible with Angular AOT compilation. To learn more, see Angular » Ahead-of-time (AOT) compilation.