From 813322f86dddcec20543c2ba2b6b9b8b3d7e034a Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Mon, 16 May 2022 17:29:37 +0200 Subject: [PATCH] Force NullabilityInfoContextSupport=true in user projects (#27916) 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..b082dc6927f 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 + +