diff --git a/eng/targets/CSharp.Common.props b/eng/targets/CSharp.Common.props index bddce450d74d..75bbfcc7743c 100644 --- a/eng/targets/CSharp.Common.props +++ b/eng/targets/CSharp.Common.props @@ -4,7 +4,7 @@ 9.0 - strict + strict;nullablePublicOnly diff --git a/src/Mvc/Mvc.DataAnnotations/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test.csproj b/src/Mvc/Mvc.DataAnnotations/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test.csproj index 1372cf33ea00..b77a56dc7b43 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test.csproj +++ b/src/Mvc/Mvc.DataAnnotations/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test.csproj @@ -3,6 +3,8 @@ $(DefaultNetCoreTargetFramework) false + + $(Features.Replace('nullablePublicOnly', '')) diff --git a/src/Mvc/test/Mvc.IntegrationTests/Microsoft.AspNetCore.Mvc.IntegrationTests.csproj b/src/Mvc/test/Mvc.IntegrationTests/Microsoft.AspNetCore.Mvc.IntegrationTests.csproj index 219c48691150..2645610a14bb 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/Microsoft.AspNetCore.Mvc.IntegrationTests.csproj +++ b/src/Mvc/test/Mvc.IntegrationTests/Microsoft.AspNetCore.Mvc.IntegrationTests.csproj @@ -3,6 +3,8 @@ $(DefaultNetCoreTargetFramework) false + + $(Features.Replace('nullablePublicOnly', ''))