Skip to content

Conversation

@zade107
Copy link

@zade107 zade107 commented Nov 12, 2025

This pull request updates the test site to use the latest major version of Umbraco CMS and its related models. The most significant changes are the upgrade of dependencies and generated code to support Umbraco 15, along with adjustments to model property types and code signatures to align with the new version's API.

Umbraco CMS and ModelsBuilder Upgrade:

  • Updated the target framework in DeliveryApiModelMapper.TestSite.csproj from net8.0 to net9.0, and upgraded the Umbraco.Cms NuGet package from version 13.0.0 to 15.0.0.
  • All auto-generated model files (Content.generated.cs, File.generated.cs, Folder.generated.cs, Home.generated.cs, Image.generated.cs) now reference Umbraco.ModelsBuilder.Embedded v15.0.0+76ed170 instead of v13.3.0. [1] [2] [3] [4] [5]

API and Type Compatibility Updates:

  • Changed method signatures in generated model classes to use IPublishedContentTypeCache instead of the deprecated IPublishedSnapshotAccessor, reflecting API changes in Umbraco 15. [1] [2] [3] [4]
  • Updated the property type for UmbracoBytes in the File model from long to string to match new expectations in Umbraco 15.

Generated Attribute and Property Updates:

  • All [GeneratedCodeAttribute] annotations in model classes now reference the new version string, ensuring correct code generation metadata. [1] [2] [3] [4] [5] [6] [7] [8]

These changes ensure compatibility with Umbraco 15 and .NET 9, and update the codebase to use the latest APIs and code generation standards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants