Skip to content

Commit 99a0c05

Browse files
authored
Merge pull request #7504 from umbraco/cms/v13/remove-efcore-dependency-warning
Remove warning on `Microsoft.EntityFrameworkCore.Design` dependency conflicts
2 parents bab12e6 + e209a9f commit 99a0c05

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

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

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

34-
<details>
35-
36-
<summary>If you are using EF Core, and have installed the <code>Microsoft.EntityFrameworkCore.Design 8.0.0</code> package</summary>
37-
38-
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:
39-
40-
* 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.
41-
* 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.
42-
* This can be fixed by installing `Microsoft.CodeAnalysis.CSharp.Workspaces` version 4.8.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.
43-
44-
</details>
45-
4634
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).
4735

4836
## Step 1: Create Model Class

0 commit comments

Comments
 (0)