You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Microsoft.EntityFrameworkCore.SqlServer requires Microsoft.WindowsDesktop.App since 8.0.2 #34331
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):
Activity
ErikEJ commentedon Aug 1, 2024
@markusbettig why is that an issue for you?
markusbettig commentedon Aug 1, 2024
Because we're only deploying the hosting bundle, which does not include Microsoft.WindowsDesktop.App.
So should I expect this dependency to remain?
ErikEJ commentedon Aug 1, 2024
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" />markusbettig commentedon Aug 2, 2024
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!
ErikEJ commentedon Aug 2, 2024
Great, thanks for confirming!