summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/System.Private.CoreLib.csproj
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2019-05-09 12:40:16 -0400
committerGitHub <noreply@github.com>2019-05-09 12:40:16 -0400
commit9773db1e7b1acb3ec75c9cc0e36bd62dcbacd6d5 (patch)
tree6aed846869895d687ad3f0b6014aa8cef8c8f229 /src/System.Private.CoreLib/System.Private.CoreLib.csproj
parent42164199dd8edd5acb174c6d8a4b47546afc2894 (diff)
downloadcoreclr-9773db1e7b1acb3ec75c9cc0e36bd62dcbacd6d5.tar.gz
coreclr-9773db1e7b1acb3ec75c9cc0e36bd62dcbacd6d5.tar.bz2
coreclr-9773db1e7b1acb3ec75c9cc0e36bd62dcbacd6d5.zip
Turn on nullability for all of Corelib (#24497)
* Enable nullable at the project level * Remove `#nullable enable` from individual files Removes `#nullable enable` from almost all .cs files in System.Private.CoreLib. I left it only in the ~30 files (out of ~1480 that had it) that are mirrored to corefx, that are built into projects by corefx that don't yet set NullableContextOptions at the project level, and that use nullable annotations; otherwise, they'd break the corefx build.
Diffstat (limited to 'src/System.Private.CoreLib/System.Private.CoreLib.csproj')
-rw-r--r--src/System.Private.CoreLib/System.Private.CoreLib.csproj1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/System.Private.CoreLib/System.Private.CoreLib.csproj
index 9bc07880fa..9219d638f0 100644
--- a/src/System.Private.CoreLib/System.Private.CoreLib.csproj
+++ b/src/System.Private.CoreLib/System.Private.CoreLib.csproj
@@ -55,6 +55,7 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- Remove CS8608 once https://github.com/dotnet/roslyn/issues/23268 is resolved -->
<NoWarn>649,1573,1591,0419,3021,CS8609</NoWarn>
+ <NullableContextOptions>enable</NullableContextOptions>
<!-- Ignore all previous constants since SPCL is sensitive to what is defined and the Sdk adds some by default -->
<DefineConstants>CORECLR;netcoreapp</DefineConstants>