You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 15/umbraco-cms/fundamentals/setup/upgrading/version-specific/README.md
+4-11Lines changed: 4 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,7 @@ Use the [general upgrade guide](../) to complete the upgrade of your project.
21
21
22
22
<summary>Umbraco 15</summary>
23
23
24
-
**`TrimStart` & `TrimEnd`**
25
-
26
-
The string extension methods `TrimStart` and `TrimEnd` are implemented natively in .NET 9 and behave differently from the ones used by Umbraco.
27
-
Due to this, the Umbraco versions have changed names. Use `TrimStartExact` and `TrimEndExact` instead.
28
-
29
-
**Snapshots are removed**
24
+
S**napshots are removed**
30
25
31
26
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.
32
27
@@ -40,8 +35,7 @@ Remove the `umbraco\Data\TEMP\InMemoryAuto` folder to trigger a rebuild of the m
40
35
41
36
**SourceCodeAuto and SourceCodeManual**
42
37
43
-
Remove the old models located in the `\umbraco\models` folder by default. This will cause your views to no longer be able to build due to missing types.
44
-
To get around this you can disable the precompiled view temporarily by adding the following to your `.csproj` file:
38
+
Remove the old models located in the `\umbraco\models` folder by default. This will cause your views to no longer be able to build due to missing types. To get around this you can disable the precompiled view temporarily by adding the following to your `.csproj` file:
45
39
46
40
```xml
47
41
<PropertyGroup>
@@ -50,16 +44,15 @@ To get around this you can disable the precompiled view temporarily by adding th
50
44
</PropertyGroup>
51
45
```
52
46
53
-
This will allow your site to start up, but you will still see an error page when loading a page.
47
+
This will allow your site to start up, but you will still see an error page when loading a page.
54
48
55
49
1. Disregard the error.
56
50
2. Enter the backoffice.
57
51
3. Rebuild the models from the ModelsBuilder dashboard.
58
52
59
53
You can now re-enable precompiled views and rebuild your site.
60
54
61
-
If you have custom C# code that references the models this will also not build. You can either comment out your custom code temporarily until the models have been rebuilt or fix the models manually.
62
-
To fix the models manually you need to find and replace `IPublishedSnapshotAccessor` with `IPublishedContentTypeCache`.
55
+
If you have custom C# code that references the models this will also not build. You can either comment out your custom code temporarily until the models have been rebuilt or fix the models manually. To fix the models manually you need to find and replace `IPublishedSnapshotAccessor` with `IPublishedContentTypeCache`.
0 commit comments