Browse Source

Turn on nullability for all src projects (#32742)

* Turn on nullability for all src projects
Pranav K 4 years ago
parent
commit
2105ef1ceb
38 changed files with 47 additions and 0 deletions
  1. 5 0
      eng/targets/CSharp.Common.targets
  2. 1 0
      eng/tools/Directory.Build.props
  3. 1 0
      src/Caching/SqlServer/src/Microsoft.Extensions.Caching.SqlServer.csproj
  4. 1 0
      src/Caching/StackExchangeRedis/src/Microsoft.Extensions.Caching.StackExchangeRedis.csproj
  5. 1 0
      src/Components/Authorization/src/Microsoft.AspNetCore.Components.Authorization.csproj
  6. 0 0
      src/Components/Web.JS/dist/Release/blazor.server.js
  7. 0 0
      src/Components/Web.JS/dist/Release/blazor.webview.js
  8. 1 0
      src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj
  9. 1 0
      src/Components/WebAssembly/BlazorManifest/acquire/dotnet-install-blazoraot.csproj
  10. 1 0
      src/Components/WebAssembly/BlazorManifest/src/BlazorManifest.csproj
  11. 1 0
      src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj
  12. 1 0
      src/Components/WebView/Platforms/WebView2/src/Microsoft.AspNetCore.Components.WebView.WebView2.csproj
  13. 1 0
      src/Components/WebView/Platforms/WindowsForms/src/Microsoft.AspNetCore.Components.WebView.WindowsForms.csproj
  14. 1 0
      src/Components/WebView/Platforms/Wpf/src/Microsoft.AspNetCore.Components.WebView.Wpf.csproj
  15. 1 0
      src/Features/JsonPatch/src/Microsoft.AspNetCore.JsonPatch.csproj
  16. 1 0
      src/HttpClientFactory/Polly/src/Microsoft.Extensions.Http.Polly.csproj
  17. 1 0
      src/Identity/ApiAuthorization.IdentityServer/src/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.csproj
  18. 1 0
      src/Identity/Core/src/Microsoft.AspNetCore.Identity.csproj
  19. 1 0
      src/Identity/EntityFrameworkCore/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore.csproj
  20. 1 0
      src/Identity/Extensions.Core/src/Microsoft.Extensions.Identity.Core.csproj
  21. 1 0
      src/Identity/Extensions.Stores/src/Microsoft.Extensions.Identity.Stores.csproj
  22. 1 0
      src/Identity/Specification.Tests/src/Microsoft.AspNetCore.Identity.Specification.Tests.csproj
  23. 1 0
      src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj
  24. 1 0
      src/Logging.AzureAppServices/src/Microsoft.Extensions.Logging.AzureAppServices.csproj
  25. 1 0
      src/Middleware/tools/RazorPageGenerator/RazorPageGenerator.csproj
  26. 1 0
      src/Mvc/Mvc.ApiExplorer/src/Microsoft.AspNetCore.Mvc.ApiExplorer.csproj
  27. 1 0
      src/Mvc/Mvc.Formatters.Xml/src/Microsoft.AspNetCore.Mvc.Formatters.Xml.csproj
  28. 1 0
      src/Mvc/Mvc.Razor.RuntimeCompilation/src/Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.csproj
  29. 1 0
      src/Mvc/Mvc.RazorPages/src/Microsoft.AspNetCore.Mvc.RazorPages.csproj
  30. 1 0
      src/Mvc/Mvc.TagHelpers/src/Microsoft.AspNetCore.Mvc.TagHelpers.csproj
  31. 1 0
      src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.csproj
  32. 1 0
      src/Mvc/Mvc.ViewFeatures/src/Microsoft.AspNetCore.Mvc.ViewFeatures.csproj
  33. 1 0
      src/Mvc/Mvc/src/Microsoft.AspNetCore.Mvc.csproj
  34. 8 0
      src/Razor/Directory.Build.props
  35. 1 0
      src/Shared/BrowserTesting/src/Microsoft.AspNetCore.BrowserTesting.csproj
  36. 1 0
      src/SignalR/server/Specification.Tests/src/Microsoft.AspNetCore.SignalR.Specification.Tests.csproj
  37. 1 0
      src/SiteExtensions/Microsoft.Web.Xdt.Extensions/src/Microsoft.Web.Xdt.Extensions.csproj
  38. 1 0
      src/Tools/Directory.Build.props

+ 5 - 0
eng/targets/CSharp.Common.targets

@@ -16,6 +16,11 @@
     <!-- Public members should not use oblivious types. Not done with all nullable annotations. -->
     <!-- Public members should not use oblivious types. Not done with all nullable annotations. -->
     <NoWarn>$(NoWarn);RS0041</NoWarn>
     <NoWarn>$(NoWarn);RS0041</NoWarn>
 
 
+    <Nullable Condition=" '$(Nullable)' == '' AND (
+        '$(IsImplementationProject)' == 'true' OR
+        '$(IsAnalyzersProject)' == true OR
+        '$(IsSpecificationTestProject)' == 'true') ">enable</Nullable>
+
     <!-- Turn off platform compatibility analyzer warnings in test, test assets, and samples. -->
     <!-- Turn off platform compatibility analyzer warnings in test, test assets, and samples. -->
     <NoWarn Condition=" '$(IsTestProject)' == 'true' OR
     <NoWarn Condition=" '$(IsTestProject)' == 'true' OR
         '$(IsTestAssetProject)' == 'true' OR
         '$(IsTestAssetProject)' == 'true' OR

+ 1 - 0
eng/tools/Directory.Build.props

@@ -4,5 +4,6 @@
   <PropertyGroup>
   <PropertyGroup>
     <IsPackable>false</IsPackable>
     <IsPackable>false</IsPackable>
     <DisablePackageReferenceRestrictions>true</DisablePackageReferenceRestrictions>
     <DisablePackageReferenceRestrictions>true</DisablePackageReferenceRestrictions>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 </Project>
 </Project>

+ 1 - 0
src/Caching/SqlServer/src/Microsoft.Extensions.Caching.SqlServer.csproj

@@ -9,6 +9,7 @@
     <NoWarn>$(NoWarn);PKG0001</NoWarn>
     <NoWarn>$(NoWarn);PKG0001</NoWarn>
     <IsPackable>true</IsPackable>
     <IsPackable>true</IsPackable>
     <IsShipping>true</IsShipping>
     <IsShipping>true</IsShipping>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Caching/StackExchangeRedis/src/Microsoft.Extensions.Caching.StackExchangeRedis.csproj

@@ -8,6 +8,7 @@
     <ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
     <ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
     <IsPackable>true</IsPackable>
     <IsPackable>true</IsPackable>
     <IsShipping>true</IsShipping>
     <IsShipping>true</IsShipping>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Components/Authorization/src/Microsoft.AspNetCore.Components.Authorization.csproj

@@ -6,6 +6,7 @@
     <Description>Authentication and authorization support for Blazor applications.</Description>
     <Description>Authentication and authorization support for Blazor applications.</Description>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <Trimmable>true</Trimmable>
     <Trimmable>true</Trimmable>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

File diff suppressed because it is too large
+ 0 - 0
src/Components/Web.JS/dist/Release/blazor.server.js


File diff suppressed because it is too large
+ 0 - 0
src/Components/Web.JS/dist/Release/blazor.webview.js


+ 1 - 0
src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj

@@ -7,6 +7,7 @@
     <Description>Authenticate your Blazor webassembly applications with Azure Active Directory and Azure Active Directory B2C</Description>
     <Description>Authenticate your Blazor webassembly applications with Azure Active Directory and Azure Active Directory B2C</Description>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <Trimmable>true</Trimmable>
     <Trimmable>true</Trimmable>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Components/WebAssembly/BlazorManifest/acquire/dotnet-install-blazoraot.csproj

@@ -11,6 +11,7 @@
     <GenerateDocumentationFile>false</GenerateDocumentationFile>
     <GenerateDocumentationFile>false</GenerateDocumentationFile>
     <!-- Set this to false because there's nothing to reference here. -->
     <!-- Set this to false because there's nothing to reference here. -->
     <IsProjectReferenceProvider>false</IsProjectReferenceProvider>
     <IsProjectReferenceProvider>false</IsProjectReferenceProvider>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
 </Project>
 </Project>

+ 1 - 0
src/Components/WebAssembly/BlazorManifest/src/BlazorManifest.csproj

@@ -9,6 +9,7 @@
     <IncludeBuildOutput>false</IncludeBuildOutput>
     <IncludeBuildOutput>false</IncludeBuildOutput>
     <!-- Set this to false because there's nothing to reference here. -->
     <!-- Set this to false because there's nothing to reference here. -->
     <IsProjectReferenceProvider>false</IsProjectReferenceProvider>
     <IsProjectReferenceProvider>false</IsProjectReferenceProvider>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <Target Name="_PrepareForPack" BeforeTargets="CoreBuild">
   <Target Name="_PrepareForPack" BeforeTargets="CoreBuild">

