-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET 6 trimmed mode=link application option throws Exception #2185
Comments
Duplicate of #26288 |
@EjaYF I'll be working on EF Core trimming compatibility for EF 7.0 - though it's good to know things were working for you in 5.0. |
@EjaYF I'm looking into this, and I wanted to confirm something... Can you confirm that with .NET 5.0 - where everything was running well for you - you were getting (and ignoring) many trim analysis warning when publishing? And that your EF Core application was still running well? |
We are using
Npgsql.EntityFrameworkCore.PostgreSQL
in a .NET 6 console application which we deploy usingin .NET 5 this had no issues running, but in .NET 6 (as the core .NET 6 libraries now support trimming mode Link) an Exception is thrown while querying the database:
I can overcome this issue by using:
TrimmingRoot.xml
And in my application add this to the .csproj file:
But I think your library should take of this.
The text was updated successfully, but these errors were encountered: