modelsbuilder/ModelsBuilder.Original

Detect if Umbraco version supports Models

Opened this issue · 0 comments

When models have been generated by an old Umbraco version, and are used in a newer version (for instance during an upgrade) they can be invalid (for instance, missing an interface method or something equivalent) and cause a boot failure, thus preventing re-generating the models.

This is a catch-22 and today, the only solution is to delete all models, upgrade, re-generate models.

Could we store, in the models DLL, a version identifier that we could check against Umbraco's version, in order to determine whether we can use the models? Else we'd just ignore them = the front-end would die of course, but the back-end would work and could be used to rebuild models.