Skip to content

Commit 1eb52f1

Browse files
authored
Merge pull request #7502 from umbraco/cms/v17/remove-efcore-dependency-warning
Remove warning on `Microsoft.EntityFrameworkCore.Design` dependency conflicts
2 parents 58feb99 + 2b9b3ca commit 1eb52f1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

17/umbraco-cms/tutorials/getting-started-with-entity-framework-core.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@ Data stored in custom tables are not supported by default by add-ons such as Umb
3434
* EFCore CLI tool
3535
* Can be installed by running `dotnet tool install --global dotnet-ef` in the terminal
3636

37-
<details>
38-
39-
<summary>If you are using EF Core, and have installed the <code>Microsoft.EntityFrameworkCore.Design 8.0.0</code> package</summary>
40-
41-
You need to be aware of some things if you are using EF Core, and have installed the `Microsoft.EntityFrameworkCore.Design 8.0.0` package:
42-
43-
* This package has a transient dependency to `Microsoft.CodeAnalysis.Common` which clashes with the same transient dependency from `Umbraco.Cms 13.0.0`. This happens because `Microsoft.EntityFrameworkCore.Design 8.0.0` requires `Microsoft.CodeAnalysis.CSharp.Workspaces` in v4.5.0 or higher.
44-
* If there are no other dependencies that need that package then it installs it in the lowest allowed version (4.5.0). That package then has a strict dependency on `Microsoft.CodeAnalysis.Common` version 4.5.0. The problem is `Umbraco.Cms` through its own transient dependencies that require the version of `Microsoft.CodeAnalysis.Common` to be >= 4.8.0.
45-
* This can be fixed by installing `Microsoft.CodeAnalysis.CSharp.Workspaces` version 4.10.0 as a specific package instead of leaving it as a transient dependency. This is because it will then have a strict transient dependency on `Microsoft.CodeAnalysis.Common` version 4.8.0, which is the same that Umbraco has.
46-
47-
</details>
48-
4937
The tutorial will show how to create custom database tables using a composer and a notification handler. With this pattern, you create and run a similar migration but trigger it in response to a [notification handler](https://docs.umbraco.com/umbraco-cms/fundamentals/code/subscribing-to-notifications).
5038

5139
## Step 1: Create Model Class

0 commit comments

Comments
 (0)