Skip to content

Commit 5457ad3

Browse files
authored
Unify the nullable reference type approaches (#48776)
1 parent 016005f commit 5457ad3

File tree

660 files changed

+1297
-41
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

660 files changed

+1297
-41
lines changed

Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
We still check $(TargetFrameworks) for empty though, because for single-targeted builds we want to
1010
allow nullable warnings regardless of target framework.
1111
-->
12-
<NoWarn Condition="'$(DisableNullableWarnings)' == '' AND '$(TargetFrameworks)' != '' AND '$(TargetFramework)' != '' AND '$(TargetFrameworkIdentifier)' != '.NETCoreApp'">$(NoWarn);Nullable</NoWarn>
12+
<NoWarn Condition="'$(TargetFrameworks)' != '' AND '$(TargetFramework)' != '' AND '$(TargetFrameworkIdentifier)' != '.NETCoreApp'">$(NoWarn);Nullable</NoWarn>
1313
</PropertyGroup>
1414

1515
<ItemGroup>

src/BuiltInTools/HotReloadAgent.Data/Microsoft.DotNet.HotReload.Agent.Data.Package.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<GenerateDocumentationFile>false</GenerateDocumentationFile>
88
<DebugType>none</DebugType>
99
<GenerateDependencyFile>false</GenerateDependencyFile>
10-
<Nullable>enable</Nullable>
1110
<LangVersion>preview</LangVersion>
1211

1312
<!-- NuGet -->

src/BuiltInTools/HotReloadAgent.PipeRpc/Microsoft.DotNet.HotReload.Agent.PipeRpc.Package.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<GenerateDocumentationFile>false</GenerateDocumentationFile>
88
<DebugType>none</DebugType>
99
<GenerateDependencyFile>false</GenerateDependencyFile>
10-
<Nullable>enable</Nullable>
1110
<LangVersion>preview</LangVersion>
1211

1312
<!-- NuGet -->

src/BuiltInTools/HotReloadAgent/Microsoft.DotNet.HotReload.Agent.Package.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<GenerateDocumentationFile>false</GenerateDocumentationFile>
99
<DebugType>none</DebugType>
1010
<GenerateDependencyFile>false</GenerateDependencyFile>
11-
<Nullable>enable</Nullable>
1211
<LangVersion>preview</LangVersion>
1312

1413
<!-- NuGet -->

src/Cli/dotnet/AspNetCoreCertificateGenerator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable disable
5+
46
using Microsoft.DotNet.Configurer;
57

68
namespace Microsoft.DotNet.Cli;

src/Cli/dotnet/AutomaticEncodingRestorer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable disable
5+
46
using System.Security;
57

68
namespace Microsoft.DotNet.Cli;

src/Cli/dotnet/BuildServer/BuildServerException.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable disable
5+
46
namespace Microsoft.DotNet.Cli.BuildServer;
57

68
internal class BuildServerException : Exception

src/Cli/dotnet/BuildServer/BuildServerProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable disable
5+
46
using Microsoft.DotNet.Cli.Utils;
57
using Microsoft.DotNet.Cli.Utils.Extensions;
68
using Microsoft.DotNet.Configurer;

src/Cli/dotnet/BuildServer/IBuildServer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable disable
5+
46
namespace Microsoft.DotNet.Cli.BuildServer;
57

68
internal interface IBuildServer

src/Cli/dotnet/BuildServer/IBuildServerProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable disable
5+
46
namespace Microsoft.DotNet.Cli.BuildServer;
57

68
[Flags]

0 commit comments

Comments
 (0)