From a86243e7bde7a59ef7d97ac1655d569ae5822386 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Fri, 29 Apr 2022 11:32:08 +0200 Subject: [PATCH] Force NullabilityInfoContextSupport=true in user projects To make NRT-based model building work correctly in aggressively trimmed applications (e.g. MAUI). Fixes #27474 --- src/EFCore/EFCore.csproj | 7 +++++++ .../net6.0/Microsoft.EntityFrameworkCore.props | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/EFCore/buildTransitive/net6.0/Microsoft.EntityFrameworkCore.props diff --git a/src/EFCore/EFCore.csproj b/src/EFCore/EFCore.csproj index 038f1d38f95..c614ae68d83 100644 --- a/src/EFCore/EFCore.csproj +++ b/src/EFCore/EFCore.csproj @@ -31,6 +31,13 @@ Microsoft.EntityFrameworkCore.DbSet + + + True + buildTransitive + + + TextTemplatingFileGenerator diff --git a/src/EFCore/buildTransitive/net6.0/Microsoft.EntityFrameworkCore.props b/src/EFCore/buildTransitive/net6.0/Microsoft.EntityFrameworkCore.props new file mode 100644 index 00000000000..9a8580ae56b --- /dev/null +++ b/src/EFCore/buildTransitive/net6.0/Microsoft.EntityFrameworkCore.props @@ -0,0 +1,9 @@ + + + + true + +