Skip to content

Conversation

@lauraneto
Copy link
Contributor

Fixes #17839

Changes

  • Reference Microsoft.CodeAnalysis.CSharp.Workspaces and Microsoft.CodeAnalysis.Workspaces.MSBuild directly from the Umbraco.Infrastructure project to ensure that specific versions are used.
  • Disable CPM (Central Package Management) in the Umbraco.Web.UI project, as that can sometimes hide dependency issues consumers might encounter.
  • Remove references to packages that were not needed.

In order to reproduce the initial issue, simply create a new project in v13 and try to install Microsoft.EntityFrameworkCore.Design.

A PR should also be done to the docs to remove the workaround.

Copilot AI review requested due to automatic review settings October 13, 2025 08:25
@lauraneto lauraneto added dependencies Pull requests that update a dependency file area/backend labels Oct 13, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR resolves dependency conflicts that occur when installing Microsoft.EntityFrameworkCore.Design in Umbraco v13 projects by addressing package management conflicts and ensuring specific package versions are properly referenced.

  • Disables Central Package Management (CPM) for the Umbraco.Web.UI project to prevent hidden dependency issues
  • Adds direct references to Microsoft.CodeAnalysis packages in Umbraco.Infrastructure to resolve version conflicts
  • Removes unused package references and adjusts version management for specific packages

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj Disables CPM and converts package references to use explicit versions
src/Umbraco.Infrastructure/Umbraco.Infrastructure.csproj Adds direct references to Microsoft.CodeAnalysis packages to prevent conflicts
Directory.Packages.props Adds version definitions for new CodeAnalysis packages and removes unused EntityFrameworkCore.Design reference

@Zeegaan Zeegaan merged commit 388e5f9 into v13/dev Oct 13, 2025
19 checks passed
@Zeegaan Zeegaan deleted the v13/bugfix/dependency-conflicts-installing-Microsoft.EntityFrameworkCore.Design branch October 13, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/backend dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Umbraco require Microsoft.CodeAnalysis.Common (v4.10.0) which is not compatible with EF Core 8.0

4 participants