+ 1 - 0
src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj

@@ -7,6 +7,7 @@
     <Description>Build client-side authentication for single-page applications (SPAs).</Description>
     <Description>Build client-side authentication for single-page applications (SPAs).</Description>
     <IsShippingPackage>true</IsShippingPackage>
     <IsShippingPackage>true</IsShippingPackage>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Components/WebView/Platforms/WebView2/src/Microsoft.AspNetCore.Components.WebView.WebView2.csproj

@@ -7,6 +7,7 @@
     <TargetFrameworks>$(DefaultNetCoreTargetFramework)-windows</TargetFrameworks>
     <TargetFrameworks>$(DefaultNetCoreTargetFramework)-windows</TargetFrameworks>
     <Description>WebView2 wrappers for BlazorWebView components on Windows.</Description>
     <Description>WebView2 wrappers for BlazorWebView components on Windows.</Description>
     <IsShippingPackage>true</IsShippingPackage>
     <IsShippingPackage>true</IsShippingPackage>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Components/WebView/Platforms/WindowsForms/src/Microsoft.AspNetCore.Components.WebView.WindowsForms.csproj

@@ -5,6 +5,7 @@
     <Description>Build Windows Forms applications with Blazor and WebView2.</Description>
     <Description>Build Windows Forms applications with Blazor and WebView2.</Description>
     <UseWindowsForms>true</UseWindowsForms>
     <UseWindowsForms>true</UseWindowsForms>
     <IsShippingPackage>true</IsShippingPackage>
     <IsShippingPackage>true</IsShippingPackage>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Components/WebView/Platforms/Wpf/src/Microsoft.AspNetCore.Components.WebView.Wpf.csproj

@@ -5,6 +5,7 @@
     <Description>Build WPF applications with Blazor and WebView2.</Description>
     <Description>Build WPF applications with Blazor and WebView2.</Description>
     <UseWPF>true</UseWPF>
     <UseWPF>true</UseWPF>
     <IsShippingPackage>true</IsShippingPackage>
     <IsShippingPackage>true</IsShippingPackage>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Features/JsonPatch/src/Microsoft.AspNetCore.JsonPatch.csproj

@@ -6,6 +6,7 @@
     <NoWarn>$(NoWarn);CS1591</NoWarn>
     <NoWarn>$(NoWarn);CS1591</NoWarn>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <PackageTags>aspnetcore;json;jsonpatch</PackageTags>
     <PackageTags>aspnetcore;json;jsonpatch</PackageTags>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/HttpClientFactory/Polly/src/Microsoft.Extensions.Http.Polly.csproj

@@ -14,6 +14,7 @@
     <ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
     <ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
     <IsPackable>true</IsPackable>
     <IsPackable>true</IsPackable>
     <IsShipping>true</IsShipping>
     <IsShipping>true</IsShipping>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Identity/ApiAuthorization.IdentityServer/src/Microsoft.AspNetCore.ApiAuthorization.IdentityServer.csproj

@@ -8,6 +8,7 @@
     <!-- We are a package that depends on the shared framework, this allows us to
     <!-- We are a package that depends on the shared framework, this allows us to
          avoid errors during restore -->
          avoid errors during restore -->
     <GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
     <GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Identity/Core/src/Microsoft.AspNetCore.Identity.csproj

@@ -7,6 +7,7 @@
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <PackageTags>aspnetcore;identity;membership</PackageTags>
     <PackageTags>aspnetcore;identity;membership</PackageTags>
     <IsPackable>false</IsPackable>
     <IsPackable>false</IsPackable>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Identity/EntityFrameworkCore/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore.csproj

@@ -5,6 +5,7 @@
     <TargetFrameworks>net5.0;$(DefaultNetCoreTargetFramework)</TargetFrameworks>
     <TargetFrameworks>net5.0;$(DefaultNetCoreTargetFramework)</TargetFrameworks>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <PackageTags>aspnetcore;entityframeworkcore;identity;membership</PackageTags>
     <PackageTags>aspnetcore;entityframeworkcore;identity;membership</PackageTags>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Identity/Extensions.Core/src/Microsoft.Extensions.Identity.Core.csproj

