Skip to content

Detect if Umbraco version supports Models #208

@zpqrtbnk

Description

@zpqrtbnk

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions