diff --git a/Directory.Build.targets b/Directory.Build.targets index 85f77815afcb..010f9e37f7e1 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -9,7 +9,7 @@ We still check $(TargetFrameworks) for empty though, because for single-targeted builds we want to allow nullable warnings regardless of target framework. --> - $(NoWarn);Nullable + $(NoWarn);Nullable diff --git a/src/BuiltInTools/HotReloadAgent.Data/Microsoft.DotNet.HotReload.Agent.Data.Package.csproj b/src/BuiltInTools/HotReloadAgent.Data/Microsoft.DotNet.HotReload.Agent.Data.Package.csproj index 5586c0ea5050..285d0de46e69 100644 --- a/src/BuiltInTools/HotReloadAgent.Data/Microsoft.DotNet.HotReload.Agent.Data.Package.csproj +++ b/src/BuiltInTools/HotReloadAgent.Data/Microsoft.DotNet.HotReload.Agent.Data.Package.csproj @@ -7,7 +7,6 @@ false none false - enable preview diff --git a/src/BuiltInTools/HotReloadAgent.PipeRpc/Microsoft.DotNet.HotReload.Agent.PipeRpc.Package.csproj b/src/BuiltInTools/HotReloadAgent.PipeRpc/Microsoft.DotNet.HotReload.Agent.PipeRpc.Package.csproj index 274d58b2b985..a6a3b3ab0ad1 100644 --- a/src/BuiltInTools/HotReloadAgent.PipeRpc/Microsoft.DotNet.HotReload.Agent.PipeRpc.Package.csproj +++ b/src/BuiltInTools/HotReloadAgent.PipeRpc/Microsoft.DotNet.HotReload.Agent.PipeRpc.Package.csproj @@ -7,7 +7,6 @@ false none false - enable preview diff --git a/src/BuiltInTools/HotReloadAgent/Microsoft.DotNet.HotReload.Agent.Package.csproj b/src/BuiltInTools/HotReloadAgent/Microsoft.DotNet.HotReload.Agent.Package.csproj index cbf6c0620709..668026b9455c 100644 --- a/src/BuiltInTools/HotReloadAgent/Microsoft.DotNet.HotReload.Agent.Package.csproj +++ b/src/BuiltInTools/HotReloadAgent/Microsoft.DotNet.HotReload.Agent.Package.csproj @@ -8,7 +8,6 @@ false none false - enable preview diff --git a/src/Cli/dotnet/AspNetCoreCertificateGenerator.cs b/src/Cli/dotnet/AspNetCoreCertificateGenerator.cs index 5743c80539bd..85a22b37c082 100644 --- a/src/Cli/dotnet/AspNetCoreCertificateGenerator.cs +++ b/src/Cli/dotnet/AspNetCoreCertificateGenerator.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Configurer; namespace Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/AutomaticEncodingRestorer.cs b/src/Cli/dotnet/AutomaticEncodingRestorer.cs index 0fdbe2a40cb3..5a1fbeb8b3d4 100644 --- a/src/Cli/dotnet/AutomaticEncodingRestorer.cs +++ b/src/Cli/dotnet/AutomaticEncodingRestorer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Security; namespace Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/BuildServer/BuildServerException.cs b/src/Cli/dotnet/BuildServer/BuildServerException.cs index 2b039e8e9a85..cb3c78019c13 100644 --- a/src/Cli/dotnet/BuildServer/BuildServerException.cs +++ b/src/Cli/dotnet/BuildServer/BuildServerException.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.BuildServer; internal class BuildServerException : Exception diff --git a/src/Cli/dotnet/BuildServer/BuildServerProvider.cs b/src/Cli/dotnet/BuildServer/BuildServerProvider.cs index 2d5595ff5339..3252dcaf0df5 100644 --- a/src/Cli/dotnet/BuildServer/BuildServerProvider.cs +++ b/src/Cli/dotnet/BuildServer/BuildServerProvider.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/BuildServer/IBuildServer.cs b/src/Cli/dotnet/BuildServer/IBuildServer.cs index 02f2f16c454d..a46c2090d8d1 100644 --- a/src/Cli/dotnet/BuildServer/IBuildServer.cs +++ b/src/Cli/dotnet/BuildServer/IBuildServer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.BuildServer; internal interface IBuildServer diff --git a/src/Cli/dotnet/BuildServer/IBuildServerProvider.cs b/src/Cli/dotnet/BuildServer/IBuildServerProvider.cs index f3173f7c9933..b6edfef28404 100644 --- a/src/Cli/dotnet/BuildServer/IBuildServerProvider.cs +++ b/src/Cli/dotnet/BuildServer/IBuildServerProvider.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.BuildServer; [Flags] diff --git a/src/Cli/dotnet/BuildServer/MSBuildServer.cs b/src/Cli/dotnet/BuildServer/MSBuildServer.cs index 4f8a5c4606f7..2a837623b015 100644 --- a/src/Cli/dotnet/BuildServer/MSBuildServer.cs +++ b/src/Cli/dotnet/BuildServer/MSBuildServer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Execution; namespace Microsoft.DotNet.Cli.BuildServer; diff --git a/src/Cli/dotnet/BuildServer/RazorPidFile.cs b/src/Cli/dotnet/BuildServer/RazorPidFile.cs index d19acdf76e6e..c01a2a7225c3 100644 --- a/src/Cli/dotnet/BuildServer/RazorPidFile.cs +++ b/src/Cli/dotnet/BuildServer/RazorPidFile.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.Cli.BuildServer; diff --git a/src/Cli/dotnet/BuildServer/RazorServer.cs b/src/Cli/dotnet/BuildServer/RazorServer.cs index 22ed0398837c..3773d1f1c115 100644 --- a/src/Cli/dotnet/BuildServer/RazorServer.cs +++ b/src/Cli/dotnet/BuildServer/RazorServer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.CommandFactory; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/BuildServer/VBCSCompilerServer.cs b/src/Cli/dotnet/BuildServer/VBCSCompilerServer.cs index 66e9dda7fbc6..5be90f5ea202 100644 --- a/src/Cli/dotnet/BuildServer/VBCSCompilerServer.cs +++ b/src/Cli/dotnet/BuildServer/VBCSCompilerServer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Reflection; using Microsoft.DotNet.Cli.CommandFactory; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/BundledTargetFramework.cs b/src/Cli/dotnet/BundledTargetFramework.cs index 8e7814a89642..cdde41eb7baf 100644 --- a/src/Cli/dotnet/BundledTargetFramework.cs +++ b/src/Cli/dotnet/BundledTargetFramework.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Reflection; using System.Runtime.Versioning; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CliCompletion.cs b/src/Cli/dotnet/CliCompletion.cs index a6e28a769efa..6f3f930bda97 100644 --- a/src/Cli/dotnet/CliCompletion.cs +++ b/src/Cli/dotnet/CliCompletion.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine.Completions; using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/CliTransaction.cs b/src/Cli/dotnet/CliTransaction.cs index 999c2e4db909..ac970de9717e 100644 --- a/src/Cli/dotnet/CliTransaction.cs +++ b/src/Cli/dotnet/CliTransaction.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli; internal interface ITransactionContext diff --git a/src/Cli/dotnet/CliUsage.cs b/src/Cli/dotnet/CliUsage.cs index c49eb10eef9d..8e0870a86e84 100644 --- a/src/Cli/dotnet/CliUsage.cs +++ b/src/Cli/dotnet/CliUsage.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands; namespace Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/CommandBase.cs b/src/Cli/dotnet/CommandBase.cs index 0e78b18257a8..c397c79b3229 100644 --- a/src/Cli/dotnet/CommandBase.cs +++ b/src/Cli/dotnet/CommandBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/CommandDirectoryContext.cs b/src/Cli/dotnet/CommandDirectoryContext.cs index dedf955696c2..c6ee09033687 100644 --- a/src/Cli/dotnet/CommandDirectoryContext.cs +++ b/src/Cli/dotnet/CommandDirectoryContext.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli; internal static class CommandDirectoryContext diff --git a/src/Cli/dotnet/CommandFactory/CommandFactory.cs b/src/Cli/dotnet/CommandFactory/CommandFactory.cs index 442d2cf076be..3295c717e344 100644 --- a/src/Cli/dotnet/CommandFactory/CommandFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandFactory/CommandFactoryUsingResolver.cs b/src/Cli/dotnet/CommandFactory/CommandFactoryUsingResolver.cs index 2e094b69a30e..80941561f91f 100644 --- a/src/Cli/dotnet/CommandFactory/CommandFactoryUsingResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandFactoryUsingResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using Microsoft.DotNet.Cli.CommandFactory.CommandResolution; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/AbstractPathBasedCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/AbstractPathBasedCommandResolver.cs index 498d77f834bb..3b2527b2fe0f 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/AbstractPathBasedCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/AbstractPathBasedCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseCommandResolver.cs index b51a67cde3f1..50f400437e84 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseDllCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseDllCommandResolver.cs index bf5947300d49..cfbb3468fd1d 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseDllCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseDllCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/CommandResolverArguments.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/CommandResolverArguments.cs index 55940702f592..260bc8899fa3 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/CommandResolverArguments.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/CommandResolverArguments.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Frameworks; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/CompositeCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/CompositeCommandResolver.cs index 3d374e1746f6..0ab407749a36 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/CompositeCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/CompositeCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.cs index e64374bc3c1a..759ac43a6b0a 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/DepsJsonCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/DepsJsonCommandResolver.cs index 0bceb3d9ea5d..501a51fdfa66 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/DepsJsonCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/DepsJsonCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; using Microsoft.Extensions.DependencyModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/DotnetToolsCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/DotnetToolsCommandResolver.cs index cd2aaca9b8c3..81b98215429d 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/DotnetToolsCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/DotnetToolsCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; public class DotnetToolsCommandResolver : ICommandResolver diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/GenericPlatformCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/GenericPlatformCommandSpecFactory.cs index e130a94a36a6..3b0b41b20fbd 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/GenericPlatformCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/GenericPlatformCommandSpecFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ICommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ICommandResolver.cs index 0e2e2a5566f4..bdbd8027cc60 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ICommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ICommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; public interface ICommandResolver diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ICommandResolverPolicy.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ICommandResolverPolicy.cs index 0b1883af4d5d..157d6476b252 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ICommandResolverPolicy.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ICommandResolverPolicy.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; public interface ICommandResolverPolicy diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/IPackagedCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/IPackagedCommandSpecFactory.cs index c8fd9cd50843..353a3eb0bd9c 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/IPackagedCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/IPackagedCommandSpecFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.ProjectModel; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/IPlatformCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/IPlatformCommandSpecFactory.cs index ba26ffa84850..eca67be97371 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/IPlatformCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/IPlatformCommandSpecFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/IProject.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/IProject.cs index 4e2cf75683f5..ab0623f19898 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/IProject.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/IProject.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Frameworks; using NuGet.ProjectModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/IPublishedPathCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/IPublishedPathCommandSpecFactory.cs index aa369f39c245..5079f92f6463 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/IPublishedPathCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/IPublishedPathCommandSpecFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; public interface IPublishedPathCommandSpecFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/LocalToolsCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/LocalToolsCommandResolver.cs index 3e8ce1fe650b..8ac809931781 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/LocalToolsCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/LocalToolsCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.ToolManifest; using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/LockFileTargetExtensions.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/LockFileTargetExtensions.cs index 7b3c36c148de..cd598d3ace9c 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/LockFileTargetExtensions.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/LockFileTargetExtensions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Packaging.Core; using NuGet.ProjectModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/MSBuildProject.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/MSBuildProject.cs index 46030ddfcea4..aa64c76d1e51 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/MSBuildProject.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/MSBuildProject.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/MuxerCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/MuxerCommandResolver.cs index b90f249dbff6..1998ae144809 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/MuxerCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/MuxerCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/MuxerCommandSpecMaker.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/MuxerCommandSpecMaker.cs index 4a290e2bc24d..63a3ecae1d5b 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/MuxerCommandSpecMaker.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/MuxerCommandSpecMaker.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/NuGetUtils.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/NuGetUtils.cs index af7c422dcd89..9f707c670258 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/NuGetUtils.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/NuGetUtils.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Packaging.Core; using NuGet.ProjectModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/OutputPathCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/OutputPathCommandResolver.cs index 2bcfd51f46e7..40cffdcb07f1 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/OutputPathCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/OutputPathCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.cs index 1a62ebcd5292..e741868b75a3 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; using NuGet.ProjectModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactoryWithCliRuntime.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactoryWithCliRuntime.cs index a8a0d083c7a1..76fac7d554eb 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactoryWithCliRuntime.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactoryWithCliRuntime.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/PathCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/PathCommandResolver.cs index ca271adba209..5cc60c44c3e5 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/PathCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/PathCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/PathCommandResolverPolicy.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/PathCommandResolverPolicy.cs index a754c1376d2b..3cd19a0b3064 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/PathCommandResolverPolicy.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/PathCommandResolverPolicy.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.cs index b7b74f1e7358..640a5886cede 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectFactory.cs index e7401c606a9e..69d46a958eef 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Exceptions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectPathCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectPathCommandResolver.cs index 3b7673d62fe8..532e25c0a36a 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectPathCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectPathCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs index 557b1023479e..468999929305 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/PublishPathCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/PublishPathCommandSpecFactory.cs index b844b684c0c7..cc3d4318e76c 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/PublishPathCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/PublishPathCommandSpecFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/PublishedPathCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/PublishedPathCommandResolver.cs index d830224f54a3..dfbf6fa8dc3d 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/PublishedPathCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/PublishedPathCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ResourceAssemblyInfo.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ResourceAssemblyInfo.cs index 3e94f206c4c5..a00048caedf6 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ResourceAssemblyInfo.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ResourceAssemblyInfo.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; internal class ResourceAssemblyInfo(string culture, string relativePath) diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/RootedCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/RootedCommandResolver.cs index cec92502c2f5..4eabbec056ca 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/RootedCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/RootedCommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.cs index 1b0e875905ad..f7b2c6689800 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/SingleProjectInfo.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/SingleProjectInfo.cs index 04bdfd53760d..ec4816d14ef5 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/SingleProjectInfo.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/SingleProjectInfo.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; internal class SingleProjectInfo(string name, string version, IEnumerable resourceAssemblies) diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ToolPathCalculator.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ToolPathCalculator.cs index 20bbbce827ac..c0428515e2f9 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ToolPathCalculator.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ToolPathCalculator.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; using NuGet.Versioning; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/WindowsExePreferredCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/WindowsExePreferredCommandSpecFactory.cs index d3e9ffce3fc5..9aac1b018dc0 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/WindowsExePreferredCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/WindowsExePreferredCommandSpecFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolver.cs index 05e7b8c3a16b..fbb8c16f140e 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.CommandFactory.CommandResolution; using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandFactory/CommandSpec.cs b/src/Cli/dotnet/CommandFactory/CommandSpec.cs index 14ddec776893..debdc5c71104 100644 --- a/src/Cli/dotnet/CommandFactory/CommandSpec.cs +++ b/src/Cli/dotnet/CommandFactory/CommandSpec.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.DotNet.Cli.CommandFactory.CommandResolution; namespace Microsoft.DotNet.Cli.CommandFactory; diff --git a/src/Cli/dotnet/CommandFactory/ICommandFactory.cs b/src/Cli/dotnet/CommandFactory/ICommandFactory.cs index 8cd40610d0e4..8f7e26b051aa 100644 --- a/src/Cli/dotnet/CommandFactory/ICommandFactory.cs +++ b/src/Cli/dotnet/CommandFactory/ICommandFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandLineInfo.cs b/src/Cli/dotnet/CommandLineInfo.cs index 6ae7fa5ffd13..84f0b4ba1eff 100644 --- a/src/Cli/dotnet/CommandLineInfo.cs +++ b/src/Cli/dotnet/CommandLineInfo.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.Workload; using Microsoft.DotNet.Cli.Utils; using LocalizableStrings = Microsoft.DotNet.Cli.Utils.LocalizableStrings; diff --git a/src/Cli/dotnet/CommandParsingException.cs b/src/Cli/dotnet/CommandParsingException.cs index 617724b4e19d..f932b55aefb6 100644 --- a/src/Cli/dotnet/CommandParsingException.cs +++ b/src/Cli/dotnet/CommandParsingException.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/Commands/Build/BuildCommand.cs b/src/Cli/dotnet/Commands/Build/BuildCommand.cs index 440bc90fc53f..e83d2298ca3c 100644 --- a/src/Cli/dotnet/Commands/Build/BuildCommand.cs +++ b/src/Cli/dotnet/Commands/Build/BuildCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Restore; using Microsoft.DotNet.Cli.Commands.Run; diff --git a/src/Cli/dotnet/Commands/Build/BuildCommandParser.cs b/src/Cli/dotnet/Commands/Build/BuildCommandParser.cs index 345ff7f36237..4d5fe2ad64df 100644 --- a/src/Cli/dotnet/Commands/Build/BuildCommandParser.cs +++ b/src/Cli/dotnet/Commands/Build/BuildCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Restore; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/BuildServer/BuildServerCommandParser.cs b/src/Cli/dotnet/Commands/BuildServer/BuildServerCommandParser.cs index dfa809fc10e3..60d71d049054 100644 --- a/src/Cli/dotnet/Commands/BuildServer/BuildServerCommandParser.cs +++ b/src/Cli/dotnet/Commands/BuildServer/BuildServerCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.BuildServer.Shutdown; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/BuildServer/Shutdown/BuildServerShutdownCommand.cs b/src/Cli/dotnet/Commands/BuildServer/Shutdown/BuildServerShutdownCommand.cs index b5fb8d5ca22e..244660651751 100644 --- a/src/Cli/dotnet/Commands/BuildServer/Shutdown/BuildServerShutdownCommand.cs +++ b/src/Cli/dotnet/Commands/BuildServer/Shutdown/BuildServerShutdownCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.BuildServer; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/BuildServer/Shutdown/BuildServerShutdownCommandParser.cs b/src/Cli/dotnet/Commands/BuildServer/Shutdown/BuildServerShutdownCommandParser.cs index 35af757df296..a34ea767f28f 100644 --- a/src/Cli/dotnet/Commands/BuildServer/Shutdown/BuildServerShutdownCommandParser.cs +++ b/src/Cli/dotnet/Commands/BuildServer/Shutdown/BuildServerShutdownCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.BuildServer.Shutdown; diff --git a/src/Cli/dotnet/Commands/Clean/CleanCommand.cs b/src/Cli/dotnet/Commands/Clean/CleanCommand.cs index b1833097b9f7..5804b7338764 100644 --- a/src/Cli/dotnet/Commands/Clean/CleanCommand.cs +++ b/src/Cli/dotnet/Commands/Clean/CleanCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.MSBuild; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Clean/CleanCommandParser.cs b/src/Cli/dotnet/Commands/Clean/CleanCommandParser.cs index 5b0f78cef841..9795f269422f 100644 --- a/src/Cli/dotnet/Commands/Clean/CleanCommandParser.cs +++ b/src/Cli/dotnet/Commands/Clean/CleanCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Format/FormatCommand.cs b/src/Cli/dotnet/Commands/Format/FormatCommand.cs index 9f11e5e3ddec..dc50385c6a17 100644 --- a/src/Cli/dotnet/Commands/Format/FormatCommand.cs +++ b/src/Cli/dotnet/Commands/Format/FormatCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Format/FormatCommandParser.cs b/src/Cli/dotnet/Commands/Format/FormatCommandParser.cs index acdae1fa2447..7cc23f3d7ce9 100644 --- a/src/Cli/dotnet/Commands/Format/FormatCommandParser.cs +++ b/src/Cli/dotnet/Commands/Format/FormatCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Format; diff --git a/src/Cli/dotnet/Commands/Format/FormatForwardingApp.cs b/src/Cli/dotnet/Commands/Format/FormatForwardingApp.cs index fe1d83c9a0db..52dddeaa61ab 100644 --- a/src/Cli/dotnet/Commands/Format/FormatForwardingApp.cs +++ b/src/Cli/dotnet/Commands/Format/FormatForwardingApp.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Format; public class FormatForwardingApp(IEnumerable argsToForward) : ForwardingApp(forwardApplicationPath: GetForwardApplicationPath(), diff --git a/src/Cli/dotnet/Commands/Fsi/FsiCommand.cs b/src/Cli/dotnet/Commands/Fsi/FsiCommand.cs index ff52ac767508..d6b9803b1ab1 100644 --- a/src/Cli/dotnet/Commands/Fsi/FsiCommand.cs +++ b/src/Cli/dotnet/Commands/Fsi/FsiCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.Commands.Fsi; diff --git a/src/Cli/dotnet/Commands/Fsi/FsiCommandParser.cs b/src/Cli/dotnet/Commands/Fsi/FsiCommandParser.cs index 2ba1f8075655..6ca8b23b0aef 100644 --- a/src/Cli/dotnet/Commands/Fsi/FsiCommandParser.cs +++ b/src/Cli/dotnet/Commands/Fsi/FsiCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Fsi; diff --git a/src/Cli/dotnet/Commands/Fsi/FsiForwardingApp.cs b/src/Cli/dotnet/Commands/Fsi/FsiForwardingApp.cs index e2f353ba1a7f..ff4e435de516 100644 --- a/src/Cli/dotnet/Commands/Fsi/FsiForwardingApp.cs +++ b/src/Cli/dotnet/Commands/Fsi/FsiForwardingApp.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.Commands.Fsi; diff --git a/src/Cli/dotnet/Commands/Help/HelpCommand.cs b/src/Cli/dotnet/Commands/Help/HelpCommand.cs index 0910370a86fa..48a67237282a 100644 --- a/src/Cli/dotnet/Commands/Help/HelpCommand.cs +++ b/src/Cli/dotnet/Commands/Help/HelpCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.Diagnostics; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Help/HelpCommandParser.cs b/src/Cli/dotnet/Commands/Help/HelpCommandParser.cs index 025b1be4b153..d465ae0a398f 100644 --- a/src/Cli/dotnet/Commands/Help/HelpCommandParser.cs +++ b/src/Cli/dotnet/Commands/Help/HelpCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Help; diff --git a/src/Cli/dotnet/Commands/Hidden/Add/AddCommandParser.cs b/src/Cli/dotnet/Commands/Hidden/Add/AddCommandParser.cs index 36eb69acf7e3..89c12c174c08 100644 --- a/src/Cli/dotnet/Commands/Hidden/Add/AddCommandParser.cs +++ b/src/Cli/dotnet/Commands/Hidden/Add/AddCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Hidden.Add.Package; using Microsoft.DotNet.Cli.Commands.Hidden.Add.Reference; diff --git a/src/Cli/dotnet/Commands/Hidden/Add/Package/AddPackageCommandParser.cs b/src/Cli/dotnet/Commands/Hidden/Add/Package/AddPackageCommandParser.cs index 88ea4685b511..d37bf1a84391 100644 --- a/src/Cli/dotnet/Commands/Hidden/Add/Package/AddPackageCommandParser.cs +++ b/src/Cli/dotnet/Commands/Hidden/Add/Package/AddPackageCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Package; using Microsoft.DotNet.Cli.Commands.Package.Add; diff --git a/src/Cli/dotnet/Commands/Hidden/Add/Reference/AddReferenceCommandParser.cs b/src/Cli/dotnet/Commands/Hidden/Add/Reference/AddReferenceCommandParser.cs index 8e4d6f0fe5fe..2cb98fd75b35 100644 --- a/src/Cli/dotnet/Commands/Hidden/Add/Reference/AddReferenceCommandParser.cs +++ b/src/Cli/dotnet/Commands/Hidden/Add/Reference/AddReferenceCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Reference; using Microsoft.DotNet.Cli.Commands.Reference.Add; diff --git a/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommand.cs b/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommand.cs index ca0ab8d203b4..1e3755207963 100644 --- a/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommand.cs +++ b/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.CommandLine.Completions; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommandParser.cs b/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommandParser.cs index b617808a8b6c..e613f4ad739a 100644 --- a/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommandParser.cs +++ b/src/Cli/dotnet/Commands/Hidden/Complete/CompleteCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Hidden.Complete; diff --git a/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommand.cs b/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommand.cs index e9ad70e91c34..f7465642ef34 100644 --- a/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommand.cs +++ b/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; using Microsoft.DotNet.Cli.Telemetry; diff --git a/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommandParser.cs b/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommandParser.cs index d9bac50bb06e..5a5ea89397e8 100644 --- a/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommandParser.cs +++ b/src/Cli/dotnet/Commands/Hidden/InternalReportInstallSuccess/InternalReportInstallSuccessCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Hidden.InternalReportInstallSuccess; diff --git a/src/Cli/dotnet/Commands/Hidden/List/ListCommandParser.cs b/src/Cli/dotnet/Commands/Hidden/List/ListCommandParser.cs index f967e1d9fc2e..5ce44933360c 100644 --- a/src/Cli/dotnet/Commands/Hidden/List/ListCommandParser.cs +++ b/src/Cli/dotnet/Commands/Hidden/List/ListCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Hidden.List.Package; using Microsoft.DotNet.Cli.Commands.Hidden.List.Reference; diff --git a/src/Cli/dotnet/Commands/Hidden/List/Package/ListPackageCommandParser.cs b/src/Cli/dotnet/Commands/Hidden/List/Package/ListPackageCommandParser.cs index 05a40a6d5e70..a1d8c613f289 100644 --- a/src/Cli/dotnet/Commands/Hidden/List/Package/ListPackageCommandParser.cs +++ b/src/Cli/dotnet/Commands/Hidden/List/Package/ListPackageCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Package.List; diff --git a/src/Cli/dotnet/Commands/Hidden/List/Reference/ListReferenceCommandParser.cs b/src/Cli/dotnet/Commands/Hidden/List/Reference/ListReferenceCommandParser.cs index 8ba84c36dfc2..6401f55aa0b9 100644 --- a/src/Cli/dotnet/Commands/Hidden/List/Reference/ListReferenceCommandParser.cs +++ b/src/Cli/dotnet/Commands/Hidden/List/Reference/ListReferenceCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Reference.List; diff --git a/src/Cli/dotnet/Commands/Hidden/Parse/ParseCommand.cs b/src/Cli/dotnet/Commands/Hidden/Parse/ParseCommand.cs index c856c05d259f..79bf95ecdebd 100644 --- a/src/Cli/dotnet/Commands/Hidden/Parse/ParseCommand.cs +++ b/src/Cli/dotnet/Commands/Hidden/Parse/ParseCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Hidden/Parse/ParseCommandParser.cs b/src/Cli/dotnet/Commands/Hidden/Parse/ParseCommandParser.cs index 4f03f788914f..14ef8cc1a26b 100644 --- a/src/Cli/dotnet/Commands/Hidden/Parse/ParseCommandParser.cs +++ b/src/Cli/dotnet/Commands/Hidden/Parse/ParseCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Hidden.Parse; diff --git a/src/Cli/dotnet/Commands/Hidden/Remove/Package/RemovePackageCommandParser.cs b/src/Cli/dotnet/Commands/Hidden/Remove/Package/RemovePackageCommandParser.cs index 51eb32535cc2..bc661b2a71da 100644 --- a/src/Cli/dotnet/Commands/Hidden/Remove/Package/RemovePackageCommandParser.cs +++ b/src/Cli/dotnet/Commands/Hidden/Remove/Package/RemovePackageCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Package.Remove; diff --git a/src/Cli/dotnet/Commands/Hidden/Remove/Reference/RemoveReferenceCommandParser.cs b/src/Cli/dotnet/Commands/Hidden/Remove/Reference/RemoveReferenceCommandParser.cs index 1a2b6634f013..d0ab77efebbf 100644 --- a/src/Cli/dotnet/Commands/Hidden/Remove/Reference/RemoveReferenceCommandParser.cs +++ b/src/Cli/dotnet/Commands/Hidden/Remove/Reference/RemoveReferenceCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Reference.Remove; diff --git a/src/Cli/dotnet/Commands/Hidden/Remove/RemoveCommandParser.cs b/src/Cli/dotnet/Commands/Hidden/Remove/RemoveCommandParser.cs index 9dfbf8b6ac71..02ba2402c32f 100644 --- a/src/Cli/dotnet/Commands/Hidden/Remove/RemoveCommandParser.cs +++ b/src/Cli/dotnet/Commands/Hidden/Remove/RemoveCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Hidden.Remove.Package; using Microsoft.DotNet.Cli.Commands.Hidden.Remove.Reference; diff --git a/src/Cli/dotnet/Commands/MSBuild/MSBuildCommand.cs b/src/Cli/dotnet/Commands/MSBuild/MSBuildCommand.cs index 212d02be6549..63d916bfa51e 100644 --- a/src/Cli/dotnet/Commands/MSBuild/MSBuildCommand.cs +++ b/src/Cli/dotnet/Commands/MSBuild/MSBuildCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/MSBuild/MSBuildCommandParser.cs b/src/Cli/dotnet/Commands/MSBuild/MSBuildCommandParser.cs index ca2ad284a12b..2923666ebb6e 100644 --- a/src/Cli/dotnet/Commands/MSBuild/MSBuildCommandParser.cs +++ b/src/Cli/dotnet/Commands/MSBuild/MSBuildCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.MSBuild; diff --git a/src/Cli/dotnet/Commands/MSBuild/MSBuildForwardingApp.cs b/src/Cli/dotnet/Commands/MSBuild/MSBuildForwardingApp.cs index 18f97ac31f39..47662c9d17d2 100644 --- a/src/Cli/dotnet/Commands/MSBuild/MSBuildForwardingApp.cs +++ b/src/Cli/dotnet/Commands/MSBuild/MSBuildForwardingApp.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using System.Reflection; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/MSBuild/MSBuildForwardingLogger.cs b/src/Cli/dotnet/Commands/MSBuild/MSBuildForwardingLogger.cs index 65f89ba18660..fc7c6488b910 100644 --- a/src/Cli/dotnet/Commands/MSBuild/MSBuildForwardingLogger.cs +++ b/src/Cli/dotnet/Commands/MSBuild/MSBuildForwardingLogger.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.DotNet.Cli.Commands.MSBuild; diff --git a/src/Cli/dotnet/Commands/MSBuild/MSBuildLogger.cs b/src/Cli/dotnet/Commands/MSBuild/MSBuildLogger.cs index 54c2151e21a7..8e10b9393474 100644 --- a/src/Cli/dotnet/Commands/MSBuild/MSBuildLogger.cs +++ b/src/Cli/dotnet/Commands/MSBuild/MSBuildLogger.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Globalization; using Microsoft.Build.Framework; using Microsoft.DotNet.Cli.Telemetry; diff --git a/src/Cli/dotnet/Commands/New/BuiltInTemplatePackageProvider.cs b/src/Cli/dotnet/Commands/New/BuiltInTemplatePackageProvider.cs index 9d413c9ec4e5..ceb8471b820c 100644 --- a/src/Cli/dotnet/Commands/New/BuiltInTemplatePackageProvider.cs +++ b/src/Cli/dotnet/Commands/New/BuiltInTemplatePackageProvider.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.TemplatePackage; using NuGet.Versioning; diff --git a/src/Cli/dotnet/Commands/New/BuiltInTemplatePackageProviderFactory.cs b/src/Cli/dotnet/Commands/New/BuiltInTemplatePackageProviderFactory.cs index d6b1a64172b3..d5de333645f9 100644 --- a/src/Cli/dotnet/Commands/New/BuiltInTemplatePackageProviderFactory.cs +++ b/src/Cli/dotnet/Commands/New/BuiltInTemplatePackageProviderFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.TemplatePackage; diff --git a/src/Cli/dotnet/Commands/New/DotnetCommandCallbacks.cs b/src/Cli/dotnet/Commands/New/DotnetCommandCallbacks.cs index fabaa4ba0787..79c388d6ef0c 100644 --- a/src/Cli/dotnet/Commands/New/DotnetCommandCallbacks.cs +++ b/src/Cli/dotnet/Commands/New/DotnetCommandCallbacks.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.DotNet.Cli.Commands.Hidden.Add; using Microsoft.DotNet.Cli.Commands.Package.Add; using Microsoft.DotNet.Cli.Commands.Reference.Add; diff --git a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/CapabilityExpressionEvaluator.cs b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/CapabilityExpressionEvaluator.cs index 18e81ba5b8c2..baa1b148d181 100644 --- a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/CapabilityExpressionEvaluator.cs +++ b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/CapabilityExpressionEvaluator.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + namespace Microsoft.DotNet.Cli.Commands.New.MSBuildEvaluation; /// @@ -22,7 +24,7 @@ internal class CapabilityExpressionEvaluator /// The set of disallowed characters in terms. /// /// - /// We restrict many symbols, especially mathematical symbols, because we may eventually want to + /// We restrict many symbols, especially mathematical symbols, because we may eventually want to /// support arithmetic expressions. /// internal static readonly char[] DisallowedCharacters = "\"'`:;,+-*/\\!~|&%$@^()={}[]<>? \t\b\n\r".ToCharArray(); @@ -42,7 +44,7 @@ private CapabilityExpressionEvaluator(string expression, IReadOnlyList p /// Evaluates the given expression against the given set of true terms. Missing terms are assumed to be false. /// /// - /// The expression, such as "(VisualC | CSharp) + (MSTest | NUnit)". + /// The expression, such as "(VisualC | CSharp) + (MSTest | NUnit)". /// The '|' is the OR operator. /// The '&' and '+' characters are both AND operators. /// The '!' character is the NOT operator. diff --git a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MSBuildEvaluationResult.cs b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MSBuildEvaluationResult.cs index cd6a8c35bcc2..45c64443c2c7 100644 --- a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MSBuildEvaluationResult.cs +++ b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MSBuildEvaluationResult.cs @@ -1,12 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using MSBuildProject = Microsoft.Build.Evaluation.Project; namespace Microsoft.DotNet.Cli.Commands.New.MSBuildEvaluation; /// -/// Represents MSBuild evaluation result. +/// Represents MSBuild evaluation result. /// For success results, , , are used depending on the evaluated project. /// internal class MSBuildEvaluationResult diff --git a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MSBuildEvaluator.cs b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MSBuildEvaluator.cs index c7bf7c678985..79b968bfa629 100644 --- a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MSBuildEvaluator.cs +++ b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MSBuildEvaluator.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Diagnostics; using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MultiTargetEvaluationResult.cs b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MultiTargetEvaluationResult.cs index b0e4cebafee8..9bc240e60975 100644 --- a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MultiTargetEvaluationResult.cs +++ b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MultiTargetEvaluationResult.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using MSBuildProject = Microsoft.Build.Evaluation.Project; namespace Microsoft.DotNet.Cli.Commands.New.MSBuildEvaluation; diff --git a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MultipleProjectsEvaluationResult.cs b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MultipleProjectsEvaluationResult.cs index de28c4c5efc4..f97fce7e1a11 100644 --- a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MultipleProjectsEvaluationResult.cs +++ b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MultipleProjectsEvaluationResult.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.New.MSBuildEvaluation; internal class MultipleProjectsEvaluationResult : MSBuildEvaluationResult diff --git a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/NonSDKStyleEvaluationResult.cs b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/NonSDKStyleEvaluationResult.cs index be176cba29f6..be15e3b7599b 100644 --- a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/NonSDKStyleEvaluationResult.cs +++ b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/NonSDKStyleEvaluationResult.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using MSBuildProject = Microsoft.Build.Evaluation.Project; namespace Microsoft.DotNet.Cli.Commands.New.MSBuildEvaluation; diff --git a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/ProjectCapabilityConstraint.cs b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/ProjectCapabilityConstraint.cs index fefcc1656de3..e689f68204b7 100644 --- a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/ProjectCapabilityConstraint.cs +++ b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/ProjectCapabilityConstraint.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.Build.Evaluation; using Microsoft.Extensions.Logging; using Microsoft.TemplateEngine.Abstractions; diff --git a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/ProjectContextSymbolSource.cs b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/ProjectContextSymbolSource.cs index 83fdcedc3d26..f7a2e872aa45 100644 --- a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/ProjectContextSymbolSource.cs +++ b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/ProjectContextSymbolSource.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.Extensions.Logging; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.Components; diff --git a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/SDKStyleEvaluationResult.cs b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/SDKStyleEvaluationResult.cs index 9f7676d38dab..14d1e524c540 100644 --- a/src/Cli/dotnet/Commands/New/MSBuildEvaluation/SDKStyleEvaluationResult.cs +++ b/src/Cli/dotnet/Commands/New/MSBuildEvaluation/SDKStyleEvaluationResult.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using MSBuildProject = Microsoft.Build.Evaluation.Project; namespace Microsoft.DotNet.Cli.Commands.New.MSBuildEvaluation; diff --git a/src/Cli/dotnet/Commands/New/NewCommandParser.cs b/src/Cli/dotnet/Commands/New/NewCommandParser.cs index b5bc83c44deb..279f2bab26d8 100644 --- a/src/Cli/dotnet/Commands/New/NewCommandParser.cs +++ b/src/Cli/dotnet/Commands/New/NewCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.CommandLine; using System.CommandLine.Parsing; using Microsoft.DotNet.Cli.Commands.New.MSBuildEvaluation; @@ -93,7 +95,7 @@ static CliTemplateEngineHost GetEngineHost(ParseResult parseResult) else if (verbosityOptionResult != null && !verbosityOptionResult.Implicit // if verbosityOptionResult contains an error, ArgumentConverter.GetValueOrDefault throws an exception - // and callstack is pushed to process output + // and callstack is pushed to process output && !parseResult.Errors.Any(error => error.SymbolResult == verbosityOptionResult)) { VerbosityOptions userSetVerbosity = verbosityOptionResult.GetValueOrDefault(); diff --git a/src/Cli/dotnet/Commands/New/OptionalWorkloadProvider.cs b/src/Cli/dotnet/Commands/New/OptionalWorkloadProvider.cs index b383cdec31b8..a2a14b6033e2 100644 --- a/src/Cli/dotnet/Commands/New/OptionalWorkloadProvider.cs +++ b/src/Cli/dotnet/Commands/New/OptionalWorkloadProvider.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.TemplateEngine.Abstractions; diff --git a/src/Cli/dotnet/Commands/New/OptionalWorkloadProviderFactory.cs b/src/Cli/dotnet/Commands/New/OptionalWorkloadProviderFactory.cs index 2c36a6abe078..49284b407cd0 100644 --- a/src/Cli/dotnet/Commands/New/OptionalWorkloadProviderFactory.cs +++ b/src/Cli/dotnet/Commands/New/OptionalWorkloadProviderFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.TemplatePackage; diff --git a/src/Cli/dotnet/Commands/New/PostActions/DotnetAddPostActionProcessor.cs b/src/Cli/dotnet/Commands/New/PostActions/DotnetAddPostActionProcessor.cs index bcb0cba14855..e7b4f78af82e 100644 --- a/src/Cli/dotnet/Commands/New/PostActions/DotnetAddPostActionProcessor.cs +++ b/src/Cli/dotnet/Commands/New/PostActions/DotnetAddPostActionProcessor.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.DotNet.Cli.Utils; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.PhysicalFileSystem; diff --git a/src/Cli/dotnet/Commands/New/PostActions/DotnetRestorePostActionProcessor.cs b/src/Cli/dotnet/Commands/New/PostActions/DotnetRestorePostActionProcessor.cs index 189242819869..15cda29d5803 100644 --- a/src/Cli/dotnet/Commands/New/PostActions/DotnetRestorePostActionProcessor.cs +++ b/src/Cli/dotnet/Commands/New/PostActions/DotnetRestorePostActionProcessor.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.DotNet.Cli.Utils; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Cli.PostActionProcessors; diff --git a/src/Cli/dotnet/Commands/New/PostActions/DotnetSlnPostActionProcessor.cs b/src/Cli/dotnet/Commands/New/PostActions/DotnetSlnPostActionProcessor.cs index 7b86521ed8bf..36fe87bd3957 100644 --- a/src/Cli/dotnet/Commands/New/PostActions/DotnetSlnPostActionProcessor.cs +++ b/src/Cli/dotnet/Commands/New/PostActions/DotnetSlnPostActionProcessor.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Diagnostics.CodeAnalysis; using Microsoft.DotNet.Cli.Utils; using Microsoft.TemplateEngine.Abstractions; diff --git a/src/Cli/dotnet/Commands/New/SdkInfoProvider.cs b/src/Cli/dotnet/Commands/New/SdkInfoProvider.cs index f8fa8029ddd3..3c182f63a16b 100644 --- a/src/Cli/dotnet/Commands/New/SdkInfoProvider.cs +++ b/src/Cli/dotnet/Commands/New/SdkInfoProvider.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.MSBuildSdkResolver; using Microsoft.DotNet.NativeWrapper; diff --git a/src/Cli/dotnet/Commands/New/WorkloadsInfoProvider.cs b/src/Cli/dotnet/Commands/New/WorkloadsInfoProvider.cs index a701b2b71520..f9e64251b5e9 100644 --- a/src/Cli/dotnet/Commands/New/WorkloadsInfoProvider.cs +++ b/src/Cli/dotnet/Commands/New/WorkloadsInfoProvider.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.Workload.List; using Microsoft.TemplateEngine.Abstractions.Components; diff --git a/src/Cli/dotnet/Commands/NuGet/NuGetCommand.cs b/src/Cli/dotnet/Commands/NuGet/NuGetCommand.cs index 7f6c2302df7c..9a68c31b22e7 100644 --- a/src/Cli/dotnet/Commands/NuGet/NuGetCommand.cs +++ b/src/Cli/dotnet/Commands/NuGet/NuGetCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/NuGet/NuGetCommandParser.cs b/src/Cli/dotnet/Commands/NuGet/NuGetCommandParser.cs index 2381fa0c2452..ee013c9faf6b 100644 --- a/src/Cli/dotnet/Commands/NuGet/NuGetCommandParser.cs +++ b/src/Cli/dotnet/Commands/NuGet/NuGetCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; using NuGetWhyCommand = NuGet.CommandLine.XPlat.Commands.Why.WhyCommand; diff --git a/src/Cli/dotnet/Commands/Pack/PackCommand.cs b/src/Cli/dotnet/Commands/Pack/PackCommand.cs index 847763887c10..831acfbeca76 100644 --- a/src/Cli/dotnet/Commands/Pack/PackCommand.cs +++ b/src/Cli/dotnet/Commands/Pack/PackCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Restore; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Pack/PackCommandParser.cs b/src/Cli/dotnet/Commands/Pack/PackCommandParser.cs index f3adb9642154..59a44b53efd0 100644 --- a/src/Cli/dotnet/Commands/Pack/PackCommandParser.cs +++ b/src/Cli/dotnet/Commands/Pack/PackCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Restore; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Package/Add/PackageAddCommand.cs b/src/Cli/dotnet/Commands/Package/Add/PackageAddCommand.cs index 8a678615a0f0..7b0d3a61ca09 100644 --- a/src/Cli/dotnet/Commands/Package/Add/PackageAddCommand.cs +++ b/src/Cli/dotnet/Commands/Package/Add/PackageAddCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.MSBuild; using Microsoft.DotNet.Cli.Commands.NuGet; diff --git a/src/Cli/dotnet/Commands/Package/Add/PackageAddCommandParser.cs b/src/Cli/dotnet/Commands/Package/Add/PackageAddCommandParser.cs index 17a4e435b96a..03fd93676143 100644 --- a/src/Cli/dotnet/Commands/Package/Add/PackageAddCommandParser.cs +++ b/src/Cli/dotnet/Commands/Package/Add/PackageAddCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.CommandLine.Completions; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs b/src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs index bdba947c7b8b..7abd9dc304fa 100644 --- a/src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs +++ b/src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Hidden.List; using Microsoft.DotNet.Cli.Commands.NuGet; diff --git a/src/Cli/dotnet/Commands/Package/List/PackageListCommandParser.cs b/src/Cli/dotnet/Commands/Package/List/PackageListCommandParser.cs index d2b32375d538..4c0ffdcb68e5 100644 --- a/src/Cli/dotnet/Commands/Package/List/PackageListCommandParser.cs +++ b/src/Cli/dotnet/Commands/Package/List/PackageListCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Package/List/ReportOutputFormat.cs b/src/Cli/dotnet/Commands/Package/List/ReportOutputFormat.cs index 1c685e2dfa1a..00a1971e05ab 100644 --- a/src/Cli/dotnet/Commands/Package/List/ReportOutputFormat.cs +++ b/src/Cli/dotnet/Commands/Package/List/ReportOutputFormat.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Package.List; internal enum ReportOutputFormat diff --git a/src/Cli/dotnet/Commands/Package/PackageCommandParser.cs b/src/Cli/dotnet/Commands/Package/PackageCommandParser.cs index 83aabbae5674..436751c13337 100644 --- a/src/Cli/dotnet/Commands/Package/PackageCommandParser.cs +++ b/src/Cli/dotnet/Commands/Package/PackageCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Package.Add; using Microsoft.DotNet.Cli.Commands.Package.List; diff --git a/src/Cli/dotnet/Commands/Package/Remove/PackageRemoveCommand.cs b/src/Cli/dotnet/Commands/Package/Remove/PackageRemoveCommand.cs index c8c960cb04bc..61ddc6c522a0 100644 --- a/src/Cli/dotnet/Commands/Package/Remove/PackageRemoveCommand.cs +++ b/src/Cli/dotnet/Commands/Package/Remove/PackageRemoveCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Hidden.Remove; using Microsoft.DotNet.Cli.Commands.NuGet; diff --git a/src/Cli/dotnet/Commands/Package/Remove/PackageRemoveCommandParser.cs b/src/Cli/dotnet/Commands/Package/Remove/PackageRemoveCommandParser.cs index 38e6cbc6e9b3..ad7ce92da24e 100644 --- a/src/Cli/dotnet/Commands/Package/Remove/PackageRemoveCommandParser.cs +++ b/src/Cli/dotnet/Commands/Package/Remove/PackageRemoveCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommand.cs b/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommand.cs index 617597ff5735..4317f96329be 100644 --- a/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommand.cs +++ b/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.NuGet; using Microsoft.DotNet.Cli.Extensions; using System.CommandLine; diff --git a/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommandParser.cs b/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommandParser.cs index 86462db44821..52e15de7089e 100644 --- a/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommandParser.cs +++ b/src/Cli/dotnet/Commands/Package/Search/PackageSearchCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Project/Convert/ProjectConvertCommand.cs b/src/Cli/dotnet/Commands/Project/Convert/ProjectConvertCommand.cs index db3225448faf..497f6768881f 100644 --- a/src/Cli/dotnet/Commands/Project/Convert/ProjectConvertCommand.cs +++ b/src/Cli/dotnet/Commands/Project/Convert/ProjectConvertCommand.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -#nullable enable - using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Run; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Project/Convert/ProjectConvertCommandParser.cs b/src/Cli/dotnet/Commands/Project/Convert/ProjectConvertCommandParser.cs index 0b18323dec5c..a933c8068652 100644 --- a/src/Cli/dotnet/Commands/Project/Convert/ProjectConvertCommandParser.cs +++ b/src/Cli/dotnet/Commands/Project/Convert/ProjectConvertCommandParser.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -#nullable enable - using System.CommandLine; using Microsoft.TemplateEngine.Cli.Commands; diff --git a/src/Cli/dotnet/Commands/Project/ProjectCommandParser.cs b/src/Cli/dotnet/Commands/Project/ProjectCommandParser.cs index 6bd7accb9609..7fb4a8752a7c 100644 --- a/src/Cli/dotnet/Commands/Project/ProjectCommandParser.cs +++ b/src/Cli/dotnet/Commands/Project/ProjectCommandParser.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -#nullable enable - using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Project.Convert; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Publish/PublishCommand.cs b/src/Cli/dotnet/Commands/Publish/PublishCommand.cs index 741fbfd73137..e830e1490456 100644 --- a/src/Cli/dotnet/Commands/Publish/PublishCommand.cs +++ b/src/Cli/dotnet/Commands/Publish/PublishCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Restore; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Publish/PublishCommandParser.cs b/src/Cli/dotnet/Commands/Publish/PublishCommandParser.cs index bbcff722c22e..3a9f2ca5e396 100644 --- a/src/Cli/dotnet/Commands/Publish/PublishCommandParser.cs +++ b/src/Cli/dotnet/Commands/Publish/PublishCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Restore; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Reference/Add/ReferenceAddCommand.cs b/src/Cli/dotnet/Commands/Reference/Add/ReferenceAddCommand.cs index 9ba3d9d1c522..38edd8cc9bb6 100644 --- a/src/Cli/dotnet/Commands/Reference/Add/ReferenceAddCommand.cs +++ b/src/Cli/dotnet/Commands/Reference/Add/ReferenceAddCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli.Commands.Hidden.Add; diff --git a/src/Cli/dotnet/Commands/Reference/Add/ReferenceAddCommandParser.cs b/src/Cli/dotnet/Commands/Reference/Add/ReferenceAddCommandParser.cs index 7598f6108eca..5e5690fdd655 100644 --- a/src/Cli/dotnet/Commands/Reference/Add/ReferenceAddCommandParser.cs +++ b/src/Cli/dotnet/Commands/Reference/Add/ReferenceAddCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Reference.Add; diff --git a/src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs b/src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs index 9072c06acaba..e4d3297aa0f8 100644 --- a/src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs +++ b/src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli.Commands.Hidden.List; diff --git a/src/Cli/dotnet/Commands/Reference/List/ReferenceListCommandParser.cs b/src/Cli/dotnet/Commands/Reference/List/ReferenceListCommandParser.cs index f7a7988ec595..01d7ed85c67f 100644 --- a/src/Cli/dotnet/Commands/Reference/List/ReferenceListCommandParser.cs +++ b/src/Cli/dotnet/Commands/Reference/List/ReferenceListCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Reference.List; diff --git a/src/Cli/dotnet/Commands/Reference/ReferenceCommandParser.cs b/src/Cli/dotnet/Commands/Reference/ReferenceCommandParser.cs index a3ee78e41105..7756b35edf04 100644 --- a/src/Cli/dotnet/Commands/Reference/ReferenceCommandParser.cs +++ b/src/Cli/dotnet/Commands/Reference/ReferenceCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Reference.Add; using Microsoft.DotNet.Cli.Commands.Reference.List; diff --git a/src/Cli/dotnet/Commands/Reference/Remove/ReferenceRemoveCommand.cs b/src/Cli/dotnet/Commands/Reference/Remove/ReferenceRemoveCommand.cs index 857d822fd20d..875313bea788 100644 --- a/src/Cli/dotnet/Commands/Reference/Remove/ReferenceRemoveCommand.cs +++ b/src/Cli/dotnet/Commands/Reference/Remove/ReferenceRemoveCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli.Commands.Hidden.Remove; diff --git a/src/Cli/dotnet/Commands/Reference/Remove/ReferenceRemoveCommandParser.cs b/src/Cli/dotnet/Commands/Reference/Remove/ReferenceRemoveCommandParser.cs index 469e75d61044..9cb48cdfff5f 100644 --- a/src/Cli/dotnet/Commands/Reference/Remove/ReferenceRemoveCommandParser.cs +++ b/src/Cli/dotnet/Commands/Reference/Remove/ReferenceRemoveCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Reference.Remove; diff --git a/src/Cli/dotnet/Commands/Restore/RestoreCommand.cs b/src/Cli/dotnet/Commands/Restore/RestoreCommand.cs index 83925f9a6209..c55b3fd8df2c 100644 --- a/src/Cli/dotnet/Commands/Restore/RestoreCommand.cs +++ b/src/Cli/dotnet/Commands/Restore/RestoreCommand.cs @@ -11,14 +11,14 @@ namespace Microsoft.DotNet.Cli.Commands.Restore; public static class RestoreCommand { - public static CommandBase FromArgs(string[] args, string msbuildPath = null) + public static CommandBase FromArgs(string[] args, string? msbuildPath = null) { var parser = Parser.Instance; var result = parser.ParseFrom("dotnet restore", args); return FromParseResult(result, msbuildPath); } - public static CommandBase FromParseResult(ParseResult result, string msbuildPath = null) + public static CommandBase FromParseResult(ParseResult result, string? msbuildPath = null) { result.HandleDebugSwitch(); diff --git a/src/Cli/dotnet/Commands/Restore/RestoreCommandParser.cs b/src/Cli/dotnet/Commands/Restore/RestoreCommandParser.cs index df6c2938bb14..1579c4c800eb 100644 --- a/src/Cli/dotnet/Commands/Restore/RestoreCommandParser.cs +++ b/src/Cli/dotnet/Commands/Restore/RestoreCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Restore/RestoringCommand.cs b/src/Cli/dotnet/Commands/Restore/RestoringCommand.cs index 8710dd4b9f15..69febb31fd32 100644 --- a/src/Cli/dotnet/Commands/Restore/RestoringCommand.cs +++ b/src/Cli/dotnet/Commands/Restore/RestoringCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.MSBuild; using Microsoft.DotNet.Cli.Commands.Workload.Install; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/Commands/Run/CommonRunHelpers.cs b/src/Cli/dotnet/Commands/Run/CommonRunHelpers.cs index 07cfd0fe9de1..c082b5f88b65 100644 --- a/src/Cli/dotnet/Commands/Run/CommonRunHelpers.cs +++ b/src/Cli/dotnet/Commands/Run/CommonRunHelpers.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Diagnostics; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsApplyResult.cs b/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsApplyResult.cs index a69fb34495ef..ce47f8a13644 100644 --- a/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsApplyResult.cs +++ b/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsApplyResult.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + namespace Microsoft.DotNet.Cli.Commands.Run.LaunchSettings; public class LaunchSettingsApplyResult(bool success, string? failureReason, ProjectLaunchSettingsModel launchSettings = null) diff --git a/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsManager.cs b/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsManager.cs index c46fee8aaa15..f6d2b0c79fa0 100644 --- a/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsManager.cs +++ b/src/Cli/dotnet/Commands/Run/LaunchSettings/LaunchSettingsManager.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Diagnostics.CodeAnalysis; using System.Text.Json; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Run/LaunchSettings/ProjectLaunchSettingsProvider.cs b/src/Cli/dotnet/Commands/Run/LaunchSettings/ProjectLaunchSettingsProvider.cs index 46c294f03b7a..d9dde66ebd25 100644 --- a/src/Cli/dotnet/Commands/Run/LaunchSettings/ProjectLaunchSettingsProvider.cs +++ b/src/Cli/dotnet/Commands/Run/LaunchSettings/ProjectLaunchSettingsProvider.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Text.Json; namespace Microsoft.DotNet.Cli.Commands.Run.LaunchSettings; diff --git a/src/Cli/dotnet/Commands/Run/RunCommand.cs b/src/Cli/dotnet/Commands/Run/RunCommand.cs index bf2ad48724a9..1a9280bb0687 100644 --- a/src/Cli/dotnet/Commands/Run/RunCommand.cs +++ b/src/Cli/dotnet/Commands/Run/RunCommand.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -#nullable enable - using System.Collections.Immutable; using System.CommandLine; using System.Diagnostics; diff --git a/src/Cli/dotnet/Commands/Run/RunCommandParser.cs b/src/Cli/dotnet/Commands/Run/RunCommandParser.cs index 86c163f34113..bf1f75b094eb 100644 --- a/src/Cli/dotnet/Commands/Run/RunCommandParser.cs +++ b/src/Cli/dotnet/Commands/Run/RunCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Run/RunProperties.cs b/src/Cli/dotnet/Commands/Run/RunProperties.cs index e5a1b8b8e6a2..da8d70263ef5 100644 --- a/src/Cli/dotnet/Commands/Run/RunProperties.cs +++ b/src/Cli/dotnet/Commands/Run/RunProperties.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.Build.Execution; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs b/src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs index 468c3f9f7925..32322e9463bd 100644 --- a/src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs +++ b/src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -#nullable enable - using System.Buffers; using System.Collections.Immutable; using System.Diagnostics; diff --git a/src/Cli/dotnet/Commands/Sdk/Check/BundleOutputWriter.cs b/src/Cli/dotnet/Commands/Sdk/Check/BundleOutputWriter.cs index b89023b54b45..ef6afb5592ec 100644 --- a/src/Cli/dotnet/Commands/Sdk/Check/BundleOutputWriter.cs +++ b/src/Cli/dotnet/Commands/Sdk/Check/BundleOutputWriter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.NativeWrapper; diff --git a/src/Cli/dotnet/Commands/Sdk/Check/IProductCollectionProvider.cs b/src/Cli/dotnet/Commands/Sdk/Check/IProductCollectionProvider.cs index f94ff8eff428..2effbab2e20e 100644 --- a/src/Cli/dotnet/Commands/Sdk/Check/IProductCollectionProvider.cs +++ b/src/Cli/dotnet/Commands/Sdk/Check/IProductCollectionProvider.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Deployment.DotNet.Releases; namespace Microsoft.DotNet.Cli.Commands.Sdk.Check; diff --git a/src/Cli/dotnet/Commands/Sdk/Check/ProductCollectionProvider.cs b/src/Cli/dotnet/Commands/Sdk/Check/ProductCollectionProvider.cs index 8bafa56a0429..780427aa026f 100644 --- a/src/Cli/dotnet/Commands/Sdk/Check/ProductCollectionProvider.cs +++ b/src/Cli/dotnet/Commands/Sdk/Check/ProductCollectionProvider.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Sdk/Check/RuntimeOutputWriter.cs b/src/Cli/dotnet/Commands/Sdk/Check/RuntimeOutputWriter.cs index 0746c9ada5e1..b13e09103513 100644 --- a/src/Cli/dotnet/Commands/Sdk/Check/RuntimeOutputWriter.cs +++ b/src/Cli/dotnet/Commands/Sdk/Check/RuntimeOutputWriter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.NativeWrapper; diff --git a/src/Cli/dotnet/Commands/Sdk/Check/SdkCheckCommand.cs b/src/Cli/dotnet/Commands/Sdk/Check/SdkCheckCommand.cs index cd21e15dac53..997a42daaf35 100644 --- a/src/Cli/dotnet/Commands/Sdk/Check/SdkCheckCommand.cs +++ b/src/Cli/dotnet/Commands/Sdk/Check/SdkCheckCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.Text.Json; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Sdk/Check/SdkCheckCommandParser.cs b/src/Cli/dotnet/Commands/Sdk/Check/SdkCheckCommandParser.cs index 16643db61ffa..41a5a4c793bc 100644 --- a/src/Cli/dotnet/Commands/Sdk/Check/SdkCheckCommandParser.cs +++ b/src/Cli/dotnet/Commands/Sdk/Check/SdkCheckCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Sdk.Check; diff --git a/src/Cli/dotnet/Commands/Sdk/Check/SdkOutputWriter.cs b/src/Cli/dotnet/Commands/Sdk/Check/SdkOutputWriter.cs index ce7d7c9df8eb..f8f145e3beaa 100644 --- a/src/Cli/dotnet/Commands/Sdk/Check/SdkOutputWriter.cs +++ b/src/Cli/dotnet/Commands/Sdk/Check/SdkOutputWriter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.NativeWrapper; diff --git a/src/Cli/dotnet/Commands/Sdk/SdkCommandParser.cs b/src/Cli/dotnet/Commands/Sdk/SdkCommandParser.cs index 471aba351828..061eed3dbdf2 100644 --- a/src/Cli/dotnet/Commands/Sdk/SdkCommandParser.cs +++ b/src/Cli/dotnet/Commands/Sdk/SdkCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Sdk.Check; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Solution/Add/SolutionAddCommand.cs b/src/Cli/dotnet/Commands/Solution/Add/SolutionAddCommand.cs index 137ec586119d..b25ba4d85d2a 100644 --- a/src/Cli/dotnet/Commands/Solution/Add/SolutionAddCommand.cs +++ b/src/Cli/dotnet/Commands/Solution/Add/SolutionAddCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.CommandLine; using Microsoft.Build.Construction; using Microsoft.Build.Exceptions; diff --git a/src/Cli/dotnet/Commands/Solution/Add/SolutionAddCommandParser.cs b/src/Cli/dotnet/Commands/Solution/Add/SolutionAddCommandParser.cs index e8eeb5670d56..afd116050f83 100644 --- a/src/Cli/dotnet/Commands/Solution/Add/SolutionAddCommandParser.cs +++ b/src/Cli/dotnet/Commands/Solution/Add/SolutionAddCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Solution.Add; diff --git a/src/Cli/dotnet/Commands/Solution/List/SolutionListCommand.cs b/src/Cli/dotnet/Commands/Solution/List/SolutionListCommand.cs index 922596197c3e..a2093d9cbbba 100644 --- a/src/Cli/dotnet/Commands/Solution/List/SolutionListCommand.cs +++ b/src/Cli/dotnet/Commands/Solution/List/SolutionListCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Utils; using Microsoft.VisualStudio.SolutionPersistence.Model; diff --git a/src/Cli/dotnet/Commands/Solution/List/SolutionListCommandParser.cs b/src/Cli/dotnet/Commands/Solution/List/SolutionListCommandParser.cs index 1ffe85eb4754..a3319d9c2dd0 100644 --- a/src/Cli/dotnet/Commands/Solution/List/SolutionListCommandParser.cs +++ b/src/Cli/dotnet/Commands/Solution/List/SolutionListCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Solution.List; diff --git a/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommand.cs b/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommand.cs index 75966ca7a57b..074431c8981b 100644 --- a/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommand.cs +++ b/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Utils; using Microsoft.VisualStudio.SolutionPersistence.Model; diff --git a/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommandParser.cs b/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommandParser.cs index 21ff80b7d973..9eb23e1dfcf8 100644 --- a/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommandParser.cs +++ b/src/Cli/dotnet/Commands/Solution/Migrate/SolutionMigrateCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Solution.Migrate; diff --git a/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommand.cs b/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommand.cs index b0e8623b44f6..36030bd22621 100644 --- a/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommand.cs +++ b/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Utils; using Microsoft.VisualStudio.SolutionPersistence; diff --git a/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommandParser.cs b/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommandParser.cs index 354a625ee254..d86a03f7f122 100644 --- a/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommandParser.cs +++ b/src/Cli/dotnet/Commands/Solution/Remove/SolutionRemoveCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Solution.Remove; diff --git a/src/Cli/dotnet/Commands/Solution/SolutionArgumentValidator.cs b/src/Cli/dotnet/Commands/Solution/SolutionArgumentValidator.cs index 3c38567eb07c..29be57c76894 100644 --- a/src/Cli/dotnet/Commands/Solution/SolutionArgumentValidator.cs +++ b/src/Cli/dotnet/Commands/Solution/SolutionArgumentValidator.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.Solution.Add; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Solution/SolutionCommandParser.cs b/src/Cli/dotnet/Commands/Solution/SolutionCommandParser.cs index 22bde530cf92..c204cb243532 100644 --- a/src/Cli/dotnet/Commands/Solution/SolutionCommandParser.cs +++ b/src/Cli/dotnet/Commands/Solution/SolutionCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Solution.Add; using Microsoft.DotNet.Cli.Commands.Solution.List; diff --git a/src/Cli/dotnet/Commands/Store/StoreCommand.cs b/src/Cli/dotnet/Commands/Store/StoreCommand.cs index b6f110223622..e5024416bf64 100644 --- a/src/Cli/dotnet/Commands/Store/StoreCommand.cs +++ b/src/Cli/dotnet/Commands/Store/StoreCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.MSBuild; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Store/StoreCommandParser.cs b/src/Cli/dotnet/Commands/Store/StoreCommandParser.cs index c0af3933c9ab..079bcf22d0f5 100644 --- a/src/Cli/dotnet/Commands/Store/StoreCommandParser.cs +++ b/src/Cli/dotnet/Commands/Store/StoreCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Test/CliConstants.cs b/src/Cli/dotnet/Commands/Test/CliConstants.cs index 3374e3b379ad..c8d411bdc202 100644 --- a/src/Cli/dotnet/Commands/Test/CliConstants.cs +++ b/src/Cli/dotnet/Commands/Test/CliConstants.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test; internal static class CliConstants diff --git a/src/Cli/dotnet/Commands/Test/CustomEventArgs.cs b/src/Cli/dotnet/Commands/Test/CustomEventArgs.cs index 4729979fa752..4592599c0234 100644 --- a/src/Cli/dotnet/Commands/Test/CustomEventArgs.cs +++ b/src/Cli/dotnet/Commands/Test/CustomEventArgs.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test; internal class HandshakeArgs : EventArgs diff --git a/src/Cli/dotnet/Commands/Test/ExitCode.cs b/src/Cli/dotnet/Commands/Test/ExitCode.cs index 3b0597a06543..6d1acb4a6ab7 100644 --- a/src/Cli/dotnet/Commands/Test/ExitCode.cs +++ b/src/Cli/dotnet/Commands/Test/ExitCode.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test; // IMPORTANT: The exit codes must match MTP: diff --git a/src/Cli/dotnet/Commands/Test/IPC/IClient.cs b/src/Cli/dotnet/Commands/Test/IPC/IClient.cs index e9e4d2762f1c..6fb6420565e6 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/IClient.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/IClient.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.IPC; internal interface IClient : diff --git a/src/Cli/dotnet/Commands/Test/IPC/INamedPipeBase.cs b/src/Cli/dotnet/Commands/Test/IPC/INamedPipeBase.cs index 0da4e10f829b..913b14c21dbe 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/INamedPipeBase.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/INamedPipeBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.IPC; internal interface INamedPipeBase diff --git a/src/Cli/dotnet/Commands/Test/IPC/INamedPipeSerializer.cs b/src/Cli/dotnet/Commands/Test/IPC/INamedPipeSerializer.cs index 38ba0f5002fb..0d3e6d8d54b9 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/INamedPipeSerializer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/INamedPipeSerializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.IPC; internal interface INamedPipeSerializer diff --git a/src/Cli/dotnet/Commands/Test/IPC/IRequest.cs b/src/Cli/dotnet/Commands/Test/IPC/IRequest.cs index f17a1653b33b..a6f6106d220c 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/IRequest.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/IRequest.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.IPC; internal interface IRequest diff --git a/src/Cli/dotnet/Commands/Test/IPC/IResponse.cs b/src/Cli/dotnet/Commands/Test/IPC/IResponse.cs index c755920fd6f3..516a2bc7b4a8 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/IResponse.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/IResponse.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.IPC; internal interface IResponse diff --git a/src/Cli/dotnet/Commands/Test/IPC/IServer.cs b/src/Cli/dotnet/Commands/Test/IPC/IServer.cs index 5ec4f022989f..d7664d43f079 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/IServer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/IServer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.IPC; internal interface IServer : INamedPipeBase, diff --git a/src/Cli/dotnet/Commands/Test/IPC/Models/UnknownMessage.cs b/src/Cli/dotnet/Commands/Test/IPC/Models/UnknownMessage.cs index 787bbd306985..83b3f01bc762 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Models/UnknownMessage.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Models/UnknownMessage.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.IPC.Models; internal sealed record class UnknownMessage(int SerializerId) : IRequest; diff --git a/src/Cli/dotnet/Commands/Test/IPC/Models/VoidResponse.cs b/src/Cli/dotnet/Commands/Test/IPC/Models/VoidResponse.cs index 3daa585f8adb..0c9a86b1988e 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Models/VoidResponse.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Models/VoidResponse.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.IPC.Models; internal sealed class VoidResponse : IResponse diff --git a/src/Cli/dotnet/Commands/Test/IPC/NamedPipeBase.cs b/src/Cli/dotnet/Commands/Test/IPC/NamedPipeBase.cs index f6f09197970d..0e0f55662b2e 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/NamedPipeBase.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/NamedPipeBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + #pragma warning disable IDE0240 // Remove redundant nullable directive #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive diff --git a/src/Cli/dotnet/Commands/Test/IPC/NamedPipeClient.cs b/src/Cli/dotnet/Commands/Test/IPC/NamedPipeClient.cs index 17b9e5a14a6d..a4156154c7f8 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/NamedPipeClient.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/NamedPipeClient.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Buffers; using System.IO.Pipes; diff --git a/src/Cli/dotnet/Commands/Test/IPC/NamedPipeServer.cs b/src/Cli/dotnet/Commands/Test/IPC/NamedPipeServer.cs index db1fea0b902d..c55abffa0fff 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/NamedPipeServer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/NamedPipeServer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + #pragma warning disable IDE0240 // Remove redundant nullable directive #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive diff --git a/src/Cli/dotnet/Commands/Test/IPC/ObjectFieldIds.cs b/src/Cli/dotnet/Commands/Test/IPC/ObjectFieldIds.cs index 9ac5ba9943ab..87c1ccff9f43 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/ObjectFieldIds.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/ObjectFieldIds.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + // WARNING: Please note this file needs to be kept aligned with the one in the testfx repo. // The protocol follows the concept of optional properties. // The id is used to identify the property in the stream and it will be skipped if it's not recognized. diff --git a/src/Cli/dotnet/Commands/Test/IPC/PipeNameDescription.cs b/src/Cli/dotnet/Commands/Test/IPC/PipeNameDescription.cs index 62a35d4abade..c8ed6edab124 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/PipeNameDescription.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/PipeNameDescription.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.IPC; internal sealed class PipeNameDescription(string name, bool isDirectory) : IDisposable diff --git a/src/Cli/dotnet/Commands/Test/IPC/Serializers/BaseSerializer.cs b/src/Cli/dotnet/Commands/Test/IPC/Serializers/BaseSerializer.cs index a0e285c056d7..24e6da1f5744 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Serializers/BaseSerializer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Serializers/BaseSerializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + #if NETCOREAPP using System.Buffers; #endif diff --git a/src/Cli/dotnet/Commands/Test/IPC/Serializers/CommandLineOptionMessagesSerializer.cs b/src/Cli/dotnet/Commands/Test/IPC/Serializers/CommandLineOptionMessagesSerializer.cs index 7585eed44ade..2836390d3a20 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Serializers/CommandLineOptionMessagesSerializer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Serializers/CommandLineOptionMessagesSerializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + #if NETCOREAPP #endif diff --git a/src/Cli/dotnet/Commands/Test/IPC/Serializers/DiscoveredTestMessagesSerializer.cs b/src/Cli/dotnet/Commands/Test/IPC/Serializers/DiscoveredTestMessagesSerializer.cs index 0806d2e5b089..741a60a2e1d2 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Serializers/DiscoveredTestMessagesSerializer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Serializers/DiscoveredTestMessagesSerializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + #if NETCOREAPP #endif diff --git a/src/Cli/dotnet/Commands/Test/IPC/Serializers/FileArtifactMessagesSerializer.cs b/src/Cli/dotnet/Commands/Test/IPC/Serializers/FileArtifactMessagesSerializer.cs index 20d92deeda8f..449ae2688dfe 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Serializers/FileArtifactMessagesSerializer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Serializers/FileArtifactMessagesSerializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + #if NETCOREAPP #endif diff --git a/src/Cli/dotnet/Commands/Test/IPC/Serializers/HandshakeMessageSerializer.cs b/src/Cli/dotnet/Commands/Test/IPC/Serializers/HandshakeMessageSerializer.cs index b14b8890cea1..5f28c434643d 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Serializers/HandshakeMessageSerializer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Serializers/HandshakeMessageSerializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using Microsoft.DotNet.Cli.Commands.Test.IPC.Models; diff --git a/src/Cli/dotnet/Commands/Test/IPC/Serializers/ModuleMessageSerializer.cs b/src/Cli/dotnet/Commands/Test/IPC/Serializers/ModuleMessageSerializer.cs index bccd266b36ff..cd30015793fd 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Serializers/ModuleMessageSerializer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Serializers/ModuleMessageSerializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.Test.IPC.Models; namespace Microsoft.DotNet.Cli.Commands.Test.IPC.Serializers; diff --git a/src/Cli/dotnet/Commands/Test/IPC/Serializers/RegisterSerializers.cs b/src/Cli/dotnet/Commands/Test/IPC/Serializers/RegisterSerializers.cs index 845c4fd08499..a82eb83af6e3 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Serializers/RegisterSerializers.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Serializers/RegisterSerializers.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.Test.IPC.Models; namespace Microsoft.DotNet.Cli.Commands.Test.IPC.Serializers; diff --git a/src/Cli/dotnet/Commands/Test/IPC/Serializers/TestResultMessagesSerializer.cs b/src/Cli/dotnet/Commands/Test/IPC/Serializers/TestResultMessagesSerializer.cs index 5250e0ace122..a352e2ca947c 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Serializers/TestResultMessagesSerializer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Serializers/TestResultMessagesSerializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Diagnostics; using Microsoft.DotNet.Cli.Commands.Test.IPC.Models; diff --git a/src/Cli/dotnet/Commands/Test/IPC/Serializers/TestSessionEventSerializer.cs b/src/Cli/dotnet/Commands/Test/IPC/Serializers/TestSessionEventSerializer.cs index 1f32970025e0..99e750485ed4 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Serializers/TestSessionEventSerializer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Serializers/TestSessionEventSerializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Diagnostics; using Microsoft.DotNet.Cli.Commands.Test.IPC.Models; diff --git a/src/Cli/dotnet/Commands/Test/IPC/Serializers/UnknownMessageSerializer.cs b/src/Cli/dotnet/Commands/Test/IPC/Serializers/UnknownMessageSerializer.cs index 343cf6d930c6..3ebc6f1802be 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Serializers/UnknownMessageSerializer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Serializers/UnknownMessageSerializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.Test.IPC.Models; namespace Microsoft.DotNet.Cli.Commands.Test.IPC.Serializers; diff --git a/src/Cli/dotnet/Commands/Test/IPC/Serializers/VoidResponseSerializer.cs b/src/Cli/dotnet/Commands/Test/IPC/Serializers/VoidResponseSerializer.cs index ef45b80ee3aa..0ca0404c8c13 100644 --- a/src/Cli/dotnet/Commands/Test/IPC/Serializers/VoidResponseSerializer.cs +++ b/src/Cli/dotnet/Commands/Test/IPC/Serializers/VoidResponseSerializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.Test.IPC.Models; namespace Microsoft.DotNet.Cli.Commands.Test.IPC.Serializers; diff --git a/src/Cli/dotnet/Commands/Test/Logger.cs b/src/Cli/dotnet/Commands/Test/Logger.cs index 3d36619ad3e5..d4f717b5ee1f 100644 --- a/src/Cli/dotnet/Commands/Test/Logger.cs +++ b/src/Cli/dotnet/Commands/Test/Logger.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test; internal static class Logger diff --git a/src/Cli/dotnet/Commands/Test/MSBuildHandler.cs b/src/Cli/dotnet/Commands/Test/MSBuildHandler.cs index 9b51402153ee..ccad2ce35e26 100644 --- a/src/Cli/dotnet/Commands/Test/MSBuildHandler.cs +++ b/src/Cli/dotnet/Commands/Test/MSBuildHandler.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Collections.Concurrent; using Microsoft.DotNet.Cli.Commands.Test.Terminal; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs b/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs index 4bfa53dd317e..2e88b059905d 100644 --- a/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs +++ b/src/Cli/dotnet/Commands/Test/MSBuildUtility.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Collections.Concurrent; using System.CommandLine; using Microsoft.Build.Evaluation; diff --git a/src/Cli/dotnet/Commands/Test/Models.cs b/src/Cli/dotnet/Commands/Test/Models.cs index e734abdce3b4..7aa608096ac1 100644 --- a/src/Cli/dotnet/Commands/Test/Models.cs +++ b/src/Cli/dotnet/Commands/Test/Models.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Collections; using Microsoft.DotNet.Cli.Commands.Run; using Microsoft.DotNet.Cli.Commands.Run.LaunchSettings; diff --git a/src/Cli/dotnet/Commands/Test/Options.cs b/src/Cli/dotnet/Commands/Test/Options.cs index 3d00af0048d5..58f56916df52 100644 --- a/src/Cli/dotnet/Commands/Test/Options.cs +++ b/src/Cli/dotnet/Commands/Test/Options.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test; internal record TestOptions(string Architecture, bool HasFilterMode, bool IsHelp); diff --git a/src/Cli/dotnet/Commands/Test/SolutionAndProjectUtility.cs b/src/Cli/dotnet/Commands/Test/SolutionAndProjectUtility.cs index 0fc2260a7224..8dd36ea6abae 100644 --- a/src/Cli/dotnet/Commands/Test/SolutionAndProjectUtility.cs +++ b/src/Cli/dotnet/Commands/Test/SolutionAndProjectUtility.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Diagnostics; using Microsoft.Build.Evaluation; using Microsoft.Build.Execution; diff --git a/src/Cli/dotnet/Commands/Test/Terminal/AnsiCodes.cs b/src/Cli/dotnet/Commands/Test/Terminal/AnsiCodes.cs index dedb1fab8188..a3153b01360c 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/AnsiCodes.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/AnsiCodes.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable warnings + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; /// diff --git a/src/Cli/dotnet/Commands/Test/Terminal/AnsiDetector.cs b/src/Cli/dotnet/Commands/Test/Terminal/AnsiDetector.cs index 9d44e5cc2045..db3835f38242 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/AnsiDetector.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/AnsiDetector.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable warnings + // Portions of the code in this file were ported from the spectre.console by Patrik Svensson, Phil Scott, Nils Andresen // https://github.com/spectreconsole/spectre.console/blob/main/src/Spectre.Console/Internal/Backends/Ansi/AnsiDetector.cs // and from the supports-ansi project by Qingrong Ke diff --git a/src/Cli/dotnet/Commands/Test/Terminal/AnsiTerminal.cs b/src/Cli/dotnet/Commands/Test/Terminal/AnsiTerminal.cs index 54766b7a15a0..4f900668765e 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/AnsiTerminal.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/AnsiTerminal.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable warnings + using System.Globalization; namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; diff --git a/src/Cli/dotnet/Commands/Test/Terminal/AnsiTerminalTestProgressFrame.cs b/src/Cli/dotnet/Commands/Test/Terminal/AnsiTerminalTestProgressFrame.cs index f8ccc9385c3a..c7312dd7b1c7 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/AnsiTerminalTestProgressFrame.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/AnsiTerminalTestProgressFrame.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable warnings + using System.Globalization; namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; diff --git a/src/Cli/dotnet/Commands/Test/Terminal/ErrorMessage.cs b/src/Cli/dotnet/Commands/Test/Terminal/ErrorMessage.cs index 84a86e6c402b..ed964f47fa81 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/ErrorMessage.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/ErrorMessage.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; /// diff --git a/src/Cli/dotnet/Commands/Test/Terminal/ExceptionFlattener.cs b/src/Cli/dotnet/Commands/Test/Terminal/ExceptionFlattener.cs index a03b0717ee31..0ff70e15ca05 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/ExceptionFlattener.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/ExceptionFlattener.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable warnings + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; internal sealed class ExceptionFlattener diff --git a/src/Cli/dotnet/Commands/Test/Terminal/FileUtilities.cs b/src/Cli/dotnet/Commands/Test/Terminal/FileUtilities.cs index 2f67af2667b3..7f99ff490f4a 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/FileUtilities.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/FileUtilities.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + using System.Diagnostics; namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; diff --git a/src/Cli/dotnet/Commands/Test/Terminal/HumanReadableDurationFormatter.cs b/src/Cli/dotnet/Commands/Test/Terminal/HumanReadableDurationFormatter.cs index 559af6b77847..ff78f2facb35 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/HumanReadableDurationFormatter.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/HumanReadableDurationFormatter.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + using System.Globalization; namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; diff --git a/src/Cli/dotnet/Commands/Test/Terminal/IColor.cs b/src/Cli/dotnet/Commands/Test/Terminal/IColor.cs index 5c959ccbbc9e..0c540f1dfec2 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/IColor.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/IColor.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; /// diff --git a/src/Cli/dotnet/Commands/Test/Terminal/IProgressMessage.cs b/src/Cli/dotnet/Commands/Test/Terminal/IProgressMessage.cs index 569323f06b9c..296da8e9135a 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/IProgressMessage.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/IProgressMessage.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; /// diff --git a/src/Cli/dotnet/Commands/Test/Terminal/IStopwatch.cs b/src/Cli/dotnet/Commands/Test/Terminal/IStopwatch.cs index e071bbdbc1be..c22a926602b2 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/IStopwatch.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/IStopwatch.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; internal interface IStopwatch diff --git a/src/Cli/dotnet/Commands/Test/Terminal/NativeMethods.cs b/src/Cli/dotnet/Commands/Test/Terminal/NativeMethods.cs index 1ae0c00448b2..0b50dd5c6968 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/NativeMethods.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/NativeMethods.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; internal static class NativeMethods diff --git a/src/Cli/dotnet/Commands/Test/Terminal/NonAnsiTerminal.cs b/src/Cli/dotnet/Commands/Test/Terminal/NonAnsiTerminal.cs index bb05ca780709..e1605eed4139 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/NonAnsiTerminal.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/NonAnsiTerminal.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable warnings + using System.Globalization; namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; diff --git a/src/Cli/dotnet/Commands/Test/Terminal/SystemConsole.cs b/src/Cli/dotnet/Commands/Test/Terminal/SystemConsole.cs index 5ed9064cb000..c945f86b8199 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/SystemConsole.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/SystemConsole.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable warnings + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; internal sealed class SystemConsole : IConsole diff --git a/src/Cli/dotnet/Commands/Test/Terminal/SystemConsoleColor.cs b/src/Cli/dotnet/Commands/Test/Terminal/SystemConsoleColor.cs index 27c0c0d745a6..0fa5d141d7a6 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/SystemConsoleColor.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/SystemConsoleColor.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; /// diff --git a/src/Cli/dotnet/Commands/Test/Terminal/SystemStopwatch.cs b/src/Cli/dotnet/Commands/Test/Terminal/SystemStopwatch.cs index e22e0d6f58b3..02a037d384b1 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/SystemStopwatch.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/SystemStopwatch.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + using System.Diagnostics; namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; diff --git a/src/Cli/dotnet/Commands/Test/Terminal/TargetFrameworkParser.cs b/src/Cli/dotnet/Commands/Test/Terminal/TargetFrameworkParser.cs index 8ca9aea7533c..3d740220273f 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/TargetFrameworkParser.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/TargetFrameworkParser.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable warnings + using System.Globalization; namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; diff --git a/src/Cli/dotnet/Commands/Test/Terminal/TerminalColor.cs b/src/Cli/dotnet/Commands/Test/Terminal/TerminalColor.cs index ad302e3279db..79873358777a 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/TerminalColor.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/TerminalColor.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; /// diff --git a/src/Cli/dotnet/Commands/Test/Terminal/TerminalTestReporter.cs b/src/Cli/dotnet/Commands/Test/Terminal/TerminalTestReporter.cs index 41bd37ba5087..4ee79cb1675b 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/TerminalTestReporter.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/TerminalTestReporter.cs @@ -1,5 +1,6 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +#nullable disable warnings using System.Collections.Concurrent; using System.CommandLine.Help; @@ -494,7 +495,7 @@ internal void TestCompleted( // Tests that come from dynamic data sources and previously succeeded will also run on the second attempt, // and most likely will succeed as well, so we will get them here, even though they are probably not flaky. asm.FlakyTests.Add(testNodeUid); - + } _terminalWithProgress.UpdateWorker(asm.SlotIndex); if (outcome != TestOutcome.Passed || GetShowPassedTests()) diff --git a/src/Cli/dotnet/Commands/Test/Terminal/TerminalTestReporterOptions.cs b/src/Cli/dotnet/Commands/Test/Terminal/TerminalTestReporterOptions.cs index 11733be7afb2..cf03e861276b 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/TerminalTestReporterOptions.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/TerminalTestReporterOptions.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable warnings + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; internal sealed class TerminalTestReporterOptions diff --git a/src/Cli/dotnet/Commands/Test/Terminal/TestNodeResultsState.cs b/src/Cli/dotnet/Commands/Test/Terminal/TestNodeResultsState.cs index bb38a19e5630..cb8ae0d93c4d 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/TestNodeResultsState.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/TestNodeResultsState.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable warnings + using System.Collections.Concurrent; using System.Globalization; diff --git a/src/Cli/dotnet/Commands/Test/Terminal/TestOutcome.cs b/src/Cli/dotnet/Commands/Test/Terminal/TestOutcome.cs index 84c5196e35fc..28aa0ad32572 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/TestOutcome.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/TestOutcome.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; /// diff --git a/src/Cli/dotnet/Commands/Test/Terminal/TestProgressStateAwareTerminal.cs b/src/Cli/dotnet/Commands/Test/Terminal/TestProgressStateAwareTerminal.cs index 0343f8d9f4b1..568252c9523e 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/TestProgressStateAwareTerminal.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/TestProgressStateAwareTerminal.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable warnings + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; /// diff --git a/src/Cli/dotnet/Commands/Test/Terminal/WarningMessage.cs b/src/Cli/dotnet/Commands/Test/Terminal/WarningMessage.cs index 20f383216954..eab643d9df5f 100644 --- a/src/Cli/dotnet/Commands/Test/Terminal/WarningMessage.cs +++ b/src/Cli/dotnet/Commands/Test/Terminal/WarningMessage.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test.Terminal; /// diff --git a/src/Cli/dotnet/Commands/Test/TestApplication.cs b/src/Cli/dotnet/Commands/Test/TestApplication.cs index d27eea87a69b..873e32bfb086 100644 --- a/src/Cli/dotnet/Commands/Test/TestApplication.cs +++ b/src/Cli/dotnet/Commands/Test/TestApplication.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using System.IO.Pipes; using Microsoft.DotNet.Cli.Commands.Test.IPC; diff --git a/src/Cli/dotnet/Commands/Test/TestApplicationActionQueue.cs b/src/Cli/dotnet/Commands/Test/TestApplicationActionQueue.cs index 69bf25e4727b..77565e6fe374 100644 --- a/src/Cli/dotnet/Commands/Test/TestApplicationActionQueue.cs +++ b/src/Cli/dotnet/Commands/Test/TestApplicationActionQueue.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Threading.Channels; namespace Microsoft.DotNet.Cli.Commands.Test; diff --git a/src/Cli/dotnet/Commands/Test/TestApplicationEventHandlers.cs b/src/Cli/dotnet/Commands/Test/TestApplicationEventHandlers.cs index 7a29f5768416..ce369a6e5cab 100644 --- a/src/Cli/dotnet/Commands/Test/TestApplicationEventHandlers.cs +++ b/src/Cli/dotnet/Commands/Test/TestApplicationEventHandlers.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Collections.Concurrent; using Microsoft.DotNet.Cli.Commands.Test.Terminal; diff --git a/src/Cli/dotnet/Commands/Test/TestCommand.cs b/src/Cli/dotnet/Commands/Test/TestCommand.cs index 4caff1c68d0c..4879f7a62fe3 100644 --- a/src/Cli/dotnet/Commands/Test/TestCommand.cs +++ b/src/Cli/dotnet/Commands/Test/TestCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.Runtime.Versioning; using System.Text.RegularExpressions; diff --git a/src/Cli/dotnet/Commands/Test/TestCommandParser.cs b/src/Cli/dotnet/Commands/Test/TestCommandParser.cs index a0be03075203..3fb8b2b1589b 100644 --- a/src/Cli/dotnet/Commands/Test/TestCommandParser.cs +++ b/src/Cli/dotnet/Commands/Test/TestCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; using Microsoft.Extensions.Configuration; diff --git a/src/Cli/dotnet/Commands/Test/TestModulesFilterHandler.cs b/src/Cli/dotnet/Commands/Test/TestModulesFilterHandler.cs index d9a8fab18cd7..3df8558d887a 100644 --- a/src/Cli/dotnet/Commands/Test/TestModulesFilterHandler.cs +++ b/src/Cli/dotnet/Commands/Test/TestModulesFilterHandler.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Run; using Microsoft.DotNet.Cli.Commands.Test.Terminal; diff --git a/src/Cli/dotnet/Commands/Test/TestingPlatformCommand.Help.cs b/src/Cli/dotnet/Commands/Test/TestingPlatformCommand.Help.cs index 6ce51d3f404e..a2426123ee0f 100644 --- a/src/Cli/dotnet/Commands/Test/TestingPlatformCommand.Help.cs +++ b/src/Cli/dotnet/Commands/Test/TestingPlatformCommand.Help.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Collections.Concurrent; using System.CommandLine; using System.CommandLine.Help; diff --git a/src/Cli/dotnet/Commands/Test/TestingPlatformCommand.cs b/src/Cli/dotnet/Commands/Test/TestingPlatformCommand.cs index 90115ce84752..50f44f425d2b 100644 --- a/src/Cli/dotnet/Commands/Test/TestingPlatformCommand.cs +++ b/src/Cli/dotnet/Commands/Test/TestingPlatformCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Test.Terminal; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs b/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs index 6b67c0be4bf3..186355e2036c 100644 --- a/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs +++ b/src/Cli/dotnet/Commands/Test/TestingPlatformOptions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Test/VSTestArgumentConverter.cs b/src/Cli/dotnet/Commands/Test/VSTestArgumentConverter.cs index c295b9a30e5c..5a21c931fce6 100644 --- a/src/Cli/dotnet/Commands/Test/VSTestArgumentConverter.cs +++ b/src/Cli/dotnet/Commands/Test/VSTestArgumentConverter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Collections.Immutable; namespace Microsoft.DotNet.Cli.Commands.Test; diff --git a/src/Cli/dotnet/Commands/Test/VSTestFeatureFlag.cs b/src/Cli/dotnet/Commands/Test/VSTestFeatureFlag.cs index 38f2fec04b6f..43095cb3b9ac 100644 --- a/src/Cli/dotnet/Commands/Test/VSTestFeatureFlag.cs +++ b/src/Cli/dotnet/Commands/Test/VSTestFeatureFlag.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Collections.Concurrent; namespace Microsoft.DotNet.Cli.Commands.Test; diff --git a/src/Cli/dotnet/Commands/Test/VSTestForwardingApp.cs b/src/Cli/dotnet/Commands/Test/VSTestForwardingApp.cs index 9e0f007f7105..b8c25c009dce 100644 --- a/src/Cli/dotnet/Commands/Test/VSTestForwardingApp.cs +++ b/src/Cli/dotnet/Commands/Test/VSTestForwardingApp.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.Commands.Test; diff --git a/src/Cli/dotnet/Commands/Test/VSTestTrace.cs b/src/Cli/dotnet/Commands/Test/VSTestTrace.cs index 3683b29c6147..0669936e9232 100644 --- a/src/Cli/dotnet/Commands/Test/VSTestTrace.cs +++ b/src/Cli/dotnet/Commands/Test/VSTestTrace.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Test; internal class VSTestTrace diff --git a/src/Cli/dotnet/Commands/Test/ValidationUtility.cs b/src/Cli/dotnet/Commands/Test/ValidationUtility.cs index f26c76942f30..d4f5c33f1382 100644 --- a/src/Cli/dotnet/Commands/Test/ValidationUtility.cs +++ b/src/Cli/dotnet/Commands/Test/ValidationUtility.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Test.Terminal; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Tool/Common/ToolAppliedOption.cs b/src/Cli/dotnet/Commands/Tool/Common/ToolAppliedOption.cs index 7d9ae52f9b50..a2f23e0ae956 100644 --- a/src/Cli/dotnet/Commands/Tool/Common/ToolAppliedOption.cs +++ b/src/Cli/dotnet/Commands/Tool/Common/ToolAppliedOption.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Install; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Tool/Common/ToolManifestFinderExtensions.cs b/src/Cli/dotnet/Commands/Tool/Common/ToolManifestFinderExtensions.cs index 681dfdc1a2dc..ab5be91790b7 100644 --- a/src/Cli/dotnet/Commands/Tool/Common/ToolManifestFinderExtensions.cs +++ b/src/Cli/dotnet/Commands/Tool/Common/ToolManifestFinderExtensions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.ToolManifest; using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Tool/Install/LocalToolsResolverCacheExtensions.cs b/src/Cli/dotnet/Commands/Tool/Install/LocalToolsResolverCacheExtensions.cs index 072e6aafad69..391c21b7fda3 100644 --- a/src/Cli/dotnet/Commands/Tool/Install/LocalToolsResolverCacheExtensions.cs +++ b/src/Cli/dotnet/Commands/Tool/Install/LocalToolsResolverCacheExtensions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/Commands/Tool/Install/ParseResultExtension.cs b/src/Cli/dotnet/Commands/Tool/Install/ParseResultExtension.cs index 1cb0637222b6..33d08add9800 100644 --- a/src/Cli/dotnet/Commands/Tool/Install/ParseResultExtension.cs +++ b/src/Cli/dotnet/Commands/Tool/Install/ParseResultExtension.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Utils; using NuGet.Versioning; diff --git a/src/Cli/dotnet/Commands/Tool/Install/ProjectRestorer.cs b/src/Cli/dotnet/Commands/Tool/Install/ProjectRestorer.cs index 21deee619de8..80ce0531e945 100644 --- a/src/Cli/dotnet/Commands/Tool/Install/ProjectRestorer.cs +++ b/src/Cli/dotnet/Commands/Tool/Install/ProjectRestorer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; diff --git a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallCommand.cs b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallCommand.cs index bf244c3b61c2..db5a415ac184 100644 --- a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Common; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallCommandLowLevelErrorConverter.cs b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallCommandLowLevelErrorConverter.cs index 9045593091b2..e250514422c3 100644 --- a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallCommandLowLevelErrorConverter.cs +++ b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallCommandLowLevelErrorConverter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.ShellShim; using Microsoft.DotNet.Cli.ToolPackage; diff --git a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallCommandParser.cs b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallCommandParser.cs index 8ce76001466e..da55163d75c0 100644 --- a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallCommandParser.cs +++ b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.CommandLine; using System.CommandLine.Parsing; using Microsoft.DotNet.Cli.Commands.Tool.Common; diff --git a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallGlobalOrToolPathCommand.cs b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallGlobalOrToolPathCommand.cs index 63253ef1ddb0..ec8eafd1dd83 100644 --- a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallGlobalOrToolPathCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallGlobalOrToolPathCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.Transactions; using Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalCommand.cs b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalCommand.cs index a4935ed6d855..147c839fd551 100644 --- a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Common; using Microsoft.DotNet.Cli.Commands.Tool.List; diff --git a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalInstaller.cs b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalInstaller.cs index 049b81334be0..720a2e7e3102 100644 --- a/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalInstaller.cs +++ b/src/Cli/dotnet/Commands/Tool/Install/ToolInstallLocalInstaller.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; using Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Cli/dotnet/Commands/Tool/List/ToolListCommand.cs b/src/Cli/dotnet/Commands/Tool/List/ToolListCommand.cs index afe1034d97a2..2a412a7b8449 100644 --- a/src/Cli/dotnet/Commands/Tool/List/ToolListCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/List/ToolListCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Common; diff --git a/src/Cli/dotnet/Commands/Tool/List/ToolListCommandParser.cs b/src/Cli/dotnet/Commands/Tool/List/ToolListCommandParser.cs index b29fbd7b362e..397049093c70 100644 --- a/src/Cli/dotnet/Commands/Tool/List/ToolListCommandParser.cs +++ b/src/Cli/dotnet/Commands/Tool/List/ToolListCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Common; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Tool/List/ToolListGlobalOrToolPathCommand.cs b/src/Cli/dotnet/Commands/Tool/List/ToolListGlobalOrToolPathCommand.cs index b75ba4e4f508..f140ca9b269e 100644 --- a/src/Cli/dotnet/Commands/Tool/List/ToolListGlobalOrToolPathCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/List/ToolListGlobalOrToolPathCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Tool/List/ToolListJsonHelper.cs b/src/Cli/dotnet/Commands/Tool/List/ToolListJsonHelper.cs index 2b1c3f5ec1bc..2ff9552ceeca 100644 --- a/src/Cli/dotnet/Commands/Tool/List/ToolListJsonHelper.cs +++ b/src/Cli/dotnet/Commands/Tool/List/ToolListJsonHelper.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.Json; using System.Text.Json.Serialization; @@ -48,4 +50,4 @@ internal static class JsonHelper { Encoder = System.Text.Encodings.Web.JavaScriptEncoder.UnsafeRelaxedJsonEscaping }; -} \ No newline at end of file +} diff --git a/src/Cli/dotnet/Commands/Tool/List/ToolListLocalCommand.cs b/src/Cli/dotnet/Commands/Tool/List/ToolListLocalCommand.cs index bd400633d670..fdb3ae6d4e6d 100644 --- a/src/Cli/dotnet/Commands/Tool/List/ToolListLocalCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/List/ToolListLocalCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.ToolManifest; using Microsoft.DotNet.Cli.ToolPackage; diff --git a/src/Cli/dotnet/Commands/Tool/Restore/ToolRestoreCommand.cs b/src/Cli/dotnet/Commands/Tool/Restore/ToolRestoreCommand.cs index d93ca4c41fe2..f4712b9508c1 100644 --- a/src/Cli/dotnet/Commands/Tool/Restore/ToolRestoreCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/Restore/ToolRestoreCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; using Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Cli/dotnet/Commands/Tool/Restore/ToolRestoreCommandParser.cs b/src/Cli/dotnet/Commands/Tool/Restore/ToolRestoreCommandParser.cs index 3cb922fe65c4..f2bfbc6738f8 100644 --- a/src/Cli/dotnet/Commands/Tool/Restore/ToolRestoreCommandParser.cs +++ b/src/Cli/dotnet/Commands/Tool/Restore/ToolRestoreCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Common; using Microsoft.DotNet.Cli.Commands.Tool.Install; diff --git a/src/Cli/dotnet/Commands/Tool/Run/ToolRunCommand.cs b/src/Cli/dotnet/Commands/Tool/Run/ToolRunCommand.cs index 0501bb224c45..5a8a7fb7721a 100644 --- a/src/Cli/dotnet/Commands/Tool/Run/ToolRunCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/Run/ToolRunCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.CommandFactory; using Microsoft.DotNet.Cli.CommandFactory.CommandResolution; diff --git a/src/Cli/dotnet/Commands/Tool/Run/ToolRunCommandParser.cs b/src/Cli/dotnet/Commands/Tool/Run/ToolRunCommandParser.cs index 6c0b30bd05da..62902224054f 100644 --- a/src/Cli/dotnet/Commands/Tool/Run/ToolRunCommandParser.cs +++ b/src/Cli/dotnet/Commands/Tool/Run/ToolRunCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Tool.Run; diff --git a/src/Cli/dotnet/Commands/Tool/Search/NugetSearchSerializables.cs b/src/Cli/dotnet/Commands/Tool/Search/NugetSearchSerializables.cs index 9fd77d90f93a..e9c331656093 100644 --- a/src/Cli/dotnet/Commands/Tool/Search/NugetSearchSerializables.cs +++ b/src/Cli/dotnet/Commands/Tool/Search/NugetSearchSerializables.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.ToolPackage; namespace Microsoft.DotNet.Cli.Commands.Tool.Search; diff --git a/src/Cli/dotnet/Commands/Tool/Search/SearchResultPrinter.cs b/src/Cli/dotnet/Commands/Tool/Search/SearchResultPrinter.cs index 15f60d2b9f26..048e83e9f835 100644 --- a/src/Cli/dotnet/Commands/Tool/Search/SearchResultPrinter.cs +++ b/src/Cli/dotnet/Commands/Tool/Search/SearchResultPrinter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; diff --git a/src/Cli/dotnet/Commands/Tool/Search/ToolSearchCommand.cs b/src/Cli/dotnet/Commands/Tool/Search/ToolSearchCommand.cs index aad4bf50c089..27101cec4955 100644 --- a/src/Cli/dotnet/Commands/Tool/Search/ToolSearchCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/Search/ToolSearchCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.NugetSearch; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Tool/Search/ToolSearchCommandParser.cs b/src/Cli/dotnet/Commands/Tool/Search/ToolSearchCommandParser.cs index 1b75a462ad36..2be6a3a4e7ec 100644 --- a/src/Cli/dotnet/Commands/Tool/Search/ToolSearchCommandParser.cs +++ b/src/Cli/dotnet/Commands/Tool/Search/ToolSearchCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Tool.Search; diff --git a/src/Cli/dotnet/Commands/Tool/ToolCommandParser.cs b/src/Cli/dotnet/Commands/Tool/ToolCommandParser.cs index 169f6bd825e7..afc8ef9fb707 100644 --- a/src/Cli/dotnet/Commands/Tool/ToolCommandParser.cs +++ b/src/Cli/dotnet/Commands/Tool/ToolCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Install; using Microsoft.DotNet.Cli.Commands.Tool.List; diff --git a/src/Cli/dotnet/Commands/Tool/ToolCommandRestorePassThroughOptions.cs b/src/Cli/dotnet/Commands/Tool/ToolCommandRestorePassThroughOptions.cs index 2cbe232a6bce..342eb56c316e 100644 --- a/src/Cli/dotnet/Commands/Tool/ToolCommandRestorePassThroughOptions.cs +++ b/src/Cli/dotnet/Commands/Tool/ToolCommandRestorePassThroughOptions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallCommand.cs b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallCommand.cs index 52023537ef48..f5c61d9afe2a 100644 --- a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Common; diff --git a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallCommandLowLevelErrorConverter.cs b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallCommandLowLevelErrorConverter.cs index 6e2cdab8742e..183f6f7cfdcf 100644 --- a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallCommandLowLevelErrorConverter.cs +++ b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallCommandLowLevelErrorConverter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.ShellShim; using Microsoft.DotNet.Cli.ToolPackage; diff --git a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallCommandParser.cs b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallCommandParser.cs index c436e7dbe20c..2d41ac05cad7 100644 --- a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallCommandParser.cs +++ b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Common; using Microsoft.DotNet.Cli.Commands.Tool.Install; diff --git a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallGlobalOrToolPathCommand.cs b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallGlobalOrToolPathCommand.cs index b8c744c80aa8..7c8a2fb46f05 100644 --- a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallGlobalOrToolPathCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallGlobalOrToolPathCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.Transactions; using Microsoft.DotNet.Cli.Commands.Tool.Common; diff --git a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallLocalCommand.cs b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallLocalCommand.cs index 85e3ec300a9b..fb5bdb917f74 100644 --- a/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallLocalCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/Uninstall/ToolUninstallLocalCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Common; using Microsoft.DotNet.Cli.ToolManifest; diff --git a/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateCommand.cs b/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateCommand.cs index 1dca6b4fbeb7..ee80d18c1e1b 100644 --- a/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Common; using Microsoft.DotNet.Cli.Commands.Tool.Install; diff --git a/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateCommandParser.cs b/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateCommandParser.cs index 3d8ebee80bbc..1c3bbd9cf0e0 100644 --- a/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateCommandParser.cs +++ b/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Common; using Microsoft.DotNet.Cli.Commands.Tool.Install; diff --git a/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateGlobalOrToolPathCommand.cs b/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateGlobalOrToolPathCommand.cs index bfa12db66bba..4c73cebd76f0 100644 --- a/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateGlobalOrToolPathCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateGlobalOrToolPathCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateLocalCommand.cs b/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateLocalCommand.cs index 4d924c434ea2..4636f43c027b 100644 --- a/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateLocalCommand.cs +++ b/src/Cli/dotnet/Commands/Tool/Update/ToolUpdateLocalCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Install; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/VSTest/VSTestCommand.cs b/src/Cli/dotnet/Commands/VSTest/VSTestCommand.cs index 9f71a8ab7e34..9edcc2e6a162 100644 --- a/src/Cli/dotnet/Commands/VSTest/VSTestCommand.cs +++ b/src/Cli/dotnet/Commands/VSTest/VSTestCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Test; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/VSTest/VSTestCommandParser.cs b/src/Cli/dotnet/Commands/VSTest/VSTestCommandParser.cs index 5db39ad365fd..378d9e6ed53f 100644 --- a/src/Cli/dotnet/Commands/VSTest/VSTestCommandParser.cs +++ b/src/Cli/dotnet/Commands/VSTest/VSTestCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.VSTest; diff --git a/src/Cli/dotnet/Commands/Workload/Clean/WorkloadCleanCommand.cs b/src/Cli/dotnet/Commands/Workload/Clean/WorkloadCleanCommand.cs index 87200182a92c..2b4382d47918 100644 --- a/src/Cli/dotnet/Commands/Workload/Clean/WorkloadCleanCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/Clean/WorkloadCleanCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.CommandLine; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/Clean/WorkloadCleanCommandParser.cs b/src/Cli/dotnet/Commands/Workload/Clean/WorkloadCleanCommandParser.cs index 6e5ce53f1a4b..bb012ccfe442 100644 --- a/src/Cli/dotnet/Commands/Workload/Clean/WorkloadCleanCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/Clean/WorkloadCleanCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Workload.Clean; diff --git a/src/Cli/dotnet/Commands/Workload/Config/WorkloadConfigCommand.cs b/src/Cli/dotnet/Commands/Workload/Config/WorkloadConfigCommand.cs index e977d5f13034..edf4afb7a920 100644 --- a/src/Cli/dotnet/Commands/Workload/Config/WorkloadConfigCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/Config/WorkloadConfigCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.CommandLine; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/Config/WorkloadConfigCommandParser.cs b/src/Cli/dotnet/Commands/Workload/Config/WorkloadConfigCommandParser.cs index afdc292faa5e..0ddd6481ab7b 100644 --- a/src/Cli/dotnet/Commands/Workload/Config/WorkloadConfigCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/Config/WorkloadConfigCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Workload.Config; diff --git a/src/Cli/dotnet/Commands/Workload/Elevate/WorkloadElevateCommand.cs b/src/Cli/dotnet/Commands/Workload/Elevate/WorkloadElevateCommand.cs index fb3061825e0f..37fa755c3ced 100644 --- a/src/Cli/dotnet/Commands/Workload/Elevate/WorkloadElevateCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/Elevate/WorkloadElevateCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Workload.Install; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Workload/Elevate/WorkloadElevateCommandParser.cs b/src/Cli/dotnet/Commands/Workload/Elevate/WorkloadElevateCommandParser.cs index 49c324839beb..f20c589e2f16 100644 --- a/src/Cli/dotnet/Commands/Workload/Elevate/WorkloadElevateCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/Elevate/WorkloadElevateCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Workload.Elevate; diff --git a/src/Cli/dotnet/Commands/Workload/GlobalJsonWorkloadSetFile.cs b/src/Cli/dotnet/Commands/Workload/GlobalJsonWorkloadSetFile.cs index 22e4a0c43641..c5cbd0a14ced 100644 --- a/src/Cli/dotnet/Commands/Workload/GlobalJsonWorkloadSetFile.cs +++ b/src/Cli/dotnet/Commands/Workload/GlobalJsonWorkloadSetFile.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.Json; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommand.cs b/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommand.cs index eac7521eda13..ceebc46404a9 100644 --- a/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommandParser.cs b/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommandParser.cs index c292eea7da00..1e3f596c0572 100644 --- a/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/History/WorkloadHistoryCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Workload.History; diff --git a/src/Cli/dotnet/Commands/Workload/IWorkloadInfoHelper.cs b/src/Cli/dotnet/Commands/Workload/IWorkloadInfoHelper.cs index 99e5dc7f0e42..353054c5025a 100644 --- a/src/Cli/dotnet/Commands/Workload/IWorkloadInfoHelper.cs +++ b/src/Cli/dotnet/Commands/Workload/IWorkloadInfoHelper.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.Workload.Install; using Microsoft.DotNet.Cli.Commands.Workload.Install.WorkloadInstallRecords; using Microsoft.DotNet.Cli.Commands.Workload.List; diff --git a/src/Cli/dotnet/Commands/Workload/Install/FileBasedInstaller.cs b/src/Cli/dotnet/Commands/Workload/Install/FileBasedInstaller.cs index 0fc8d26b9ccf..99681825c16f 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/FileBasedInstaller.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/FileBasedInstaller.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Collections.Concurrent; using System.Text.Json; using Microsoft.DotNet.Cli.Commands.Workload.Config; diff --git a/src/Cli/dotnet/Commands/Workload/Install/IInstaller.cs b/src/Cli/dotnet/Commands/Workload/Install/IInstaller.cs index e5bba50521e3..54504135de22 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/IInstaller.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/IInstaller.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.Workload.Install.WorkloadInstallRecords; using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/Commands/Workload/Install/IWorkloadManifestUpdater.cs b/src/Cli/dotnet/Commands/Workload/Install/IWorkloadManifestUpdater.cs index 0c60ffa4608e..2f846154fe5f 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/IWorkloadManifestUpdater.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/IWorkloadManifestUpdater.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Cli/dotnet/Commands/Workload/Install/MsiInstallerBase.cs b/src/Cli/dotnet/Commands/Workload/Install/MsiInstallerBase.cs index 39d7da021cc8..f69bdabbd0cd 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/MsiInstallerBase.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/MsiInstallerBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using System.Runtime.Versioning; using System.Text.Json; diff --git a/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerClient.InstallRecords.cs b/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerClient.InstallRecords.cs index c65079a0ef30..fdb6eb62a09a 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerClient.InstallRecords.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerClient.InstallRecords.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Net; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Installer.Windows; diff --git a/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerClient.PackGroup.cs b/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerClient.PackGroup.cs index 61d4bb42398e..d13f513c8c97 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerClient.PackGroup.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerClient.PackGroup.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.Json; using Microsoft.NET.Sdk.WorkloadManifestReader; using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver; diff --git a/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerClient.cs b/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerClient.cs index a810b33a9929..26d7c3e27ee4 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerClient.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerClient.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Globalization; using System.Runtime.Versioning; using Microsoft.DotNet.Cli.Commands.Workload.Config; diff --git a/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerServer.cs b/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerServer.cs index 09810bfc5525..350a04a87347 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerServer.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/NetSdkMsiInstallerServer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.IO.Pipes; using System.Runtime.Versioning; using System.Security; diff --git a/src/Cli/dotnet/Commands/Workload/Install/NullReporter.cs b/src/Cli/dotnet/Commands/Workload/Install/NullReporter.cs index 88f6316946d3..c5a386e3e7cc 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/NullReporter.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/NullReporter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/Install/WorkloadGarbageCollector.cs b/src/Cli/dotnet/Commands/Workload/Install/WorkloadGarbageCollector.cs index 22fcbd7131a0..6a7d82fb2bf3 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/WorkloadGarbageCollector.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/WorkloadGarbageCollector.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Sdk.WorkloadManifestReader; using NuGet.Packaging; diff --git a/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallCommand.cs b/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallCommand.cs index 090e89a1d238..f83f319122b9 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.Text.Json; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallCommandParser.cs b/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallCommandParser.cs index 521a3dc2e9b0..650d5270d2ad 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallRecords/FileBasedInstallationRecordInstaller.cs b/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallRecords/FileBasedInstallationRecordInstaller.cs index aafa11e6c428..9ff21b6e857d 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallRecords/FileBasedInstallationRecordInstaller.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallRecords/FileBasedInstallationRecordInstaller.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.NET.Sdk.WorkloadManifestReader; namespace Microsoft.DotNet.Cli.Commands.Workload.Install.WorkloadInstallRecords; diff --git a/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallRecords/IWorkloadInstallationRecordRepository.cs b/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallRecords/IWorkloadInstallationRecordRepository.cs index 7d8fd81b8e0b..7439e47feeec 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallRecords/IWorkloadInstallationRecordRepository.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallRecords/IWorkloadInstallationRecordRepository.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.NET.Sdk.WorkloadManifestReader; namespace Microsoft.DotNet.Cli.Commands.Workload.Install.WorkloadInstallRecords; diff --git a/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallRecords/RegistryWorkloadInstallationRecordRepository.cs b/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallRecords/RegistryWorkloadInstallationRecordRepository.cs index 1c6364959c65..bb60e523be4e 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallRecords/RegistryWorkloadInstallationRecordRepository.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallRecords/RegistryWorkloadInstallationRecordRepository.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Runtime.Versioning; using Microsoft.DotNet.Cli.Installer.Windows; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallerFactory.cs b/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallerFactory.cs index 32f66dee12b0..6ad1553257f2 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallerFactory.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/WorkloadInstallerFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/Commands/Workload/Install/WorkloadManifestUpdater.cs b/src/Cli/dotnet/Commands/Workload/Install/WorkloadManifestUpdater.cs index ae23916a9e0d..8ed500786ec7 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/WorkloadManifestUpdater.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/WorkloadManifestUpdater.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.Json; using Microsoft.DotNet.Cli.Commands.Workload.Install.WorkloadInstallRecords; using Microsoft.DotNet.Cli.Commands.Workload.List; diff --git a/src/Cli/dotnet/Commands/Workload/Install/WorkloadResolverFactory.cs b/src/Cli/dotnet/Commands/Workload/Install/WorkloadResolverFactory.cs index 3a9d41678677..87230dbe2b4f 100644 --- a/src/Cli/dotnet/Commands/Workload/Install/WorkloadResolverFactory.cs +++ b/src/Cli/dotnet/Commands/Workload/Install/WorkloadResolverFactory.cs @@ -1,6 +1,8 @@ // Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Configurer; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Cli/dotnet/Commands/Workload/InstallStateContents.cs b/src/Cli/dotnet/Commands/Workload/InstallStateContents.cs index b4ec92dc0497..d99b8bf5e200 100644 --- a/src/Cli/dotnet/Commands/Workload/InstallStateContents.cs +++ b/src/Cli/dotnet/Commands/Workload/InstallStateContents.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.ComponentModel; using System.Text.Json; using System.Text.Json.Serialization; diff --git a/src/Cli/dotnet/Commands/Workload/InstallingWorkloadCommand.cs b/src/Cli/dotnet/Commands/Workload/InstallingWorkloadCommand.cs index b2df19d062b4..4bb8a298081b 100644 --- a/src/Cli/dotnet/Commands/Workload/InstallingWorkloadCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/InstallingWorkloadCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/List/IWorkloadsRepositoryEnumerator.cs b/src/Cli/dotnet/Commands/Workload/List/IWorkloadsRepositoryEnumerator.cs index 6fce909b2a1a..a84061f34e0e 100644 --- a/src/Cli/dotnet/Commands/Workload/List/IWorkloadsRepositoryEnumerator.cs +++ b/src/Cli/dotnet/Commands/Workload/List/IWorkloadsRepositoryEnumerator.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.NET.Sdk.WorkloadManifestReader; namespace Microsoft.DotNet.Cli.Commands.Workload.List; diff --git a/src/Cli/dotnet/Commands/Workload/List/InstalledWorkloadsCollection.cs b/src/Cli/dotnet/Commands/Workload/List/InstalledWorkloadsCollection.cs index 78ba625f4dc4..b641e8fac8dd 100644 --- a/src/Cli/dotnet/Commands/Workload/List/InstalledWorkloadsCollection.cs +++ b/src/Cli/dotnet/Commands/Workload/List/InstalledWorkloadsCollection.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.NET.Sdk.WorkloadManifestReader; namespace Microsoft.DotNet.Cli.Commands.Workload.List; diff --git a/src/Cli/dotnet/Commands/Workload/List/VisualStudioWorkloads.cs b/src/Cli/dotnet/Commands/Workload/List/VisualStudioWorkloads.cs index c0bb67e640ed..f5c758ee6b11 100644 --- a/src/Cli/dotnet/Commands/Workload/List/VisualStudioWorkloads.cs +++ b/src/Cli/dotnet/Commands/Workload/List/VisualStudioWorkloads.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Runtime.Versioning; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/List/WorkloadListCommand.cs b/src/Cli/dotnet/Commands/Workload/List/WorkloadListCommand.cs index 6bd40c4ff2fd..8af228d4f2c6 100644 --- a/src/Cli/dotnet/Commands/Workload/List/WorkloadListCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/List/WorkloadListCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.Text.Json; using Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/List/WorkloadListCommandParser.cs b/src/Cli/dotnet/Commands/Workload/List/WorkloadListCommandParser.cs index a8a9aab81f39..f5d50726a79e 100644 --- a/src/Cli/dotnet/Commands/Workload/List/WorkloadListCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/List/WorkloadListCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Commands/Workload/Repair/WorkloadRepairCommand.cs b/src/Cli/dotnet/Commands/Workload/Repair/WorkloadRepairCommand.cs index 6aaa804cf183..59fef912542f 100644 --- a/src/Cli/dotnet/Commands/Workload/Repair/WorkloadRepairCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/Repair/WorkloadRepairCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/Repair/WorkloadRepairCommandParser.cs b/src/Cli/dotnet/Commands/Workload/Repair/WorkloadRepairCommandParser.cs index ea247cd2ad4a..151312bcd5a3 100644 --- a/src/Cli/dotnet/Commands/Workload/Repair/WorkloadRepairCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/Repair/WorkloadRepairCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommand.cs b/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommand.cs index bd311e543f9f..1dbc16110933 100644 --- a/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.Build.Execution; using Microsoft.Build.Logging; diff --git a/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommandParser.cs b/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommandParser.cs index 464d6813f1f5..f517783429c5 100644 --- a/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/Restore/WorkloadRestoreCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Restore; using Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchCommand.cs b/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchCommand.cs index 2c660640c125..48de9ef84408 100644 --- a/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Workload.Install; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchCommandParser.cs b/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchCommandParser.cs index 2abf6e76b869..584e99924348 100644 --- a/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Workload.Search; diff --git a/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchVersionsCommand.cs b/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchVersionsCommand.cs index 99af8195ff44..7946493de7d3 100644 --- a/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchVersionsCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchVersionsCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.Text.Json; using Microsoft.Deployment.DotNet.Releases; diff --git a/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchVersionsCommandParser.cs b/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchVersionsCommandParser.cs index 1680d021b154..a9a64d756313 100644 --- a/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchVersionsCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchVersionsCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Commands.Workload.Search; diff --git a/src/Cli/dotnet/Commands/Workload/SignCheck.cs b/src/Cli/dotnet/Commands/Workload/SignCheck.cs index da223810fbaa..88047de65554 100644 --- a/src/Cli/dotnet/Commands/Workload/SignCheck.cs +++ b/src/Cli/dotnet/Commands/Workload/SignCheck.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Reflection; #if !DOT_NET_BUILD_FROM_SOURCE diff --git a/src/Cli/dotnet/Commands/Workload/Uninstall/WorkloadUninstallCommand.cs b/src/Cli/dotnet/Commands/Workload/Uninstall/WorkloadUninstallCommand.cs index a6053c82ad9e..5517c442b638 100644 --- a/src/Cli/dotnet/Commands/Workload/Uninstall/WorkloadUninstallCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/Uninstall/WorkloadUninstallCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/Uninstall/WorkloadUninstallCommandParser.cs b/src/Cli/dotnet/Commands/Workload/Uninstall/WorkloadUninstallCommandParser.cs index 66a3e1b7ee88..39b1095fe6cf 100644 --- a/src/Cli/dotnet/Commands/Workload/Uninstall/WorkloadUninstallCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/Uninstall/WorkloadUninstallCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/Update/WorkloadUpdateCommand.cs b/src/Cli/dotnet/Commands/Workload/Update/WorkloadUpdateCommand.cs index 83f4fef5f37d..fc208ded12bd 100644 --- a/src/Cli/dotnet/Commands/Workload/Update/WorkloadUpdateCommand.cs +++ b/src/Cli/dotnet/Commands/Workload/Update/WorkloadUpdateCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.Text.Json; using Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/Update/WorkloadUpdateCommandParser.cs b/src/Cli/dotnet/Commands/Workload/Update/WorkloadUpdateCommandParser.cs index bdde431e8ae1..1a7b976c60f3 100644 --- a/src/Cli/dotnet/Commands/Workload/Update/WorkloadUpdateCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/Update/WorkloadUpdateCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Workload.Install; diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadCommandBase.cs b/src/Cli/dotnet/Commands/Workload/WorkloadCommandBase.cs index 247463b2b7d3..3dc214daa26f 100644 --- a/src/Cli/dotnet/Commands/Workload/WorkloadCommandBase.cs +++ b/src/Cli/dotnet/Commands/Workload/WorkloadCommandBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Workload.Install; using Microsoft.DotNet.Cli.Extensions; @@ -122,7 +124,7 @@ public WorkloadCommandBase( } /// - /// Determines whether workload packs and installer signatures should be verified based on whether + /// Determines whether workload packs and installer signatures should be verified based on whether /// dotnet is signed, the skip option was specified, and whether a global policy enforcing verification /// was set. /// diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadCommandNuGetRestoreActionConfigOptions.cs b/src/Cli/dotnet/Commands/Workload/WorkloadCommandNuGetRestoreActionConfigOptions.cs index 35252a6f61db..563ad9822849 100644 --- a/src/Cli/dotnet/Commands/Workload/WorkloadCommandNuGetRestoreActionConfigOptions.cs +++ b/src/Cli/dotnet/Commands/Workload/WorkloadCommandNuGetRestoreActionConfigOptions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; using Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs b/src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs index be32580582ac..158007475880 100644 --- a/src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs +++ b/src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Workload.Clean; using Microsoft.DotNet.Cli.Commands.Workload.Config; diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadHistoryDisplay.cs b/src/Cli/dotnet/Commands/Workload/WorkloadHistoryDisplay.cs index fe2f68e0bb31..562eca962245 100644 --- a/src/Cli/dotnet/Commands/Workload/WorkloadHistoryDisplay.cs +++ b/src/Cli/dotnet/Commands/Workload/WorkloadHistoryDisplay.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Workload; internal static class WorkloadHistoryDisplay diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadHistoryRecord.cs b/src/Cli/dotnet/Commands/Workload/WorkloadHistoryRecord.cs index 3acd2229a6aa..d3d95da1e5a6 100644 --- a/src/Cli/dotnet/Commands/Workload/WorkloadHistoryRecord.cs +++ b/src/Cli/dotnet/Commands/Workload/WorkloadHistoryRecord.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Commands.Workload; internal class WorkloadHistoryRecord diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadHistoryRecorder.cs b/src/Cli/dotnet/Commands/Workload/WorkloadHistoryRecorder.cs index 629c7e406d75..ab64b7539912 100644 --- a/src/Cli/dotnet/Commands/Workload/WorkloadHistoryRecorder.cs +++ b/src/Cli/dotnet/Commands/Workload/WorkloadHistoryRecorder.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.Workload.Install; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadInfoHelper.cs b/src/Cli/dotnet/Commands/Workload/WorkloadInfoHelper.cs index cf79f6a9d463..4e026553fc93 100644 --- a/src/Cli/dotnet/Commands/Workload/WorkloadInfoHelper.cs +++ b/src/Cli/dotnet/Commands/Workload/WorkloadInfoHelper.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Commands.Workload.Install; using Microsoft.DotNet.Cli.Commands.Workload.Install.WorkloadInstallRecords; diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadIntegrityChecker.cs b/src/Cli/dotnet/Commands/Workload/WorkloadIntegrityChecker.cs index accb3f4726be..add9f8a7a261 100644 --- a/src/Cli/dotnet/Commands/Workload/WorkloadIntegrityChecker.cs +++ b/src/Cli/dotnet/Commands/Workload/WorkloadIntegrityChecker.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Commands.Workload.Install; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/Commands/Workload/WorkloadUtilities.cs b/src/Cli/dotnet/Commands/Workload/WorkloadUtilities.cs index c79828cbc04d..c5e5dad4fe77 100644 --- a/src/Cli/dotnet/Commands/Workload/WorkloadUtilities.cs +++ b/src/Cli/dotnet/Commands/Workload/WorkloadUtilities.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Deployment.DotNet.Releases; namespace Microsoft.DotNet.Cli.Commands.Workload; diff --git a/src/Cli/dotnet/CommonArguments.cs b/src/Cli/dotnet/CommonArguments.cs index 21a98f0b52bf..b76c05e73ffc 100644 --- a/src/Cli/dotnet/CommonArguments.cs +++ b/src/Cli/dotnet/CommonArguments.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings using System.CommandLine; using System.CommandLine.Parsing; diff --git a/src/Cli/dotnet/CommonOptions.cs b/src/Cli/dotnet/CommonOptions.cs index e362c30f9d20..3f2c60d5f4c0 100644 --- a/src/Cli/dotnet/CommonOptions.cs +++ b/src/Cli/dotnet/CommonOptions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.CommandLine; using System.CommandLine.Completions; using System.CommandLine.Parsing; diff --git a/src/Cli/dotnet/CommonOptionsFactory.cs b/src/Cli/dotnet/CommonOptionsFactory.cs index bdb1aad36648..f776cd47712a 100644 --- a/src/Cli/dotnet/CommonOptionsFactory.cs +++ b/src/Cli/dotnet/CommonOptionsFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/DocumentedCommand.cs b/src/Cli/dotnet/DocumentedCommand.cs index 3223b13a1e51..658170628e89 100644 --- a/src/Cli/dotnet/DocumentedCommand.cs +++ b/src/Cli/dotnet/DocumentedCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.TemplateEngine.Cli.Commands; diff --git a/src/Cli/dotnet/DotNetCommandFactory.cs b/src/Cli/dotnet/DotNetCommandFactory.cs index b740a3d8ba42..54ea99bac5e1 100644 --- a/src/Cli/dotnet/DotNetCommandFactory.cs +++ b/src/Cli/dotnet/DotNetCommandFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine.Invocation; using System.Diagnostics; using Microsoft.DotNet.Cli.CommandFactory; diff --git a/src/Cli/dotnet/Extensions/CommonOptionsExtensions.cs b/src/Cli/dotnet/Extensions/CommonOptionsExtensions.cs index 12a9896faf1c..f94bb4ec9433 100644 --- a/src/Cli/dotnet/Extensions/CommonOptionsExtensions.cs +++ b/src/Cli/dotnet/Extensions/CommonOptionsExtensions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Extensions.Logging; diff --git a/src/Cli/dotnet/Extensions/OptionForwardingExtensions.cs b/src/Cli/dotnet/Extensions/OptionForwardingExtensions.cs index 9e0af2e4ae62..ff33f4377207 100644 --- a/src/Cli/dotnet/Extensions/OptionForwardingExtensions.cs +++ b/src/Cli/dotnet/Extensions/OptionForwardingExtensions.cs @@ -6,8 +6,6 @@ using System.CommandLine.StaticCompletions; using Microsoft.DotNet.Cli.Commands.Test; -#nullable enable - namespace Microsoft.DotNet.Cli.Extensions; public static class OptionForwardingExtensions diff --git a/src/Cli/dotnet/Extensions/ParseResultExtensions.cs b/src/Cli/dotnet/Extensions/ParseResultExtensions.cs index fc9ebb221c9e..31d65f3b8fcf 100644 --- a/src/Cli/dotnet/Extensions/ParseResultExtensions.cs +++ b/src/Cli/dotnet/Extensions/ParseResultExtensions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.CommandLine.Parsing; using System.Diagnostics; diff --git a/src/Cli/dotnet/Extensions/ParserExtensions.cs b/src/Cli/dotnet/Extensions/ParserExtensions.cs index 83ff922ece2c..a51f7d4fd999 100644 --- a/src/Cli/dotnet/Extensions/ParserExtensions.cs +++ b/src/Cli/dotnet/Extensions/ParserExtensions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; namespace Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Extensions/ProjectExtensions.cs b/src/Cli/dotnet/Extensions/ProjectExtensions.cs index 622428073a5b..46aedaff2468 100644 --- a/src/Cli/dotnet/Extensions/ProjectExtensions.cs +++ b/src/Cli/dotnet/Extensions/ProjectExtensions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Evaluation; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/Extensions/ProjectInstanceExtensions.cs b/src/Cli/dotnet/Extensions/ProjectInstanceExtensions.cs index 749007923950..8d9ab9c09235 100644 --- a/src/Cli/dotnet/Extensions/ProjectInstanceExtensions.cs +++ b/src/Cli/dotnet/Extensions/ProjectInstanceExtensions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Execution; namespace Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Extensions/ProjectRootElementExtensions.cs b/src/Cli/dotnet/Extensions/ProjectRootElementExtensions.cs index 5f10025d3ad4..76aeac7f2e87 100644 --- a/src/Cli/dotnet/Extensions/ProjectRootElementExtensions.cs +++ b/src/Cli/dotnet/Extensions/ProjectRootElementExtensions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Construction; namespace Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/FilePermissionSetter.cs b/src/Cli/dotnet/FilePermissionSetter.cs index 297e671626e8..4b1ee8216b23 100644 --- a/src/Cli/dotnet/FilePermissionSetter.cs +++ b/src/Cli/dotnet/FilePermissionSetter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/ForwardingApp.cs b/src/Cli/dotnet/ForwardingApp.cs index d83004f1fcb6..e0382f781d35 100644 --- a/src/Cli/dotnet/ForwardingApp.cs +++ b/src/Cli/dotnet/ForwardingApp.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/ICommandRunner.cs b/src/Cli/dotnet/ICommandRunner.cs index c19c54210c14..1f88b750a8ba 100644 --- a/src/Cli/dotnet/ICommandRunner.cs +++ b/src/Cli/dotnet/ICommandRunner.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli; public interface ICommandRunner diff --git a/src/Cli/dotnet/IFilePermissionSetter.cs b/src/Cli/dotnet/IFilePermissionSetter.cs index df8d50bccf83..17909ffc54de 100644 --- a/src/Cli/dotnet/IFilePermissionSetter.cs +++ b/src/Cli/dotnet/IFilePermissionSetter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli; internal interface IFilePermissionSetter diff --git a/src/Cli/dotnet/Installer/Windows/DetectState.cs b/src/Cli/dotnet/Installer/Windows/DetectState.cs index 52a2a9ba60b0..0befeb4c40b5 100644 --- a/src/Cli/dotnet/Installer/Windows/DetectState.cs +++ b/src/Cli/dotnet/Installer/Windows/DetectState.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/Installer/Windows/ElevationContextBase.cs b/src/Cli/dotnet/Installer/Windows/ElevationContextBase.cs index 24b8e18921c5..2986e97eb4cc 100644 --- a/src/Cli/dotnet/Installer/Windows/ElevationContextBase.cs +++ b/src/Cli/dotnet/Installer/Windows/ElevationContextBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Runtime.Versioning; namespace Microsoft.DotNet.Cli.Installer.Windows; diff --git a/src/Cli/dotnet/Installer/Windows/FormatMessage.cs b/src/Cli/dotnet/Installer/Windows/FormatMessage.cs index fa72445fd5e9..efb73f807804 100644 --- a/src/Cli/dotnet/Installer/Windows/FormatMessage.cs +++ b/src/Cli/dotnet/Installer/Windows/FormatMessage.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/Installer/Windows/IInstallMessageDispatcher.cs b/src/Cli/dotnet/Installer/Windows/IInstallMessageDispatcher.cs index abbb066a40e9..be5222fc86ec 100644 --- a/src/Cli/dotnet/Installer/Windows/IInstallMessageDispatcher.cs +++ b/src/Cli/dotnet/Installer/Windows/IInstallMessageDispatcher.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/Installer/Windows/ISetupLogger.cs b/src/Cli/dotnet/Installer/Windows/ISetupLogger.cs index 599acfcdce38..205e4b40b886 100644 --- a/src/Cli/dotnet/Installer/Windows/ISetupLogger.cs +++ b/src/Cli/dotnet/Installer/Windows/ISetupLogger.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/Installer/Windows/ISynchronizingLogger.cs b/src/Cli/dotnet/Installer/Windows/ISynchronizingLogger.cs index e10a532a868b..f60da54e09c8 100644 --- a/src/Cli/dotnet/Installer/Windows/ISynchronizingLogger.cs +++ b/src/Cli/dotnet/Installer/Windows/ISynchronizingLogger.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/Installer/Windows/InstallAction.cs b/src/Cli/dotnet/Installer/Windows/InstallAction.cs index c21888289352..9bafcc3fc428 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallAction.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallAction.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/Installer/Windows/InstallClientElevationContext.cs b/src/Cli/dotnet/Installer/Windows/InstallClientElevationContext.cs index ecbdf60e0400..53c7710af59b 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallClientElevationContext.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallClientElevationContext.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using System.IO.Pipes; using System.Reflection; diff --git a/src/Cli/dotnet/Installer/Windows/InstallElevationContextBase.cs b/src/Cli/dotnet/Installer/Windows/InstallElevationContextBase.cs index f09559e284a3..9bd49ad96e75 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallElevationContextBase.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallElevationContextBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.IO.Pipes; using System.Runtime.Versioning; diff --git a/src/Cli/dotnet/Installer/Windows/InstallMessageBase.cs b/src/Cli/dotnet/Installer/Windows/InstallMessageBase.cs index e3397416b66c..18e8284fd23d 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallMessageBase.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallMessageBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Newtonsoft.Json; namespace Microsoft.DotNet.Cli.Installer.Windows; diff --git a/src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.cs b/src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.cs index 28405361f9a0..c17f763dbaa5 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.IO.Pipes; using System.Runtime.Versioning; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Cli/dotnet/Installer/Windows/InstallProperties.cs b/src/Cli/dotnet/Installer/Windows/InstallProperties.cs index 141f6fcd0712..9c5193da4ae1 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallProperties.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallProperties.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Runtime.Versioning; using Microsoft.Win32.Msi; diff --git a/src/Cli/dotnet/Installer/Windows/InstallRequestMessage.cs b/src/Cli/dotnet/Installer/Windows/InstallRequestMessage.cs index 66057871fc13..e06511adff84 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallRequestMessage.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallRequestMessage.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Newtonsoft.Json; namespace Microsoft.DotNet.Cli.Installer.Windows; diff --git a/src/Cli/dotnet/Installer/Windows/InstallRequestType.cs b/src/Cli/dotnet/Installer/Windows/InstallRequestType.cs index 622368b7a743..6252fd2fbc8c 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallRequestType.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallRequestType.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/Installer/Windows/InstallResponseMessage.cs b/src/Cli/dotnet/Installer/Windows/InstallResponseMessage.cs index b5af4d359bb2..9038a6f27d02 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallResponseMessage.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallResponseMessage.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Newtonsoft.Json; using static Microsoft.Win32.Msi.Error; diff --git a/src/Cli/dotnet/Installer/Windows/InstallServerElevationContext.cs b/src/Cli/dotnet/Installer/Windows/InstallServerElevationContext.cs index c924a02affbd..c2fd4e14c0a3 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallServerElevationContext.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallServerElevationContext.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.IO.Pipes; using System.Runtime.Versioning; diff --git a/src/Cli/dotnet/Installer/Windows/InstallerBase.cs b/src/Cli/dotnet/Installer/Windows/InstallerBase.cs index dd9872d854e9..835a9c9382a7 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallerBase.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallerBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using System.Reflection; using System.Runtime.Versioning; diff --git a/src/Cli/dotnet/Installer/Windows/MsiManifest.cs b/src/Cli/dotnet/Installer/Windows/MsiManifest.cs index 4a8595127c4b..4575b75c43f1 100644 --- a/src/Cli/dotnet/Installer/Windows/MsiManifest.cs +++ b/src/Cli/dotnet/Installer/Windows/MsiManifest.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/Installer/Windows/MsiPackageCache.cs b/src/Cli/dotnet/Installer/Windows/MsiPackageCache.cs index c326c3940ae9..3d7bf395fd17 100644 --- a/src/Cli/dotnet/Installer/Windows/MsiPackageCache.cs +++ b/src/Cli/dotnet/Installer/Windows/MsiPackageCache.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Runtime.Versioning; using Microsoft.DotNet.Cli.Commands.Workload; diff --git a/src/Cli/dotnet/Installer/Windows/MsiPayload.cs b/src/Cli/dotnet/Installer/Windows/MsiPayload.cs index 8229f75b39c4..f683e143c49a 100644 --- a/src/Cli/dotnet/Installer/Windows/MsiPayload.cs +++ b/src/Cli/dotnet/Installer/Windows/MsiPayload.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Newtonsoft.Json; namespace Microsoft.DotNet.Cli.Installer.Windows; diff --git a/src/Cli/dotnet/Installer/Windows/NativeMethods.cs b/src/Cli/dotnet/Installer/Windows/NativeMethods.cs index 37c8b970c769..abd337c9cfad 100644 --- a/src/Cli/dotnet/Installer/Windows/NativeMethods.cs +++ b/src/Cli/dotnet/Installer/Windows/NativeMethods.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Runtime.Versioning; namespace Microsoft.DotNet.Cli.Installer.Windows; diff --git a/src/Cli/dotnet/Installer/Windows/NullInstallerLogger.cs b/src/Cli/dotnet/Installer/Windows/NullInstallerLogger.cs index 448eb9f7e6e6..7518a03d6ed0 100644 --- a/src/Cli/dotnet/Installer/Windows/NullInstallerLogger.cs +++ b/src/Cli/dotnet/Installer/Windows/NullInstallerLogger.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/Installer/Windows/PipeStreamMessageDispatcherBase.cs b/src/Cli/dotnet/Installer/Windows/PipeStreamMessageDispatcherBase.cs index 3ae824cda73a..45ae5fca7c31 100644 --- a/src/Cli/dotnet/Installer/Windows/PipeStreamMessageDispatcherBase.cs +++ b/src/Cli/dotnet/Installer/Windows/PipeStreamMessageDispatcherBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.IO.Pipes; using System.Runtime.Versioning; diff --git a/src/Cli/dotnet/Installer/Windows/PipeStreamSetupLogger.cs b/src/Cli/dotnet/Installer/Windows/PipeStreamSetupLogger.cs index 0164fb29294f..2e4df9c36833 100644 --- a/src/Cli/dotnet/Installer/Windows/PipeStreamSetupLogger.cs +++ b/src/Cli/dotnet/Installer/Windows/PipeStreamSetupLogger.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.IO.Pipes; using System.Runtime.Versioning; diff --git a/src/Cli/dotnet/Installer/Windows/RelatedProduct.cs b/src/Cli/dotnet/Installer/Windows/RelatedProduct.cs index a0f7c3bb8196..aa100ce59c0b 100644 --- a/src/Cli/dotnet/Installer/Windows/RelatedProduct.cs +++ b/src/Cli/dotnet/Installer/Windows/RelatedProduct.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Newtonsoft.Json; using Newtonsoft.Json.Converters; diff --git a/src/Cli/dotnet/Installer/Windows/Security/Signature.cs b/src/Cli/dotnet/Installer/Windows/Security/Signature.cs index ab7a244fa2bb..b0de9bb0504b 100644 --- a/src/Cli/dotnet/Installer/Windows/Security/Signature.cs +++ b/src/Cli/dotnet/Installer/Windows/Security/Signature.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Runtime.Versioning; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; diff --git a/src/Cli/dotnet/Installer/Windows/SecurityUtils.cs b/src/Cli/dotnet/Installer/Windows/SecurityUtils.cs index 7cb3ed9a3f4c..58107ce752ce 100644 --- a/src/Cli/dotnet/Installer/Windows/SecurityUtils.cs +++ b/src/Cli/dotnet/Installer/Windows/SecurityUtils.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.IO.Pipes; using System.Runtime.Versioning; using System.Security.AccessControl; diff --git a/src/Cli/dotnet/Installer/Windows/SetupLoggerBase.cs b/src/Cli/dotnet/Installer/Windows/SetupLoggerBase.cs index f42ba1a00d40..ba1f5895025f 100644 --- a/src/Cli/dotnet/Installer/Windows/SetupLoggerBase.cs +++ b/src/Cli/dotnet/Installer/Windows/SetupLoggerBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.cs b/src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.cs index 1944b9337abc..a2f520863edc 100644 --- a/src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.cs +++ b/src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Collections.Concurrent; using System.Globalization; using System.IO.Pipes; diff --git a/src/Cli/dotnet/Installer/Windows/UpgradeAttributes.cs b/src/Cli/dotnet/Installer/Windows/UpgradeAttributes.cs index 37d3c0e50f9d..ef589011ec5b 100644 --- a/src/Cli/dotnet/Installer/Windows/UpgradeAttributes.cs +++ b/src/Cli/dotnet/Installer/Windows/UpgradeAttributes.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/Installer/Windows/WindowsUpdateAgent.cs b/src/Cli/dotnet/Installer/Windows/WindowsUpdateAgent.cs index 951f63a413f7..87c6d88fec25 100644 --- a/src/Cli/dotnet/Installer/Windows/WindowsUpdateAgent.cs +++ b/src/Cli/dotnet/Installer/Windows/WindowsUpdateAgent.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Runtime.Versioning; using System.ServiceProcess; diff --git a/src/Cli/dotnet/Installer/Windows/WindowsUtils.cs b/src/Cli/dotnet/Installer/Windows/WindowsUtils.cs index 4e2ac7e80e7c..906305d373cf 100644 --- a/src/Cli/dotnet/Installer/Windows/WindowsUtils.cs +++ b/src/Cli/dotnet/Installer/Windows/WindowsUtils.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Runtime.Versioning; using System.Security.Principal; using Microsoft.DotNet.Cli.Telemetry; diff --git a/src/Cli/dotnet/Installer/Windows/WorkloadManifestRecord.cs b/src/Cli/dotnet/Installer/Windows/WorkloadManifestRecord.cs index a5ef26bee3fd..2bc8ef3bb81a 100644 --- a/src/Cli/dotnet/Installer/Windows/WorkloadManifestRecord.cs +++ b/src/Cli/dotnet/Installer/Windows/WorkloadManifestRecord.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/Installer/Windows/WorkloadPackRecord.cs b/src/Cli/dotnet/Installer/Windows/WorkloadPackRecord.cs index 2aa5982e60f7..5d973809cd49 100644 --- a/src/Cli/dotnet/Installer/Windows/WorkloadPackRecord.cs +++ b/src/Cli/dotnet/Installer/Windows/WorkloadPackRecord.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.NET.Sdk.WorkloadManifestReader; using NuGet.Versioning; diff --git a/src/Cli/dotnet/Installer/Windows/WorkloadSetRecord.cs b/src/Cli/dotnet/Installer/Windows/WorkloadSetRecord.cs index 5c49b19b4104..c0a6b09e206c 100644 --- a/src/Cli/dotnet/Installer/Windows/WorkloadSetRecord.cs +++ b/src/Cli/dotnet/Installer/Windows/WorkloadSetRecord.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Installer.Windows; /// diff --git a/src/Cli/dotnet/LoggerUtility.cs b/src/Cli/dotnet/LoggerUtility.cs index 4287f79390f4..20a52dbfe28d 100644 --- a/src/Cli/dotnet/LoggerUtility.cs +++ b/src/Cli/dotnet/LoggerUtility.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.Build.Framework; using Microsoft.Build.Logging; diff --git a/src/Cli/dotnet/MsbuildProject.cs b/src/Cli/dotnet/MsbuildProject.cs index 8ae354f9ec87..d06880e00e76 100644 --- a/src/Cli/dotnet/MsbuildProject.cs +++ b/src/Cli/dotnet/MsbuildProject.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Construction; using Microsoft.Build.Evaluation; using Microsoft.Build.Exceptions; diff --git a/src/Cli/dotnet/NuGetForwardingApp.cs b/src/Cli/dotnet/NuGetForwardingApp.cs index 578a6e2b324c..a8e99477dccf 100644 --- a/src/Cli/dotnet/NuGetForwardingApp.cs +++ b/src/Cli/dotnet/NuGetForwardingApp.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli; public class NuGetForwardingApp diff --git a/src/Cli/dotnet/NuGetSignatureVerificationEnabler.cs b/src/Cli/dotnet/NuGetSignatureVerificationEnabler.cs index dcf54e505a92..afab63220256 100644 --- a/src/Cli/dotnet/NuGetSignatureVerificationEnabler.cs +++ b/src/Cli/dotnet/NuGetSignatureVerificationEnabler.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.DotNet.Cli.Commands.MSBuild; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/NugetPackageDownloader/FirstPartyNuGetPackageSigningVerifier.cs b/src/Cli/dotnet/NugetPackageDownloader/FirstPartyNuGetPackageSigningVerifier.cs index 2cd0fd69c408..121a6f924695 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/FirstPartyNuGetPackageSigningVerifier.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/FirstPartyNuGetPackageSigningVerifier.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Security.Cryptography.X509Certificates; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Packaging; diff --git a/src/Cli/dotnet/NugetPackageDownloader/IFirstPartyNuGetPackageSigningVerifier.cs b/src/Cli/dotnet/NugetPackageDownloader/IFirstPartyNuGetPackageSigningVerifier.cs index 61bf4ec83a1d..70a068ee810f 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/IFirstPartyNuGetPackageSigningVerifier.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/IFirstPartyNuGetPackageSigningVerifier.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs b/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs index 8567c89238aa..93e21d486e91 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Configuration; diff --git a/src/Cli/dotnet/NugetPackageDownloader/NuGetConsoleLogger.cs b/src/Cli/dotnet/NugetPackageDownloader/NuGetConsoleLogger.cs index 302b8a9a8046..eeb7562fb25e 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/NuGetConsoleLogger.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/NuGetConsoleLogger.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using NuGet.Common; diff --git a/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs b/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs index 3282033a4c7f..cc5727904e7c 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Collections.Concurrent; using Microsoft.DotNet.Cli.NugetPackageDownloader; using Microsoft.DotNet.Cli.ToolPackage; diff --git a/src/Cli/dotnet/NugetPackageDownloader/NuGetPackagePathResolver.cs b/src/Cli/dotnet/NugetPackageDownloader/NuGetPackagePathResolver.cs index 408a08790fa9..38701595e6a2 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/NuGetPackagePathResolver.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/NuGetPackagePathResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Packaging; using NuGet.Packaging.Core; diff --git a/src/Cli/dotnet/NugetPackageDownloader/PackageSourceLocation.cs b/src/Cli/dotnet/NugetPackageDownloader/PackageSourceLocation.cs index cc630154093a..38bae2aaf930 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/PackageSourceLocation.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/PackageSourceLocation.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Cli/dotnet/NugetPackageDownloader/RestoreActionConfig.cs b/src/Cli/dotnet/NugetPackageDownloader/RestoreActionConfig.cs index 9debec1cbb9a..7cc36727530d 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/RestoreActionConfig.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/RestoreActionConfig.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.NuGetPackageDownloader; /// The flag to enable nuget authentication plugin. diff --git a/src/Cli/dotnet/NugetPackageDownloader/ToolPackageException.cs b/src/Cli/dotnet/NugetPackageDownloader/ToolPackageException.cs index 207147f2997c..955506dd1c27 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/ToolPackageException.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/ToolPackageException.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.cs b/src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.cs index 26a02c11b9e9..8f8ceb39ad62 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.ComponentModel; using System.Xml; using System.Xml.Serialization; diff --git a/src/Cli/dotnet/NugetSearch/AuthorsConverter.cs b/src/Cli/dotnet/NugetSearch/AuthorsConverter.cs index b8195b9d673e..0e7e26ae6f3f 100644 --- a/src/Cli/dotnet/NugetSearch/AuthorsConverter.cs +++ b/src/Cli/dotnet/NugetSearch/AuthorsConverter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.Json; using System.Text.Json.Serialization; using Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable; diff --git a/src/Cli/dotnet/NugetSearch/INugetToolSearchApiRequest.cs b/src/Cli/dotnet/NugetSearch/INugetToolSearchApiRequest.cs index a655e7d070ff..b099d3888554 100644 --- a/src/Cli/dotnet/NugetSearch/INugetToolSearchApiRequest.cs +++ b/src/Cli/dotnet/NugetSearch/INugetToolSearchApiRequest.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.NugetSearch; internal interface INugetToolSearchApiRequest diff --git a/src/Cli/dotnet/NugetSearch/NugetSearchApiParameter.cs b/src/Cli/dotnet/NugetSearch/NugetSearchApiParameter.cs index 827d298792d4..e9b5345c3b27 100644 --- a/src/Cli/dotnet/NugetSearch/NugetSearchApiParameter.cs +++ b/src/Cli/dotnet/NugetSearch/NugetSearchApiParameter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Tool.Search; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/NugetSearch/NugetSearchApiRequestException.cs b/src/Cli/dotnet/NugetSearch/NugetSearchApiRequestException.cs index db088e7687bb..b4ac5506efcd 100644 --- a/src/Cli/dotnet/NugetSearch/NugetSearchApiRequestException.cs +++ b/src/Cli/dotnet/NugetSearch/NugetSearchApiRequestException.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.NugetSearch; diff --git a/src/Cli/dotnet/NugetSearch/NugetSearchApiResultDeserializer.cs b/src/Cli/dotnet/NugetSearch/NugetSearchApiResultDeserializer.cs index 1c4a2ef224f1..dc79172862ee 100644 --- a/src/Cli/dotnet/NugetSearch/NugetSearchApiResultDeserializer.cs +++ b/src/Cli/dotnet/NugetSearch/NugetSearchApiResultDeserializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.Json; using Microsoft.DotNet.Cli.Commands.Tool.Search; using Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable; diff --git a/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiAuthorsSerializable.cs b/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiAuthorsSerializable.cs index 02030dd83ae9..56336bb4b5ec 100644 --- a/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiAuthorsSerializable.cs +++ b/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiAuthorsSerializable.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable; internal class NugetSearchApiAuthorsSerializable diff --git a/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiContainerSerializable.cs b/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiContainerSerializable.cs index f99354d27070..ee745f927a55 100644 --- a/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiContainerSerializable.cs +++ b/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiContainerSerializable.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable; internal class NugetSearchApiContainerSerializable diff --git a/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiPackageSerializable.cs b/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiPackageSerializable.cs index cb7472c297d8..2ef6e80b6b4a 100644 --- a/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiPackageSerializable.cs +++ b/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiPackageSerializable.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable; internal class NugetSearchApiPackageSerializable diff --git a/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiVersionSerializable.cs b/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiVersionSerializable.cs index 2ef4bb949adc..e54e5de2aaf5 100644 --- a/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiVersionSerializable.cs +++ b/src/Cli/dotnet/NugetSearch/NugetSearchApiSerializable/NugetSearchApiVersionSerializable.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable; internal class NugetSearchApiVersionSerializable diff --git a/src/Cli/dotnet/NugetSearch/NugetToolSearchApiRequest.cs b/src/Cli/dotnet/NugetSearch/NugetToolSearchApiRequest.cs index 6c43c9251524..7a13451dc640 100644 --- a/src/Cli/dotnet/NugetSearch/NugetToolSearchApiRequest.cs +++ b/src/Cli/dotnet/NugetSearch/NugetToolSearchApiRequest.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Collections.Specialized; using System.Web; using NuGet.Protocol; diff --git a/src/Cli/dotnet/Parser.cs b/src/Cli/dotnet/Parser.cs index d59cdea4703a..39ca4d7fd029 100644 --- a/src/Cli/dotnet/Parser.cs +++ b/src/Cli/dotnet/Parser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.CommandLine.Completions; using System.CommandLine.Help; diff --git a/src/Cli/dotnet/PerformanceLogEventListener.cs b/src/Cli/dotnet/PerformanceLogEventListener.cs index e9885f61a323..201006e5c011 100644 --- a/src/Cli/dotnet/PerformanceLogEventListener.cs +++ b/src/Cli/dotnet/PerformanceLogEventListener.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics.Tracing; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/PerformanceLogEventSource.cs b/src/Cli/dotnet/PerformanceLogEventSource.cs index 5dd4347dd07b..0879b02f1725 100644 --- a/src/Cli/dotnet/PerformanceLogEventSource.cs +++ b/src/Cli/dotnet/PerformanceLogEventSource.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using System.Diagnostics.Tracing; using System.Reflection; diff --git a/src/Cli/dotnet/PerformanceLogManager.cs b/src/Cli/dotnet/PerformanceLogManager.cs index 327e6ab85c53..3864adceb84c 100644 --- a/src/Cli/dotnet/PerformanceLogManager.cs +++ b/src/Cli/dotnet/PerformanceLogManager.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/PrintableTable.cs b/src/Cli/dotnet/PrintableTable.cs index 017ae8c3fe01..72f042aeb139 100644 --- a/src/Cli/dotnet/PrintableTable.cs +++ b/src/Cli/dotnet/PrintableTable.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Globalization; namespace Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/Program.cs b/src/Cli/dotnet/Program.cs index 92bab46eee51..1616e89b7812 100644 --- a/src/Cli/dotnet/Program.cs +++ b/src/Cli/dotnet/Program.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.Diagnostics; using Microsoft.DotNet.Cli.CommandFactory; diff --git a/src/Cli/dotnet/Properties/AssemblyInfo.cs b/src/Cli/dotnet/Properties/AssemblyInfo.cs index b4f61f2118ca..f3ef4338b9ed 100644 --- a/src/Cli/dotnet/Properties/AssemblyInfo.cs +++ b/src/Cli/dotnet/Properties/AssemblyInfo.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Reflection; using System.Runtime.CompilerServices; diff --git a/src/Cli/dotnet/ReleasePropertyProjectLocator.cs b/src/Cli/dotnet/ReleasePropertyProjectLocator.cs index 949ee5b0f341..b5f0f6424252 100644 --- a/src/Cli/dotnet/ReleasePropertyProjectLocator.cs +++ b/src/Cli/dotnet/ReleasePropertyProjectLocator.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.CommandLine; using System.Diagnostics; using Microsoft.Build.Execution; diff --git a/src/Cli/dotnet/RuntimeConfig.cs b/src/Cli/dotnet/RuntimeConfig.cs index c163d6984e1d..654b30831dda 100644 --- a/src/Cli/dotnet/RuntimeConfig.cs +++ b/src/Cli/dotnet/RuntimeConfig.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.Json; namespace Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/RuntimeConfigFramework.cs b/src/Cli/dotnet/RuntimeConfigFramework.cs index 505bc0473e07..e538b21c411c 100644 --- a/src/Cli/dotnet/RuntimeConfigFramework.cs +++ b/src/Cli/dotnet/RuntimeConfigFramework.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli; internal class RuntimeConfigFramework diff --git a/src/Cli/dotnet/ShellShim/AppHostShimMaker.cs b/src/Cli/dotnet/ShellShim/AppHostShimMaker.cs index 5b5bc0df8612..f1518763c440 100644 --- a/src/Cli/dotnet/ShellShim/AppHostShimMaker.cs +++ b/src/Cli/dotnet/ShellShim/AppHostShimMaker.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.NET.HostModel.AppHost; diff --git a/src/Cli/dotnet/ShellShim/DoNothingEnvironmentPath.cs b/src/Cli/dotnet/ShellShim/DoNothingEnvironmentPath.cs index 6f0c1ea6263a..a371ecb1dc0e 100644 --- a/src/Cli/dotnet/ShellShim/DoNothingEnvironmentPath.cs +++ b/src/Cli/dotnet/ShellShim/DoNothingEnvironmentPath.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.ShellShim; diff --git a/src/Cli/dotnet/ShellShim/EnvironmentPathFactory.cs b/src/Cli/dotnet/ShellShim/EnvironmentPathFactory.cs index 774fb2b7bf3b..984e0a863c35 100644 --- a/src/Cli/dotnet/ShellShim/EnvironmentPathFactory.cs +++ b/src/Cli/dotnet/ShellShim/EnvironmentPathFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ShellShim/IApphostShellShimMaker.cs b/src/Cli/dotnet/ShellShim/IApphostShellShimMaker.cs index 2cb82b7b19e8..5f66c3d1c1e3 100644 --- a/src/Cli/dotnet/ShellShim/IApphostShellShimMaker.cs +++ b/src/Cli/dotnet/ShellShim/IApphostShellShimMaker.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.Cli.ShellShim; diff --git a/src/Cli/dotnet/ShellShim/IShellShimRepository.cs b/src/Cli/dotnet/ShellShim/IShellShimRepository.cs index 619ae8848e9b..68db0c04a879 100644 --- a/src/Cli/dotnet/ShellShim/IShellShimRepository.cs +++ b/src/Cli/dotnet/ShellShim/IShellShimRepository.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ShellShim/LinuxEnvironmentPath.cs b/src/Cli/dotnet/ShellShim/LinuxEnvironmentPath.cs index 8984179da1aa..2e7a750c016e 100644 --- a/src/Cli/dotnet/ShellShim/LinuxEnvironmentPath.cs +++ b/src/Cli/dotnet/ShellShim/LinuxEnvironmentPath.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ShellShim/OsxBashEnvironmentPath.cs b/src/Cli/dotnet/ShellShim/OsxBashEnvironmentPath.cs index 88dd0da0336f..5c1d73b42f42 100644 --- a/src/Cli/dotnet/ShellShim/OsxBashEnvironmentPath.cs +++ b/src/Cli/dotnet/ShellShim/OsxBashEnvironmentPath.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ShellShim/OsxZshEnvironmentPathInstruction.cs b/src/Cli/dotnet/ShellShim/OsxZshEnvironmentPathInstruction.cs index 8fb83fcd6319..c8aea473f8c0 100644 --- a/src/Cli/dotnet/ShellShim/OsxZshEnvironmentPathInstruction.cs +++ b/src/Cli/dotnet/ShellShim/OsxZshEnvironmentPathInstruction.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/ShellShim/ShellShimException.cs b/src/Cli/dotnet/ShellShim/ShellShimException.cs index 9ddc63205846..f384171b2ab0 100644 --- a/src/Cli/dotnet/ShellShim/ShellShimException.cs +++ b/src/Cli/dotnet/ShellShim/ShellShimException.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.ShellShim; internal class ShellShimException : Exception diff --git a/src/Cli/dotnet/ShellShim/ShellShimRepository.cs b/src/Cli/dotnet/ShellShim/ShellShimRepository.cs index cbb9d2c654eb..51b0fb60d56b 100644 --- a/src/Cli/dotnet/ShellShim/ShellShimRepository.cs +++ b/src/Cli/dotnet/ShellShim/ShellShimRepository.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ShellShim/ShellShimRepositoryFactory.cs b/src/Cli/dotnet/ShellShim/ShellShimRepositoryFactory.cs index 6c199acb7d03..cc6c43b7bcbb 100644 --- a/src/Cli/dotnet/ShellShim/ShellShimRepositoryFactory.cs +++ b/src/Cli/dotnet/ShellShim/ShellShimRepositoryFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Configurer; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ShellShim/ShellShimTemplateFinder.cs b/src/Cli/dotnet/ShellShim/ShellShimTemplateFinder.cs index 326d625abe5e..935f9e59098b 100644 --- a/src/Cli/dotnet/ShellShim/ShellShimTemplateFinder.cs +++ b/src/Cli/dotnet/ShellShim/ShellShimTemplateFinder.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/ShellShim/WindowsEnvironmentPath.cs b/src/Cli/dotnet/ShellShim/WindowsEnvironmentPath.cs index 00d5999ed972..34b4c7ab340e 100644 --- a/src/Cli/dotnet/ShellShim/WindowsEnvironmentPath.cs +++ b/src/Cli/dotnet/ShellShim/WindowsEnvironmentPath.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; diff --git a/src/Cli/dotnet/ShellShim/ZshDetector.cs b/src/Cli/dotnet/ShellShim/ZshDetector.cs index 48ed925acaf8..ea65d2dd3be2 100644 --- a/src/Cli/dotnet/ShellShim/ZshDetector.cs +++ b/src/Cli/dotnet/ShellShim/ZshDetector.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.ShellShim; diff --git a/src/Cli/dotnet/SlnFileFactory.cs b/src/Cli/dotnet/SlnFileFactory.cs index df75d138a99d..788752df3cff 100644 --- a/src/Cli/dotnet/SlnFileFactory.cs +++ b/src/Cli/dotnet/SlnFileFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System; using System.Text.Json; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/StatInterop.cs b/src/Cli/dotnet/StatInterop.cs index 608cf631d7c9..c95d52362764 100644 --- a/src/Cli/dotnet/StatInterop.cs +++ b/src/Cli/dotnet/StatInterop.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli; // https://github.com/dotnet/runtime/blob/main/src/libraries/Common/src/Interop/Unix/System.Native/Interop.Stat.cs diff --git a/src/Cli/dotnet/SudoEnvironmentDirectoryOverride.cs b/src/Cli/dotnet/SudoEnvironmentDirectoryOverride.cs index 618c7181d6d6..63806a620830 100644 --- a/src/Cli/dotnet/SudoEnvironmentDirectoryOverride.cs +++ b/src/Cli/dotnet/SudoEnvironmentDirectoryOverride.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Commands.Workload; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Telemetry/AllowListToSendFirstAppliedOptions.cs b/src/Cli/dotnet/Telemetry/AllowListToSendFirstAppliedOptions.cs index 772e19c9ee2d..abe2058763ff 100644 --- a/src/Cli/dotnet/Telemetry/AllowListToSendFirstAppliedOptions.cs +++ b/src/Cli/dotnet/Telemetry/AllowListToSendFirstAppliedOptions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Extensions; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Telemetry/AllowListToSendFirstArgument.cs b/src/Cli/dotnet/Telemetry/AllowListToSendFirstArgument.cs index eb513a5859de..0b303a14bcd7 100644 --- a/src/Cli/dotnet/Telemetry/AllowListToSendFirstArgument.cs +++ b/src/Cli/dotnet/Telemetry/AllowListToSendFirstArgument.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.CommandLine.Parsing; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Telemetry/AllowListToSendVerbSecondVerbFirstArgument.cs b/src/Cli/dotnet/Telemetry/AllowListToSendVerbSecondVerbFirstArgument.cs index 61f871b5780c..44eff7eb5707 100644 --- a/src/Cli/dotnet/Telemetry/AllowListToSendVerbSecondVerbFirstArgument.cs +++ b/src/Cli/dotnet/Telemetry/AllowListToSendVerbSecondVerbFirstArgument.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.CommandLine.Parsing; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/Telemetry/CIEnvironmentDetectorForTelemetry.cs b/src/Cli/dotnet/Telemetry/CIEnvironmentDetectorForTelemetry.cs index c91f8b1e8574..4281480cedaa 100644 --- a/src/Cli/dotnet/Telemetry/CIEnvironmentDetectorForTelemetry.cs +++ b/src/Cli/dotnet/Telemetry/CIEnvironmentDetectorForTelemetry.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Telemetry; internal class CIEnvironmentDetectorForTelemetry : ICIEnvironmentDetector diff --git a/src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs b/src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs index e18c0d245caa..015af6723629 100644 --- a/src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs +++ b/src/Cli/dotnet/Telemetry/DevDeviceIDGetter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Win32; namespace Microsoft.DotNet.Cli.Telemetry; diff --git a/src/Cli/dotnet/Telemetry/DockerContainerDetectorForTelemetry.cs b/src/Cli/dotnet/Telemetry/DockerContainerDetectorForTelemetry.cs index d958f1e1570a..56bfdc2bcb2c 100644 --- a/src/Cli/dotnet/Telemetry/DockerContainerDetectorForTelemetry.cs +++ b/src/Cli/dotnet/Telemetry/DockerContainerDetectorForTelemetry.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Security; using Microsoft.Win32; diff --git a/src/Cli/dotnet/Telemetry/ExternalTelemetryProperties.cs b/src/Cli/dotnet/Telemetry/ExternalTelemetryProperties.cs index f6720b76a361..a333f4127416 100644 --- a/src/Cli/dotnet/Telemetry/ExternalTelemetryProperties.cs +++ b/src/Cli/dotnet/Telemetry/ExternalTelemetryProperties.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using System.Globalization; using System.Security; diff --git a/src/Cli/dotnet/Telemetry/ICIEnvironmentDetector.cs b/src/Cli/dotnet/Telemetry/ICIEnvironmentDetector.cs index a9e7808c5095..d65c4c87feeb 100644 --- a/src/Cli/dotnet/Telemetry/ICIEnvironmentDetector.cs +++ b/src/Cli/dotnet/Telemetry/ICIEnvironmentDetector.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Telemetry; internal interface ICIEnvironmentDetector diff --git a/src/Cli/dotnet/Telemetry/IDockerContainerDetector.cs b/src/Cli/dotnet/Telemetry/IDockerContainerDetector.cs index 3680db06c11a..2d12d73c2d5c 100644 --- a/src/Cli/dotnet/Telemetry/IDockerContainerDetector.cs +++ b/src/Cli/dotnet/Telemetry/IDockerContainerDetector.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Telemetry; internal interface IDockerContainerDetector diff --git a/src/Cli/dotnet/Telemetry/IParseResultLogRule.cs b/src/Cli/dotnet/Telemetry/IParseResultLogRule.cs index b18c5c61603d..6384f7dbd59a 100644 --- a/src/Cli/dotnet/Telemetry/IParseResultLogRule.cs +++ b/src/Cli/dotnet/Telemetry/IParseResultLogRule.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Telemetry/ITelemetry.cs b/src/Cli/dotnet/Telemetry/ITelemetry.cs index 3eb127621ff7..b8ee7c98e118 100644 --- a/src/Cli/dotnet/Telemetry/ITelemetry.cs +++ b/src/Cli/dotnet/Telemetry/ITelemetry.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Telemetry; public interface ITelemetry diff --git a/src/Cli/dotnet/Telemetry/MacAddressGetter.cs b/src/Cli/dotnet/Telemetry/MacAddressGetter.cs index 9da200eb6d9a..8ff200eb87a7 100644 --- a/src/Cli/dotnet/Telemetry/MacAddressGetter.cs +++ b/src/Cli/dotnet/Telemetry/MacAddressGetter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.ComponentModel; using System.Diagnostics; using System.Net.NetworkInformation; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/BaseStorageService.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/BaseStorageService.cs index c111e5e3343c..2966dfc205a8 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/BaseStorageService.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/BaseStorageService.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.ApplicationInsights.Channel; namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/FixedSizeQueue.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/FixedSizeQueue.cs index 6d69a274492e..4a80be224e9c 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/FixedSizeQueue.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/FixedSizeQueue.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel; /// diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/FlushManager.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/FlushManager.cs index 22d312c7d222..8d14b740cca0 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/FlushManager.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/FlushManager.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.ApplicationInsights.Channel; using Microsoft.ApplicationInsights.Extensibility.Implementation; using IChannelTelemetry = Microsoft.ApplicationInsights.Channel.ITelemetry; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannel.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannel.cs index 3282ca47c643..69affdc523a8 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannel.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannel.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.ApplicationInsights.Channel; using IChannelTelemetry = Microsoft.ApplicationInsights.Channel.ITelemetry; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannelDebugLog.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannelDebugLog.cs index ca1670e3bed2..ff695b79e6c3 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannelDebugLog.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannelDebugLog.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Globalization; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceTransmitter.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceTransmitter.cs index 932d99862a40..0cede405eb04 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceTransmitter.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceTransmitter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel; /// diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/Sender.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/Sender.cs index d4b5642d3d99..6e0f7ceceaa9 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/Sender.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/Sender.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Net; using System.Net.NetworkInformation; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingCollection.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingCollection.cs index fa56b9214c28..3e98a0d598a8 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingCollection.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingCollection.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Collections; using System.Diagnostics; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingDictionary.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingDictionary.cs index 41f1e3bd7b7a..cc6cc51a1f57 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingDictionary.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingDictionary.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel; internal class SnapshottingDictionary : diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageService.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageService.cs index 26d301806b3f..dc44a0bf3cbb 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageService.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageService.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Globalization; using Microsoft.ApplicationInsights.Channel; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageTransmission.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageTransmission.cs index 6b2324188f05..69b6132f1b9f 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageTransmission.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageTransmission.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Globalization; using Microsoft.ApplicationInsights.Channel; diff --git a/src/Cli/dotnet/Telemetry/Telemetry.cs b/src/Cli/dotnet/Telemetry/Telemetry.cs index 3087bc4b0d0e..28851da921b1 100644 --- a/src/Cli/dotnet/Telemetry/Telemetry.cs +++ b/src/Cli/dotnet/Telemetry/Telemetry.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using Microsoft.ApplicationInsights; using Microsoft.ApplicationInsights.Extensibility; diff --git a/src/Cli/dotnet/Telemetry/TelemetryCommonProperties.cs b/src/Cli/dotnet/Telemetry/TelemetryCommonProperties.cs index b40e6dc8ff3c..88b2c2152100 100644 --- a/src/Cli/dotnet/Telemetry/TelemetryCommonProperties.cs +++ b/src/Cli/dotnet/Telemetry/TelemetryCommonProperties.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using RuntimeEnvironment = Microsoft.DotNet.Cli.Utils.RuntimeEnvironment; diff --git a/src/Cli/dotnet/Telemetry/TelemetryFilter.cs b/src/Cli/dotnet/Telemetry/TelemetryFilter.cs index 3aba115d9206..8b60c98218f7 100644 --- a/src/Cli/dotnet/Telemetry/TelemetryFilter.cs +++ b/src/Cli/dotnet/Telemetry/TelemetryFilter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.Globalization; using Microsoft.DotNet.Cli.Commands.Build; diff --git a/src/Cli/dotnet/Telemetry/TopLevelCommandNameAndOptionToLog.cs b/src/Cli/dotnet/Telemetry/TopLevelCommandNameAndOptionToLog.cs index 310bf4536cd9..38ed7114f297 100644 --- a/src/Cli/dotnet/Telemetry/TopLevelCommandNameAndOptionToLog.cs +++ b/src/Cli/dotnet/Telemetry/TopLevelCommandNameAndOptionToLog.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.CommandLine; using System.CommandLine.Parsing; using Microsoft.DotNet.Cli.Extensions; diff --git a/src/Cli/dotnet/ToolManifest/IToolManifestEditor.cs b/src/Cli/dotnet/ToolManifest/IToolManifestEditor.cs index 4f26717dbb06..9c6f14290830 100644 --- a/src/Cli/dotnet/ToolManifest/IToolManifestEditor.cs +++ b/src/Cli/dotnet/ToolManifest/IToolManifestEditor.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolManifest/IToolManifestFinder.cs b/src/Cli/dotnet/ToolManifest/IToolManifestFinder.cs index f2bf8cb648fe..fd15e6d9bbb6 100644 --- a/src/Cli/dotnet/ToolManifest/IToolManifestFinder.cs +++ b/src/Cli/dotnet/ToolManifest/IToolManifestFinder.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolManifest/IToolManifestInspector.cs b/src/Cli/dotnet/ToolManifest/IToolManifestInspector.cs index 94ea6914b0f9..a63c8f320ced 100644 --- a/src/Cli/dotnet/ToolManifest/IToolManifestInspector.cs +++ b/src/Cli/dotnet/ToolManifest/IToolManifestInspector.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.Cli.ToolManifest; diff --git a/src/Cli/dotnet/ToolManifest/JsonElementExtension.cs b/src/Cli/dotnet/ToolManifest/JsonElementExtension.cs index 2ccadf7ce67e..0990a794598d 100644 --- a/src/Cli/dotnet/ToolManifest/JsonElementExtension.cs +++ b/src/Cli/dotnet/ToolManifest/JsonElementExtension.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.Json; namespace Microsoft.DotNet.Cli.ToolManifest; diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestCannotBeFoundException.cs b/src/Cli/dotnet/ToolManifest/ToolManifestCannotBeFoundException.cs index 06c8a595bded..e9f4d62b921a 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestCannotBeFoundException.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestCannotBeFoundException.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.ToolManifest; diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestEditor.cs b/src/Cli/dotnet/ToolManifest/ToolManifestEditor.cs index 07a3e0196fa0..e64ae786ef03 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestEditor.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestEditor.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Buffers; using System.Text.Json; using Microsoft.DotNet.Cli.ToolPackage; diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestException.cs b/src/Cli/dotnet/ToolManifest/ToolManifestException.cs index 901cd9cf5ced..cfca085597d5 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestException.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestException.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.ToolManifest; diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestFinder.cs b/src/Cli/dotnet/ToolManifest/ToolManifestFinder.cs index 5c430a966893..d7889b0a4532 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestFinder.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestFinder.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestPackage.cs b/src/Cli/dotnet/ToolManifest/ToolManifestPackage.cs index 95ad82ce946b..c998dd263062 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestPackage.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestPackage.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolPackage/ILocalToolsResolverCache.cs b/src/Cli/dotnet/ToolPackage/ILocalToolsResolverCache.cs index d54829bf0b47..4ad7ad3bc2af 100644 --- a/src/Cli/dotnet/ToolPackage/ILocalToolsResolverCache.cs +++ b/src/Cli/dotnet/ToolPackage/ILocalToolsResolverCache.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.ToolPackage; internal interface ILocalToolsResolverCache diff --git a/src/Cli/dotnet/ToolPackage/IProjectRestorer.cs b/src/Cli/dotnet/ToolPackage/IProjectRestorer.cs index 4c274c85ed9b..757d234ae47d 100644 --- a/src/Cli/dotnet/ToolPackage/IProjectRestorer.cs +++ b/src/Cli/dotnet/ToolPackage/IProjectRestorer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.Cli.ToolPackage; diff --git a/src/Cli/dotnet/ToolPackage/IToolPackage.cs b/src/Cli/dotnet/ToolPackage/IToolPackage.cs index f02fc4a18322..bc6606377c3e 100644 --- a/src/Cli/dotnet/ToolPackage/IToolPackage.cs +++ b/src/Cli/dotnet/ToolPackage/IToolPackage.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Frameworks; using NuGet.Versioning; diff --git a/src/Cli/dotnet/ToolPackage/IToolPackageDownloader.cs b/src/Cli/dotnet/ToolPackage/IToolPackageDownloader.cs index b7722fe9f2ff..767fc2f2e86f 100644 --- a/src/Cli/dotnet/ToolPackage/IToolPackageDownloader.cs +++ b/src/Cli/dotnet/ToolPackage/IToolPackageDownloader.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.NuGetPackageDownloader; using NuGet.Versioning; diff --git a/src/Cli/dotnet/ToolPackage/IToolPackageStore.cs b/src/Cli/dotnet/ToolPackage/IToolPackageStore.cs index e9853d46eec1..899f5912af2c 100644 --- a/src/Cli/dotnet/ToolPackage/IToolPackageStore.cs +++ b/src/Cli/dotnet/ToolPackage/IToolPackageStore.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; diff --git a/src/Cli/dotnet/ToolPackage/IToolPackageStoreQuery.cs b/src/Cli/dotnet/ToolPackage/IToolPackageStoreQuery.cs index efc0a3720b5b..32c124e6b819 100644 --- a/src/Cli/dotnet/ToolPackage/IToolPackageStoreQuery.cs +++ b/src/Cli/dotnet/ToolPackage/IToolPackageStoreQuery.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Versioning; namespace Microsoft.DotNet.Cli.ToolPackage; diff --git a/src/Cli/dotnet/ToolPackage/IToolPackageUninstaller.cs b/src/Cli/dotnet/ToolPackage/IToolPackageUninstaller.cs index 88add17b8aaf..5d0606707948 100644 --- a/src/Cli/dotnet/ToolPackage/IToolPackageUninstaller.cs +++ b/src/Cli/dotnet/ToolPackage/IToolPackageUninstaller.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.Cli.ToolPackage; diff --git a/src/Cli/dotnet/ToolPackage/LocalToolsResolverCache.cs b/src/Cli/dotnet/ToolPackage/LocalToolsResolverCache.cs index 6cd9e8623324..3e1919d03c87 100644 --- a/src/Cli/dotnet/ToolPackage/LocalToolsResolverCache.cs +++ b/src/Cli/dotnet/ToolPackage/LocalToolsResolverCache.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.Json; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/ToolPackage/LockFileMatchChecker.cs b/src/Cli/dotnet/ToolPackage/LockFileMatchChecker.cs index d4827152da6f..bb40a39c4b47 100644 --- a/src/Cli/dotnet/ToolPackage/LockFileMatchChecker.cs +++ b/src/Cli/dotnet/ToolPackage/LockFileMatchChecker.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.ProjectModel; namespace Microsoft.DotNet.Cli.ToolPackage; diff --git a/src/Cli/dotnet/ToolPackage/PackageId.cs b/src/Cli/dotnet/ToolPackage/PackageId.cs index 5cbfd565b2f2..1c2e95d74073 100644 --- a/src/Cli/dotnet/ToolPackage/PackageId.cs +++ b/src/Cli/dotnet/ToolPackage/PackageId.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.ToolPackage; internal struct PackageId(string id) : IEquatable, IComparable diff --git a/src/Cli/dotnet/ToolPackage/PackageLocation.cs b/src/Cli/dotnet/ToolPackage/PackageLocation.cs index 27a71c05f318..b102097a1c2d 100644 --- a/src/Cli/dotnet/ToolPackage/PackageLocation.cs +++ b/src/Cli/dotnet/ToolPackage/PackageLocation.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.Cli.ToolPackage; diff --git a/src/Cli/dotnet/ToolPackage/ResolverCacheInconsistentException.cs b/src/Cli/dotnet/ToolPackage/ResolverCacheInconsistentException.cs index d1d67a731847..3b80b156f9e3 100644 --- a/src/Cli/dotnet/ToolPackage/ResolverCacheInconsistentException.cs +++ b/src/Cli/dotnet/ToolPackage/ResolverCacheInconsistentException.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.ToolPackage; internal class ResolverCacheInconsistentException(string message) : Exception(message) diff --git a/src/Cli/dotnet/ToolPackage/RestoredCommand.cs b/src/Cli/dotnet/ToolPackage/RestoredCommand.cs index deeb50ab7dd4..319d0b6c2e7b 100644 --- a/src/Cli/dotnet/ToolPackage/RestoredCommand.cs +++ b/src/Cli/dotnet/ToolPackage/RestoredCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifier.cs b/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifier.cs index 7005942cd7a4..1b562ec95a4b 100644 --- a/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifier.cs +++ b/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifier.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; using NuGet.Versioning; diff --git a/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifierVersionRange.cs b/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifierVersionRange.cs index 9b001096c6bc..f6ab17803306 100644 --- a/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifierVersionRange.cs +++ b/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifierVersionRange.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; using NuGet.Versioning; diff --git a/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs b/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs index b23c173b105e..d903868bae1b 100644 --- a/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs +++ b/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.ToolPackage; internal class ToolConfiguration diff --git a/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserialization/DotNetCliTool.cs b/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserialization/DotNetCliTool.cs index f87d0fc13106..e67807f9485c 100644 --- a/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserialization/DotNetCliTool.cs +++ b/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserialization/DotNetCliTool.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using System.Xml.Serialization; diff --git a/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserialization/DotNetCliToolCommand.cs b/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserialization/DotNetCliToolCommand.cs index 80aa2f25f4c6..2c872bdda0e4 100644 --- a/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserialization/DotNetCliToolCommand.cs +++ b/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserialization/DotNetCliToolCommand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using System.Xml.Serialization; diff --git a/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserializer.cs b/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserializer.cs index 8750465a1ce4..ac29602f963a 100644 --- a/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserializer.cs +++ b/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserializer.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Xml; using System.Xml.Serialization; using Microsoft.DotNet.Cli.ToolPackage.ToolConfigurationDeserialization; diff --git a/src/Cli/dotnet/ToolPackage/ToolConfigurationException.cs b/src/Cli/dotnet/ToolPackage/ToolConfigurationException.cs index 87854d32aee5..fa1bfe116997 100644 --- a/src/Cli/dotnet/ToolPackage/ToolConfigurationException.cs +++ b/src/Cli/dotnet/ToolPackage/ToolConfigurationException.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.ToolPackage; internal class ToolConfigurationException : Exception diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageDownloader.cs b/src/Cli/dotnet/ToolPackage/ToolPackageDownloader.cs index 9b1b244486c8..0b50a69f48d1 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageDownloader.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageDownloader.cs @@ -1,6 +1,8 @@ // Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + using System.Reflection; using Microsoft.DotNet.Cli.Extensions; using Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageException.cs b/src/Cli/dotnet/ToolPackage/ToolPackageException.cs index f211fe46e74b..0caa3acbefb0 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageException.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageException.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.ToolPackage; diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageFactory.cs b/src/Cli/dotnet/ToolPackage/ToolPackageFactory.cs index 3edc652857f8..7cc0a63af369 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageFactory.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageFactory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Configurer; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageInstance.cs b/src/Cli/dotnet/ToolPackage/ToolPackageInstance.cs index a294e4993cf0..cb380e9fae9e 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageInstance.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageInstance.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageStoreAndQuery.cs b/src/Cli/dotnet/ToolPackage/ToolPackageStoreAndQuery.cs index a66b6f3294ed..9c9dcec5d8dc 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageStoreAndQuery.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageStoreAndQuery.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageUninstaller.cs b/src/Cli/dotnet/ToolPackage/ToolPackageUninstaller.cs index f2764f480b86..cff98a53ef41 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageUninstaller.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageUninstaller.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.ToolPackage; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/TopLevelCommandParserResult.cs b/src/Cli/dotnet/TopLevelCommandParserResult.cs index 077829d99960..10a1d8c7291d 100644 --- a/src/Cli/dotnet/TopLevelCommandParserResult.cs +++ b/src/Cli/dotnet/TopLevelCommandParserResult.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli; internal class TopLevelCommandParserResult(string command) diff --git a/src/Cli/dotnet/TransactionalAction.cs b/src/Cli/dotnet/TransactionalAction.cs index 0ffc644a4ddb..df7c0118185b 100644 --- a/src/Cli/dotnet/TransactionalAction.cs +++ b/src/Cli/dotnet/TransactionalAction.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Reflection; using System.Transactions; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/dotnet.csproj b/src/Cli/dotnet/dotnet.csproj index 7962031b83bc..f6b9b0a7015d 100644 --- a/src/Cli/dotnet/dotnet.csproj +++ b/src/Cli/dotnet/dotnet.csproj @@ -15,7 +15,6 @@ false true true - annotations $(NoWarn);CS8002 diff --git a/src/Layout/finalizer/finalizer.csproj b/src/Layout/finalizer/finalizer.csproj index 898182807d7b..a7f2c773b25b 100644 --- a/src/Layout/finalizer/finalizer.csproj +++ b/src/Layout/finalizer/finalizer.csproj @@ -3,7 +3,6 @@ $(SdkTargetFramework)-windows WinExe - enable true Guard true diff --git a/src/Microsoft.Net.Sdk.AnalyzerRedirecting/Microsoft.Net.Sdk.AnalyzerRedirecting.csproj b/src/Microsoft.Net.Sdk.AnalyzerRedirecting/Microsoft.Net.Sdk.AnalyzerRedirecting.csproj index 3a584e6516f5..de5612b1c470 100644 --- a/src/Microsoft.Net.Sdk.AnalyzerRedirecting/Microsoft.Net.Sdk.AnalyzerRedirecting.csproj +++ b/src/Microsoft.Net.Sdk.AnalyzerRedirecting/Microsoft.Net.Sdk.AnalyzerRedirecting.csproj @@ -4,8 +4,6 @@ net472 - enable - false true diff --git a/src/System.CommandLine.StaticCompletions/System.CommandLine.StaticCompletions.csproj b/src/System.CommandLine.StaticCompletions/System.CommandLine.StaticCompletions.csproj index 728d9f559ea6..e3e375ae41a5 100644 --- a/src/System.CommandLine.StaticCompletions/System.CommandLine.StaticCompletions.csproj +++ b/src/System.CommandLine.StaticCompletions/System.CommandLine.StaticCompletions.csproj @@ -2,7 +2,6 @@ $(SdkTargetFramework) enable - enable true diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/AllowEmptyTelemetry.cs b/src/Tasks/Microsoft.NET.Build.Tasks/AllowEmptyTelemetry.cs index aa57197335c4..1991272b7f17 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/AllowEmptyTelemetry.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/AllowEmptyTelemetry.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.NET.Build.Tasks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ApplyImplicitVersions.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ApplyImplicitVersions.cs index a91aecde22cd..e0abed4a5099 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ApplyImplicitVersions.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ApplyImplicitVersions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/AssetsFileResolver.cs b/src/Tasks/Microsoft.NET.Build.Tasks/AssetsFileResolver.cs index b1f44e5175a1..2c27f49b2f1a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/AssetsFileResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/AssetsFileResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Packaging.Core; using NuGet.ProjectModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateFrameworkReferences.cs index 17c04ce0a6e8..95ff6cbec6a1 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateFrameworkReferences.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItemMetadata.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItemMetadata.cs index fc49d3f2e9d3..dcbc02eac8ee 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItemMetadata.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItemMetadata.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItems.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItems.cs index adff515f0a02..7e1280584441 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItems.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItems.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Globalization; using Microsoft.Build.Framework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForImplicitPackageReferenceOverrides.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForImplicitPackageReferenceOverrides.cs index 14502c0cccfe..3827ad7f4461 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForImplicitPackageReferenceOverrides.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForImplicitPackageReferenceOverrides.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForTargetInAssetsFile.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForTargetInAssetsFile.cs index 7784c8e91034..6b79e96caae5 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForTargetInAssetsFile.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForTargetInAssetsFile.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using NuGet.ProjectModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForUnsupportedWinMDReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForUnsupportedWinMDReferences.cs index fa519a6cc157..044a6e3e029b 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForUnsupportedWinMDReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForUnsupportedWinMDReferences.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Reflection.Metadata; using System.Reflection.PortableExecutable; using Microsoft.Build.Framework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckIfPackageReferenceShouldBeFrameworkReference.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckIfPackageReferenceShouldBeFrameworkReference.cs index cdd1da022133..88188236f55b 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckIfPackageReferenceShouldBeFrameworkReference.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckIfPackageReferenceShouldBeFrameworkReference.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CollatePackageDownloads.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CollatePackageDownloads.cs index 1bb7cd714cc4..e7cfea187193 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CollatePackageDownloads.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CollatePackageDownloads.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CollectSDKReferencesDesignTime.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CollectSDKReferencesDesignTime.cs index ef7d9fb87b8d..297d73cd44ec 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CollectSDKReferencesDesignTime.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CollectSDKReferencesDesignTime.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CompilationOptionsConverter.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CompilationOptionsConverter.cs index a94a98d346f0..27580bca6a53 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CompilationOptionsConverter.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CompilationOptionsConverter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Extensions.DependencyModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CreateAppHost.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CreateAppHost.cs index 0b25a6f40c72..76cd175f1cd1 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CreateAppHost.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CreateAppHost.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.NET.HostModel; using Microsoft.NET.HostModel.AppHost; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CreateComHost.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CreateComHost.cs index c03c7cfa4e44..acab7f5a6800 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CreateComHost.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CreateComHost.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.NET.HostModel.ComHost; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs index 23456ec4e648..17138555aed9 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs b/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs index b50b6935d8ed..afe5c207085e 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using Microsoft.Build.Framework; using Microsoft.Extensions.DependencyModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/DependencyType.cs b/src/Tasks/Microsoft.NET.Build.Tasks/DependencyType.cs index 61987a568381..e70e892b2641 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/DependencyType.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/DependencyType.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.NET.Build.Tasks { internal enum DependencyType diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ExecutableExtension.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ExecutableExtension.cs index 905a00b8fddd..7102df8831c7 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ExecutableExtension.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ExecutableExtension.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.NET.Build.Tasks { public sealed class ExecutableExtension diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FileGroup.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FileGroup.cs index e2577c21d780..3d34f6dea2e1 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FileGroup.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FileGroup.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.ProjectModel; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FilterResolvedFiles.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FilterResolvedFiles.cs index 6795fdc3a5bd..a58f1e59c578 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FilterResolvedFiles.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FilterResolvedFiles.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Packaging.Core; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FindItemsFromPackages.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FindItemsFromPackages.cs index bd1b9684fa53..08f2712b2abe 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FindItemsFromPackages.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FindItemsFromPackages.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using NuGet.Packaging.Core; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.cs index 051b885a847f..63bdcd3a6659 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using System; using System.Collections; using System.Collections.Concurrent; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net461.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net461.cs index 0d9214e5f70e..ef21b16323f2 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net461.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net461.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using static global::NuGet.Frameworks.FrameworkConstants.CommonFrameworks; /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net5.0.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net5.0.cs index 6b7a63e0a5de..aa5009d1462a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net5.0.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net5.0.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using static global::NuGet.Frameworks.FrameworkConstants.CommonFrameworks; /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net6.0.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net6.0.cs index dde6aa76815f..3a8fb09a8999 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net6.0.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net6.0.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using static global::NuGet.Frameworks.FrameworkConstants.CommonFrameworks; /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net7.0.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net7.0.cs index 4e8d49af3f8e..7be9d589fd22 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net7.0.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net7.0.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using static global::NuGet.Frameworks.FrameworkConstants.CommonFrameworks; /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net8.0.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net8.0.cs index f329bcdf7aac..809b9fd02fd4 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net8.0.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net8.0.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using static global::NuGet.Frameworks.FrameworkConstants.CommonFrameworks; /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net9.0.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net9.0.cs index a8e88a5526cc..6eb5cc3c843d 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net9.0.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.net9.0.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using System; using global::NuGet.Frameworks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp2.0.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp2.0.cs index 69272e1ad888..2a73a8788d01 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp2.0.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp2.0.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using static global::NuGet.Frameworks.FrameworkConstants.CommonFrameworks; /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp2.1.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp2.1.cs index a046281fb09e..8de6482b456b 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp2.1.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp2.1.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using static global::NuGet.Frameworks.FrameworkConstants.CommonFrameworks; /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp2.2.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp2.2.cs index a3a28741fe16..3fbfc0ae8f0c 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp2.2.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp2.2.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using static global::NuGet.Frameworks.FrameworkConstants.CommonFrameworks; /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp3.0.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp3.0.cs index 079a9a0cd678..581135a392db 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp3.0.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp3.0.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using static global::NuGet.Frameworks.FrameworkConstants.CommonFrameworks; /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp3.1.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp3.1.cs index ce3338d80a5b..38e20c6df52e 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp3.1.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netcoreapp3.1.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using static global::NuGet.Frameworks.FrameworkConstants.CommonFrameworks; /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netstandard2.0.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netstandard2.0.cs index 66c9bdd64cdf..f9ab0f22bd52 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netstandard2.0.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netstandard2.0.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using static global::NuGet.Frameworks.FrameworkConstants.CommonFrameworks; /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netstandard2.1.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netstandard2.1.cs index 5b6aeb282854..e0931876bb5f 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netstandard2.1.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkPackages/FrameworkPackages.netstandard2.1.cs @@ -1,5 +1,7 @@ namespace Microsoft.ComponentDetection.Detectors.NuGet; +#nullable disable + using static global::NuGet.Frameworks.FrameworkConstants.CommonFrameworks; /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkReferenceResolver.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkReferenceResolver.cs index 81b0601acc33..c1486460ec37 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkReferenceResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkReferenceResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Extensions.DependencyModel.Resolution; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateBundle.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateBundle.cs index 9aff7c5bc8b2..767409d10998 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateBundle.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateBundle.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.NET.HostModel.Bundle; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateClsidMap.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateClsidMap.cs index df4e2e0239b3..0ed667599e4d 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateClsidMap.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateClsidMap.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Reflection.Metadata; using System.Reflection.PortableExecutable; using Microsoft.Build.Framework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs index 816b94b2b580..1fe61c8b33ef 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.Extensions.DependencyModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateGlobalUsings.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateGlobalUsings.cs index efd9b661ad65..92fef152db3d 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateGlobalUsings.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateGlobalUsings.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRegFreeComManifest.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRegFreeComManifest.cs index 5ff79c2950fa..83736b888e11 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRegFreeComManifest.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRegFreeComManifest.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.NET.HostModel.ComHost; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRuntimeConfigurationFiles.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRuntimeConfigurationFiles.cs index d1d83c5dc048..d7eaad9c6fdb 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRuntimeConfigurationFiles.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRuntimeConfigurationFiles.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Newtonsoft.Json; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateShims.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateShims.cs index e16d5e3a9ef9..b3e9b8ba6a07 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateShims.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateShims.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.NET.HostModel.AppHost; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateSupportedTargetFrameworkAlias.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateSupportedTargetFrameworkAlias.cs index 079a1f19250b..fe6796de6dfd 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateSupportedTargetFrameworkAlias.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateSupportedTargetFrameworkAlias.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Frameworks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs index 984d372c512f..5611ed14af98 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyAttributes.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyAttributes.cs index e63fc1667e23..cfd0da7481e4 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyAttributes.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyAttributes.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyVersion.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyVersion.cs index 680cda9b27ff..99078b47d7e2 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyVersion.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyVersion.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Newtonsoft.Json; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetDefaultPlatformTargetForNetFramework.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetDefaultPlatformTargetForNetFramework.cs index b99ed022d14b..9e4323bae101 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetDefaultPlatformTargetForNetFramework.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetDefaultPlatformTargetForNetFramework.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetEmbeddedApphostPaths.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetEmbeddedApphostPaths.cs index aa272e4e8779..21575c63b3ec 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetEmbeddedApphostPaths.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetEmbeddedApphostPaths.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetNuGetShortFolderName.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetNuGetShortFolderName.cs index 4e769d066f1f..caf435aad157 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetNuGetShortFolderName.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetNuGetShortFolderName.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using NuGet.Frameworks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetPackageDirectory.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetPackageDirectory.cs index 5879a966fd55..f430b0d93384 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetPackageDirectory.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetPackageDirectory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetPackagesToPrune.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetPackagesToPrune.cs index a3a4eadbb551..b8cac604ce16 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetPackagesToPrune.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetPackagesToPrune.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.ComponentDetection.Detectors.NuGet; @@ -210,7 +212,7 @@ static TaskItem[] LoadPackagesToPrune(CacheKey key, string[] targetingPackRoots, string version; if (key.TargetFrameworkIdentifier.Equals(".NETCoreApp", StringComparison.OrdinalIgnoreCase) && !p.Value.IsPrerelease) - { + { // If a given version of a package is included in a framework, assume that any patches // to that package will be included in patches to the framework, and thus should be pruned. // See https://github.com/dotnet/sdk/issues/44566 diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetPublishItemsOutputGroupOutputs.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetPublishItemsOutputGroupOutputs.cs index 4d89ba3f286d..3db7814a8cdf 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetPublishItemsOutputGroupOutputs.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetPublishItemsOutputGroupOutputs.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/IContentAssetPreprocessor.cs b/src/Tasks/Microsoft.NET.Build.Tasks/IContentAssetPreprocessor.cs index da8c0d456ed4..2bbed0d00697 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/IContentAssetPreprocessor.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/IContentAssetPreprocessor.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.NET.Build.Tasks { /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/IPackageResolver.cs b/src/Tasks/Microsoft.NET.Build.Tasks/IPackageResolver.cs index af7615894e30..f70f1cad6af9 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/IPackageResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/IPackageResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.ProjectModel; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ItemUtilities.NuGet.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ItemUtilities.NuGet.cs index 2587068cba45..d8d6da6b1f76 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ItemUtilities.NuGet.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ItemUtilities.NuGet.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using NuGet.Packaging.Core; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/JoinItems.cs b/src/Tasks/Microsoft.NET.Build.Tasks/JoinItems.cs index 692add813752..1a39ff02064f 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/JoinItems.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/JoinItems.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileCache.cs b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileCache.cs index 065f017f3fa5..ef4a9b1a0799 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileCache.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileCache.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using NuGet.Common; using NuGet.ProjectModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileExtensions.cs b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileExtensions.cs index c2a9a5ae833b..5c03457ffc3a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileExtensions.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileExtensions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using NuGet.Packaging.Core; using NuGet.ProjectModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileLookup.cs b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileLookup.cs index db399259b653..922de2acb9ea 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileLookup.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileLookup.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.LibraryModel; using NuGet.ProjectModel; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/Microsoft.NET.Build.Tasks.csproj b/src/Tasks/Microsoft.NET.Build.Tasks/Microsoft.NET.Build.Tasks.csproj index 3cd31699680b..1eb9602b1b25 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/Microsoft.NET.Build.Tasks.csproj +++ b/src/Tasks/Microsoft.NET.Build.Tasks/Microsoft.NET.Build.Tasks.csproj @@ -12,7 +12,6 @@ The MSBuild targets and properties for building .NET Core projects. Library $(SdkTargetFramework);net472 - annotations diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/NuGetPackageResolver.cs b/src/Tasks/Microsoft.NET.Build.Tasks/NuGetPackageResolver.cs index 9e3f02274b54..3fadddb6bf76 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/NuGetPackageResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/NuGetPackageResolver.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Packaging; using NuGet.ProjectModel; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/NuGetUtils.NuGet.cs b/src/Tasks/Microsoft.NET.Build.Tasks/NuGetUtils.NuGet.cs index ec1f2bab8392..9dfa2c1c9235 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/NuGetUtils.NuGet.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/NuGetUtils.NuGet.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Frameworks; using NuGet.RuntimeModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/NugetContentAssetPreprocessor.cs b/src/Tasks/Microsoft.NET.Build.Tasks/NugetContentAssetPreprocessor.cs index cc26492c2557..0d5db99a5ef9 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/NugetContentAssetPreprocessor.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/NugetContentAssetPreprocessor.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.IO.Hashing; using NuGet.Common; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/PackageReferenceConverter.cs b/src/Tasks/Microsoft.NET.Build.Tasks/PackageReferenceConverter.cs index d8049c937ac5..d9771b8e1a8e 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/PackageReferenceConverter.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/PackageReferenceConverter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ParseTargetManifests.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ParseTargetManifests.cs index e2bc202e1124..d36e67c5dddc 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ParseTargetManifests.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ParseTargetManifests.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Packaging.Core; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.cs b/src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.cs index 0f0dcf9edd02..51c7baf196f3 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Reflection; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs index 4308d64de964..d13a00100e2e 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.DotNet.Cli; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ProduceContentAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ProduceContentAssets.cs index 55b78b85600f..387b5e836c16 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ProduceContentAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ProduceContentAssets.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ProjectContext.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ProjectContext.cs index efa46295cdf0..e805a15818bb 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ProjectContext.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ProjectContext.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using Microsoft.Build.Framework; using NuGet.Packaging.Core; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ReferenceInfo.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ReferenceInfo.cs index f6b23747b8d0..1e09b638dda0 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ReferenceInfo.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ReferenceInfo.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Reflection; using Microsoft.Build.Framework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RemoveDuplicatePackageReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RemoveDuplicatePackageReferences.cs index 6629ec5ed4eb..d4bf655e0397 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RemoveDuplicatePackageReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RemoveDuplicatePackageReferences.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Packaging.Core; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveAppHosts.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveAppHosts.cs index e5f99e31d2cf..ae5308daad31 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveAppHosts.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveAppHosts.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Frameworks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveCopyLocalAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveCopyLocalAssets.cs index 6a187438797a..2533f79e9bf8 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveCopyLocalAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveCopyLocalAssets.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Packaging.Core; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveFrameworkReferences.cs index 600e26cb7d16..24a23bd42bc3 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveFrameworkReferences.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageAssets.cs index e1e9fcf1b39d..c25623011ae3 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageAssets.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Diagnostics; using System.Security.Cryptography; using Microsoft.Build.Evaluation; @@ -943,12 +945,12 @@ private void WriteAnalyzers() /// "analyzers/dotnet/roslyn3.8/analyzer.dll" /// "analyzers/dotnet/roslyn4.0/analyzer.dll" /// - /// When the is 'roslyn3.9', only the assets + /// When the is 'roslyn3.9', only the assets /// in the folder with the highest applicable compiler version are picked. /// In this case, - /// + /// /// "analyzers/dotnet/roslyn3.8/analyzer.dll" - /// + /// /// will be picked, and the other analyzer assets will be excluded. /// private class AnalyzerResolver @@ -974,7 +976,7 @@ public AnalyzerResolver(CacheWriter cacheWriter) _compilerNameSearchString = string.Concat("/".AsSpan(), compilerName.Span); #else _compilerNameSearchString = "/" + compilerName; -#endif +#endif _compilerVersion = compilerVersion; } } diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageDependencies.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageDependencies.cs index f7c7d71f003f..bb02ba219335 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageDependencies.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageDependencies.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Frameworks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs index 4f2c34b8e54d..42605de23d9f 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs index 82bd3af81998..6e175381569b 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs index f3d6f9cd832b..f64fa18ee228 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveToolPackagePaths.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveToolPackagePaths.cs index ab1b61240450..cb89a467731a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveToolPackagePaths.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveToolPackagePaths.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Frameworks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvedFile.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvedFile.cs index e4a3031836c8..920961e9d885 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvedFile.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvedFile.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using NuGet.Packaging.Core; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResourceAssemblyInfo.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResourceAssemblyInfo.cs index e2cac2e13797..1f944720ef99 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResourceAssemblyInfo.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResourceAssemblyInfo.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RunReadyToRunCompiler.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RunReadyToRunCompiler.cs index d8b4692f187d..719ba431b613 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RunReadyToRunCompiler.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RunReadyToRunCompiler.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeConfig.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeConfig.cs index 5bd35b1f781b..e2350e0872c0 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeConfig.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeConfig.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.NET.Build.Tasks { internal class RuntimeConfig diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeConfigFramework.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeConfigFramework.cs index 4d521ba42042..db8498775660 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeConfigFramework.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeConfigFramework.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.NET.Build.Tasks { internal class RuntimeConfigFramework diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeGraphCache.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeGraphCache.cs index a254977f3599..6f366775c15d 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeGraphCache.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeGraphCache.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using NuGet.RuntimeModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeOptions.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeOptions.cs index 463cf94277bd..34c2a56c5b1d 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeOptions.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeOptions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Newtonsoft.Json; using Newtonsoft.Json.Linq; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimePackAssetInfo.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimePackAssetInfo.cs index cefc0a2d5be2..831dcd400f51 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimePackAssetInfo.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimePackAssetInfo.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/SetGeneratedAppConfigMetadata.cs b/src/Tasks/Microsoft.NET.Build.Tasks/SetGeneratedAppConfigMetadata.cs index 5a77fea1806f..2760c0909ba0 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/SetGeneratedAppConfigMetadata.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/SetGeneratedAppConfigMetadata.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ShowMissingWorkloads.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ShowMissingWorkloads.cs index 95f8c7449e89..a7ace891885b 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ShowMissingWorkloads.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ShowMissingWorkloads.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Globalization; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ShowPreviewMessage.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ShowPreviewMessage.cs index 237fee0c96be..a83fe3cc3e5a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ShowPreviewMessage.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ShowPreviewMessage.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/SingleProjectInfo.cs b/src/Tasks/Microsoft.NET.Build.Tasks/SingleProjectInfo.cs index 71e6fbc6a134..0b9b6185b3a0 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/SingleProjectInfo.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/SingleProjectInfo.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/StoreArtifactParser.cs b/src/Tasks/Microsoft.NET.Build.Tasks/StoreArtifactParser.cs index 82c667657643..0e7ee98e0c21 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/StoreArtifactParser.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/StoreArtifactParser.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Packaging.Core; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/TypeLibraryDictionaryBuilder.cs b/src/Tasks/Microsoft.NET.Build.Tasks/TypeLibraryDictionaryBuilder.cs index 9c2bd8a64bf3..8f40797ffa17 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/TypeLibraryDictionaryBuilder.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/TypeLibraryDictionaryBuilder.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs index e25db3da7548..76f8636dc5e0 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Runtime.Versioning; using Microsoft.Build.Framework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/WriteAppConfigWithSupportedRuntime.cs b/src/Tasks/Microsoft.NET.Build.Tasks/WriteAppConfigWithSupportedRuntime.cs index 105b69ec7f1a..a49c1e380e11 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/WriteAppConfigWithSupportedRuntime.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/WriteAppConfigWithSupportedRuntime.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/sdk-tasks/AddMetadataIsPE.cs b/src/Tasks/sdk-tasks/AddMetadataIsPE.cs index e02411c63ab4..8a5f9c7dfb9b 100644 --- a/src/Tasks/sdk-tasks/AddMetadataIsPE.cs +++ b/src/Tasks/sdk-tasks/AddMetadataIsPE.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Reflection.PortableExecutable; namespace Microsoft.DotNet.Build.Tasks diff --git a/src/Tasks/sdk-tasks/CalculateTemplateVersions.cs b/src/Tasks/sdk-tasks/CalculateTemplateVersions.cs index 5e6b63ba2529..9fb849a309b8 100644 --- a/src/Tasks/sdk-tasks/CalculateTemplateVersions.cs +++ b/src/Tasks/sdk-tasks/CalculateTemplateVersions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Versioning; namespace Microsoft.DotNet.Build.Tasks diff --git a/src/Tasks/sdk-tasks/ChangeEntryPointLibraryName.cs b/src/Tasks/sdk-tasks/ChangeEntryPointLibraryName.cs index 62bb3571c2bc..e8f4ae407674 100644 --- a/src/Tasks/sdk-tasks/ChangeEntryPointLibraryName.cs +++ b/src/Tasks/sdk-tasks/ChangeEntryPointLibraryName.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; namespace Microsoft.DotNet.Build.Tasks diff --git a/src/Tasks/sdk-tasks/Crossgen.cs b/src/Tasks/sdk-tasks/Crossgen.cs index 28fa9ded14ac..fa1a0d9acf91 100644 --- a/src/Tasks/sdk-tasks/Crossgen.cs +++ b/src/Tasks/sdk-tasks/Crossgen.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Build.Tasks { public sealed class Crossgen : ToolTask diff --git a/src/Tasks/sdk-tasks/DotNetTool.cs b/src/Tasks/sdk-tasks/DotNetTool.cs index a01f6a25db53..dfa20e62d883 100644 --- a/src/Tasks/sdk-tasks/DotNetTool.cs +++ b/src/Tasks/sdk-tasks/DotNetTool.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; namespace Microsoft.DotNet.Build.Tasks diff --git a/src/Tasks/sdk-tasks/EnvironmentVariableFilter.cs b/src/Tasks/sdk-tasks/EnvironmentVariableFilter.cs index aef27de63c47..635f78f346a0 100644 --- a/src/Tasks/sdk-tasks/EnvironmentVariableFilter.cs +++ b/src/Tasks/sdk-tasks/EnvironmentVariableFilter.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Build.Tasks { public class EnvironmentFilter diff --git a/src/Tasks/sdk-tasks/ExtractArchiveToDirectory.cs b/src/Tasks/sdk-tasks/ExtractArchiveToDirectory.cs index ec39ea7c4a69..c24022b84dbf 100644 --- a/src/Tasks/sdk-tasks/ExtractArchiveToDirectory.cs +++ b/src/Tasks/sdk-tasks/ExtractArchiveToDirectory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + #if !NETFRAMEWORK using System.Formats.Tar; #endif diff --git a/src/Tasks/sdk-tasks/GenerateDefaultRuntimeFrameworkVersion.cs b/src/Tasks/sdk-tasks/GenerateDefaultRuntimeFrameworkVersion.cs index 0c01f3dfe015..0c03bca3f136 100644 --- a/src/Tasks/sdk-tasks/GenerateDefaultRuntimeFrameworkVersion.cs +++ b/src/Tasks/sdk-tasks/GenerateDefaultRuntimeFrameworkVersion.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Versioning; namespace Microsoft.DotNet.Build.Tasks diff --git a/src/Tasks/sdk-tasks/GenerateGuidFromName.cs b/src/Tasks/sdk-tasks/GenerateGuidFromName.cs index ef8a6b341336..cb9ed26b4ee9 100644 --- a/src/Tasks/sdk-tasks/GenerateGuidFromName.cs +++ b/src/Tasks/sdk-tasks/GenerateGuidFromName.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Security.Cryptography; namespace Microsoft.DotNet.Build.Tasks diff --git a/src/Tasks/sdk-tasks/GenerateMSBuildExtensionsSWR.cs b/src/Tasks/sdk-tasks/GenerateMSBuildExtensionsSWR.cs index 8131eaae981d..2969e546ba62 100644 --- a/src/Tasks/sdk-tasks/GenerateMSBuildExtensionsSWR.cs +++ b/src/Tasks/sdk-tasks/GenerateMSBuildExtensionsSWR.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Build.Tasks { public class GenerateMSBuildExtensionsSWR : Task diff --git a/src/Tasks/sdk-tasks/GenerateMsiVersionFromFullVersion.cs b/src/Tasks/sdk-tasks/GenerateMsiVersionFromFullVersion.cs index cccbcc75d168..a421cb064d9b 100644 --- a/src/Tasks/sdk-tasks/GenerateMsiVersionFromFullVersion.cs +++ b/src/Tasks/sdk-tasks/GenerateMsiVersionFromFullVersion.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.Versioning; namespace Microsoft.DotNet.Build.Tasks diff --git a/src/Tasks/sdk-tasks/GenerateRuntimeAnalyzersSWR.cs b/src/Tasks/sdk-tasks/GenerateRuntimeAnalyzersSWR.cs index de25e193006d..f899342e578e 100644 --- a/src/Tasks/sdk-tasks/GenerateRuntimeAnalyzersSWR.cs +++ b/src/Tasks/sdk-tasks/GenerateRuntimeAnalyzersSWR.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Cli.Build { public class GenerateRuntimeAnalyzersSWR : Task diff --git a/src/Tasks/sdk-tasks/GenerateSdkRuntimeIdentifierChain.cs b/src/Tasks/sdk-tasks/GenerateSdkRuntimeIdentifierChain.cs index 18974b21fcb3..75a326946fb3 100644 --- a/src/Tasks/sdk-tasks/GenerateSdkRuntimeIdentifierChain.cs +++ b/src/Tasks/sdk-tasks/GenerateSdkRuntimeIdentifierChain.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using NuGet.RuntimeModel; namespace Microsoft.DotNet.Build.Tasks diff --git a/src/Tasks/sdk-tasks/GetDependencyInfo.cs b/src/Tasks/sdk-tasks/GetDependencyInfo.cs index bd6062fd7b79..f6972fe3ae5e 100644 --- a/src/Tasks/sdk-tasks/GetDependencyInfo.cs +++ b/src/Tasks/sdk-tasks/GetDependencyInfo.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Build.Tasks { /// diff --git a/src/Tasks/sdk-tasks/GetLinuxNativeInstallerDependencyVersions.cs b/src/Tasks/sdk-tasks/GetLinuxNativeInstallerDependencyVersions.cs index 4942ff3b0bbe..9538ba4c6bb7 100644 --- a/src/Tasks/sdk-tasks/GetLinuxNativeInstallerDependencyVersions.cs +++ b/src/Tasks/sdk-tasks/GetLinuxNativeInstallerDependencyVersions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Build.Tasks { public class GetLinuxNativeInstallerDependencyVersions : Task diff --git a/src/Tasks/sdk-tasks/GetRuntimePackRids.cs b/src/Tasks/sdk-tasks/GetRuntimePackRids.cs index e9f5ae254c14..88e47acc1e33 100644 --- a/src/Tasks/sdk-tasks/GetRuntimePackRids.cs +++ b/src/Tasks/sdk-tasks/GetRuntimePackRids.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Newtonsoft.Json.Linq; namespace Microsoft.DotNet.Build.Tasks diff --git a/src/Tasks/sdk-tasks/GetWorkloadSetFeatureBand.cs b/src/Tasks/sdk-tasks/GetWorkloadSetFeatureBand.cs index d5c719e8f1a6..2af4cff59309 100644 --- a/src/Tasks/sdk-tasks/GetWorkloadSetFeatureBand.cs +++ b/src/Tasks/sdk-tasks/GetWorkloadSetFeatureBand.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Build.Tasks { public class GetWorkloadSetFeatureBand : Task diff --git a/src/Tasks/sdk-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs b/src/Tasks/sdk-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs index 7afddc804509..eeee232ab526 100644 --- a/src/Tasks/sdk-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs +++ b/src/Tasks/sdk-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using NuGet.Versioning; diff --git a/src/Tasks/sdk-tasks/PublishMutationUtilities.cs b/src/Tasks/sdk-tasks/PublishMutationUtilities.cs index d3414217502e..65413e2b029c 100644 --- a/src/Tasks/sdk-tasks/PublishMutationUtilities.cs +++ b/src/Tasks/sdk-tasks/PublishMutationUtilities.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Newtonsoft.Json; using Newtonsoft.Json.Linq; diff --git a/src/Tasks/sdk-tasks/RemoveAssetFromDepsPackages.cs b/src/Tasks/sdk-tasks/RemoveAssetFromDepsPackages.cs index 7ebf7e85b629..c12539507cd5 100644 --- a/src/Tasks/sdk-tasks/RemoveAssetFromDepsPackages.cs +++ b/src/Tasks/sdk-tasks/RemoveAssetFromDepsPackages.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.Build.Framework; using Newtonsoft.Json; using Newtonsoft.Json.Linq; diff --git a/src/Tasks/sdk-tasks/ReplaceFileContents.cs b/src/Tasks/sdk-tasks/ReplaceFileContents.cs index cbb3751afade..e607a92792e5 100644 --- a/src/Tasks/sdk-tasks/ReplaceFileContents.cs +++ b/src/Tasks/sdk-tasks/ReplaceFileContents.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.RegularExpressions; namespace Microsoft.DotNet.Build.Tasks diff --git a/src/Tasks/sdk-tasks/ReplaceFilesWithSymbolicLinks.cs b/src/Tasks/sdk-tasks/ReplaceFilesWithSymbolicLinks.cs index afb9c12fe8f5..d5cf136412f1 100644 --- a/src/Tasks/sdk-tasks/ReplaceFilesWithSymbolicLinks.cs +++ b/src/Tasks/sdk-tasks/ReplaceFilesWithSymbolicLinks.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + #if !NETFRAMEWORK using System; diff --git a/src/Tasks/sdk-tasks/TarGzFileCreateFromDirectory.cs b/src/Tasks/sdk-tasks/TarGzFileCreateFromDirectory.cs index 55fa3dc8c5d5..f15b19e87bfe 100644 --- a/src/Tasks/sdk-tasks/TarGzFileCreateFromDirectory.cs +++ b/src/Tasks/sdk-tasks/TarGzFileCreateFromDirectory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Build.Tasks { public sealed class TarGzFileCreateFromDirectory : ToolTask diff --git a/src/Tasks/sdk-tasks/UpdateRuntimeConfig.cs b/src/Tasks/sdk-tasks/UpdateRuntimeConfig.cs index 31417e4f7476..110abf40e799 100644 --- a/src/Tasks/sdk-tasks/UpdateRuntimeConfig.cs +++ b/src/Tasks/sdk-tasks/UpdateRuntimeConfig.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Newtonsoft.Json.Linq; namespace Microsoft.DotNet.Build.Tasks diff --git a/src/Tasks/sdk-tasks/Utils/Version.cs b/src/Tasks/sdk-tasks/Utils/Version.cs index 39f801f9a3ff..84a4993f05e5 100644 --- a/src/Tasks/sdk-tasks/Utils/Version.cs +++ b/src/Tasks/sdk-tasks/Utils/Version.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.Build.Tasks { public class Version diff --git a/src/Tasks/sdk-tasks/ZipFileCreateFromDirectory.cs b/src/Tasks/sdk-tasks/ZipFileCreateFromDirectory.cs index 634b57b0df09..9ae09e57be6a 100644 --- a/src/Tasks/sdk-tasks/ZipFileCreateFromDirectory.cs +++ b/src/Tasks/sdk-tasks/ZipFileCreateFromDirectory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.IO.Compression; using System.Text.RegularExpressions; diff --git a/src/Tasks/sdk-tasks/sdk-tasks.csproj b/src/Tasks/sdk-tasks/sdk-tasks.csproj index cae6d012a01d..5b2d7baa1f03 100644 --- a/src/Tasks/sdk-tasks/sdk-tasks.csproj +++ b/src/Tasks/sdk-tasks/sdk-tasks.csproj @@ -4,7 +4,6 @@ $(SdkTargetFramework);net472 true true - annotations diff --git a/test/System.CommandLine.StaticCompletions.Tests/BashShellProviderTests.cs b/test/System.CommandLine.StaticCompletions.Tests/BashShellProviderTests.cs index c5e30435528d..542df4fb15c3 100644 --- a/test/System.CommandLine.StaticCompletions.Tests/BashShellProviderTests.cs +++ b/test/System.CommandLine.StaticCompletions.Tests/BashShellProviderTests.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace System.CommandLine.StaticCompletions.Tests; using System.CommandLine.StaticCompletions.Shells; diff --git a/test/System.CommandLine.StaticCompletions.Tests/HelpExtensionsTests.cs b/test/System.CommandLine.StaticCompletions.Tests/HelpExtensionsTests.cs index 239f55acb956..5533a1ca650e 100644 --- a/test/System.CommandLine.StaticCompletions.Tests/HelpExtensionsTests.cs +++ b/test/System.CommandLine.StaticCompletions.Tests/HelpExtensionsTests.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace System.CommandLine.StaticCompletions.Tests; using System.CommandLine.Help; diff --git a/test/System.CommandLine.StaticCompletions.Tests/PowershellProviderTests.cs b/test/System.CommandLine.StaticCompletions.Tests/PowershellProviderTests.cs index d8522568a8c1..d5c33cdb5a30 100644 --- a/test/System.CommandLine.StaticCompletions.Tests/PowershellProviderTests.cs +++ b/test/System.CommandLine.StaticCompletions.Tests/PowershellProviderTests.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace System.CommandLine.StaticCompletions.Tests; using System.CommandLine.StaticCompletions.Shells; diff --git a/test/System.CommandLine.StaticCompletions.Tests/System.CommandLine.StaticCompletions.Tests.csproj b/test/System.CommandLine.StaticCompletions.Tests/System.CommandLine.StaticCompletions.Tests.csproj index 617896c027ed..aeba61bc51f6 100644 --- a/test/System.CommandLine.StaticCompletions.Tests/System.CommandLine.StaticCompletions.Tests.csproj +++ b/test/System.CommandLine.StaticCompletions.Tests/System.CommandLine.StaticCompletions.Tests.csproj @@ -2,7 +2,6 @@ $(SdkTargetFramework) enable - enable true Exe true diff --git a/test/System.CommandLine.StaticCompletions.Tests/TestHelpers.cs b/test/System.CommandLine.StaticCompletions.Tests/TestHelpers.cs index b3e16ea61a98..2bbfd95b1c29 100644 --- a/test/System.CommandLine.StaticCompletions.Tests/TestHelpers.cs +++ b/test/System.CommandLine.StaticCompletions.Tests/TestHelpers.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace System.CommandLine.StaticCompletions.Tests; public class DynamicOption : Option, IDynamicOption diff --git a/test/System.CommandLine.StaticCompletions.Tests/VerifyConfiguration.cs b/test/System.CommandLine.StaticCompletions.Tests/VerifyConfiguration.cs index 9725a901fa79..4eeca67880c1 100644 --- a/test/System.CommandLine.StaticCompletions.Tests/VerifyConfiguration.cs +++ b/test/System.CommandLine.StaticCompletions.Tests/VerifyConfiguration.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace System.CommandLine.StaticCompletions.Tests; using System.Runtime.CompilerServices; diff --git a/test/System.CommandLine.StaticCompletions.Tests/VerifyExtensions.cs b/test/System.CommandLine.StaticCompletions.Tests/VerifyExtensions.cs index a365e6478bce..81d63097f163 100644 --- a/test/System.CommandLine.StaticCompletions.Tests/VerifyExtensions.cs +++ b/test/System.CommandLine.StaticCompletions.Tests/VerifyExtensions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable warnings + using System.Collections; using System.CommandLine.StaticCompletions.Shells; using System.Runtime.CompilerServices; diff --git a/test/System.CommandLine.StaticCompletions.Tests/ZshShellProviderTests.cs b/test/System.CommandLine.StaticCompletions.Tests/ZshShellProviderTests.cs index 3450ed01ce9f..a7d8ea436a73 100644 --- a/test/System.CommandLine.StaticCompletions.Tests/ZshShellProviderTests.cs +++ b/test/System.CommandLine.StaticCompletions.Tests/ZshShellProviderTests.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace System.CommandLine.StaticCompletions.Tests; using System.CommandLine.Help; diff --git a/test/dotnet-MsiInstallation.Tests/Framework/RemoteDirectory.cs b/test/dotnet-MsiInstallation.Tests/Framework/RemoteDirectory.cs index 32210b310776..2fde664c3e69 100644 --- a/test/dotnet-MsiInstallation.Tests/Framework/RemoteDirectory.cs +++ b/test/dotnet-MsiInstallation.Tests/Framework/RemoteDirectory.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.MsiInstallerTests.Framework { abstract class RemoteDirectory diff --git a/test/dotnet-MsiInstallation.Tests/Framework/RemoteFile.cs b/test/dotnet-MsiInstallation.Tests/Framework/RemoteFile.cs index d1602a7e355f..1a207ddace0c 100644 --- a/test/dotnet-MsiInstallation.Tests/Framework/RemoteFile.cs +++ b/test/dotnet-MsiInstallation.Tests/Framework/RemoteFile.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.MsiInstallerTests.Framework { abstract class RemoteFile diff --git a/test/dotnet-MsiInstallation.Tests/Framework/TestExtensions.cs b/test/dotnet-MsiInstallation.Tests/Framework/TestExtensions.cs index 03e02205a295..e1c1dd8dadac 100644 --- a/test/dotnet-MsiInstallation.Tests/Framework/TestExtensions.cs +++ b/test/dotnet-MsiInstallation.Tests/Framework/TestExtensions.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.MsiInstallerTests.Framework { public static class TestExtensions diff --git a/test/dotnet-MsiInstallation.Tests/Framework/VMAction.cs b/test/dotnet-MsiInstallation.Tests/Framework/VMAction.cs index b078803a880c..b0b823811b3f 100644 --- a/test/dotnet-MsiInstallation.Tests/Framework/VMAction.cs +++ b/test/dotnet-MsiInstallation.Tests/Framework/VMAction.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Diagnostics; using Microsoft.DotNet.Cli.Utils; diff --git a/test/dotnet-MsiInstallation.Tests/Framework/VMControl.cs b/test/dotnet-MsiInstallation.Tests/Framework/VMControl.cs index 6619bd4f013a..18f0775620cb 100644 --- a/test/dotnet-MsiInstallation.Tests/Framework/VMControl.cs +++ b/test/dotnet-MsiInstallation.Tests/Framework/VMControl.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Installer.Windows; using Microsoft.DotNet.Cli.Utils; using Microsoft.Management.Infrastructure; diff --git a/test/dotnet-MsiInstallation.Tests/Framework/VMStateTree.cs b/test/dotnet-MsiInstallation.Tests/Framework/VMStateTree.cs index 7e683a67c5c1..79d8dd3efba9 100644 --- a/test/dotnet-MsiInstallation.Tests/Framework/VMStateTree.cs +++ b/test/dotnet-MsiInstallation.Tests/Framework/VMStateTree.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.MsiInstallerTests.Framework { internal class VMStateTree diff --git a/test/dotnet-MsiInstallation.Tests/Framework/VMTestBase.cs b/test/dotnet-MsiInstallation.Tests/Framework/VMTestBase.cs index e245a508ac1c..56374a60d574 100644 --- a/test/dotnet-MsiInstallation.Tests/Framework/VMTestBase.cs +++ b/test/dotnet-MsiInstallation.Tests/Framework/VMTestBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Sdk.WorkloadManifestReader; using NuGet.Versioning; diff --git a/test/dotnet-MsiInstallation.Tests/Framework/VMTestSettings.cs b/test/dotnet-MsiInstallation.Tests/Framework/VMTestSettings.cs index d5a364807a7a..bc7275e3e397 100644 --- a/test/dotnet-MsiInstallation.Tests/Framework/VMTestSettings.cs +++ b/test/dotnet-MsiInstallation.Tests/Framework/VMTestSettings.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + namespace Microsoft.DotNet.MsiInstallerTests.Framework { internal class VMTestSettings diff --git a/test/dotnet-MsiInstallation.Tests/Framework/VirtualMachine.cs b/test/dotnet-MsiInstallation.Tests/Framework/VirtualMachine.cs index b1b9b1d0ec24..383d7103b503 100644 --- a/test/dotnet-MsiInstallation.Tests/Framework/VirtualMachine.cs +++ b/test/dotnet-MsiInstallation.Tests/Framework/VirtualMachine.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.Json; using System.Text.Json.Serialization; diff --git a/test/dotnet-MsiInstallation.Tests/MsiInstallerTests.cs b/test/dotnet-MsiInstallation.Tests/MsiInstallerTests.cs index ccc89980d6cb..92618d0026ca 100644 --- a/test/dotnet-MsiInstallation.Tests/MsiInstallerTests.cs +++ b/test/dotnet-MsiInstallation.Tests/MsiInstallerTests.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.MsiInstallerTests.Framework; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/test/dotnet-MsiInstallation.Tests/VSWorkloadTests.cs b/test/dotnet-MsiInstallation.Tests/VSWorkloadTests.cs index 6173639a888a..40b3030cc00f 100644 --- a/test/dotnet-MsiInstallation.Tests/VSWorkloadTests.cs +++ b/test/dotnet-MsiInstallation.Tests/VSWorkloadTests.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.MsiInstallerTests.Framework; namespace Microsoft.DotNet.MsiInstallerTests diff --git a/test/dotnet-MsiInstallation.Tests/WorkloadSetTests.cs b/test/dotnet-MsiInstallation.Tests/WorkloadSetTests.cs index 3d577d9d19d2..383adcefb6cb 100644 --- a/test/dotnet-MsiInstallation.Tests/WorkloadSetTests.cs +++ b/test/dotnet-MsiInstallation.Tests/WorkloadSetTests.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.Json; using System.Text.Json.Nodes; using Microsoft.DotNet.Cli; diff --git a/test/dotnet-MsiInstallation.Tests/WorkloadSetTests2.cs b/test/dotnet-MsiInstallation.Tests/WorkloadSetTests2.cs index 24ee4382d979..45d2f978a87e 100644 --- a/test/dotnet-MsiInstallation.Tests/WorkloadSetTests2.cs +++ b/test/dotnet-MsiInstallation.Tests/WorkloadSetTests2.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using Microsoft.DotNet.MsiInstallerTests.Framework; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/test/dotnet-MsiInstallation.Tests/WorkloadSetTestsBase.cs b/test/dotnet-MsiInstallation.Tests/WorkloadSetTestsBase.cs index c02ecbfa3e5e..adeaf7d21c87 100644 --- a/test/dotnet-MsiInstallation.Tests/WorkloadSetTestsBase.cs +++ b/test/dotnet-MsiInstallation.Tests/WorkloadSetTestsBase.cs @@ -1,6 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#nullable disable + using System.Text.Json; using Microsoft.DotNet.Cli; using Microsoft.DotNet.MsiInstallerTests.Framework; diff --git a/test/dotnet-MsiInstallation.Tests/dotnet-MsiInstallation.Tests.csproj b/test/dotnet-MsiInstallation.Tests/dotnet-MsiInstallation.Tests.csproj index 105d410c24ed..cda407a8b17d 100644 --- a/test/dotnet-MsiInstallation.Tests/dotnet-MsiInstallation.Tests.csproj +++ b/test/dotnet-MsiInstallation.Tests/dotnet-MsiInstallation.Tests.csproj @@ -15,7 +15,6 @@ false Microsoft.DotNet.MsiInstallerTests - annotations