@@ -7,6 +7,7 @@
     <IsAspNetCoreApp>true</IsAspNetCoreApp>
     <IsAspNetCoreApp>true</IsAspNetCoreApp>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <PackageTags>aspnetcore;identity;membership</PackageTags>
     <PackageTags>aspnetcore;identity;membership</PackageTags>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Identity/Extensions.Stores/src/Microsoft.Extensions.Identity.Stores.csproj

@@ -7,6 +7,7 @@
     <IsAspNetCoreApp>true</IsAspNetCoreApp>
     <IsAspNetCoreApp>true</IsAspNetCoreApp>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <PackageTags>aspnetcore;identity;membership</PackageTags>
     <PackageTags>aspnetcore;identity;membership</PackageTags>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Identity/Specification.Tests/src/Microsoft.AspNetCore.Identity.Specification.Tests.csproj

@@ -5,6 +5,7 @@
     <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
     <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
     <GenerateDocumentationFile>false</GenerateDocumentationFile>
     <GenerateDocumentationFile>false</GenerateDocumentationFile>
     <PackageTags>aspnetcore;identity;membership</PackageTags>
     <PackageTags>aspnetcore;identity;membership</PackageTags>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj

@@ -18,6 +18,7 @@
     </GetCurrentProjectStaticWebAssetsDependsOn>
     </GetCurrentProjectStaticWebAssetsDependsOn>
 
 
     <PackageThirdPartyNoticesFile>$(MSBuildThisFileDirectory)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
     <PackageThirdPartyNoticesFile>$(MSBuildThisFileDirectory)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Logging.AzureAppServices/src/Microsoft.Extensions.Logging.AzureAppServices.csproj

@@ -5,6 +5,7 @@
     <TargetFrameworks>$(DefaultNetCoreTargetFramework);$(DefaultNetFxTargetFramework);netstandard2.0</TargetFrameworks>
     <TargetFrameworks>$(DefaultNetCoreTargetFramework);$(DefaultNetFxTargetFramework);netstandard2.0</TargetFrameworks>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <IsShipping>true</IsShipping>
     <IsShipping>true</IsShipping>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Middleware/tools/RazorPageGenerator/RazorPageGenerator.csproj

@@ -10,6 +10,7 @@
     <ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
     <ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
     <!-- No need to track public APIs of this tool. -->
     <!-- No need to track public APIs of this tool. -->
     <AddPublicApiAnalyzers>false</AddPublicApiAnalyzers>
     <AddPublicApiAnalyzers>false</AddPublicApiAnalyzers>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Mvc/Mvc.ApiExplorer/src/Microsoft.AspNetCore.Mvc.ApiExplorer.csproj

@@ -7,6 +7,7 @@
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <PackageTags>aspnetcore;aspnetcoremvc</PackageTags>
     <PackageTags>aspnetcore;aspnetcoremvc</PackageTags>
     <IsPackable>false</IsPackable>
     <IsPackable>false</IsPackable>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Mvc/Mvc.Formatters.Xml/src/Microsoft.AspNetCore.Mvc.Formatters.Xml.csproj

@@ -7,6 +7,7 @@
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <PackageTags>aspnetcore;aspnetcoremvc;xml</PackageTags>
     <PackageTags>aspnetcore;aspnetcoremvc;xml</PackageTags>
     <IsPackable>false</IsPackable>
     <IsPackable>false</IsPackable>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Mvc/Mvc.Razor.RuntimeCompilation/src/Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.csproj

@@ -6,6 +6,7 @@
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <PackageTags>aspnetcore;aspnetcoremvc;razor</PackageTags>
     <PackageTags>aspnetcore;aspnetcoremvc;razor</PackageTags>
     <IsPackable>true</IsPackable>
     <IsPackable>true</IsPackable>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Mvc/Mvc.RazorPages/src/Microsoft.AspNetCore.Mvc.RazorPages.csproj

@@ -7,6 +7,7 @@
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <PackageTags>aspnetcore;aspnetcoremvc;cshtml;razor</PackageTags>
     <PackageTags>aspnetcore;aspnetcoremvc;cshtml;razor</PackageTags>
     <IsPackable>false</IsPackable>
     <IsPackable>false</IsPackable>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Mvc/Mvc.TagHelpers/src/Microsoft.AspNetCore.Mvc.TagHelpers.csproj

