diff --git a/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestConfigurationResponse.cs b/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestConfigurationResponse.cs index d8e39c9351a..92e8ba5a0ce 100644 --- a/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestConfigurationResponse.cs +++ b/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestConfigurationResponse.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 disable - namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Caching/RegisteredTaskObjectCache.cs b/src/Build/BackEnd/Components/Caching/RegisteredTaskObjectCache.cs index 843dfe14dff..aaf90ecaa5d 100644 --- a/src/Build/BackEnd/Components/Caching/RegisteredTaskObjectCache.cs +++ b/src/Build/BackEnd/Components/Caching/RegisteredTaskObjectCache.cs @@ -5,8 +5,6 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.BackEnd.Components.Caching { /// diff --git a/src/Build/BackEnd/Components/Caching/ResultsCacheWithOverride.cs b/src/Build/BackEnd/Components/Caching/ResultsCacheWithOverride.cs index f5beb3e2031..3384130c854 100644 --- a/src/Build/BackEnd/Components/Caching/ResultsCacheWithOverride.cs +++ b/src/Build/BackEnd/Components/Caching/ResultsCacheWithOverride.cs @@ -6,8 +6,6 @@ using Microsoft.Build.BackEnd; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Execution { internal class ResultsCacheWithOverride : IResultsCache @@ -15,7 +13,6 @@ internal class ResultsCacheWithOverride : IResultsCache private readonly IResultsCache _override; public ResultsCache CurrentCache { get; } - public ResultsCacheWithOverride(IResultsCache @override) { _override = @override; diff --git a/src/Build/BackEnd/Components/Communications/NodeInfo.cs b/src/Build/BackEnd/Components/Communications/NodeInfo.cs index c8f61343369..434536c587c 100644 --- a/src/Build/BackEnd/Components/Communications/NodeInfo.cs +++ b/src/Build/BackEnd/Components/Communications/NodeInfo.cs @@ -5,8 +5,6 @@ using Microsoft.Build.Execution; -#nullable disable - namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Logging/BuildLoggingContext.cs b/src/Build/BackEnd/Components/Logging/BuildLoggingContext.cs index 7577db70433..1b59031e16f 100644 --- a/src/Build/BackEnd/Components/Logging/BuildLoggingContext.cs +++ b/src/Build/BackEnd/Components/Logging/BuildLoggingContext.cs @@ -6,8 +6,6 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/EvaluationLoggingContext.cs b/src/Build/BackEnd/Components/Logging/EvaluationLoggingContext.cs index 15f4387218a..ff39ef63976 100644 --- a/src/Build/BackEnd/Components/Logging/EvaluationLoggingContext.cs +++ b/src/Build/BackEnd/Components/Logging/EvaluationLoggingContext.cs @@ -8,8 +8,6 @@ using Microsoft.Build.Framework.Profiler; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.BackEnd.Components.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/EventRedirectorToSink.cs b/src/Build/BackEnd/Components/Logging/EventRedirectorToSink.cs index 3888950e38c..60e1433dca6 100644 --- a/src/Build/BackEnd/Components/Logging/EventRedirectorToSink.cs +++ b/src/Build/BackEnd/Components/Logging/EventRedirectorToSink.cs @@ -4,8 +4,6 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/ForwardingLoggerRecord.cs b/src/Build/BackEnd/Components/Logging/ForwardingLoggerRecord.cs index 20131c8bb76..0e1035967ac 100644 --- a/src/Build/BackEnd/Components/Logging/ForwardingLoggerRecord.cs +++ b/src/Build/BackEnd/Components/Logging/ForwardingLoggerRecord.cs @@ -4,8 +4,6 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/LoggingServiceFactory.cs b/src/Build/BackEnd/Components/Logging/LoggingServiceFactory.cs index c034b47ce8e..e4bbb388650 100644 --- a/src/Build/BackEnd/Components/Logging/LoggingServiceFactory.cs +++ b/src/Build/BackEnd/Components/Logging/LoggingServiceFactory.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Scheduler/ScheduleTimeRecord.cs b/src/Build/BackEnd/Components/Scheduler/ScheduleTimeRecord.cs index 81b3ed3798d..8a79db3505b 100644 --- a/src/Build/BackEnd/Components/Scheduler/ScheduleTimeRecord.cs +++ b/src/Build/BackEnd/Components/Scheduler/ScheduleTimeRecord.cs @@ -4,8 +4,6 @@ using System; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/DefaultSdkResolver.cs b/src/Build/BackEnd/Components/SdkResolution/DefaultSdkResolver.cs index 6e49ea9d18d..4df982fa3ee 100644 --- a/src/Build/BackEnd/Components/SdkResolution/DefaultSdkResolver.cs +++ b/src/Build/BackEnd/Components/SdkResolution/DefaultSdkResolver.cs @@ -9,8 +9,6 @@ using SdkResultBase = Microsoft.Build.Framework.SdkResult; using SdkResultFactoryBase = Microsoft.Build.Framework.SdkResultFactory; -#nullable disable - namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/OutOfProcNodeSdkResolverServiceFactory.cs b/src/Build/BackEnd/Components/SdkResolution/OutOfProcNodeSdkResolverServiceFactory.cs index 4c0415bce26..f4aecf848b4 100644 --- a/src/Build/BackEnd/Components/SdkResolution/OutOfProcNodeSdkResolverServiceFactory.cs +++ b/src/Build/BackEnd/Components/SdkResolution/OutOfProcNodeSdkResolverServiceFactory.cs @@ -3,8 +3,6 @@ using System; -#nullable disable - namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/SdkLogger.cs b/src/Build/BackEnd/Components/SdkResolution/SdkLogger.cs index 7002af1ea6f..9999fc1c20d 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkLogger.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkLogger.cs @@ -6,8 +6,6 @@ using SdkLoggerBase = Microsoft.Build.Framework.SdkLogger; -#nullable disable - namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/SdkResolverCachingWrapper.cs b/src/Build/BackEnd/Components/SdkResolution/SdkResolverCachingWrapper.cs index 962ed5b4b5a..39cc6820930 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkResolverCachingWrapper.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkResolverCachingWrapper.cs @@ -10,8 +10,6 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; -#nullable disable - namespace Microsoft.Build.BackEnd.SdkResolution { diff --git a/src/Build/BackEnd/Components/SdkResolution/SdkResolverContext.cs b/src/Build/BackEnd/Components/SdkResolution/SdkResolverContext.cs index 9f873deae43..217dbcdb8bf 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkResolverContext.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkResolverContext.cs @@ -5,8 +5,6 @@ using SdkResolverContextBase = Microsoft.Build.Framework.SdkResolverContext; -#nullable disable - namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Node/LoggingNodeConfiguration.cs b/src/Build/BackEnd/Node/LoggingNodeConfiguration.cs index cc70a9744e7..2ca60de86c9 100644 --- a/src/Build/BackEnd/Node/LoggingNodeConfiguration.cs +++ b/src/Build/BackEnd/Node/LoggingNodeConfiguration.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 disable - namespace Microsoft.Build.BackEnd { internal sealed class LoggingNodeConfiguration : ITranslatable diff --git a/src/Build/BackEnd/Node/NativeMethods.cs b/src/Build/BackEnd/Node/NativeMethods.cs index c1540aae0c2..41ed12e50ec 100644 --- a/src/Build/BackEnd/Node/NativeMethods.cs +++ b/src/Build/BackEnd/Node/NativeMethods.cs @@ -4,8 +4,6 @@ using System; using System.Runtime.InteropServices; -#nullable disable - namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Shared/ResourceRequest.cs b/src/Build/BackEnd/Shared/ResourceRequest.cs index bcfd0ddf0e7..80bc091a73e 100644 --- a/src/Build/BackEnd/Shared/ResourceRequest.cs +++ b/src/Build/BackEnd/Shared/ResourceRequest.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 disable - namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Shared/ResourceResponse.cs b/src/Build/BackEnd/Shared/ResourceResponse.cs index 9e001ca2dc7..5556e9b9ff4 100644 --- a/src/Build/BackEnd/Shared/ResourceResponse.cs +++ b/src/Build/BackEnd/Shared/ResourceResponse.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 disable - namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/Collections/CopyOnReadEnumerable.cs b/src/Build/Collections/CopyOnReadEnumerable.cs index ed425af9171..c02b1776f94 100644 --- a/src/Build/Collections/CopyOnReadEnumerable.cs +++ b/src/Build/Collections/CopyOnReadEnumerable.cs @@ -7,8 +7,6 @@ using System.Linq; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/HashTableUtility.cs b/src/Build/Collections/HashTableUtility.cs index bddb1b3bfff..3645e24b8a9 100644 --- a/src/Build/Collections/HashTableUtility.cs +++ b/src/Build/Collections/HashTableUtility.cs @@ -4,8 +4,6 @@ using System; using System.Collections.Generic; -#nullable disable - namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/RetrievableEntryHashSet/HashHelpers.cs b/src/Build/Collections/RetrievableEntryHashSet/HashHelpers.cs index 0e3499b0248..109e2f242a1 100644 --- a/src/Build/Collections/RetrievableEntryHashSet/HashHelpers.cs +++ b/src/Build/Collections/RetrievableEntryHashSet/HashHelpers.cs @@ -9,8 +9,6 @@ #endif #endif -#nullable disable - namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/RetrievableEntryHashSet/HashSetDebugView.cs b/src/Build/Collections/RetrievableEntryHashSet/HashSetDebugView.cs index 369164778dd..6c7523fe6a6 100644 --- a/src/Build/Collections/RetrievableEntryHashSet/HashSetDebugView.cs +++ b/src/Build/Collections/RetrievableEntryHashSet/HashSetDebugView.cs @@ -4,8 +4,6 @@ using System; using System.Diagnostics; -#nullable disable - namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Construction/Solution/ProjectConfigurationInSolution.cs b/src/Build/Construction/Solution/ProjectConfigurationInSolution.cs index 073739d11a6..03995fbb7b6 100644 --- a/src/Build/Construction/Solution/ProjectConfigurationInSolution.cs +++ b/src/Build/Construction/Solution/ProjectConfigurationInSolution.cs @@ -3,8 +3,6 @@ using System; -#nullable disable - namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/Solution/SolutionConfigurationInSolution.cs b/src/Build/Construction/Solution/SolutionConfigurationInSolution.cs index ca74704b73e..72a6b53e83e 100644 --- a/src/Build/Construction/Solution/SolutionConfigurationInSolution.cs +++ b/src/Build/Construction/Solution/SolutionConfigurationInSolution.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 disable - namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Definition/BuiltInMetadata.cs b/src/Build/Definition/BuiltInMetadata.cs index 7687a4a47e9..1e28ec1c379 100644 --- a/src/Build/Definition/BuiltInMetadata.cs +++ b/src/Build/Definition/BuiltInMetadata.cs @@ -6,8 +6,6 @@ using System.Diagnostics; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/NewProjectFileOptions.cs b/src/Build/Definition/NewProjectFileOptions.cs index a4a4d04c066..0a1519f84a1 100644 --- a/src/Build/Definition/NewProjectFileOptions.cs +++ b/src/Build/Definition/NewProjectFileOptions.cs @@ -3,8 +3,6 @@ using System; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ProjectCollectionChangedEventArgs.cs b/src/Build/Definition/ProjectCollectionChangedEventArgs.cs index 3de55b1d6b4..e76c12a0fa6 100644 --- a/src/Build/Definition/ProjectCollectionChangedEventArgs.cs +++ b/src/Build/Definition/ProjectCollectionChangedEventArgs.cs @@ -3,8 +3,6 @@ using System; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ProjectLoadSettings.cs b/src/Build/Definition/ProjectLoadSettings.cs index a257aa08128..3c88d59defd 100644 --- a/src/Build/Definition/ProjectLoadSettings.cs +++ b/src/Build/Definition/ProjectLoadSettings.cs @@ -4,8 +4,6 @@ using System; using System.Diagnostics.CodeAnalysis; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ResolvedImport.cs b/src/Build/Definition/ResolvedImport.cs index 72cde59d08e..c29fe7c0410 100644 --- a/src/Build/Definition/ResolvedImport.cs +++ b/src/Build/Definition/ResolvedImport.cs @@ -6,8 +6,6 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ToolsetLocalReader.cs b/src/Build/Definition/ToolsetLocalReader.cs index 68fcb2a5d51..f0b5d634678 100644 --- a/src/Build/Definition/ToolsetLocalReader.cs +++ b/src/Build/Definition/ToolsetLocalReader.cs @@ -7,8 +7,6 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Evaluation { internal class ToolsetLocalReader : ToolsetReader diff --git a/src/Build/Definition/ToolsetPropertyDefinition.cs b/src/Build/Definition/ToolsetPropertyDefinition.cs index e923f7cff5e..fac28353d0d 100644 --- a/src/Build/Definition/ToolsetPropertyDefinition.cs +++ b/src/Build/Definition/ToolsetPropertyDefinition.cs @@ -5,8 +5,6 @@ using Microsoft.Build.Shared; using ErrorUtilities = Microsoft.Build.Shared.ErrorUtilities; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/AndExpressionNode.cs b/src/Build/Evaluation/Conditionals/AndExpressionNode.cs index f460c40142f..2a56fef5f2f 100644 --- a/src/Build/Evaluation/Conditionals/AndExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/AndExpressionNode.cs @@ -4,8 +4,6 @@ using System.Diagnostics; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/CharacterUtilities.cs b/src/Build/Evaluation/Conditionals/CharacterUtilities.cs index ed5502e91ca..64b298aca44 100644 --- a/src/Build/Evaluation/Conditionals/CharacterUtilities.cs +++ b/src/Build/Evaluation/Conditionals/CharacterUtilities.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 disable - namespace Microsoft.Build.Evaluation { internal static class CharacterUtilities diff --git a/src/Build/Evaluation/Conditionals/EqualExpressionNode.cs b/src/Build/Evaluation/Conditionals/EqualExpressionNode.cs index 8241009f778..1fe86ebcfc5 100644 --- a/src/Build/Evaluation/Conditionals/EqualExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/EqualExpressionNode.cs @@ -4,8 +4,6 @@ using System; using System.Diagnostics; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/GreaterThanExpressionNode.cs b/src/Build/Evaluation/Conditionals/GreaterThanExpressionNode.cs index f616f66850d..648eb2cd363 100644 --- a/src/Build/Evaluation/Conditionals/GreaterThanExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/GreaterThanExpressionNode.cs @@ -4,8 +4,6 @@ using System; using System.Diagnostics; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/GreaterThanOrEqualExpressionNode.cs b/src/Build/Evaluation/Conditionals/GreaterThanOrEqualExpressionNode.cs index 75ef77df664..73d022e84af 100644 --- a/src/Build/Evaluation/Conditionals/GreaterThanOrEqualExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/GreaterThanOrEqualExpressionNode.cs @@ -4,8 +4,6 @@ using System; using System.Diagnostics; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/LessThanExpressionNode.cs b/src/Build/Evaluation/Conditionals/LessThanExpressionNode.cs index 8b2476a7a34..e7d8a69fe76 100644 --- a/src/Build/Evaluation/Conditionals/LessThanExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/LessThanExpressionNode.cs @@ -4,8 +4,6 @@ using System; using System.Diagnostics; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/LessThanOrEqualExpressionNode.cs b/src/Build/Evaluation/Conditionals/LessThanOrEqualExpressionNode.cs index f641827e5fe..5d7a6ee60ea 100644 --- a/src/Build/Evaluation/Conditionals/LessThanOrEqualExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/LessThanOrEqualExpressionNode.cs @@ -4,8 +4,6 @@ using System; using System.Diagnostics; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/NotEqualExpressionNode.cs b/src/Build/Evaluation/Conditionals/NotEqualExpressionNode.cs index c0770a833f2..58210865a06 100644 --- a/src/Build/Evaluation/Conditionals/NotEqualExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/NotEqualExpressionNode.cs @@ -4,8 +4,6 @@ using System; using System.Diagnostics; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/NotExpressionNode.cs b/src/Build/Evaluation/Conditionals/NotExpressionNode.cs index 093599928cd..aa80e3018ce 100644 --- a/src/Build/Evaluation/Conditionals/NotExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/NotExpressionNode.cs @@ -4,8 +4,6 @@ using System.Diagnostics; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/NumericComparisonExpressionNode.cs b/src/Build/Evaluation/Conditionals/NumericComparisonExpressionNode.cs index ecc9cb4995c..ab7ba796391 100644 --- a/src/Build/Evaluation/Conditionals/NumericComparisonExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/NumericComparisonExpressionNode.cs @@ -4,8 +4,6 @@ using System; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/OperandExpressionNode.cs b/src/Build/Evaluation/Conditionals/OperandExpressionNode.cs index 09ab3630596..95f02818f7f 100644 --- a/src/Build/Evaluation/Conditionals/OperandExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/OperandExpressionNode.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 disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/OrExpressionNode.cs b/src/Build/Evaluation/Conditionals/OrExpressionNode.cs index 03852261ebe..81957cf998e 100644 --- a/src/Build/Evaluation/Conditionals/OrExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/OrExpressionNode.cs @@ -4,8 +4,6 @@ using System.Diagnostics; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/LazyItemEvaluator.IItemOperation.cs b/src/Build/Evaluation/LazyItemEvaluator.IItemOperation.cs index a3fa31f7c78..fb492a80a15 100644 --- a/src/Build/Evaluation/LazyItemEvaluator.IItemOperation.cs +++ b/src/Build/Evaluation/LazyItemEvaluator.IItemOperation.cs @@ -3,8 +3,6 @@ using System.Collections.Immutable; -#nullable disable - namespace Microsoft.Build.Evaluation { internal partial class LazyItemEvaluator diff --git a/src/Build/Evaluation/LazyItemEvaluator.ItemFactoryWrapper.cs b/src/Build/Evaluation/LazyItemEvaluator.ItemFactoryWrapper.cs index f83ef9635c8..080ce54148b 100644 --- a/src/Build/Evaluation/LazyItemEvaluator.ItemFactoryWrapper.cs +++ b/src/Build/Evaluation/LazyItemEvaluator.ItemFactoryWrapper.cs @@ -5,8 +5,6 @@ using System.Collections.Generic; using Microsoft.Build.Construction; -#nullable disable - namespace Microsoft.Build.Evaluation { internal partial class LazyItemEvaluator diff --git a/src/Build/Evaluation/MetadataReference.cs b/src/Build/Evaluation/MetadataReference.cs index 1c8e3b7b37e..5772cc84e83 100644 --- a/src/Build/Evaluation/MetadataReference.cs +++ b/src/Build/Evaluation/MetadataReference.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 disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/ProjectChangedEventArgs.cs b/src/Build/Evaluation/ProjectChangedEventArgs.cs index 6d76eff3829..cd4bf4db060 100644 --- a/src/Build/Evaluation/ProjectChangedEventArgs.cs +++ b/src/Build/Evaluation/ProjectChangedEventArgs.cs @@ -4,8 +4,6 @@ using System; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/FileSystem/DirectoryCacheFileSystemWrapper.cs b/src/Build/FileSystem/DirectoryCacheFileSystemWrapper.cs index 992e89967f0..23dc4bd973f 100644 --- a/src/Build/FileSystem/DirectoryCacheFileSystemWrapper.cs +++ b/src/Build/FileSystem/DirectoryCacheFileSystemWrapper.cs @@ -12,8 +12,6 @@ using Path = Microsoft.IO.Path; #endif -#nullable disable - namespace Microsoft.Build.FileSystem { internal class DirectoryCacheFileSystemWrapper : IFileSystem diff --git a/src/Build/FileSystem/MSBuildFileSystemBase.cs b/src/Build/FileSystem/MSBuildFileSystemBase.cs index 3fc54552ddd..177f710c446 100644 --- a/src/Build/FileSystem/MSBuildFileSystemBase.cs +++ b/src/Build/FileSystem/MSBuildFileSystemBase.cs @@ -6,8 +6,6 @@ using System.IO; using Microsoft.Build.Shared.FileSystem; -#nullable disable - namespace Microsoft.Build.FileSystem { /// diff --git a/src/Build/Globbing/CompositeGlob.cs b/src/Build/Globbing/CompositeGlob.cs index b250180a5a6..dc9d9f0db95 100644 --- a/src/Build/Globbing/CompositeGlob.cs +++ b/src/Build/Globbing/CompositeGlob.cs @@ -1,14 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. - using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Globbing { /// diff --git a/src/Build/Globbing/Extensions/MSBuildGlobExtensions.cs b/src/Build/Globbing/Extensions/MSBuildGlobExtensions.cs index 32f31bbe874..51441c9af1a 100644 --- a/src/Build/Globbing/Extensions/MSBuildGlobExtensions.cs +++ b/src/Build/Globbing/Extensions/MSBuildGlobExtensions.cs @@ -4,8 +4,6 @@ using System.Collections.Generic; using Microsoft.Build.Globbing.Visitor; -#nullable disable - namespace Microsoft.Build.Globbing.Extensions { /// diff --git a/src/Build/Globbing/MSBuildGlobWithGaps.cs b/src/Build/Globbing/MSBuildGlobWithGaps.cs index d8008496f4f..2d45b6a8d26 100644 --- a/src/Build/Globbing/MSBuildGlobWithGaps.cs +++ b/src/Build/Globbing/MSBuildGlobWithGaps.cs @@ -5,8 +5,6 @@ using System.Linq; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Globbing { /// diff --git a/src/Build/Globbing/Visitor/GlobVisitor.cs b/src/Build/Globbing/Visitor/GlobVisitor.cs index bd9c43623d9..31e0b1e4130 100644 --- a/src/Build/Globbing/Visitor/GlobVisitor.cs +++ b/src/Build/Globbing/Visitor/GlobVisitor.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 disable - namespace Microsoft.Build.Globbing.Visitor { internal abstract class GlobVisitor diff --git a/src/Build/Globbing/Visitor/ParsedGlobCollector.cs b/src/Build/Globbing/Visitor/ParsedGlobCollector.cs index 79b519ca594..910324dce0d 100644 --- a/src/Build/Globbing/Visitor/ParsedGlobCollector.cs +++ b/src/Build/Globbing/Visitor/ParsedGlobCollector.cs @@ -3,8 +3,6 @@ using System.Collections.Immutable; -#nullable disable - namespace Microsoft.Build.Globbing.Visitor { internal class ParsedGlobCollector : GlobVisitor diff --git a/src/Build/Graph/ProjectGraphNode.cs b/src/Build/Graph/ProjectGraphNode.cs index 4c43b1e1061..022b63737c1 100644 --- a/src/Build/Graph/ProjectGraphNode.cs +++ b/src/Build/Graph/ProjectGraphNode.cs @@ -7,8 +7,6 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Graph { /// diff --git a/src/Build/Instance/ProjectTargetInstanceChild.cs b/src/Build/Instance/ProjectTargetInstanceChild.cs index 37434efd537..ae5dcdfd8c4 100644 --- a/src/Build/Instance/ProjectTargetInstanceChild.cs +++ b/src/Build/Instance/ProjectTargetInstanceChild.cs @@ -5,8 +5,6 @@ using Microsoft.Build.Construction; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectTaskInstanceChild.cs b/src/Build/Instance/ProjectTaskInstanceChild.cs index a9b67aa341b..fc77d0361c4 100644 --- a/src/Build/Instance/ProjectTaskInstanceChild.cs +++ b/src/Build/Instance/ProjectTaskInstanceChild.cs @@ -5,8 +5,6 @@ using Microsoft.Build.Construction; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Logging/BinaryLogger/BinaryLogRecordKind.cs b/src/Build/Logging/BinaryLogger/BinaryLogRecordKind.cs index 59a7a4ef914..d87b80c363f 100644 --- a/src/Build/Logging/BinaryLogger/BinaryLogRecordKind.cs +++ b/src/Build/Logging/BinaryLogger/BinaryLogRecordKind.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 disable - namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/BinaryLogger/BuildEventArgsFieldFlags.cs b/src/Build/Logging/BinaryLogger/BuildEventArgsFieldFlags.cs index 0f579c2a549..ecbdef18dba 100644 --- a/src/Build/Logging/BinaryLogger/BuildEventArgsFieldFlags.cs +++ b/src/Build/Logging/BinaryLogger/BuildEventArgsFieldFlags.cs @@ -3,8 +3,6 @@ using System; -#nullable disable - namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/ConsoleConfiguration.cs b/src/Build/Logging/ConsoleConfiguration.cs index 2db3ebdab83..ed6aa967545 100644 --- a/src/Build/Logging/ConsoleConfiguration.cs +++ b/src/Build/Logging/ConsoleConfiguration.cs @@ -1,7 +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 disable using System; namespace Microsoft.Build.BackEnd.Logging; diff --git a/src/Build/Logging/LogFormatter.cs b/src/Build/Logging/LogFormatter.cs index 22c0ab05658..7af34621d9b 100644 --- a/src/Build/Logging/LogFormatter.cs +++ b/src/Build/Logging/LogFormatter.cs @@ -5,8 +5,6 @@ using System.Diagnostics; using System.Globalization; -#nullable disable - namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/Logging/TargetConsoleConfiguration.cs b/src/Build/Logging/TargetConsoleConfiguration.cs index ffe1dd5a34b..7e58e79590f 100644 --- a/src/Build/Logging/TargetConsoleConfiguration.cs +++ b/src/Build/Logging/TargetConsoleConfiguration.cs @@ -1,7 +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 disable using System; namespace Microsoft.Build.BackEnd.Logging; diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectElementContainerLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectElementContainerLink.cs index 2c9b41a85ab..2ea689531b5 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectElementContainerLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectElementContainerLink.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Construction; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectExtensionsElementLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectExtensionsElementLink.cs index 6ef6184f13d..4238f1d9cf7 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectExtensionsElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectExtensionsElementLink.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Construction; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectImportElementLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectImportElementLink.cs index 66c7e0dae36..9423e05b15e 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectImportElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectImportElementLink.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Construction; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectItemElementLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectItemElementLink.cs index 5e73b38ee71..4b9e6e1dba7 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectItemElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectItemElementLink.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Construction; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectMetadataElementLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectMetadataElementLink.cs index 9f866a5e636..e3ce0259711 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectMetadataElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectMetadataElementLink.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Construction; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectPropertyElementLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectPropertyElementLink.cs index e922425729b..b9832758647 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectPropertyElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectPropertyElementLink.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Construction; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectRootElementLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectRootElementLink.cs index d45cc3f213d..faa0b0089db 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectRootElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectRootElementLink.cs @@ -7,8 +7,6 @@ using System.Xml; using Microsoft.Build.Construction; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectTargetElementLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectTargetElementLink.cs index 2d194f3ce43..01f36572391 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectTargetElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectTargetElementLink.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Construction; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectTaskElementLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectTaskElementLink.cs index c48206524df..a259acde39f 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectTaskElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectTaskElementLink.cs @@ -4,8 +4,6 @@ using System.Collections.Generic; using Microsoft.Build.Construction; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectUsingTaskBodyElementLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectUsingTaskBodyElementLink.cs index 142d4905c7b..3c78da2db3b 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectUsingTaskBodyElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectUsingTaskBodyElementLink.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Construction; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectUsingTaskParameterElementLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectUsingTaskParameterElementLink.cs index 7f56973cba1..e79e5499b2b 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectUsingTaskParameterElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectUsingTaskParameterElementLink.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Construction; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemDefinitionLink.cs b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemDefinitionLink.cs index aec8a9493a0..361cad5e67f 100644 --- a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemDefinitionLink.cs +++ b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemDefinitionLink.cs @@ -4,8 +4,6 @@ using System.Collections.Generic; using Microsoft.Build.Evaluation; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemLink.cs b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemLink.cs index 609ba0a95fd..147a37b6964 100644 --- a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemLink.cs +++ b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemLink.cs @@ -5,8 +5,6 @@ using Microsoft.Build.Construction; using Microsoft.Build.Evaluation; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectLink.cs b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectLink.cs index e2191fe7ea1..d13f83f817e 100644 --- a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectLink.cs +++ b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectLink.cs @@ -10,8 +10,6 @@ using Microsoft.Build.Framework; using Microsoft.Build.Logging; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectPropertyLink.cs b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectPropertyLink.cs index 871e816cd37..95b0ac92664 100644 --- a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectPropertyLink.cs +++ b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectPropertyLink.cs @@ -4,8 +4,6 @@ using Microsoft.Build.Construction; using Microsoft.Build.Evaluation; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/ExternalProjectsProvider.cs b/src/Build/ObjectModelRemoting/ExternalProjectsProvider.cs index beec7af47b9..db1b718d290 100644 --- a/src/Build/ObjectModelRemoting/ExternalProjectsProvider.cs +++ b/src/Build/ObjectModelRemoting/ExternalProjectsProvider.cs @@ -4,8 +4,6 @@ using System.Collections.Generic; using Microsoft.Build.Evaluation; -#nullable disable - namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Framework/BuildEngineResult.cs b/src/Framework/BuildEngineResult.cs index 4371726a8a3..b41d714104a 100644 --- a/src/Framework/BuildEngineResult.cs +++ b/src/Framework/BuildEngineResult.cs @@ -5,8 +5,6 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -#nullable disable - namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/BuildEnvironmentState.cs b/src/Framework/BuildEnvironmentState.cs index 9743b2a5eab..fae6127700e 100644 --- a/src/Framework/BuildEnvironmentState.cs +++ b/src/Framework/BuildEnvironmentState.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 disable - namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/LoadInSeparateAppDomainAttribute.cs b/src/Framework/LoadInSeparateAppDomainAttribute.cs index 801e4df43da..662fe09ccb5 100644 --- a/src/Framework/LoadInSeparateAppDomainAttribute.cs +++ b/src/Framework/LoadInSeparateAppDomainAttribute.cs @@ -3,8 +3,6 @@ using System; -#nullable disable - namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/OutputAttribute.cs b/src/Framework/OutputAttribute.cs index b29cb816377..e24ea89590a 100644 --- a/src/Framework/OutputAttribute.cs +++ b/src/Framework/OutputAttribute.cs @@ -3,8 +3,6 @@ using System; -#nullable disable - namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/Profiler/EvaluationIdProvider.cs b/src/Framework/Profiler/EvaluationIdProvider.cs index 76fc1b0266e..887db13af9a 100644 --- a/src/Framework/Profiler/EvaluationIdProvider.cs +++ b/src/Framework/Profiler/EvaluationIdProvider.cs @@ -4,8 +4,6 @@ using System.Threading; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Framework.Profiler { /// diff --git a/src/Framework/RequiredAttribute.cs b/src/Framework/RequiredAttribute.cs index 3c10b97c0c0..f8bd2f47eaa 100644 --- a/src/Framework/RequiredAttribute.cs +++ b/src/Framework/RequiredAttribute.cs @@ -3,8 +3,6 @@ using System; -#nullable disable - namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/RequiredRuntimeAttribute.cs b/src/Framework/RequiredRuntimeAttribute.cs index 6cd509b6cbb..43df3045101 100644 --- a/src/Framework/RequiredRuntimeAttribute.cs +++ b/src/Framework/RequiredRuntimeAttribute.cs @@ -3,8 +3,6 @@ using System; -#nullable disable - namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/RunInMTAAttribute.cs b/src/Framework/RunInMTAAttribute.cs index 6ab24a5c027..766cfcb8392 100644 --- a/src/Framework/RunInMTAAttribute.cs +++ b/src/Framework/RunInMTAAttribute.cs @@ -4,8 +4,6 @@ using System; using System.Diagnostics.CodeAnalysis; -#nullable disable - namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/RunInSTAAttribute.cs b/src/Framework/RunInSTAAttribute.cs index 259bc5f968c..6c9aef7c48a 100644 --- a/src/Framework/RunInSTAAttribute.cs +++ b/src/Framework/RunInSTAAttribute.cs @@ -4,8 +4,6 @@ using System; using System.Diagnostics.CodeAnalysis; -#nullable disable - namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/Sdk/SdkLogger.cs b/src/Framework/Sdk/SdkLogger.cs index 9478bc6c583..8b545dc059b 100644 --- a/src/Framework/Sdk/SdkLogger.cs +++ b/src/Framework/Sdk/SdkLogger.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 disable - namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/Sdk/SdkResolver.cs b/src/Framework/Sdk/SdkResolver.cs index 939be3a297e..28dd9be8259 100644 --- a/src/Framework/Sdk/SdkResolver.cs +++ b/src/Framework/Sdk/SdkResolver.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 disable - namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/TargetBuiltReason.cs b/src/Framework/TargetBuiltReason.cs index d83710653c2..61f48fbbc49 100644 --- a/src/Framework/TargetBuiltReason.cs +++ b/src/Framework/TargetBuiltReason.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 disable - namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/TestInfo.cs b/src/Framework/TestInfo.cs index a35ff48fdce..71540225ae4 100644 --- a/src/Framework/TestInfo.cs +++ b/src/Framework/TestInfo.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 disable - namespace Microsoft.Build.Framework { // This is a central place to keep track of whether tests are running or not. Test startup code diff --git a/src/Framework/VisualStudioLocationHelper.cs b/src/Framework/VisualStudioLocationHelper.cs index a747ea8bd1a..eb9635eb8c9 100644 --- a/src/Framework/VisualStudioLocationHelper.cs +++ b/src/Framework/VisualStudioLocationHelper.cs @@ -8,8 +8,6 @@ using Microsoft.VisualStudio.Setup.Configuration; #endif -#nullable disable - namespace Microsoft.Build.Shared { /// diff --git a/src/Framework/XamlTypes/CategorySchema.cs b/src/Framework/XamlTypes/CategorySchema.cs index a646cc7eb98..d8fadf04f8e 100644 --- a/src/Framework/XamlTypes/CategorySchema.cs +++ b/src/Framework/XamlTypes/CategorySchema.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 disable - namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/EnumProperty.cs b/src/Framework/XamlTypes/EnumProperty.cs index 499881abfc7..3c86c94d700 100644 --- a/src/Framework/XamlTypes/EnumProperty.cs +++ b/src/Framework/XamlTypes/EnumProperty.cs @@ -5,8 +5,6 @@ using System.Diagnostics.CodeAnalysis; using System.Windows.Markup; -#nullable disable - namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/IProjectSchemaNode.cs b/src/Framework/XamlTypes/IProjectSchemaNode.cs index 119357ececa..55bc0c3b733 100644 --- a/src/Framework/XamlTypes/IProjectSchemaNode.cs +++ b/src/Framework/XamlTypes/IProjectSchemaNode.cs @@ -4,8 +4,6 @@ using System; using System.Collections.Generic; -#nullable disable - namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/IntProperty.cs b/src/Framework/XamlTypes/IntProperty.cs index 8a9566e7561..84fcc10faa1 100644 --- a/src/Framework/XamlTypes/IntProperty.cs +++ b/src/Framework/XamlTypes/IntProperty.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 disable - namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/ProjectSchemaDefinitions.cs b/src/Framework/XamlTypes/ProjectSchemaDefinitions.cs index 0a261bceaba..de214c0e668 100644 --- a/src/Framework/XamlTypes/ProjectSchemaDefinitions.cs +++ b/src/Framework/XamlTypes/ProjectSchemaDefinitions.cs @@ -7,8 +7,6 @@ using System.Linq; using System.Windows.Markup; -#nullable disable - namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/RuleBag.cs b/src/Framework/XamlTypes/RuleBag.cs index 6183a331574..60334a14593 100644 --- a/src/Framework/XamlTypes/RuleBag.cs +++ b/src/Framework/XamlTypes/RuleBag.cs @@ -7,8 +7,6 @@ using System.Diagnostics.CodeAnalysis; using System.Windows.Markup; -#nullable disable - namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/RuleSchema.cs b/src/Framework/XamlTypes/RuleSchema.cs index 4dc9e23d78c..0e52ce1d77f 100644 --- a/src/Framework/XamlTypes/RuleSchema.cs +++ b/src/Framework/XamlTypes/RuleSchema.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 disable - namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/MSBuild/DistributedLoggerRecord.cs b/src/MSBuild/DistributedLoggerRecord.cs index b13a5a33a9f..2c28d347f03 100644 --- a/src/MSBuild/DistributedLoggerRecord.cs +++ b/src/MSBuild/DistributedLoggerRecord.cs @@ -4,8 +4,6 @@ using Microsoft.Build.Framework; using Microsoft.Build.Logging; -#nullable disable - namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuild/NodeEndpointOutOfProcTaskHost.cs b/src/MSBuild/NodeEndpointOutOfProcTaskHost.cs index 9769d7b6b59..4967da62e1b 100644 --- a/src/MSBuild/NodeEndpointOutOfProcTaskHost.cs +++ b/src/MSBuild/NodeEndpointOutOfProcTaskHost.cs @@ -5,8 +5,6 @@ using Microsoft.Build.Framework; using Microsoft.Build.Internal; -#nullable disable - namespace Microsoft.Build.CommandLine { /// diff --git a/src/Shared/AssemblyFolders/AssemblyFoldersFromConfig.cs b/src/Shared/AssemblyFolders/AssemblyFoldersFromConfig.cs index 4f79794879d..8bf90b72493 100644 --- a/src/Shared/AssemblyFolders/AssemblyFoldersFromConfig.cs +++ b/src/Shared/AssemblyFolders/AssemblyFoldersFromConfig.cs @@ -10,7 +10,6 @@ using Microsoft.Build.Utilities; using ProcessorArchitecture = System.Reflection.ProcessorArchitecture; -#nullable disable namespace Microsoft.Build.Tasks.AssemblyFoldersFromConfig { diff --git a/src/Shared/BufferedReadStream.cs b/src/Shared/BufferedReadStream.cs index 55bba5986f8..47c8a362f2c 100644 --- a/src/Shared/BufferedReadStream.cs +++ b/src/Shared/BufferedReadStream.cs @@ -10,7 +10,6 @@ using System.Threading.Tasks; #endif -#nullable disable namespace Microsoft.Build.BackEnd { diff --git a/src/Shared/Constants.cs b/src/Shared/Constants.cs index 0e5afa5b465..28a6bfe8183 100644 --- a/src/Shared/Constants.cs +++ b/src/Shared/Constants.cs @@ -7,7 +7,6 @@ #endif using System.IO; -#nullable disable namespace Microsoft.Build.Shared { @@ -82,7 +81,6 @@ internal static class MSBuildConstants /// internal const string MSBuildIsRestoring = nameof(MSBuildIsRestoring); - /// /// The most current VSGeneralAssemblyVersion known to this version of MSBuild. /// diff --git a/src/Shared/ExtensionFoldersRegistryKey.cs b/src/Shared/ExtensionFoldersRegistryKey.cs index 62df97f47c4..d3bab0cc024 100644 --- a/src/Shared/ExtensionFoldersRegistryKey.cs +++ b/src/Shared/ExtensionFoldersRegistryKey.cs @@ -3,7 +3,6 @@ using System; -#nullable disable namespace Microsoft.Build.Shared { diff --git a/src/Shared/FileDelegates.cs b/src/Shared/FileDelegates.cs index 906dfcf9964..e7ea596e2b3 100644 --- a/src/Shared/FileDelegates.cs +++ b/src/Shared/FileDelegates.cs @@ -3,7 +3,6 @@ using System.IO; -#nullable disable namespace Microsoft.Build.Shared { diff --git a/src/Shared/FileSystem/CachingFileSystemWrapper.cs b/src/Shared/FileSystem/CachingFileSystemWrapper.cs index 9c143cb79e1..eb710c5f3a8 100644 --- a/src/Shared/FileSystem/CachingFileSystemWrapper.cs +++ b/src/Shared/FileSystem/CachingFileSystemWrapper.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using System.IO; -#nullable disable namespace Microsoft.Build.Shared.FileSystem { diff --git a/src/Shared/FileSystem/FileSystems.cs b/src/Shared/FileSystem/FileSystems.cs index c876af6bc77..a0338849c0e 100644 --- a/src/Shared/FileSystem/FileSystems.cs +++ b/src/Shared/FileSystem/FileSystems.cs @@ -1,7 +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 disable namespace Microsoft.Build.Shared.FileSystem { diff --git a/src/Shared/FileSystem/MSBuildOnWindowsFileSystem.cs b/src/Shared/FileSystem/MSBuildOnWindowsFileSystem.cs index efc70334ee7..d385c059783 100644 --- a/src/Shared/FileSystem/MSBuildOnWindowsFileSystem.cs +++ b/src/Shared/FileSystem/MSBuildOnWindowsFileSystem.cs @@ -6,7 +6,6 @@ using System.IO; using System.Runtime.Versioning; -#nullable disable namespace Microsoft.Build.Shared.FileSystem { diff --git a/src/Shared/FileSystem/ManagedFileSystem.cs b/src/Shared/FileSystem/ManagedFileSystem.cs index 53f3c7c4bc7..6e49213da9a 100644 --- a/src/Shared/FileSystem/ManagedFileSystem.cs +++ b/src/Shared/FileSystem/ManagedFileSystem.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.IO; -#nullable disable namespace Microsoft.Build.Shared.FileSystem { diff --git a/src/Shared/FileSystem/SafeFileHandle.cs b/src/Shared/FileSystem/SafeFileHandle.cs index b449293797f..1ba5c2dc3e9 100644 --- a/src/Shared/FileSystem/SafeFileHandle.cs +++ b/src/Shared/FileSystem/SafeFileHandle.cs @@ -3,7 +3,6 @@ using Microsoft.Win32.SafeHandles; -#nullable disable namespace Microsoft.Build.Shared.FileSystem { diff --git a/src/Shared/FileSystem/WindowsFileSystem.cs b/src/Shared/FileSystem/WindowsFileSystem.cs index c704360c777..5fc7663beee 100644 --- a/src/Shared/FileSystem/WindowsFileSystem.cs +++ b/src/Shared/FileSystem/WindowsFileSystem.cs @@ -8,7 +8,6 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; -#nullable disable namespace Microsoft.Build.Shared.FileSystem { diff --git a/src/Shared/FileSystem/WindowsNative.cs b/src/Shared/FileSystem/WindowsNative.cs index 5bf3f713c17..d50e4d56870 100644 --- a/src/Shared/FileSystem/WindowsNative.cs +++ b/src/Shared/FileSystem/WindowsNative.cs @@ -8,7 +8,6 @@ using System.IO; using System.Runtime.InteropServices; -#nullable disable namespace Microsoft.Build.Shared.FileSystem { diff --git a/src/Shared/FileUtilitiesRegex.cs b/src/Shared/FileUtilitiesRegex.cs index c35f1f9ed5f..6a27e415aec 100644 --- a/src/Shared/FileUtilitiesRegex.cs +++ b/src/Shared/FileUtilitiesRegex.cs @@ -3,7 +3,6 @@ using System.Runtime.CompilerServices; -#nullable disable namespace Microsoft.Build.Shared { diff --git a/src/Shared/LanguageParser/CSharptokenCharReader.cs b/src/Shared/LanguageParser/CSharptokenCharReader.cs index ebbb6163b29..04eb235941b 100644 --- a/src/Shared/LanguageParser/CSharptokenCharReader.cs +++ b/src/Shared/LanguageParser/CSharptokenCharReader.cs @@ -4,7 +4,6 @@ using System; using System.IO; -#nullable disable namespace Microsoft.Build.Shared.LanguageParser { diff --git a/src/Shared/LanguageParser/VisualBasictokenCharReader.cs b/src/Shared/LanguageParser/VisualBasictokenCharReader.cs index e493c4c32ed..6d4803f8f34 100644 --- a/src/Shared/LanguageParser/VisualBasictokenCharReader.cs +++ b/src/Shared/LanguageParser/VisualBasictokenCharReader.cs @@ -4,7 +4,6 @@ using System; using System.IO; -#nullable disable namespace Microsoft.Build.Shared.LanguageParser { @@ -197,7 +196,6 @@ internal bool SinkDecimalIntegerSuffix() return true; // An integer suffix can be zero characters, so there's always a match. } - /* * Method: SinkOctalDigits * diff --git a/src/Shared/LanguageParser/tokenChar.cs b/src/Shared/LanguageParser/tokenChar.cs index 0cd62ff96e9..eca1b31f048 100644 --- a/src/Shared/LanguageParser/tokenChar.cs +++ b/src/Shared/LanguageParser/tokenChar.cs @@ -3,7 +3,6 @@ using System.Globalization; -#nullable disable namespace Microsoft.Build.Shared.LanguageParser { diff --git a/src/Shared/LanguageParser/tokenCharReader.cs b/src/Shared/LanguageParser/tokenCharReader.cs index 51a6978d0b8..1b7a1c4485c 100644 --- a/src/Shared/LanguageParser/tokenCharReader.cs +++ b/src/Shared/LanguageParser/tokenCharReader.cs @@ -4,7 +4,6 @@ using System; using System.IO; -#nullable disable namespace Microsoft.Build.Shared.LanguageParser { diff --git a/src/Shared/MetadataConversionUtilities.cs b/src/Shared/MetadataConversionUtilities.cs index a932217e7bc..d83d2511cc9 100644 --- a/src/Shared/MetadataConversionUtilities.cs +++ b/src/Shared/MetadataConversionUtilities.cs @@ -4,7 +4,6 @@ using System; using Microsoft.Build.Framework; -#nullable disable namespace Microsoft.Build.Shared { diff --git a/src/Shared/NodeBuildComplete.cs b/src/Shared/NodeBuildComplete.cs index 25aa30675f7..426ac1f67df 100644 --- a/src/Shared/NodeBuildComplete.cs +++ b/src/Shared/NodeBuildComplete.cs @@ -3,7 +3,6 @@ using System.Diagnostics; -#nullable disable namespace Microsoft.Build.BackEnd { diff --git a/src/Shared/NodeEngineShutdownReason.cs b/src/Shared/NodeEngineShutdownReason.cs index dc4f0f3069c..f84015a0a8c 100644 --- a/src/Shared/NodeEngineShutdownReason.cs +++ b/src/Shared/NodeEngineShutdownReason.cs @@ -1,7 +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 disable namespace Microsoft.Build.Execution { diff --git a/src/Shared/ProcessExtensions.cs b/src/Shared/ProcessExtensions.cs index d13ebbac5fe..91addd48495 100644 --- a/src/Shared/ProcessExtensions.cs +++ b/src/Shared/ProcessExtensions.cs @@ -3,7 +3,6 @@ using System.Diagnostics; -#nullable disable namespace Microsoft.Build.Shared { diff --git a/src/Shared/QuotingUtilities.cs b/src/Shared/QuotingUtilities.cs index 5d42939b505..63f7ad4be00 100644 --- a/src/Shared/QuotingUtilities.cs +++ b/src/Shared/QuotingUtilities.cs @@ -5,7 +5,6 @@ using System.Diagnostics; using System.Text; -#nullable disable namespace Microsoft.Build.Shared { diff --git a/src/Shared/TaskHostTaskCancelled.cs b/src/Shared/TaskHostTaskCancelled.cs index f56e61a34d9..08b60df7091 100644 --- a/src/Shared/TaskHostTaskCancelled.cs +++ b/src/Shared/TaskHostTaskCancelled.cs @@ -1,7 +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 disable namespace Microsoft.Build.BackEnd { diff --git a/src/Shared/VisualStudioConstants.cs b/src/Shared/VisualStudioConstants.cs index b99fd731d21..351964fb8b8 100644 --- a/src/Shared/VisualStudioConstants.cs +++ b/src/Shared/VisualStudioConstants.cs @@ -1,7 +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 disable namespace Microsoft.Build.Shared { diff --git a/src/Shared/XMakeElements.cs b/src/Shared/XMakeElements.cs index e94aba740e7..2e52a3230ae 100644 --- a/src/Shared/XMakeElements.cs +++ b/src/Shared/XMakeElements.cs @@ -6,7 +6,6 @@ using System; using System.Collections.Frozen; -#nullable disable namespace Microsoft.Build.Shared { diff --git a/src/Shared/XamlUtilities.cs b/src/Shared/XamlUtilities.cs index ffdecbf00e8..aac45a9a515 100644 --- a/src/Shared/XamlUtilities.cs +++ b/src/Shared/XamlUtilities.cs @@ -4,7 +4,6 @@ using Microsoft.Build.Construction; using Microsoft.Build.Framework.XamlTypes; -#nullable disable namespace Microsoft.Build.Shared { @@ -218,7 +217,6 @@ internal void Validate(this BaseProperty type) // Unknown derivation, but that's ok. } - /// /// Validates the properties of this object. This method should be called /// after initialization is complete. @@ -229,7 +227,6 @@ internal void Validate(this Category type) VerifyThrowPropertyNotSetOrEmptyString(type.Name, namePropertyId); } - /// /// Validates the properties of this object. This method should be called /// after initialization is complete. @@ -263,7 +260,6 @@ internal void Validate(this DynamicEnumProperty type) ErrorUtilities.VerifyThrowArgumentLength(type.EnumProvider, "EnumProvider"); } - /// /// Validates the properties of this object. This method should be called /// after initialization is complete. @@ -303,7 +299,6 @@ private void Validate(this EnumProperty type) } } - /// /// Validates the properties of this object. This method should be called /// after initialization is complete. diff --git a/src/Tasks/AppConfig/AppConfigException.cs b/src/Tasks/AppConfig/AppConfigException.cs index b059713b9da..d6ea98e86a7 100644 --- a/src/Tasks/AppConfig/AppConfigException.cs +++ b/src/Tasks/AppConfig/AppConfigException.cs @@ -4,7 +4,6 @@ using System; using System.Runtime.Serialization; -#nullable disable namespace Microsoft.Build.Tasks { @@ -27,7 +26,6 @@ internal string FileName } } - /// /// The line number with the error. Is initialized to zero /// @@ -52,7 +50,6 @@ internal int Column } } - /// /// Construct the exception. /// diff --git a/src/Tasks/AppConfig/RuntimeSection.cs b/src/Tasks/AppConfig/RuntimeSection.cs index 59056ed3027..a551ee80f28 100644 --- a/src/Tasks/AppConfig/RuntimeSection.cs +++ b/src/Tasks/AppConfig/RuntimeSection.cs @@ -4,7 +4,6 @@ using System.Collections.Generic; using System.Xml; -#nullable disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/AssemblyNameReference.cs b/src/Tasks/AssemblyDependency/AssemblyNameReference.cs index 818a00a7fe4..14bb2042608 100644 --- a/src/Tasks/AssemblyDependency/AssemblyNameReference.cs +++ b/src/Tasks/AssemblyDependency/AssemblyNameReference.cs @@ -4,7 +4,6 @@ using System; using Microsoft.Build.Shared; -#nullable disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/AssemblyNameReferenceAscendingVersionComparer.cs b/src/Tasks/AssemblyDependency/AssemblyNameReferenceAscendingVersionComparer.cs index d1537bd9ffe..0edf976f9ab 100644 --- a/src/Tasks/AssemblyDependency/AssemblyNameReferenceAscendingVersionComparer.cs +++ b/src/Tasks/AssemblyDependency/AssemblyNameReferenceAscendingVersionComparer.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; -#nullable disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/AssemblyResolutionConstants.cs b/src/Tasks/AssemblyDependency/AssemblyResolutionConstants.cs index 0ba5dff6661..d3e18a18d21 100644 --- a/src/Tasks/AssemblyDependency/AssemblyResolutionConstants.cs +++ b/src/Tasks/AssemblyDependency/AssemblyResolutionConstants.cs @@ -1,7 +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 disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/BadImageReferenceException.cs b/src/Tasks/AssemblyDependency/BadImageReferenceException.cs index a6567717294..e52ec770bde 100644 --- a/src/Tasks/AssemblyDependency/BadImageReferenceException.cs +++ b/src/Tasks/AssemblyDependency/BadImageReferenceException.cs @@ -4,7 +4,6 @@ using System; using System.Runtime.Serialization; -#nullable disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/ConflictLossReason.cs b/src/Tasks/AssemblyDependency/ConflictLossReason.cs index e47cdf801c4..14d3becdd61 100644 --- a/src/Tasks/AssemblyDependency/ConflictLossReason.cs +++ b/src/Tasks/AssemblyDependency/ConflictLossReason.cs @@ -1,7 +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 disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/CopyLocalState.cs b/src/Tasks/AssemblyDependency/CopyLocalState.cs index c5d26772cfe..620e5dda7aa 100644 --- a/src/Tasks/AssemblyDependency/CopyLocalState.cs +++ b/src/Tasks/AssemblyDependency/CopyLocalState.cs @@ -3,7 +3,6 @@ using Microsoft.Build.Framework; -#nullable disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/DependencyResolutionException.cs b/src/Tasks/AssemblyDependency/DependencyResolutionException.cs index 2e174dadc3b..2edfce85ea9 100644 --- a/src/Tasks/AssemblyDependency/DependencyResolutionException.cs +++ b/src/Tasks/AssemblyDependency/DependencyResolutionException.cs @@ -4,7 +4,6 @@ using System; using System.Runtime.Serialization; -#nullable disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/DisposableBase.cs b/src/Tasks/AssemblyDependency/DisposableBase.cs index 6568d1122aa..04136aff54e 100644 --- a/src/Tasks/AssemblyDependency/DisposableBase.cs +++ b/src/Tasks/AssemblyDependency/DisposableBase.cs @@ -3,7 +3,6 @@ using System; -#nullable disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/NoMatchReason.cs b/src/Tasks/AssemblyDependency/NoMatchReason.cs index 7041fba1223..be53a948809 100644 --- a/src/Tasks/AssemblyDependency/NoMatchReason.cs +++ b/src/Tasks/AssemblyDependency/NoMatchReason.cs @@ -1,7 +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 disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/ReferenceResolutionException.cs b/src/Tasks/AssemblyDependency/ReferenceResolutionException.cs index c924e806f07..ad24d588e47 100644 --- a/src/Tasks/AssemblyDependency/ReferenceResolutionException.cs +++ b/src/Tasks/AssemblyDependency/ReferenceResolutionException.cs @@ -4,7 +4,6 @@ using System; using System.Runtime.Serialization; -#nullable disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/UnificationReason.cs b/src/Tasks/AssemblyDependency/UnificationReason.cs index 12c9216820b..350aaeb2f45 100644 --- a/src/Tasks/AssemblyDependency/UnificationReason.cs +++ b/src/Tasks/AssemblyDependency/UnificationReason.cs @@ -1,7 +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 disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/UnificationVersion.cs b/src/Tasks/AssemblyDependency/UnificationVersion.cs index 021d17d702b..fd5ddeb9ee3 100644 --- a/src/Tasks/AssemblyDependency/UnificationVersion.cs +++ b/src/Tasks/AssemblyDependency/UnificationVersion.cs @@ -3,7 +3,6 @@ using System; -#nullable disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/UnifiedAssemblyName.cs b/src/Tasks/AssemblyDependency/UnifiedAssemblyName.cs index 60491219832..28a6139500d 100644 --- a/src/Tasks/AssemblyDependency/UnifiedAssemblyName.cs +++ b/src/Tasks/AssemblyDependency/UnifiedAssemblyName.cs @@ -3,7 +3,6 @@ using Microsoft.Build.Shared; -#nullable disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/AssemblyDependency/WarnOrErrorOnTargetArchitectureMismatchBehavior.cs b/src/Tasks/AssemblyDependency/WarnOrErrorOnTargetArchitectureMismatchBehavior.cs index 9d2a2284f10..c8e98f1c4a7 100644 --- a/src/Tasks/AssemblyDependency/WarnOrErrorOnTargetArchitectureMismatchBehavior.cs +++ b/src/Tasks/AssemblyDependency/WarnOrErrorOnTargetArchitectureMismatchBehavior.cs @@ -1,7 +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 disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/BootstrapperUtil/NativeMethods.cs b/src/Tasks/BootstrapperUtil/NativeMethods.cs index 7adc90231c8..2c7b88a7513 100644 --- a/src/Tasks/BootstrapperUtil/NativeMethods.cs +++ b/src/Tasks/BootstrapperUtil/NativeMethods.cs @@ -4,7 +4,6 @@ using System; using System.Runtime.InteropServices; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { diff --git a/src/Tasks/BootstrapperUtil/Package.cs b/src/Tasks/BootstrapperUtil/Package.cs index b452bf71d84..ca687336809 100644 --- a/src/Tasks/BootstrapperUtil/Package.cs +++ b/src/Tasks/BootstrapperUtil/Package.cs @@ -4,7 +4,6 @@ using System.Runtime.InteropServices; using System.Xml; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { diff --git a/src/Tasks/BootstrapperUtil/ProductBuilder.cs b/src/Tasks/BootstrapperUtil/ProductBuilder.cs index cef60825152..b01f8860138 100644 --- a/src/Tasks/BootstrapperUtil/ProductBuilder.cs +++ b/src/Tasks/BootstrapperUtil/ProductBuilder.cs @@ -1,7 +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 disable namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { diff --git a/src/Tasks/BootstrapperUtil/ProductBuilderCollection.cs b/src/Tasks/BootstrapperUtil/ProductBuilderCollection.cs index 1af1c8c7f84..46550f2ad2f 100644 --- a/src/Tasks/BootstrapperUtil/ProductBuilderCollection.cs +++ b/src/Tasks/BootstrapperUtil/ProductBuilderCollection.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { diff --git a/src/Tasks/BootstrapperUtil/ResourceUpdater.cs b/src/Tasks/BootstrapperUtil/ResourceUpdater.cs index 947fbaf755c..afee6d8a725 100644 --- a/src/Tasks/BootstrapperUtil/ResourceUpdater.cs +++ b/src/Tasks/BootstrapperUtil/ResourceUpdater.cs @@ -9,7 +9,6 @@ using System.Threading; using Microsoft.Build.Shared; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { diff --git a/src/Tasks/BootstrapperUtil/xmlvalidationresults.cs b/src/Tasks/BootstrapperUtil/xmlvalidationresults.cs index 4a144ab5db6..02b5ee895a0 100644 --- a/src/Tasks/BootstrapperUtil/xmlvalidationresults.cs +++ b/src/Tasks/BootstrapperUtil/xmlvalidationresults.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { diff --git a/src/Tasks/DataDriven/DataDrivenToolTask.cs b/src/Tasks/DataDriven/DataDrivenToolTask.cs index 444f2f6dba0..145311889af 100644 --- a/src/Tasks/DataDriven/DataDrivenToolTask.cs +++ b/src/Tasks/DataDriven/DataDrivenToolTask.cs @@ -13,7 +13,6 @@ using System.Reflection; using System.Diagnostics; -#nullable disable namespace Microsoft.Build.Tasks.DataDriven { diff --git a/src/Tasks/FileIO/HashEncoding.cs b/src/Tasks/FileIO/HashEncoding.cs index b8f39cadcbc..5e1a11c3f8c 100644 --- a/src/Tasks/FileIO/HashEncoding.cs +++ b/src/Tasks/FileIO/HashEncoding.cs @@ -1,7 +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 disable namespace Microsoft.Build.Tasks { diff --git a/src/Tasks/ManifestUtil/ApplicationIdentity.cs b/src/Tasks/ManifestUtil/ApplicationIdentity.cs index c5b3c682345..df54b213a71 100644 --- a/src/Tasks/ManifestUtil/ApplicationIdentity.cs +++ b/src/Tasks/ManifestUtil/ApplicationIdentity.cs @@ -4,7 +4,6 @@ using System; using System.Runtime.InteropServices; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { diff --git a/src/Tasks/ManifestUtil/CompatibleFrameworkCollection.cs b/src/Tasks/ManifestUtil/CompatibleFrameworkCollection.cs index 94f50627a82..b0bc02feacb 100644 --- a/src/Tasks/ManifestUtil/CompatibleFrameworkCollection.cs +++ b/src/Tasks/ManifestUtil/CompatibleFrameworkCollection.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { diff --git a/src/Tasks/ManifestUtil/Constants.cs b/src/Tasks/ManifestUtil/Constants.cs index 5e7491a974c..46c120f0014 100644 --- a/src/Tasks/ManifestUtil/Constants.cs +++ b/src/Tasks/ManifestUtil/Constants.cs @@ -3,7 +3,6 @@ using System; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { diff --git a/src/Tasks/ManifestUtil/ConvertUtil.cs b/src/Tasks/ManifestUtil/ConvertUtil.cs index 88be5e23f8a..c59aebea112 100644 --- a/src/Tasks/ManifestUtil/ConvertUtil.cs +++ b/src/Tasks/ManifestUtil/ConvertUtil.cs @@ -5,7 +5,6 @@ using System.Diagnostics; using System.Globalization; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { diff --git a/src/Tasks/ManifestUtil/FileAssociationCollection.cs b/src/Tasks/ManifestUtil/FileAssociationCollection.cs index d2b0384b001..ee9c919b4f9 100644 --- a/src/Tasks/ManifestUtil/FileAssociationCollection.cs +++ b/src/Tasks/ManifestUtil/FileAssociationCollection.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.Runtime.InteropServices; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { diff --git a/src/Tasks/ManifestUtil/ManifestFormatter.cs b/src/Tasks/ManifestUtil/ManifestFormatter.cs index 6300dba4d0b..d0756d2ca07 100644 --- a/src/Tasks/ManifestUtil/ManifestFormatter.cs +++ b/src/Tasks/ManifestUtil/ManifestFormatter.cs @@ -6,7 +6,6 @@ using System.Text; using System.Xml; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { diff --git a/src/Tasks/ManifestUtil/NativeMethods.cs b/src/Tasks/ManifestUtil/NativeMethods.cs index 145db59746e..49d878af077 100644 --- a/src/Tasks/ManifestUtil/NativeMethods.cs +++ b/src/Tasks/ManifestUtil/NativeMethods.cs @@ -4,7 +4,6 @@ using System; using System.Runtime.InteropServices; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { diff --git a/src/Tasks/ManifestUtil/RSAPKCS1SHA256SignatureDescription.cs b/src/Tasks/ManifestUtil/RSAPKCS1SHA256SignatureDescription.cs index d41a32ad42a..7e60ebc9968 100644 --- a/src/Tasks/ManifestUtil/RSAPKCS1SHA256SignatureDescription.cs +++ b/src/Tasks/ManifestUtil/RSAPKCS1SHA256SignatureDescription.cs @@ -4,7 +4,6 @@ using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; -#nullable disable namespace System.Deployment.Internal.CodeSigning { diff --git a/src/Tasks/ManifestUtil/XPaths.cs b/src/Tasks/ManifestUtil/XPaths.cs index fad943f8d0d..1947c2016f5 100644 --- a/src/Tasks/ManifestUtil/XPaths.cs +++ b/src/Tasks/ManifestUtil/XPaths.cs @@ -1,7 +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 disable namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { diff --git a/src/Tasks/ManifestUtil/XmlNamespaces.cs b/src/Tasks/ManifestUtil/XmlNamespaces.cs index bccdf44abf6..2cc7528d825 100644 --- a/src/Tasks/ManifestUtil/XmlNamespaces.cs +++ b/src/Tasks/ManifestUtil/XmlNamespaces.cs @@ -3,7 +3,6 @@ using System.Xml; -#nullable disable namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { diff --git a/src/Tasks/ResourceHandling/FileStreamResource.cs b/src/Tasks/ResourceHandling/FileStreamResource.cs index 39117f25e70..4e900e25111 100644 --- a/src/Tasks/ResourceHandling/FileStreamResource.cs +++ b/src/Tasks/ResourceHandling/FileStreamResource.cs @@ -5,7 +5,6 @@ using System.Resources; using System.Resources.Extensions; -#nullable disable namespace Microsoft.Build.Tasks.ResourceHandling { diff --git a/src/Tasks/ResourceHandling/MSBuildResXException.cs b/src/Tasks/ResourceHandling/MSBuildResXException.cs index 6ef3b33e88e..60c36052ab9 100644 --- a/src/Tasks/ResourceHandling/MSBuildResXException.cs +++ b/src/Tasks/ResourceHandling/MSBuildResXException.cs @@ -4,7 +4,6 @@ using System; using System.Runtime.Serialization; -#nullable disable namespace Microsoft.Build.Tasks.ResourceHandling { diff --git a/src/Tasks/ResourceHandling/NameUtilities.cs b/src/Tasks/ResourceHandling/NameUtilities.cs index 13f0f795e98..6e1b229a674 100644 --- a/src/Tasks/ResourceHandling/NameUtilities.cs +++ b/src/Tasks/ResourceHandling/NameUtilities.cs @@ -3,7 +3,6 @@ using System; -#nullable disable namespace Microsoft.Build.Tasks.ResourceHandling { diff --git a/src/Tasks/ResourceHandling/PreserializedResourceWriterRequiredException.cs b/src/Tasks/ResourceHandling/PreserializedResourceWriterRequiredException.cs index 5cfea71ab5c..65d0afef64d 100644 --- a/src/Tasks/ResourceHandling/PreserializedResourceWriterRequiredException.cs +++ b/src/Tasks/ResourceHandling/PreserializedResourceWriterRequiredException.cs @@ -4,7 +4,6 @@ using System; using System.Runtime.Serialization; -#nullable disable namespace Microsoft.Build.Tasks.ResourceHandling { diff --git a/src/Tasks/ResourceHandling/TypeConverterByteArrayResource.cs b/src/Tasks/ResourceHandling/TypeConverterByteArrayResource.cs index d239ec802c7..ba2b141bc19 100644 --- a/src/Tasks/ResourceHandling/TypeConverterByteArrayResource.cs +++ b/src/Tasks/ResourceHandling/TypeConverterByteArrayResource.cs @@ -4,7 +4,6 @@ using System.Resources; using System.Resources.Extensions; -#nullable disable namespace Microsoft.Build.Tasks.ResourceHandling { diff --git a/src/Tasks/ResourceHandling/TypeConverterStringResource.cs b/src/Tasks/ResourceHandling/TypeConverterStringResource.cs index 35efc4928bf..08e14f95952 100644 --- a/src/Tasks/ResourceHandling/TypeConverterStringResource.cs +++ b/src/Tasks/ResourceHandling/TypeConverterStringResource.cs @@ -4,7 +4,6 @@ using System.Resources; using System.Resources.Extensions; -#nullable disable namespace Microsoft.Build.Tasks.ResourceHandling { diff --git a/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryCodeType.cs b/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryCodeType.cs index b3adf5e45a6..e4d5408a4b0 100644 --- a/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryCodeType.cs +++ b/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryCodeType.cs @@ -1,7 +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 disable namespace Microsoft.Build.Tasks { diff --git a/src/Utilities/ApiContract.cs b/src/Utilities/ApiContract.cs index f107dfe5d6a..bfc9bdf3d7e 100644 --- a/src/Utilities/ApiContract.cs +++ b/src/Utilities/ApiContract.cs @@ -5,8 +5,6 @@ using System.Collections.Generic; using System.Xml; -#nullable disable - namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/AssemblyFolders/AssemblyFoldersExInfo.cs b/src/Utilities/AssemblyFolders/AssemblyFoldersExInfo.cs index 8c9fae05bf8..e0975fb7952 100644 --- a/src/Utilities/AssemblyFolders/AssemblyFoldersExInfo.cs +++ b/src/Utilities/AssemblyFolders/AssemblyFoldersExInfo.cs @@ -6,8 +6,6 @@ using Microsoft.Build.Shared; using Microsoft.Win32; -#nullable disable - namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/AssemblyFolders/AssemblyFoldersFromConfigInfo.cs b/src/Utilities/AssemblyFolders/AssemblyFoldersFromConfigInfo.cs index 008dc6034b2..e93d9280af5 100644 --- a/src/Utilities/AssemblyFolders/AssemblyFoldersFromConfigInfo.cs +++ b/src/Utilities/AssemblyFolders/AssemblyFoldersFromConfigInfo.cs @@ -6,8 +6,6 @@ using System.Text.RegularExpressions; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/SDKType.cs b/src/Utilities/SDKType.cs index 15dc1b64db6..0f5a4ce1925 100644 --- a/src/Utilities/SDKType.cs +++ b/src/Utilities/SDKType.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 disable - namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/TrackedDependencies/CanonicalTrackedFilesHelper.cs b/src/Utilities/TrackedDependencies/CanonicalTrackedFilesHelper.cs index 12f1c3c88b0..a223374a240 100644 --- a/src/Utilities/TrackedDependencies/CanonicalTrackedFilesHelper.cs +++ b/src/Utilities/TrackedDependencies/CanonicalTrackedFilesHelper.cs @@ -8,8 +8,6 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; -#nullable disable - namespace Microsoft.Build.Utilities { internal static class CanonicalTrackedFilesHelper