Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,32 @@ Snapshots have been removed, meaning any code using `IPublishedSnapshot`, and by

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:

* InMemoryAuto - Remove the `umbraco\Data\TEMP\InMemoryAuto` folder to trigger a rebuild of the models.
* SourceCodeAuto and SourceCodeManual - Remove the old models located in the `\umbraco\models` folder by default. Trigger a rebuild of the models from the ModelsBuilder dashboard in the backoffice.
**InMemoryAuto**

Remove the `umbraco\Data\TEMP\InMemoryAuto` folder to trigger a rebuild of the models.

**SourceCodeAuto and SourceCodeManual**

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:

```xml
<PropertyGroup>
<RazorCompileOnBuild>false</RazorCompileOnBuild>
<RazorCompileOnPublish>false</RazorCompileOnPublish>
</PropertyGroup>
```

This will allow your site to start up, but you will still see an error page when loading a page.

1. Disregard the error.
2. Enter the backoffice.
3. Rebuild the models from the ModelsBuilder dashboard.

You can now re-enable precompiled views and rebuild your site.

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`.

<summary>Umbraco 14</summary>

Expand Down
Loading