@@ -7,6 +7,7 @@
     <PackageTags>aspnetcore;aspnetcoremvc;taghelper;taghelpers</PackageTags>
     <PackageTags>aspnetcore;aspnetcoremvc;taghelper;taghelpers</PackageTags>
     <IsAspNetCoreApp>true</IsAspNetCoreApp>
     <IsAspNetCoreApp>true</IsAspNetCoreApp>
     <IsPackable>false</IsPackable>
     <IsPackable>false</IsPackable>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.csproj

@@ -8,6 +8,7 @@
     <IsPackable>true</IsPackable>
     <IsPackable>true</IsPackable>
     <!-- We're disable NU5100 explicitly bundling assemblies as tasks so they are not referenced when consumed. -->
     <!-- We're disable NU5100 explicitly bundling assemblies as tasks so they are not referenced when consumed. -->
     <NoWarn>NU5100</NoWarn>
     <NoWarn>NU5100</NoWarn>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Mvc/Mvc.ViewFeatures/src/Microsoft.AspNetCore.Mvc.ViewFeatures.csproj

@@ -14,6 +14,7 @@
     <PackageTags>aspnetcore;aspnetcoremvc</PackageTags>
     <PackageTags>aspnetcore;aspnetcoremvc</PackageTags>
     <IsAspNetCoreApp>true</IsAspNetCoreApp>
     <IsAspNetCoreApp>true</IsAspNetCoreApp>
     <IsPackable>false</IsPackable>
     <IsPackable>false</IsPackable>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Mvc/Mvc/src/Microsoft.AspNetCore.Mvc.csproj

@@ -7,6 +7,7 @@
     <PackageTags>aspnetcore;aspnetcoremvc</PackageTags>
     <PackageTags>aspnetcore;aspnetcoremvc</PackageTags>
     <IsAspNetCoreApp>true</IsAspNetCoreApp>
     <IsAspNetCoreApp>true</IsAspNetCoreApp>
     <IsPackable>false</IsPackable>
     <IsPackable>false</IsPackable>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 8 - 0
src/Razor/Directory.Build.props

@@ -0,0 +1,8 @@
+<Project>
+  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.props))\Directory.Build.props" />
+
+  <PropertyGroup>
+    <Nullable>disable</Nullable>
+  </PropertyGroup>
+
+</Project>

+ 1 - 0
src/Shared/BrowserTesting/src/Microsoft.AspNetCore.BrowserTesting.csproj

@@ -5,6 +5,7 @@
     <PackageTags>aspnetcore;testing</PackageTags>
     <PackageTags>aspnetcore;testing</PackageTags>
     <IsShippingPackage>false</IsShippingPackage>
     <IsShippingPackage>false</IsShippingPackage>
     <AddPublicApiAnalyzers>false</AddPublicApiAnalyzers>
     <AddPublicApiAnalyzers>false</AddPublicApiAnalyzers>
+    <IsTestAssetProject>true</IsTestAssetProject>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/SignalR/server/Specification.Tests/src/Microsoft.AspNetCore.SignalR.Specification.Tests.csproj

@@ -4,6 +4,7 @@
     <Description>Tests for users to verify their own implementations of SignalR types</Description>
     <Description>Tests for users to verify their own implementations of SignalR types</Description>
     <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
     <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
     <IsPackable>true</IsPackable>
     <IsPackable>true</IsPackable>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/SiteExtensions/Microsoft.Web.Xdt.Extensions/src/Microsoft.Web.Xdt.Extensions.csproj

@@ -6,6 +6,7 @@
     <CopySymbolsToArtifacts>true</CopySymbolsToArtifacts>
     <CopySymbolsToArtifacts>true</CopySymbolsToArtifacts>
     <IsPackable>false</IsPackable>
     <IsPackable>false</IsPackable>
     <IsShippingPackage>false</IsShippingPackage>
     <IsShippingPackage>false</IsShippingPackage>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <ItemGroup>
   <ItemGroup>

+ 1 - 0
src/Tools/Directory.Build.props

@@ -1,6 +1,7 @@
 <Project>
 <Project>
   <PropertyGroup>
   <PropertyGroup>
     <ToolSharedSourceRoot>$(MSBuildThisFileDirectory)Shared\</ToolSharedSourceRoot>
     <ToolSharedSourceRoot>$(MSBuildThisFileDirectory)Shared\</ToolSharedSourceRoot>
+    <Nullable>disable</Nullable>
   </PropertyGroup>
   </PropertyGroup>
 
 
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.props))\Directory.Build.props" />
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.props))\Directory.Build.props" />

Some files were not shown because too many files changed in this diff