efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Docker + "The FrameworkReference 'Microsoft.WindowsDesktop.App.WindowsForms' was not recognized" on v8.0.2

Open rudacomolaplanta opened this issue 1 year ago • 4 comments

Hi,

I got a problem with this package today

Looks like installing v8.0.2 will get to the error: The FrameworkReference 'Microsoft.WindowsDesktop.App.WindowsForms' was not recognized

When use it to build a docker container using [mcr.microsoft.com/dotnet/sdk:8.0.200] (http://mcr.microsoft.com/dotnet/sdk:8.0.200)

Maybe the reference to the Microsoft.EntityFrameworkCore.Analyzers is causing the problem.

I downgraded to v8.0.1 and there's no trouble.

rudacomolaplanta avatar Feb 13 '24 20:02 rudacomolaplanta

@rudacomolaplanta Can you post your csproj file(s)?

ajcvickers avatar Feb 14 '24 09:02 ajcvickers

Are targeting "windows" ? that could why you get the issue, due to SqlClient 5.1.4 using Azure.Identity 10.3

ErikEJ avatar Feb 14 '24 12:02 ErikEJ

@ErikEJ that was the problem! changed the targeting OS and worked. Thanks!

rudacomolaplanta avatar Feb 14 '24 12:02 rudacomolaplanta

Tracking issue (it is actually Microsoft.Identity.Client that is the culprit)

ErikEJ avatar Feb 14 '24 12:02 ErikEJ