From 64be2321cc04f89e5c8fd25da6519195398b5ab1 Mon Sep 17 00:00:00 2001 From: sofietoft Date: Tue, 12 Nov 2024 09:31:27 +0100 Subject: [PATCH] Add Trimstart/end notes --- .../setup/upgrading/version-specific/README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/15/umbraco-cms/fundamentals/setup/upgrading/version-specific/README.md b/15/umbraco-cms/fundamentals/setup/upgrading/version-specific/README.md index 945a43b31bb..1b00841cce7 100644 --- a/15/umbraco-cms/fundamentals/setup/upgrading/version-specific/README.md +++ b/15/umbraco-cms/fundamentals/setup/upgrading/version-specific/README.md @@ -21,11 +21,16 @@ Use the [general upgrade guide](../) to complete the upgrade of your project. Umbraco 15 -* **Snapshots are removed** +**`TrimStart` & `TrimEnd`** + +The string extension methods `TrimStart` and `TrimEnd` are implemented natively in .NET 9 and behave differently from the ones used by Umbraco. +Due to this, the Umbraco versions have changed names. Use `TrimStartExact` and `TrimEndExact` instead. + +**Snapshots are removed** Snapshots have been removed, meaning any code using `IPublishedSnapshot`, and by extension `IPublishedSnapshotAccessor`, must be updated. Inject `IPublishedContentCache` or `IPublishedMediaCache` and use those directly instead. -* **Modelsbuilder models needs to be rebuilt** +**Modelsbuilder models needs to be rebuilt** Models generated by ModelsBuilder used the `IPublishedSnapshot` interface, which has been removed. This means that the models need to be rebuilt. The approach to this will differ depending on the mode chosen: