Skip to content

Commit 2105ef1

Browse files
authored
Turn on nullability for all src projects (dotnet#32742)
* Turn on nullability for all src projects
1 parent 0b8a066 commit 2105ef1

File tree

38 files changed

+49
-2
lines changed

38 files changed

+49
-2
lines changed

eng/targets/CSharp.Common.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
<!-- Public members should not use oblivious types. Not done with all nullable annotations. -->
1717
<NoWarn>$(NoWarn);RS0041</NoWarn>
1818

19+
<Nullable Condition=" '$(Nullable)' == '' AND (
20+
'$(IsImplementationProject)' == 'true' OR
21+
'$(IsAnalyzersProject)' == true OR
22+
'$(IsSpecificationTestProject)' == 'true') ">enable</Nullable>
23+
1924
<!-- Turn off platform compatibility analyzer warnings in test, test assets, and samples. -->
2025
<NoWarn Condition=" '$(IsTestProject)' == 'true' OR
2126
'$(IsTestAssetProject)' == 'true' OR

eng/tools/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
<PropertyGroup>
55
<IsPackable>false</IsPackable>
66
<DisablePackageReferenceRestrictions>true</DisablePackageReferenceRestrictions>
7+
<Nullable>disable</Nullable>
78
</PropertyGroup>
89
</Project>

src/Caching/SqlServer/src/Microsoft.Extensions.Caching.SqlServer.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<NoWarn>$(NoWarn);PKG0001</NoWarn>
1010
<IsPackable>true</IsPackable>
1111
<IsShipping>true</IsShipping>
12+
<Nullable>disable</Nullable>
1213
</PropertyGroup>
1314

1415
<ItemGroup>

src/Caching/StackExchangeRedis/src/Microsoft.Extensions.Caching.StackExchangeRedis.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
99
<IsPackable>true</IsPackable>
1010
<IsShipping>true</IsShipping>
11+
<Nullable>disable</Nullable>
1112
</PropertyGroup>
1213

1314
<ItemGroup>

src/Components/Authorization/src/Microsoft.AspNetCore.Components.Authorization.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<Description>Authentication and authorization support for Blazor applications.</Description>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<Trimmable>true</Trimmable>
9+
<Nullable>disable</Nullable>
910
</PropertyGroup>
1011

1112
<ItemGroup>

src/Components/Web.JS/dist/Release/blazor.server.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/Web.JS/dist/Release/blazor.webview.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<Description>Authenticate your Blazor webassembly applications with Azure Active Directory and Azure Active Directory B2C</Description>
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>
99
<Trimmable>true</Trimmable>
10+
<Nullable>disable</Nullable>
1011
</PropertyGroup>
1112

1213
<ItemGroup>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<GenerateDocumentationFile>false</GenerateDocumentationFile>
1212
<!-- Set this to false because there's nothing to reference here. -->
1313
<IsProjectReferenceProvider>false</IsProjectReferenceProvider>
14+
<Nullable>disable</Nullable>
1415
</PropertyGroup>
1516

1617
</Project>

src/Components/WebAssembly/BlazorManifest/src/BlazorManifest.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<IncludeBuildOutput>false</IncludeBuildOutput>
1010
<!-- Set this to false because there's nothing to reference here. -->
1111
<IsProjectReferenceProvider>false</IsProjectReferenceProvider>
12+
<Nullable>disable</Nullable>
1213
</PropertyGroup>
1314

1415
<Target Name="_PrepareForPack" BeforeTargets="CoreBuild">

0 commit comments

Comments
 (0)