Skip to content

Update Microsoft.CodeAnalysis version #32926

Closed

Description

@ajcvickers

Issue to track this following discussion on #32070 and PR #32922.

This is merged to main, but we could consider backporting to a patch if there is demand.

Activity

  1. self-assigned this
    on Jan 26, 2024
  2. added this to the 9.0.0 milestone on Jan 26, 2024
  3. flimtix commented on Jan 31, 2024

    @flimtix

    @ajcvickers When I update from .NET 6 to .NET 8, I get a version conflict because of Microsoft.EntityFrameworkCore.Tools and Microsoft.EntityFrameworkCore.Design. Is it possible that this fix will be integrated into the next version?

  4. modified the milestones: 9.0.0, , on Jan 31, 2024
  5. ajcvickers commented on Feb 1, 2024

    @ajcvickers
    ContributorAuthor

    @21r8390 It's possible we will backport this to a patch, but not decided yet. /cc @SamMonoRT

  6. rogereeno commented on Feb 7, 2024

    @rogereeno

    Are there any plans to back-port this to EF Core 8 and release something like 8.0.2? I am running into conflicts when using Microsoft.Orleans.Serialization 8.0.0 and using VS 2022 17.8.5.

  7. ajcvickers commented on Feb 7, 2024

    @ajcvickers
    ContributorAuthor

    @rogereeno Can you test with the daily builds to verify that your issue is fixed there. The more people who do this, the more confidence we will have that patching is the right thing to do, if we get approval.

  8. oleggolovkov commented on Feb 14, 2024

    @oleggolovkov

    this is somewhat unfortunate because it prevents upgrading from EF7 to EF8 in a project that is already referencing an Orleans 8 package and one would expect that all MS products of the same version (8 in this case) are compatible
    image

  9. ajcvickers commented on Feb 14, 2024

    @ajcvickers
    ContributorAuthor

    @oleggolovkov There is a possibility that we will patch this, but we need enough people to report back that the daily build is working first.

  10. ErikEJ commented on Feb 14, 2024

    @ErikEJ
    Contributor
  11. OskarKlintrot commented on Mar 6, 2024

    @OskarKlintrot

    Just chipping in my wish for this to be patched to v8 as well. Atm we can't upgrade to .NET 8 since Powershell SDK requires the latest version for it to properly work with the new RID in .NET 8. But Powershell SDK and EF Core 8 can't be installed together right now due to this conflict.

  12. removed their assignment
    on Aug 31, 2024
  13. modified the milestones: , 9.0.0 on Oct 12, 2024
  14. eqtr-ab commented on Mar 11, 2025

    @eqtr-ab

    +1 for someone else encountering this issue, and desiring a fix.

  15. Myster commented on Jul 8, 2025

    @Myster

    +1, In my case I am working with Umbraco 13, unfortunately, I don't have the bandwidth to be testing daily builds :-(

    Version conflict detected for Microsoft.CodeAnalysis.Common. Install/reference Microsoft.CodeAnalysis.Common 4.10.0 directly to project Redacted to resolve this issue.
    Redacted -> Umbraco.Forms 13.5.0 -> Umbraco.Forms.Examine 13.5.0 -> Umbraco.Forms.Core 13.5.0 -> Umbraco.Licensing 13.0.1 -> Umbraco.Cms.Web.Common 13.9.2 -> Umbraco.Cms.PublishedCache.NuCache 13.9.2 -> Umbraco.Cms.Infrastructure 13.9.2 -> Microsoft.CodeAnalysis.CSharp 4.10.0 -> Microsoft.CodeAnalysis.Common (= 4.10.0)
    Redacted -> Microsoft.EntityFrameworkCore.Design 8.0.11 -> Microsoft.CodeAnalysis.CSharp.Workspaces 4.5.0 -> Microsoft.CodeAnalysis.Common (= 4.5.0).

    So I added these direct references to my csproj

    <PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.10.0" />
    <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.10.0" />
    

    But when I try create a migration I get.

    Unable to load one or more of the requested types.
    Method 'get_IsParamsArray' in type 'Microsoft.CodeAnalysis.CodeGeneration.CodeGenerationParameterSymbol' from assembly 'Microsoft.CodeAnalysis.Workspaces, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions