Skip to content

Microsoft.EntityFrameworkCore.SqlServer requires Microsoft.WindowsDesktop.App since 8.0.2 #34331

Closed as not planned

Description

@markusbettig

I've got a .NET Core project targeting Windows that was just upgraded to .NET 8 which now required Microsoft.WindowsDesktop.App to be installed. This previously wasn't the case. I've narrowed down the cause of this issue to the upgrade of Microsoft.EntityFrameworkCore.SqlServer from 8.0.1 to 8.0.2.

I've created a sample GitHub repo showing this behaviour (on ubuntu-latest, it actually causes the build to break):

https://github.com/markusbettig/EFCoreSqlServerDesktopAppIssue/

Activity

  1. ErikEJ commented on Aug 1, 2024

    @ErikEJ
    Contributor

    @markusbettig why is that an issue for you?

  2. markusbettig commented on Aug 1, 2024

    @markusbettig
    Author

    @markusbettig why is that an issue for you?

    Because we're only deploying the hosting bundle, which does not include Microsoft.WindowsDesktop.App.

    So should I expect this dependency to remain?

  3. ErikEJ commented on Aug 1, 2024

    @ErikEJ
    Contributor

    How come are you targeting net8.0-windows and expecting a build to pass on Ubuntu?

    It is an Azure.Identity bug/issue. Simple fix:

    <PackageReference Include="Azure.Identity" Version="1.12.0" />

  4. markusbettig commented on Aug 2, 2024

    @markusbettig
    Author

    How come are you targeting net8.0-windows and expecting a build to pass on Ubuntu?

    It is an Azure.Identity bug/issue. Simple fix:

    <PackageReference Include="Azure.Identity" Version="1.12.0" />

    I simply forgot to change the runs-on setting at first, which is why I changed it later.

    That did the trick, thank you very much, @ErikEJ!

  5. ErikEJ commented on Aug 2, 2024

    @ErikEJ
    Contributor

    Great, thanks for confirming!

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions