From cc006b994e5ef15c9c392502b88c2a3ee62972af Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Thu, 2 Dec 2021 21:08:32 +1100 Subject: [PATCH 1/4] Enable nullable reference types by default This turns C# 9's nullable reference types on by default for all projects in the solution, and opts out unannotated files by adding `#nullable disable` to them. This has two nice properties: 1. New code will be written with nullability in mind as the feature will be on by default. 2. It's easy to find unannotated code by searching for `#nullable disable`. We have taken this approach in the .NET Project System and in CPS, and it's worked very well for us. Code under `Deprecated` is unchanged. --- src/Build.OM.UnitTests/AssemblyResources.cs | 2 ++ .../Construction/ConstructionEditing_Tests.cs | 2 ++ .../Construction/ElementLocationPublic_Tests.cs | 2 ++ .../Construction/ProjectChooseElement_Tests.cs | 2 ++ .../Construction/ProjectExtensionsElement_Tests.cs | 2 ++ .../Construction/ProjectFormatting_Tests.cs | 2 ++ .../Construction/ProjectImportElement_Tests.cs | 2 ++ .../Construction/ProjectImportGroupElement_Tests.cs | 2 ++ .../Construction/ProjectItemDefinitionElement_Tests.cs | 2 ++ .../Construction/ProjectItemDefinitionGroupElement_Tests.cs | 2 ++ .../Construction/ProjectItemElement_Tests.cs | 2 ++ .../Construction/ProjectItemGroupElement_tests.cs | 2 ++ .../Construction/ProjectMetadataElement_Tests.cs | 2 ++ .../Construction/ProjectOnErrorElement_Tests.cs | 2 ++ .../Construction/ProjectOutputElement_Tests.cs | 2 ++ .../Construction/ProjectPropertyElement_Tests.cs | 2 ++ .../Construction/ProjectPropertyGroupElement_Tests.cs | 2 ++ .../Construction/ProjectRootElement_Tests.cs | 2 ++ .../Construction/ProjectTargetElement_Tests.cs | 2 ++ .../Construction/ProjectTaskElement_Tests.cs | 2 ++ .../Construction/ProjectUsingTaskElement_Tests.cs | 2 ++ src/Build.OM.UnitTests/Construction/SolutionFile_Tests.cs | 2 ++ .../Construction/UsingTaskBodyElement_Tests.cs | 2 ++ .../Construction/UsingTaskParameterElement_Tests.cs | 2 ++ .../Construction/UsingTaskParameterGroup_Tests.cs | 2 ++ .../Construction/WhiteSpacePreservation_Tests.cs | 2 ++ src/Build.OM.UnitTests/Definition/DefinitionEditing_Tests.cs | 2 ++ .../EditingElementsReferencedByOrReferences_Tests.cs | 2 ++ src/Build.OM.UnitTests/Definition/ProjectCollection_Tests.cs | 2 ++ .../Definition/ProjectItemDefinition_Tests.cs | 2 ++ src/Build.OM.UnitTests/Definition/ProjectItem_Tests.cs | 2 ++ src/Build.OM.UnitTests/Definition/ProjectMetadata_Tests.cs | 2 ++ src/Build.OM.UnitTests/Definition/ProjectProperty_Tests.cs | 2 ++ src/Build.OM.UnitTests/Definition/Project_Tests.cs | 2 ++ src/Build.OM.UnitTests/Definition/ProtectImports_Tests.cs | 2 ++ src/Build.OM.UnitTests/Instance/ProjectInstance_Tests.cs | 2 ++ src/Build.OM.UnitTests/Instance/ProjectItemInstance_Tests.cs | 2 ++ .../Instance/ProjectMetadataInstance_Tests.cs | 2 ++ .../Instance/ProjectOnErrorInstance_Tests.cs | 2 ++ .../Instance/ProjectPropertyInstance_Tests.cs | 2 ++ .../Instance/ProjectTargetInstance_Tests.cs | 2 ++ src/Build.OM.UnitTests/Instance/ProjectTaskInstance_Tests.cs | 2 ++ .../Instance/ProjectTaskOutputItemInstance_Tests.cs | 2 ++ .../Instance/ProjectTaskOutputPropertyInstance_Tests.cs | 2 ++ src/Build.OM.UnitTests/LazyFormattedEventArgs_Tests.cs | 2 ++ src/Build.OM.UnitTests/NugetRestoreTests.cs | 2 ++ .../ObjectModelRemoting/Helpers/TestCollectionGroup.cs | 2 ++ .../Helpers/ViewValidation.construction.cs | 2 ++ .../ObjectModelRemoting/Helpers/ViewValidation.cs | 2 ++ .../ObjectModelRemoting/Helpers/ViewValidation.evaluation.cs | 2 ++ .../ObjectModelRemoting/LinkedConstructionModify_Tests.cs | 2 ++ .../ObjectModelRemoting/LinkedConstructionReadOnly_Tests.cs | 2 ++ .../ObjectModelRemoting/LinkedEvaluationModify_Tests.cs | 2 ++ .../ObjectModelRemoting/LinkedEvaluationReadOnly_Tests.cs | 2 ++ .../ObjectModelRemoting/LinkedProjectCollection_Tests.cs | 2 ++ .../ObjectModelRemoting/LinkedSpecialCasesScenarios.cs | 2 ++ .../RemoteProjectsProviderMock/CollectionsHelpers.cs | 2 ++ .../InheritanceImplementationHelpers.cs | 2 ++ .../ConstructionLinkMocks/MockProjectChooseElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectElementContainerLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectElementLink.cs | 2 ++ .../MockProjectExtensionsElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectImportElementLink.cs | 2 ++ .../MockProjectImportGroupElementLink.cs | 2 ++ .../MockProjectItemDefinitionElementLink.cs | 2 ++ .../MockProjectItemDefinitionGroupElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectItemElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectItemGroupElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectMetadataElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectOnErrorElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectOtherwiseElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectOutputElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectPropertyElementLink.cs | 2 ++ .../MockProjectPropertyGroupElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectRootElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectSdkElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectTargetElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectTaskElementLink.cs | 2 ++ .../MockProjectUsingTaskBodyElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectUsingTaskElementLink.cs | 2 ++ .../MockProjectUsingTaskParameterElementLink.cs | 2 ++ .../ConstructionLinkMocks/MockProjectWhenElementLink.cs | 2 ++ .../MockUsingTaskParameterGroupElementLink.cs | 2 ++ .../ConstructionLinkMocks/ProjectElemetExportHelper.cs | 2 ++ .../RemoteProjectsProviderMock/DirectlyRemotedClasses.cs | 2 ++ .../EvaluationLinkMocks/MockProjectItemDefinitionLink.cs | 2 ++ .../EvaluationLinkMocks/MockProjectItemLink.cs | 2 ++ .../EvaluationLinkMocks/MockProjectLink.cs | 2 ++ .../EvaluationLinkMocks/MockProjectMetadataLink.cs | 2 ++ .../EvaluationLinkMocks/MockProjectPropertyLink.cs | 2 ++ .../RemoteProjectsProviderMock/ExporterMock.cs | 2 ++ .../RemoteProjectsProviderMock/LinkedObjectsMap.cs | 2 ++ src/Build.OM.UnitTests/TransientIO.cs | 2 ++ src/Build.UnitTests/BackEnd/AssemblyLoadContextTestTasks.cs | 2 ++ src/Build.UnitTests/BackEnd/AssemblyTaskFactory_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/BatchingEngine_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/BinaryTranslator_Tests.cs | 2 ++ .../BackEnd/BuildEventArgTransportSink_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/BuildManager_Tests.cs | 2 ++ .../BackEnd/BuildRequestConfigurationResponse_Tests.cs | 2 ++ .../BackEnd/BuildRequestConfiguration_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/BuildRequestEngine_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/BuildRequestEntry_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/BuildRequest_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/BuildResult_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/CacheAggregator_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/CentralForwardingLogger_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/ConfigCache_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/ConfigurationMetadata_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/CustomLogAndReturnTask.cs | 2 ++ src/Build.UnitTests/BackEnd/CustomTaskHelper.cs | 2 ++ src/Build.UnitTests/BackEnd/DebugUtils_tests.cs | 2 ++ src/Build.UnitTests/BackEnd/EventRedirectorToSink_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/EventSourceSink_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/FailingBuilderTask.cs | 2 ++ src/Build.UnitTests/BackEnd/FailingTask.cs | 2 ++ .../BackEnd/FullyQualifiedBuildRequest_Tests.cs | 2 ++ .../BackEnd/GenerateTemporaryTargetAssembly_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/ITestTaskHost.cs | 2 ++ src/Build.UnitTests/BackEnd/IntegrationTests.cs | 4 +++- src/Build.UnitTests/BackEnd/IntrinsicTask_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/ItemCreationTask.cs | 2 ++ src/Build.UnitTests/BackEnd/LoggingContext_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/LoggingServiceFactory_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/LoggingService_Tests.cs | 2 ++ .../BackEnd/LoggingServicesLogMethod_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/Lookup_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/MSBuild_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/MockHost.cs | 2 ++ src/Build.UnitTests/BackEnd/MockLoggingService.cs | 2 ++ src/Build.UnitTests/BackEnd/MockRemoteHostObject.cs | 2 ++ src/Build.UnitTests/BackEnd/MockRunningObjectTable.cs | 2 ++ src/Build.UnitTests/BackEnd/MockSdkResolverService.cs | 2 ++ src/Build.UnitTests/BackEnd/MockTaskBuilder.cs | 2 ++ src/Build.UnitTests/BackEnd/NodeEndpointInProc_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/NodePackets_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/NullMetadataTask.cs | 2 ++ src/Build.UnitTests/BackEnd/OnError_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/ProcessIdTask.cs | 2 ++ src/Build.UnitTests/BackEnd/RequestBuilder_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/ResultsCache_Tests.cs | 2 ++ .../BackEnd/ReturnFailureWithoutLoggingErrorTask.cs | 2 ++ src/Build.UnitTests/BackEnd/Scheduler_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/SdkResolverLoader_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/SdkResolverService_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/SdkResultItemComparison_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/SdkResultOutOfProc_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/TargetBuilder_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/TargetEntry_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/TargetResult_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/TargetUpToDateChecker_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/TaskBuilderTestTask.cs | 2 ++ src/Build.UnitTests/BackEnd/TaskBuilder_Tests.cs | 3 +++ src/Build.UnitTests/BackEnd/TaskExecutionHost_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/TaskHostConfiguration_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/TaskHostFactory_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/TaskHostTaskCancelled_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/TaskHostTaskComplete_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/TaskHost_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/TaskRegistry_Tests.cs | 2 ++ src/Build.UnitTests/BackEnd/TranslationHelpers.cs | 2 ++ src/Build.UnitTests/BinaryLogger_Tests.cs | 2 ++ src/Build.UnitTests/BuildEnvironmentHelper_Tests.cs | 2 ++ src/Build.UnitTests/BuildEventArgsSerialization_Tests.cs | 2 ++ src/Build.UnitTests/BuildResultUtilities.cs | 2 ++ src/Build.UnitTests/ChangeWaves_Tests.cs | 2 ++ .../Collections/CopyOnReadEnumerable_Tests.cs | 2 ++ .../Collections/MSBuildNameIgnoreCaseComparer_Tests.cs | 2 ++ src/Build.UnitTests/Collections/MultiDictionary_Tests.cs | 2 ++ src/Build.UnitTests/Collections/OMcollections_tests.cs | 2 ++ src/Build.UnitTests/ConfigureableForwardingLogger_Tests.cs | 2 ++ src/Build.UnitTests/ConsoleLogger_Tests.cs | 2 ++ src/Build.UnitTests/ConsoleOutputAlignerTests.cs | 1 - src/Build.UnitTests/Construction/ElementLocation_Tests.cs | 2 ++ .../Construction/ProjectImportElement_Tests.cs | 2 ++ src/Build.UnitTests/Construction/ProjectRootElement_Tests.cs | 2 ++ src/Build.UnitTests/Construction/SolutionFile_Tests.cs | 2 ++ .../Construction/SolutionProjectGenerator_Tests.cs | 2 ++ .../Construction/XmlReaderWithoutLocation_Tests.cs | 2 ++ .../Definition/ItemDataCollectionValue_Tests.cs | 2 ++ src/Build.UnitTests/Definition/ItemDefinitionGroup_Tests.cs | 2 ++ .../Definition/ProjectEvaluationContext_Tests.cs | 2 ++ src/Build.UnitTests/Definition/ProjectHelpers.cs | 2 ++ src/Build.UnitTests/Definition/ProjectItem_Tests.cs | 2 ++ src/Build.UnitTests/Definition/Project_Internal_Tests.cs | 2 ++ src/Build.UnitTests/Definition/ToolsVersion_Tests.cs | 2 ++ .../Definition/ToolsetConfigurationReaderTestHelper.cs | 2 ++ .../Definition/ToolsetConfigurationReader_Tests.cs | 2 ++ src/Build.UnitTests/Definition/ToolsetReader_Tests.cs | 2 ++ .../Definition/ToolsetRegistryReader_Tests.cs | 2 ++ src/Build.UnitTests/Definition/Toolset_Tests.cs | 2 ++ src/Build.UnitTests/EndToEndCondition_Tests.cs | 2 ++ src/Build.UnitTests/EscapingInProjects_Tests.cs | 2 ++ src/Build.UnitTests/Evaluation/EvaluationLogging_Tests.cs | 2 ++ src/Build.UnitTests/Evaluation/Evaluator_Tests.cs | 2 ++ src/Build.UnitTests/Evaluation/Expander_Tests.cs | 2 ++ src/Build.UnitTests/Evaluation/ExpressionShredder_Tests.cs | 2 ++ .../Evaluation/ImportFromMSBuildExtensionsPath_Tests.cs | 2 ++ src/Build.UnitTests/Evaluation/ItemEvaluation_Tests.cs | 2 ++ src/Build.UnitTests/Evaluation/ItemSpec_Tests.cs | 2 ++ src/Build.UnitTests/Evaluation/Preprocessor_Tests.cs | 2 ++ src/Build.UnitTests/Evaluation/ProjectCollection_Tests.cs | 2 ++ .../Evaluation/ProjectRootElementCache_Tests.cs | 2 ++ .../Evaluation/ProjectSdkImplicitImport_Tests.cs | 2 ++ src/Build.UnitTests/Evaluation/ProjectStringCache_Tests.cs | 2 ++ src/Build.UnitTests/Evaluation/SdkResultEvaluation_Tests.cs | 2 ++ src/Build.UnitTests/Evaluation/SemiColonTokenizer_Tests.cs | 2 ++ .../Evaluation/SimpleProjectRootElementCache_Tests.cs | 2 ++ src/Build.UnitTests/Evaluation/SimpleVersion_Tests.cs | 2 ++ .../Evaluation/ToolsetConfigurationNet5_Tests.cs | 2 ++ src/Build.UnitTests/EvaluationProfiler_Tests.cs | 2 ++ src/Build.UnitTests/EventArgsFormatting_Tests.cs | 2 ++ src/Build.UnitTests/ExpressionTreeExpression_Tests.cs | 2 ++ src/Build.UnitTests/ExpressionTree_Tests.cs | 2 ++ src/Build.UnitTests/FileLogger_Tests.cs | 2 ++ src/Build.UnitTests/FileUtilitiesRegex_Tests.cs | 2 ++ src/Build.UnitTests/FixPathOnUnix_Tests.cs | 2 ++ src/Build.UnitTests/Globbing/CompositeGlob_Tests.cs | 2 ++ src/Build.UnitTests/Globbing/MSBuildGlobWithGaps_Tests.cs | 2 ++ src/Build.UnitTests/Globbing/MSBuildGlob_Tests.cs | 2 ++ src/Build.UnitTests/Graph/GraphLoadedFromSolution_tests.cs | 2 ++ src/Build.UnitTests/Graph/GraphTestingUtilities.cs | 2 ++ src/Build.UnitTests/Graph/IsolateProjects_Tests.cs | 2 ++ src/Build.UnitTests/Graph/ParallelWorkSet_Tests.cs | 2 ++ src/Build.UnitTests/Graph/ProjectGraph_Tests.cs | 2 ++ src/Build.UnitTests/Graph/ResultCacheBasedBuilds_Tests.cs | 2 ++ src/Build.UnitTests/HashTableUtility_Tests.cs | 2 ++ src/Build.UnitTests/Instance/HostServices_Tests.cs | 2 ++ .../Instance/ProjectInstance_Internal_Tests.cs | 2 ++ .../ProjectItemGroupTaskItemInstance_Internal_Tests.cs | 2 ++ .../Instance/ProjectMetadataInstance_Internal_Tests.cs | 2 ++ ...rojectPropertyGroupTaskPropertyInstance_Internal_Tests.cs | 2 ++ .../Instance/ProjectPropertyInstance_Internal_Tests.cs | 2 ++ .../Instance/ProjectTargetInstance_Internal_Tests.cs | 2 ++ .../Instance/ProjectTaskInstance_Internal_Tests.cs | 2 ++ src/Build.UnitTests/Instance/TaskItem_Tests.cs | 2 ++ src/Build.UnitTests/InternalEngineHelpers.cs | 2 ++ src/Build.UnitTests/InvalidProjectFileException_Tests.cs | 2 ++ src/Build.UnitTests/LogFormatter_Tests.cs | 2 ++ src/Build.UnitTests/LoggerDescription_Tests.cs | 2 ++ src/Build.UnitTests/LoggerException_Tests.cs | 2 ++ src/Build.UnitTests/MockElementLocation.cs | 2 ++ src/Build.UnitTests/MockLoggingContext.cs | 2 ++ src/Build.UnitTests/MockTask.cs | 2 ++ src/Build.UnitTests/Parser_Tests.cs | 2 ++ src/Build.UnitTests/ProjectCache/ProjectCacheTests.cs | 1 - .../ProjectEvaluationFinishedEventArgs_Tests.cs | 2 ++ src/Build.UnitTests/Scanner_Tests.cs | 2 ++ src/Build.UnitTests/SolutionFileBuilder.cs | 2 ++ src/Build.UnitTests/TargetsFile_Test.cs | 2 ++ .../TestComparers/ProjectInstanceModelTestComparers.cs | 2 ++ src/Build.UnitTests/TestComparers/TaskItemComparer.cs | 2 ++ src/Build.UnitTests/TestComparers/TaskRegistryComparers.cs | 2 ++ src/Build.UnitTests/TestData/ProjectInstanceTestObjects.cs | 2 ++ src/Build.UnitTests/Utilities_Tests.cs | 2 ++ src/Build.UnitTests/WarningsAsMessagesAndErrors_Tests.cs | 2 ++ src/Build/BackEnd/BuildManager/BuildManager.cs | 2 ++ src/Build/BackEnd/BuildManager/BuildParameters.cs | 2 ++ src/Build/BackEnd/BuildManager/BuildRequestData.cs | 2 ++ src/Build/BackEnd/BuildManager/BuildSubmission.cs | 2 ++ src/Build/BackEnd/BuildManager/CacheAggregator.cs | 2 ++ src/Build/BackEnd/BuildManager/CacheSerialization.cs | 2 ++ src/Build/BackEnd/BuildManager/LegacyThreadingData.cs | 2 ++ src/Build/BackEnd/BuildManager/RequestedProjectState.cs | 2 ++ .../BackEnd/Components/BuildComponentFactoryCollection.cs | 2 ++ .../BuildRequestEngine/BuildRequestConfigurationResponse.cs | 2 ++ .../Components/BuildRequestEngine/BuildRequestEngine.cs | 2 ++ .../Components/BuildRequestEngine/BuildRequestEntry.cs | 2 ++ .../BuildRequestEngine/FullyQualifiedBuildRequest.cs | 2 ++ .../Components/BuildRequestEngine/IBuildRequestEngine.cs | 2 ++ src/Build/BackEnd/Components/Caching/ConfigCache.cs | 2 ++ .../BackEnd/Components/Caching/ConfigCacheWithOverride.cs | 2 ++ src/Build/BackEnd/Components/Caching/IConfigCache.cs | 2 ++ src/Build/BackEnd/Components/Caching/IPropertyCache.cs | 2 ++ .../BackEnd/Components/Caching/IRegisteredTaskObjectCache.cs | 2 ++ src/Build/BackEnd/Components/Caching/IResultsCache.cs | 2 ++ .../BackEnd/Components/Caching/RegisteredTaskObjectCache.cs | 2 ++ src/Build/BackEnd/Components/Caching/ResultsCache.cs | 2 ++ src/Build/BackEnd/Components/Caching/ResultsCacheResponse.cs | 2 ++ .../BackEnd/Components/Caching/ResultsCacheWithOverride.cs | 2 ++ src/Build/BackEnd/Components/Communications/INodeManager.cs | 2 ++ src/Build/BackEnd/Components/Communications/INodeProvider.cs | 2 ++ .../BackEnd/Components/Communications/LogMessagePacket.cs | 2 ++ .../BackEnd/Components/Communications/NodeEndpointInProc.cs | 2 ++ .../Components/Communications/NodeEndpointOutOfProc.cs | 2 ++ .../Components/Communications/NodeFailedToLaunchException.cs | 2 ++ src/Build/BackEnd/Components/Communications/NodeInfo.cs | 2 ++ src/Build/BackEnd/Components/Communications/NodeManager.cs | 2 ++ .../BackEnd/Components/Communications/NodeProviderInProc.cs | 2 ++ .../Components/Communications/NodeProviderOutOfProc.cs | 2 ++ .../Components/Communications/NodeProviderOutOfProcBase.cs | 2 ++ .../Communications/NodeProviderOutOfProcTaskHost.cs | 2 ++ .../BackEnd/Components/Communications/TaskHostNodeManager.cs | 2 ++ .../Components/Communications/TranslatorExtensions.cs | 2 ++ src/Build/BackEnd/Components/IBuildComponent.cs | 2 ++ src/Build/BackEnd/Components/IBuildComponentHost.cs | 2 ++ .../BackEnd/Components/Logging/BuildEventArgTransportSink.cs | 2 ++ src/Build/BackEnd/Components/Logging/BuildLoggingContext.cs | 2 ++ .../BackEnd/Components/Logging/CentralForwardingLogger.cs | 2 ++ .../BackEnd/Components/Logging/EvaluationLoggingContext.cs | 2 ++ .../BackEnd/Components/Logging/EventRedirectorToSink.cs | 2 ++ src/Build/BackEnd/Components/Logging/EventSourceSink.cs | 2 ++ .../BackEnd/Components/Logging/ForwardingLoggerRecord.cs | 2 ++ src/Build/BackEnd/Components/Logging/ILoggingService.cs | 2 ++ src/Build/BackEnd/Components/Logging/LoggingContext.cs | 2 ++ src/Build/BackEnd/Components/Logging/LoggingService.cs | 2 ++ .../BackEnd/Components/Logging/LoggingServiceFactory.cs | 2 ++ .../BackEnd/Components/Logging/LoggingServiceLogMethods.cs | 2 ++ src/Build/BackEnd/Components/Logging/NodeLoggingContext.cs | 2 ++ .../BackEnd/Components/Logging/ProjectLoggingContext.cs | 2 ++ src/Build/BackEnd/Components/Logging/TargetLoggingContext.cs | 2 ++ src/Build/BackEnd/Components/Logging/TaskLoggingContext.cs | 2 ++ src/Build/BackEnd/Components/ProjectCache/CacheContext.cs | 1 - src/Build/BackEnd/Components/ProjectCache/CacheResult.cs | 1 - .../BackEnd/Components/ProjectCache/PluginLoggerBase.cs | 1 - .../BackEnd/Components/ProjectCache/PluginTargetResult.cs | 1 - .../Components/ProjectCache/ProjectCacheDescriptor.cs | 1 - .../BackEnd/Components/ProjectCache/ProjectCacheException.cs | 2 ++ .../BackEnd/Components/ProjectCache/ProjectCacheItem.cs | 1 - .../Components/ProjectCache/ProjectCachePluginBase.cs | 1 - .../BackEnd/Components/ProjectCache/ProjectCacheService.cs | 1 - src/Build/BackEnd/Components/ProjectCache/ProxyTargets.cs | 1 - .../BackEnd/Components/RequestBuilder/BatchingEngine.cs | 2 ++ src/Build/BackEnd/Components/RequestBuilder/FullTracking.cs | 2 ++ .../BackEnd/Components/RequestBuilder/IRequestBuilder.cs | 2 ++ .../Components/RequestBuilder/IRequestBuilderCallback.cs | 2 ++ .../BackEnd/Components/RequestBuilder/ITargetBuilder.cs | 2 ++ .../Components/RequestBuilder/ITargetBuilderCallback.cs | 2 ++ src/Build/BackEnd/Components/RequestBuilder/ITaskBuilder.cs | 2 ++ src/Build/BackEnd/Components/RequestBuilder/IntrinsicTask.cs | 2 ++ .../Components/RequestBuilder/IntrinsicTasks/CallTarget.cs | 2 ++ .../RequestBuilder/IntrinsicTasks/IntrinsicTaskFactory.cs | 2 ++ .../RequestBuilder/IntrinsicTasks/ItemGroupIntrinsicTask.cs | 2 ++ .../RequestBuilder/IntrinsicTasks/ItemGroupLoggingHelper.cs | 2 ++ .../Components/RequestBuilder/IntrinsicTasks/MSBuild.cs | 2 ++ .../IntrinsicTasks/PropertyGroupIntrinsicTask.cs | 2 ++ src/Build/BackEnd/Components/RequestBuilder/ItemBucket.cs | 2 ++ src/Build/BackEnd/Components/RequestBuilder/Lookup.cs | 2 ++ .../BackEnd/Components/RequestBuilder/RequestBuilder.cs | 2 ++ src/Build/BackEnd/Components/RequestBuilder/TargetBuilder.cs | 2 ++ src/Build/BackEnd/Components/RequestBuilder/TargetEntry.cs | 2 ++ .../BackEnd/Components/RequestBuilder/TargetSpecification.cs | 2 ++ .../Components/RequestBuilder/TargetUpToDateChecker.cs | 2 ++ src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs | 2 ++ src/Build/BackEnd/Components/RequestBuilder/TaskHost.cs | 2 ++ src/Build/BackEnd/Components/Scheduler/IScheduler.cs | 2 ++ src/Build/BackEnd/Components/Scheduler/SchedulableRequest.cs | 2 ++ src/Build/BackEnd/Components/Scheduler/ScheduleResponse.cs | 2 ++ src/Build/BackEnd/Components/Scheduler/ScheduleTimeRecord.cs | 2 ++ src/Build/BackEnd/Components/Scheduler/Scheduler.cs | 2 ++ .../Scheduler/SchedulerCircularDependencyException.cs | 2 ++ src/Build/BackEnd/Components/Scheduler/SchedulingData.cs | 2 ++ src/Build/BackEnd/Components/Scheduler/SchedulingPlan.cs | 2 ++ .../Components/SdkResolution/CachingSdkResolverService.cs | 2 ++ .../BackEnd/Components/SdkResolution/DefaultSdkResolver.cs | 2 ++ .../Components/SdkResolution/HostedSdkResolverServiceBase.cs | 2 ++ .../BackEnd/Components/SdkResolution/ISdkResolverService.cs | 2 ++ .../Components/SdkResolution/MainNodeSdkResolverService.cs | 2 ++ .../SdkResolution/OutOfProcNodeSdkResolverService.cs | 2 ++ .../SdkResolution/OutOfProcNodeSdkResolverServiceFactory.cs | 2 ++ src/Build/BackEnd/Components/SdkResolution/SdkLogger.cs | 2 ++ .../Components/SdkResolution/SdkResolverCachingWrapper.cs | 2 ++ .../BackEnd/Components/SdkResolution/SdkResolverContext.cs | 2 ++ .../BackEnd/Components/SdkResolution/SdkResolverException.cs | 2 ++ .../BackEnd/Components/SdkResolution/SdkResolverLoader.cs | 2 ++ .../BackEnd/Components/SdkResolution/SdkResolverManifest.cs | 2 ++ .../BackEnd/Components/SdkResolution/SdkResolverRequest.cs | 2 ++ .../BackEnd/Components/SdkResolution/SdkResolverService.cs | 2 ++ src/Build/BackEnd/Components/SdkResolution/SdkResult.cs | 2 ++ .../BackEnd/Components/SdkResolution/SdkResultFactory.cs | 2 ++ .../BackEnd/Components/SdkResolution/TranslationHelpers.cs | 2 ++ src/Build/BackEnd/Node/INode.cs | 2 ++ src/Build/BackEnd/Node/InProcNode.cs | 2 ++ src/Build/BackEnd/Node/LoggingNodeConfiguration.cs | 2 ++ src/Build/BackEnd/Node/NativeMethods.cs | 2 ++ src/Build/BackEnd/Node/NodeConfiguration.cs | 2 ++ src/Build/BackEnd/Node/OutOfProcNode.cs | 2 ++ src/Build/BackEnd/Shared/BuildAbortedException.cs | 2 ++ src/Build/BackEnd/Shared/BuildRequest.cs | 2 ++ src/Build/BackEnd/Shared/BuildRequestBlocker.cs | 2 ++ src/Build/BackEnd/Shared/BuildRequestConfiguration.cs | 2 ++ src/Build/BackEnd/Shared/BuildRequestUnblocker.cs | 2 ++ src/Build/BackEnd/Shared/BuildResult.cs | 2 ++ src/Build/BackEnd/Shared/CircularDependencyException.cs | 2 ++ src/Build/BackEnd/Shared/ConfigurationMetadata.cs | 2 ++ src/Build/BackEnd/Shared/IBuildResults.cs | 2 ++ src/Build/BackEnd/Shared/ITargetResult.cs | 2 ++ src/Build/BackEnd/Shared/ResourceRequest.cs | 2 ++ src/Build/BackEnd/Shared/ResourceResponse.cs | 2 ++ src/Build/BackEnd/Shared/TargetResult.cs | 2 ++ src/Build/BackEnd/Shared/WorkUnitResult.cs | 2 ++ .../TaskExecutionHost/AddInParts/ITaskExecutionHost.cs | 2 ++ src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs | 2 ++ src/Build/Collections/ArrayDictionary.cs | 2 ++ src/Build/Collections/ConcurrentQueueExtensions.cs | 2 ++ src/Build/Collections/ConcurrentStackExtensions.cs | 2 ++ src/Build/Collections/ConvertingEnumerable.cs | 2 ++ src/Build/Collections/CopyOnReadEnumerable.cs | 2 ++ src/Build/Collections/CopyOnWritePropertyDictionary.cs | 2 ++ src/Build/Collections/HashTableUtility.cs | 2 ++ src/Build/Collections/IDeepCloneable.cs | 2 ++ src/Build/Collections/IImmutable.cs | 2 ++ src/Build/Collections/IValued.cs | 2 ++ src/Build/Collections/ItemDictionary.cs | 2 ++ src/Build/Collections/LookasideStringInterner.cs | 2 ++ src/Build/Collections/MultiDictionary.cs | 2 ++ src/Build/Collections/PropertyDictionary.cs | 2 ++ src/Build/Collections/ReadOnlyConvertingDictionary.cs | 2 ++ src/Build/Collections/RetrievableEntryHashSet/BitHelper.cs | 2 ++ src/Build/Collections/RetrievableEntryHashSet/HashHelpers.cs | 2 ++ src/Build/Collections/RetrievableEntryHashSet/HashSet.cs | 2 ++ .../Collections/RetrievableEntryHashSet/HashSetDebugView.cs | 2 ++ .../RetrievableEntryHashSet/Originals/BitHelper.cs | 2 ++ .../RetrievableEntryHashSet/Originals/HashHelpers.cs | 2 ++ .../Collections/RetrievableEntryHashSet/Originals/HashSet.cs | 2 ++ .../RetrievableEntryHashSet/Originals/HashSetDebugView.cs | 2 ++ src/Build/Collections/WeakValueDictionary.cs | 2 ++ src/Build/Construction/ImplicitImportLocation.cs | 2 ++ src/Build/Construction/ProjectChooseElement.cs | 2 ++ src/Build/Construction/ProjectElement.cs | 2 ++ src/Build/Construction/ProjectElementContainer.cs | 2 ++ src/Build/Construction/ProjectExtensionsElement.cs | 2 ++ src/Build/Construction/ProjectImportElement.cs | 2 ++ src/Build/Construction/ProjectImportGroupElement.cs | 2 ++ src/Build/Construction/ProjectItemDefinitionElement.cs | 2 ++ src/Build/Construction/ProjectItemDefinitionGroupElement.cs | 2 ++ src/Build/Construction/ProjectItemElement.cs | 2 ++ src/Build/Construction/ProjectItemGroupElement.cs | 2 ++ src/Build/Construction/ProjectMetadataElement.cs | 2 ++ src/Build/Construction/ProjectOnErrorElement.cs | 2 ++ src/Build/Construction/ProjectOtherwiseElement.cs | 2 ++ src/Build/Construction/ProjectOutputElement.cs | 2 ++ src/Build/Construction/ProjectPropertyElement.cs | 2 ++ src/Build/Construction/ProjectPropertyGroupElement.cs | 2 ++ src/Build/Construction/ProjectRootElement.cs | 2 ++ src/Build/Construction/ProjectSdkElement.cs | 2 ++ src/Build/Construction/ProjectTargetElement.cs | 2 ++ src/Build/Construction/ProjectTaskElement.cs | 2 ++ src/Build/Construction/ProjectUsingTaskBodyElement.cs | 2 ++ src/Build/Construction/ProjectUsingTaskElement.cs | 2 ++ src/Build/Construction/ProjectUsingTaskParameterElement.cs | 2 ++ src/Build/Construction/ProjectWhenElement.cs | 2 ++ .../Construction/Solution/ProjectConfigurationInSolution.cs | 2 ++ src/Build/Construction/Solution/ProjectInSolution.cs | 2 ++ .../Construction/Solution/SolutionConfigurationInSolution.cs | 2 ++ src/Build/Construction/Solution/SolutionFile.cs | 2 ++ src/Build/Construction/Solution/SolutionProjectGenerator.cs | 2 ++ src/Build/Construction/UsingTaskParameterGroupElement.cs | 2 ++ src/Build/Definition/BuiltInMetadata.cs | 2 ++ src/Build/Definition/NewProjectFileOptions.cs | 2 ++ src/Build/Definition/Project.cs | 2 ++ src/Build/Definition/ProjectCollection.cs | 2 ++ src/Build/Definition/ProjectCollectionChangedEventArgs.cs | 2 ++ src/Build/Definition/ProjectImportPathMatch.cs | 2 ++ src/Build/Definition/ProjectItem.cs | 2 ++ src/Build/Definition/ProjectItemDefinition.cs | 2 ++ src/Build/Definition/ProjectLoadSettings.cs | 2 ++ src/Build/Definition/ProjectMetadata.cs | 2 ++ src/Build/Definition/ProjectOptions.cs | 2 ++ src/Build/Definition/ProjectProperty.cs | 2 ++ src/Build/Definition/ResolvedImport.cs | 2 ++ src/Build/Definition/SubToolset.cs | 2 ++ src/Build/Definition/Toolset.cs | 2 ++ src/Build/Definition/ToolsetConfigurationReader.cs | 2 ++ src/Build/Definition/ToolsetLocalReader.cs | 2 ++ src/Build/Definition/ToolsetPropertyDefinition.cs | 2 ++ src/Build/Definition/ToolsetReader.cs | 2 ++ src/Build/Definition/ToolsetRegistryReader.cs | 2 ++ src/Build/ElementLocation/ElementLocation.cs | 2 ++ src/Build/ElementLocation/RegistryLocation.cs | 2 ++ src/Build/ElementLocation/XmlAttributeWithLocation.cs | 2 ++ src/Build/ElementLocation/XmlDocumentWithLocation.cs | 2 ++ src/Build/ElementLocation/XmlElementWithLocation.cs | 2 ++ src/Build/ElementLocation/XmlNameTableThreadSafe.cs | 2 ++ src/Build/Errors/InternalLoggerException.cs | 2 ++ src/Build/Errors/InvalidProjectFileException.cs | 2 ++ src/Build/Errors/InvalidToolsetDefinitionException.cs | 2 ++ src/Build/Errors/RegistryException.cs | 2 ++ src/Build/Evaluation/ConditionEvaluator.cs | 2 ++ src/Build/Evaluation/Conditionals/AndExpressionNode.cs | 2 ++ src/Build/Evaluation/Conditionals/CharacterUtilities.cs | 2 ++ src/Build/Evaluation/Conditionals/EqualExpressionNode.cs | 2 ++ .../Evaluation/Conditionals/FunctionCallExpressionNode.cs | 2 ++ src/Build/Evaluation/Conditionals/GenericExpressionNode.cs | 2 ++ .../Evaluation/Conditionals/GreaterThanExpressionNode.cs | 2 ++ .../Conditionals/GreaterThanOrEqualExpressionNode.cs | 2 ++ src/Build/Evaluation/Conditionals/IItem.cs | 2 ++ src/Build/Evaluation/Conditionals/LessThanExpressionNode.cs | 2 ++ .../Evaluation/Conditionals/LessThanOrEqualExpressionNode.cs | 2 ++ .../Conditionals/MultipleComparisonExpressionNode.cs | 2 ++ src/Build/Evaluation/Conditionals/NotEqualExpressionNode.cs | 2 ++ src/Build/Evaluation/Conditionals/NotExpressionNode.cs | 2 ++ .../Conditionals/NumericComparisonExpressionNode.cs | 2 ++ src/Build/Evaluation/Conditionals/NumericExpressionNode.cs | 2 ++ src/Build/Evaluation/Conditionals/OperandExpressionNode.cs | 2 ++ src/Build/Evaluation/Conditionals/OperatorExpressionNode.cs | 2 ++ src/Build/Evaluation/Conditionals/OrExpressionNode.cs | 2 ++ src/Build/Evaluation/Conditionals/Parser.cs | 2 ++ src/Build/Evaluation/Conditionals/Scanner.cs | 2 ++ src/Build/Evaluation/Conditionals/StringExpressionNode.cs | 2 ++ src/Build/Evaluation/Conditionals/Token.cs | 2 ++ src/Build/Evaluation/Context/EvaluationContext.cs | 2 ++ src/Build/Evaluation/Evaluator.cs | 2 ++ src/Build/Evaluation/EvaluatorMetadataTable.cs | 2 ++ src/Build/Evaluation/Expander.cs | 2 ++ src/Build/Evaluation/ExpressionShredder.cs | 2 ++ src/Build/Evaluation/IEvaluatorData.cs | 2 ++ src/Build/Evaluation/IItem.cs | 2 ++ src/Build/Evaluation/IItemDefinition.cs | 2 ++ src/Build/Evaluation/IItemFactory.cs | 2 ++ src/Build/Evaluation/IItemProvider.cs | 2 ++ src/Build/Evaluation/IMetadataTable.cs | 2 ++ src/Build/Evaluation/IMetadatum.cs | 2 ++ src/Build/Evaluation/IProjectMetadataParent.cs | 2 ++ src/Build/Evaluation/IProperty.cs | 2 ++ src/Build/Evaluation/IPropertyProvider.cs | 2 ++ src/Build/Evaluation/IToolsetProvider.cs | 2 ++ src/Build/Evaluation/IntrinsicFunctions.cs | 2 ++ src/Build/Evaluation/ItemDataCollectionValue.cs | 2 ++ src/Build/Evaluation/ItemSpec.cs | 2 ++ src/Build/Evaluation/ItemsAndMetadataPair.cs | 2 ++ src/Build/Evaluation/LazyItemEvaluator.EvaluatorData.cs | 2 ++ src/Build/Evaluation/LazyItemEvaluator.IItemOperation.cs | 2 ++ src/Build/Evaluation/LazyItemEvaluator.IncludeOperation.cs | 2 ++ src/Build/Evaluation/LazyItemEvaluator.ItemFactoryWrapper.cs | 2 ++ src/Build/Evaluation/LazyItemEvaluator.LazyItemOperation.cs | 2 ++ .../LazyItemEvaluator.OrderedItemDataCollection.cs | 2 ++ src/Build/Evaluation/LazyItemEvaluator.RemoveOperation.cs | 2 ++ src/Build/Evaluation/LazyItemEvaluator.UpdateOperation.cs | 2 ++ src/Build/Evaluation/LazyItemEvaluator.cs | 2 ++ src/Build/Evaluation/MetadataReference.cs | 2 ++ src/Build/Evaluation/Preprocessor.cs | 2 ++ .../Profiler/EvaluationLocationMarkdownPrettyPrinter.cs | 2 ++ .../Profiler/EvaluationLocationPrettyPrinterBase.cs | 2 ++ .../Profiler/EvaluationLocationTabSeparatedPrettyPrinter.cs | 2 ++ src/Build/Evaluation/Profiler/EvaluationProfiler.cs | 2 ++ src/Build/Evaluation/Profiler/ProfilerResultPrettyPrinter.cs | 2 ++ src/Build/Evaluation/ProjectChangedEventArgs.cs | 2 ++ src/Build/Evaluation/ProjectParser.cs | 2 ++ src/Build/Evaluation/ProjectRootElementCache.cs | 2 ++ src/Build/Evaluation/ProjectRootElementCacheBase.cs | 2 ++ src/Build/Evaluation/ProjectStringCache.cs | 2 ++ src/Build/Evaluation/ProjectXmlChangedEventArgs.cs | 2 ++ src/Build/Evaluation/PropertyTrackingEvaluatorDataWrapper.cs | 2 ++ src/Build/Evaluation/SemiColonTokenizer.cs | 2 ++ src/Build/Evaluation/SimpleProjectRootElementCache.cs | 2 ++ src/Build/Evaluation/StringMetadataTable.cs | 2 ++ src/Build/Evaluation/ToolsetProvider.cs | 2 ++ src/Build/FileSystem/DirectoryCacheFileSystemWrapper.cs | 2 ++ src/Build/FileSystem/IDirectoryCache.cs | 2 ++ src/Build/FileSystem/MSBuildFileSystemBase.cs | 2 ++ src/Build/Globbing/CompositeGlob.cs | 2 ++ src/Build/Globbing/Extensions/MSBuildGlobExtensions.cs | 2 ++ src/Build/Globbing/IMSBuildGlob.cs | 2 ++ src/Build/Globbing/MSBuildGlob.cs | 2 ++ src/Build/Globbing/MSBuildGlobWithGaps.cs | 2 ++ src/Build/Globbing/Visitor/GlobVisitor.cs | 2 ++ src/Build/Globbing/Visitor/ParsedGlobCollector.cs | 2 ++ src/Build/Graph/GraphBuildRequestData.cs | 2 ++ src/Build/Graph/GraphBuildResult.cs | 2 ++ src/Build/Graph/GraphBuildSubmission.cs | 2 ++ src/Build/Graph/GraphBuilder.cs | 2 ++ src/Build/Graph/ParallelWorkSet.cs | 2 ++ src/Build/Graph/ProjectGraph.cs | 2 ++ src/Build/Graph/ProjectGraphEntryPoint.cs | 2 ++ src/Build/Graph/ProjectGraphNode.cs | 2 ++ src/Build/Graph/ProjectInterpretation.cs | 2 ++ src/Build/Instance/HostObjectException.cs | 2 ++ src/Build/Instance/HostServices.cs | 2 ++ src/Build/Instance/IRunningObjectTableWrapper.cs | 2 ++ src/Build/Instance/ProjectInstance.cs | 2 ++ src/Build/Instance/ProjectItemDefinitionInstance.cs | 2 ++ src/Build/Instance/ProjectItemGroupTaskInstance.cs | 2 ++ src/Build/Instance/ProjectItemGroupTaskItemInstance.cs | 2 ++ src/Build/Instance/ProjectItemGroupTaskMetadataInstance.cs | 2 ++ src/Build/Instance/ProjectItemInstance.cs | 2 ++ src/Build/Instance/ProjectMetadataInstance.cs | 2 ++ src/Build/Instance/ProjectOnErrorInstance.cs | 2 ++ src/Build/Instance/ProjectPropertyGroupTaskInstance.cs | 2 ++ .../Instance/ProjectPropertyGroupTaskPropertyInstance.cs | 2 ++ src/Build/Instance/ProjectPropertyInstance.cs | 2 ++ src/Build/Instance/ProjectTargetInstance.cs | 2 ++ src/Build/Instance/ProjectTargetInstanceChild.cs | 2 ++ src/Build/Instance/ProjectTaskInstance.cs | 2 ++ src/Build/Instance/ProjectTaskInstanceChild.cs | 2 ++ src/Build/Instance/ProjectTaskOutputItemInstance.cs | 2 ++ src/Build/Instance/ProjectTaskOutputPropertyInstance.cs | 2 ++ src/Build/Instance/ReflectableTaskPropertyInfo.cs | 2 ++ src/Build/Instance/RunningObjectTable.cs | 2 ++ src/Build/Instance/TaskFactories/AssemblyTaskFactory.cs | 2 ++ src/Build/Instance/TaskFactories/TaskHostTask.cs | 2 ++ src/Build/Instance/TaskFactoryLoggingHost.cs | 2 ++ src/Build/Instance/TaskFactoryWrapper.cs | 2 ++ src/Build/Instance/TaskRegistry.cs | 2 ++ src/Build/Logging/BaseConsoleLogger.cs | 2 ++ src/Build/Logging/BinaryLogger/BinaryLogRecordKind.cs | 4 +++- src/Build/Logging/BinaryLogger/BinaryLogReplayEventSource.cs | 2 ++ src/Build/Logging/BinaryLogger/BinaryLogger.cs | 2 ++ src/Build/Logging/BinaryLogger/BuildEventArgsDispatcher.cs | 2 ++ src/Build/Logging/BinaryLogger/BuildEventArgsFieldFlags.cs | 2 ++ src/Build/Logging/BinaryLogger/BuildEventArgsFields.cs | 2 ++ src/Build/Logging/BinaryLogger/BuildEventArgsReader.cs | 2 ++ src/Build/Logging/BinaryLogger/BuildEventArgsWriter.cs | 2 ++ src/Build/Logging/BinaryLogger/ProjectImportsCollector.cs | 2 ++ src/Build/Logging/ConsoleLogger.cs | 2 ++ .../DistributedLoggers/ConfigurableForwardingLogger.cs | 2 ++ .../Logging/DistributedLoggers/DistributedFileLogger.cs | 2 ++ src/Build/Logging/EvaluationLocationIdAgnosticComparer.cs | 2 ++ src/Build/Logging/FileLogger.cs | 2 ++ src/Build/Logging/LogFormatter.cs | 2 ++ src/Build/Logging/LoggerDescription.cs | 2 ++ src/Build/Logging/NullCentralLogger.cs | 2 ++ src/Build/Logging/ParallelLogger/ConsoleOutputAligner.cs | 1 - src/Build/Logging/ParallelLogger/ParallelConsoleLogger.cs | 2 ++ src/Build/Logging/ParallelLogger/ParallelLoggerHelpers.cs | 2 ++ src/Build/Logging/ProfilerLogger.cs | 2 ++ src/Build/Logging/SerialConsoleLogger.cs | 2 ++ .../ConstructionObjectLinks/ProjectElementContainerLink.cs | 2 ++ .../ConstructionObjectLinks/ProjectElementLink.cs | 2 ++ .../ConstructionObjectLinks/ProjectExtensionsElementLink.cs | 2 ++ .../ConstructionObjectLinks/ProjectImportElementLink.cs | 2 ++ .../ConstructionObjectLinks/ProjectItemElementLink.cs | 2 ++ .../ConstructionObjectLinks/ProjectMetadataElementLink.cs | 2 ++ .../ConstructionObjectLinks/ProjectPropertyElementLink.cs | 2 ++ .../ConstructionObjectLinks/ProjectRootElementLink.cs | 2 ++ .../ConstructionObjectLinks/ProjectTargetElementLink.cs | 2 ++ .../ConstructionObjectLinks/ProjectTaskElementLink.cs | 2 ++ .../ProjectUsingTaskBodyElementLink.cs | 2 ++ .../ProjectUsingTaskParameterElementLink.cs | 2 ++ .../DefinitionObjectsLinks/ProjectItemDefinitionLink.cs | 2 ++ .../DefinitionObjectsLinks/ProjectItemLink.cs | 2 ++ .../DefinitionObjectsLinks/ProjectLink.cs | 2 ++ .../DefinitionObjectsLinks/ProjectMetadataLink.cs | 2 ++ .../DefinitionObjectsLinks/ProjectPropertyLink.cs | 2 ++ src/Build/ObjectModelRemoting/ExternalProjectsProvider.cs | 2 ++ src/Build/ObjectModelRemoting/LinkedObjectFactory.cs | 2 ++ src/Build/Resources/AssemblyResources.cs | 2 ++ src/Build/Resources/Constants.cs | 2 ++ src/Build/Resources/MSBuildAssemblyFileVersion.cs | 2 ++ src/Build/Utilities/EngineFileUtilities.cs | 2 ++ src/Build/Utilities/FileSpecMatchTester.cs | 2 ++ src/Build/Utilities/ImmutableCollectionsExtensions.cs | 2 ++ src/Build/Utilities/NuGetFrameworkWrapper.cs | 2 ++ src/Build/Utilities/RegistryKeyWrapper.cs | 2 ++ src/Build/Utilities/SimpleVersion.cs | 2 ++ src/Build/Utilities/Utilities.cs | 2 ++ src/Build/Xml/ProjectXmlUtilities.XmlElementChildIterator.cs | 2 ++ src/Build/Xml/ProjectXmlUtilities.cs | 2 ++ src/Build/Xml/XmlReaderExtension.cs | 2 ++ src/Deprecated/Conversion/Microsoft.Build.Conversion.csproj | 3 ++- src/Deprecated/Engine/Microsoft.Build.Engine.csproj | 3 ++- src/Directory.Build.props | 1 + src/Framework.UnitTests/Attribute_Tests.cs | 2 ++ src/Framework.UnitTests/BuildErrorEventArgs_Tests.cs | 2 ++ src/Framework.UnitTests/BuildFinishedEventArgs_Tests.cs | 2 ++ src/Framework.UnitTests/BuildMessageEventArgs_Tests.cs | 2 ++ src/Framework.UnitTests/BuildStartedEventArgs_Tests.cs | 2 ++ src/Framework.UnitTests/BuildWarningEventArgs_Tests.cs | 2 ++ .../CriticalBuildMessageEventArgs_Tests.cs | 2 ++ src/Framework.UnitTests/CustomEventArgSerialization_Tests.cs | 2 ++ src/Framework.UnitTests/EventArgs_Tests.cs | 2 ++ .../ExternalProjectFinishedEventArgs_Tests.cs | 2 ++ .../ExternalProjectStartedEventArgs_Tests.cs | 2 ++ src/Framework.UnitTests/FileClassifier_Tests.cs | 2 ++ src/Framework.UnitTests/LoggerException_Tests.cs | 2 ++ src/Framework.UnitTests/ProjectFinishedEventArgs_Tests.cs | 2 ++ src/Framework.UnitTests/ProjectStartedEventArgs_Tests.cs | 2 ++ src/Framework.UnitTests/SdkReference_Tests.cs | 2 ++ src/Framework.UnitTests/TargetFinishedEventArgs_Tests.cs | 2 ++ src/Framework.UnitTests/TargetStartedEventArgs_Tests.cs | 2 ++ src/Framework.UnitTests/TaskCommandLineEventArgs_Tests.cs | 2 ++ src/Framework.UnitTests/TaskFinishedEventArgs_Tests.cs | 2 ++ src/Framework.UnitTests/TaskStartedEventArgs_Tests.cs | 2 ++ src/Framework/AssemblyUtilities.cs | 2 ++ src/Framework/BuildEngineResult.cs | 2 ++ src/Framework/BuildEnvironmentState.cs | 2 ++ src/Framework/BuildErrorEventArgs.cs | 2 ++ src/Framework/BuildEventArgs.cs | 2 ++ src/Framework/BuildEventContext.cs | 2 ++ src/Framework/BuildFinishedEventArgs.cs | 2 ++ src/Framework/BuildMessageEventArgs.cs | 2 ++ src/Framework/BuildStartedEventArgs.cs | 2 ++ src/Framework/BuildStatusEventArgs.cs | 2 ++ src/Framework/BuildWarningEventArgs.cs | 2 ++ src/Framework/ChangeWaves.cs | 2 ++ src/Framework/CriticalBuildMessageEventArgs.cs | 2 ++ src/Framework/CustomBuildEventArgs.cs | 2 ++ src/Framework/Debugging/CommonWriter.cs | 2 ++ src/Framework/EnvironmentVariableReadEventArgs.cs | 2 ++ src/Framework/ErrorUtilities.cs | 2 ++ src/Framework/ExternalProjectFinishedEventArgs.cs | 2 ++ src/Framework/ExternalProjectStartedEventArgs.cs | 2 ++ src/Framework/FileClassifier.cs | 1 - src/Framework/IBuildEngine.cs | 2 ++ src/Framework/IBuildEngine10.cs | 2 ++ src/Framework/IBuildEngine2.cs | 2 ++ src/Framework/IBuildEngine3.cs | 2 ++ src/Framework/IBuildEngine4.cs | 2 ++ src/Framework/IBuildEngine5.cs | 2 ++ src/Framework/IBuildEngine6.cs | 2 ++ src/Framework/IBuildEngine7.cs | 2 ++ src/Framework/IBuildEngine8.cs | 2 ++ src/Framework/IBuildEngine9.cs | 2 ++ src/Framework/ICancelableTask.cs | 2 ++ src/Framework/IEventRedirector.cs | 2 ++ src/Framework/IEventSource.cs | 2 ++ src/Framework/IEventSource2.cs | 2 ++ src/Framework/IEventSource3.cs | 2 ++ src/Framework/IEventSource4.cs | 2 ++ src/Framework/IForwardingLogger.cs | 2 ++ src/Framework/IGeneratedTask.cs | 2 ++ src/Framework/ILogger.cs | 2 ++ src/Framework/IMetadataContainer.cs | 2 ++ src/Framework/INodeLogger.cs | 2 ++ src/Framework/IProjectElement.cs | 2 ++ src/Framework/ITask.cs | 2 ++ src/Framework/ITaskFactory.cs | 2 ++ src/Framework/ITaskFactory2.cs | 2 ++ src/Framework/ITaskHost.cs | 2 ++ src/Framework/ITaskItem.cs | 2 ++ src/Framework/ITaskItem2.cs | 2 ++ src/Framework/ITaskItemExtensions.cs | 2 ++ src/Framework/ImmutableFilesTimestampCache.cs | 1 - src/Framework/InternalErrorException.cs | 2 ++ src/Framework/LazyFormattedBuildEventArgs.cs | 2 ++ src/Framework/LoadInSeparateAppDomainAttribute.cs | 2 ++ src/Framework/LoggerException.cs | 2 ++ src/Framework/MSBuildEventSource.cs | 2 ++ src/Framework/MetaProjectGeneratedEventArgs.cs | 2 ++ src/Framework/NativeMethods.cs | 2 ++ src/Framework/NullableAttributes.cs | 2 ++ src/Framework/OutputAttribute.cs | 2 ++ src/Framework/Profiler/EvaluationIdProvider.cs | 2 ++ src/Framework/Profiler/EvaluationLocation.cs | 2 ++ src/Framework/Profiler/ProfilerResult.cs | 2 ++ src/Framework/ProjectEvaluationFinishedEventArgs.cs | 2 ++ src/Framework/ProjectEvaluationStartedEventArgs.cs | 2 ++ src/Framework/ProjectFinishedEventArgs.cs | 2 ++ src/Framework/ProjectImportedEventArgs.cs | 2 ++ src/Framework/ProjectStartedEventArgs.cs | 2 ++ src/Framework/PropertyInitialValueSetEventArgs.cs | 2 ++ src/Framework/PropertyReassignmentEventArgs.cs | 2 ++ src/Framework/RequiredAttribute.cs | 2 ++ src/Framework/RequiredRuntimeAttribute.cs | 2 ++ src/Framework/RunInMTAAttribute.cs | 2 ++ src/Framework/RunInSTAAttribute.cs | 2 ++ src/Framework/Sdk/SdkLogger.cs | 2 ++ src/Framework/Sdk/SdkReference.cs | 2 ++ src/Framework/Sdk/SdkResolver.cs | 2 ++ src/Framework/Sdk/SdkResolverContext.cs | 2 ++ src/Framework/Sdk/SdkResult.cs | 2 ++ src/Framework/Sdk/SdkResultFactory.cs | 2 ++ src/Framework/StringBuilderCache.cs | 2 ++ src/Framework/TargetBuiltReason.cs | 2 ++ src/Framework/TargetFinishedEventArgs.cs | 2 ++ src/Framework/TargetSkippedEventArgs.cs | 2 ++ src/Framework/TargetStartedEventArgs.cs | 2 ++ src/Framework/TaskCommandLineEventArgs.cs | 2 ++ src/Framework/TaskFinishedEventArgs.cs | 2 ++ src/Framework/TaskItemData.cs | 2 ++ src/Framework/TaskParameterEventArgs.cs | 2 ++ src/Framework/TaskPropertyInfo.cs | 2 ++ src/Framework/TaskStartedEventArgs.cs | 2 ++ src/Framework/TelemetryEventArgs.cs | 2 ++ src/Framework/TestInfo.cs | 4 +++- src/Framework/Traits.cs | 2 ++ src/Framework/UninitializedPropertyReadEventArgs.cs | 2 ++ src/Framework/VisualStudioLocationHelper.cs | 2 ++ src/Framework/XamlTypes/Argument.cs | 2 ++ src/Framework/XamlTypes/BaseProperty.cs | 2 ++ src/Framework/XamlTypes/BoolProperty.cs | 2 ++ src/Framework/XamlTypes/Category.cs | 2 ++ src/Framework/XamlTypes/CategorySchema.cs | 2 ++ src/Framework/XamlTypes/ContentType.cs | 2 ++ src/Framework/XamlTypes/DataSource.cs | 2 ++ src/Framework/XamlTypes/DynamicEnumProperty.cs | 2 ++ src/Framework/XamlTypes/EnumProperty.cs | 2 ++ src/Framework/XamlTypes/EnumValue.cs | 2 ++ src/Framework/XamlTypes/FileExtension.cs | 2 ++ src/Framework/XamlTypes/IProjectSchemaNode.cs | 2 ++ src/Framework/XamlTypes/IntProperty.cs | 2 ++ src/Framework/XamlTypes/ItemType.cs | 2 ++ src/Framework/XamlTypes/NameValuePair.cs | 2 ++ src/Framework/XamlTypes/ProjectSchemaDefinitions.cs | 2 ++ src/Framework/XamlTypes/Rule.cs | 2 ++ src/Framework/XamlTypes/RuleBag.cs | 2 ++ src/Framework/XamlTypes/RuleSchema.cs | 2 ++ src/Framework/XamlTypes/StringListProperty.cs | 2 ++ src/Framework/XamlTypes/StringProperty.cs | 2 ++ src/Framework/XamlTypes/ValueEditor.cs | 2 ++ src/MSBuild.UnitTests/CommandLineSwitches_Tests.cs | 2 ++ src/MSBuild.UnitTests/PerfLog_Tests.cs | 2 ++ .../ProjectSchemaValidationHandler_Tests.cs | 2 ++ src/MSBuild.UnitTests/ValidateAssemblyLoadContext.cs | 2 ++ src/MSBuild.UnitTests/XMake_Tests.cs | 2 ++ src/MSBuild/AssemblyResources.cs | 2 ++ src/MSBuild/CommandLineSwitchException.cs | 2 ++ src/MSBuild/CommandLineSwitches.cs | 2 ++ src/MSBuild/DistributedLoggerRecord.cs | 2 ++ src/MSBuild/InitializationException.cs | 2 ++ src/MSBuild/LogMessagePacket.cs | 2 ++ src/MSBuild/NodeEndpointOutOfProcTaskHost.cs | 2 ++ src/MSBuild/OutOfProcTaskAppDomainWrapper.cs | 2 ++ src/MSBuild/OutOfProcTaskAppDomainWrapperBase.cs | 2 ++ src/MSBuild/OutOfProcTaskHostNode.cs | 2 ++ src/MSBuild/PerformanceLogEventListener.cs | 2 ++ src/MSBuild/ProjectSchemaValidationHandler.cs | 2 ++ src/MSBuild/XMake.cs | 2 ++ src/MSBuildTaskHost/AssemblyResources.cs | 2 ++ src/MSBuildTaskHost/Concurrent/ConcurrentDictionary.cs | 2 ++ src/MSBuildTaskHost/Concurrent/ConcurrentQueue.cs | 2 ++ src/MSBuildTaskHost/FileSystem/MSBuildTaskHostFileSystem.cs | 2 ++ src/MSBuildTaskHost/Immutable/ImmutableDictionary.cs | 2 ++ src/MSBuildTaskHost/OutOfProcTaskAppDomainWrapper.cs | 2 ++ src/MSBuildTaskHost/OutOfProcTaskHost.cs | 2 ++ src/MSBuildTaskHost/TypeLoader.cs | 2 ++ src/Package/Microsoft.Build.UnGAC/NativeMethods.cs | 2 ++ src/Package/Microsoft.Build.UnGAC/Program.cs | 2 ++ src/Samples/Dependency/Alpha.cs | 2 ++ src/Samples/PortableTask/ShowItems.cs | 2 ++ src/Samples/PortableTask/Sleep.cs | 2 ++ src/Samples/ProjectCachePlugin/AssemblyMockCache.cs | 2 ++ src/Samples/TaskUsageLogger/TaskUsageLogger.cs | 2 ++ src/Samples/TaskWithDependency/LogStringFromDependency.cs | 2 ++ src/Samples/XmlFileLogger/ILogNode.cs | 2 ++ src/Samples/XmlFileLogger/ItemGroupParser.cs | 2 ++ src/Samples/XmlFileLogger/LogProcessNode.cs | 2 ++ src/Samples/XmlFileLogger/ObjectModel/Build.cs | 2 ++ src/Samples/XmlFileLogger/ObjectModel/InputParameter.cs | 2 ++ src/Samples/XmlFileLogger/ObjectModel/Item.cs | 2 ++ src/Samples/XmlFileLogger/ObjectModel/ItemGroup.cs | 2 ++ src/Samples/XmlFileLogger/ObjectModel/Message.cs | 2 ++ src/Samples/XmlFileLogger/ObjectModel/OutputItem.cs | 2 ++ src/Samples/XmlFileLogger/ObjectModel/OutputProperty.cs | 2 ++ src/Samples/XmlFileLogger/ObjectModel/Project.cs | 2 ++ src/Samples/XmlFileLogger/ObjectModel/Target.cs | 2 ++ src/Samples/XmlFileLogger/ObjectModel/Task.cs | 2 ++ src/Samples/XmlFileLogger/ObjectModel/TaskParameter.cs | 2 ++ src/Samples/XmlFileLogger/PropertyBag.cs | 2 ++ .../XmlFileLogger/UnknownTaskParameterPrefixException.cs | 2 ++ src/Samples/XmlFileLogger/XmlFileLogger.cs | 2 ++ src/Shared/AssemblyFolders/AssemblyFoldersEx.cs | 2 ++ src/Shared/AssemblyFolders/AssemblyFoldersFromConfig.cs | 2 ++ .../Serialization/AssemblyFolderCollection.cs | 2 ++ .../AssemblyFolders/Serialization/AssemblyFolderItem.cs | 2 ++ src/Shared/AssemblyLoadInfo.cs | 2 ++ src/Shared/AssemblyNameComparer.cs | 2 ++ src/Shared/AssemblyNameExtension.cs | 2 ++ src/Shared/AssemblyNameReverseVersionComparer.cs | 2 ++ src/Shared/AwaitExtensions.cs | 2 ++ src/Shared/BinaryReaderExtensions.cs | 2 ++ src/Shared/BinaryTranslator.cs | 2 ++ src/Shared/BinaryWriterExtensions.cs | 2 ++ src/Shared/BufferedReadStream.cs | 2 ++ src/Shared/BuildEnvironmentHelper.cs | 2 ++ src/Shared/BuildEventFileInfo.cs | 2 ++ src/Shared/CanonicalError.cs | 2 ++ src/Shared/CollectionHelpers.cs | 2 ++ src/Shared/CommunicationsUtilities.cs | 2 ++ src/Shared/Constants.cs | 2 ++ src/Shared/ConversionUtilities.cs | 2 ++ src/Shared/CopyOnWriteDictionary.cs | 2 -- src/Shared/CoreCLRAssemblyLoader.cs | 2 ++ src/Shared/Debugging/DebugUtils.cs | 2 ++ src/Shared/Debugging/PrintLineDebugger.cs | 2 ++ src/Shared/Debugging/PrintLineDebuggerWriters.cs | 2 ++ src/Shared/EncodingStringWriter.cs | 2 ++ src/Shared/EncodingUtilities.cs | 2 ++ src/Shared/EnvironmentUtilities.cs | 2 ++ src/Shared/ErrorUtilities.cs | 2 ++ src/Shared/EscapingUtilities.cs | 2 ++ src/Shared/EventArgsFormatting.cs | 2 ++ src/Shared/ExceptionHandling.cs | 4 ++++ src/Shared/ExtensionFoldersRegistryKey.cs | 2 ++ src/Shared/FileDelegates.cs | 2 ++ src/Shared/FileMatcher.cs | 2 ++ src/Shared/FileSystem/CachingFileSystemWrapper.cs | 2 ++ src/Shared/FileSystem/FileSystems.cs | 2 ++ src/Shared/FileSystem/IFileSystem.cs | 2 ++ src/Shared/FileSystem/MSBuildOnWindowsFileSystem.cs | 2 ++ src/Shared/FileSystem/ManagedFileSystem.cs | 2 ++ src/Shared/FileSystem/NativeWin32Exception.cs | 2 ++ src/Shared/FileSystem/SafeFileHandle.cs | 2 ++ src/Shared/FileSystem/WindowsFileSystem.cs | 2 ++ src/Shared/FileSystem/WindowsNative.cs | 2 ++ src/Shared/FileUtilities.cs | 2 ++ src/Shared/FileUtilitiesRegex.cs | 2 ++ src/Shared/FrameworkLocationHelper.cs | 2 ++ src/Shared/IConstrainedEqualityComparer.cs | 2 ++ src/Shared/IElementLocation.cs | 2 ++ src/Shared/IKeyed.cs | 2 ++ src/Shared/INodeEndpoint.cs | 2 ++ src/Shared/INodePacket.cs | 2 ++ src/Shared/INodePacketFactory.cs | 2 ++ src/Shared/INodePacketHandler.cs | 2 ++ src/Shared/ITranslatable.cs | 2 ++ src/Shared/ITranslator.cs | 2 ++ src/Shared/InprocTrackingNativeMethods.cs | 2 ++ src/Shared/InterningBinaryReader.cs | 2 ++ src/Shared/LanguageParser/CSharptokenCharReader.cs | 2 ++ src/Shared/LanguageParser/CSharptokenEnumerator.cs | 2 ++ src/Shared/LanguageParser/CSharptokenizer.cs | 2 ++ src/Shared/LanguageParser/StreamMappedString.cs | 2 ++ src/Shared/LanguageParser/VisualBasictokenCharReader.cs | 2 ++ src/Shared/LanguageParser/VisualBasictokenEnumerator.cs | 2 ++ src/Shared/LanguageParser/VisualBasictokenizer.cs | 2 ++ src/Shared/LanguageParser/token.cs | 2 ++ src/Shared/LanguageParser/tokenChar.cs | 2 ++ src/Shared/LanguageParser/tokenCharReader.cs | 2 ++ src/Shared/LanguageParser/tokenEnumerator.cs | 2 ++ src/Shared/LoadedType.cs | 2 ++ src/Shared/LogMessagePacketBase.cs | 2 ++ src/Shared/MSBuildLoadContext.cs | 2 -- src/Shared/MSBuildNameIgnoreCaseComparer.cs | 2 ++ src/Shared/MetadataConversionUtilities.cs | 2 ++ src/Shared/Modifiers.cs | 2 ++ src/Shared/NGen.cs | 2 ++ src/Shared/NamedPipeUtil.cs | 2 -- src/Shared/NodeBuildComplete.cs | 2 ++ src/Shared/NodeEndpointOutOfProcBase.cs | 2 ++ src/Shared/NodeEngineShutdownReason.cs | 2 ++ src/Shared/NodePacketFactory.cs | 2 ++ src/Shared/NodeShutdown.cs | 2 ++ src/Shared/OutOfProcTaskHostTaskResult.cs | 2 ++ src/Shared/Pair.cs | 2 ++ src/Shared/ProcessExtensions.cs | 2 ++ src/Shared/ProjectErrorUtilities.cs | 2 ++ src/Shared/ProjectFileErrorUtilities.cs | 2 ++ src/Shared/ProjectWriter.cs | 2 ++ src/Shared/PropertyParser.cs | 2 ++ src/Shared/QuotingUtilities.cs | 2 ++ src/Shared/ReadOnlyCollection.cs | 2 ++ src/Shared/ReadOnlyEmptyCollection.cs | 2 ++ src/Shared/ReadOnlyEmptyDictionary.cs | 2 ++ src/Shared/RegisteredTaskObjectCacheBase.cs | 3 ++- src/Shared/RegistryDelegates.cs | 2 ++ src/Shared/RegistryHelper.cs | 2 ++ src/Shared/ResourceUtilities.cs | 2 ++ src/Shared/StringExtensions.cs | 2 ++ src/Shared/StrongNameHelpers.cs | 2 ++ src/Shared/TaskEngineAssemblyResolver.cs | 2 ++ src/Shared/TaskHostConfiguration.cs | 2 ++ src/Shared/TaskHostTaskCancelled.cs | 2 ++ src/Shared/TaskHostTaskComplete.cs | 2 ++ src/Shared/TaskLoader.cs | 2 ++ src/Shared/TaskLoggingHelper.cs | 2 ++ src/Shared/TaskLoggingHelperExtension.cs | 2 ++ src/Shared/TaskParameter.cs | 2 ++ src/Shared/TaskParameterTypeVerifier.cs | 2 ++ src/Shared/TempFileUtilities.cs | 2 ++ src/Shared/ThreadPoolExtensions.cs | 2 ++ src/Shared/ToolsetElement.cs | 2 ++ src/Shared/Tracing.cs | 2 ++ src/Shared/TranslatorHelpers.cs | 2 ++ src/Shared/TypeLoader.cs | 2 ++ src/Shared/UnitTests/AssemblyNameEx_Tests.cs | 2 ++ src/Shared/UnitTests/AssemblyResources.cs | 2 ++ src/Shared/UnitTests/BuildEventArgsExtension.cs | 2 ++ src/Shared/UnitTests/CopyOnWriteDictionary_Tests.cs | 2 ++ src/Shared/UnitTests/EngineTestEnvironment.cs | 2 ++ src/Shared/UnitTests/ErrorUtilities_Tests.cs | 2 ++ src/Shared/UnitTests/EscapingUtilities_Tests.cs | 2 ++ src/Shared/UnitTests/FileMatcher_Tests.cs | 2 ++ src/Shared/UnitTests/FileUtilities_Tests.cs | 2 ++ src/Shared/UnitTests/ImmutableDictionary_Tests.cs | 2 ++ src/Shared/UnitTests/MockEngine.cs | 2 ++ src/Shared/UnitTests/MockLogger.cs | 2 ++ src/Shared/UnitTests/NativeMethodsShared_Tests.cs | 2 ++ src/Shared/UnitTests/ObjectModelHelpers.cs | 2 ++ src/Shared/UnitTests/PrintLineDebugger_Tests.cs | 2 ++ src/Shared/UnitTests/ResourceUtilities_Tests.cs | 2 ++ src/Shared/UnitTests/StreamHelpers.cs | 2 ++ src/Shared/UnitTests/TaskParameter_Tests.cs | 2 ++ src/Shared/UnitTests/TestAssemblyInfo.cs | 5 +++-- src/Shared/UnitTests/TestData/GlobbingTestData.cs | 2 ++ src/Shared/UnitTests/TestEnvironment.cs | 2 ++ src/Shared/UnitTests/TypeLoader_Dependencies_Tests.cs | 2 ++ src/Shared/UnitTests/TypeLoader_Tests.cs | 2 ++ src/Shared/UnitTests/XmakeAttributes_Tests.cs | 2 ++ src/Shared/UnitTests/XmlUtilities_Tests.cs | 2 ++ src/Shared/VersionUtilities.cs | 2 ++ src/Shared/VisualStudioConstants.cs | 2 ++ src/Shared/XMakeAttributes.cs | 2 ++ src/Shared/XMakeElements.cs | 2 ++ src/Shared/XamlUtilities.cs | 2 ++ src/Shared/XmlUtilities.cs | 2 ++ src/StringTools.Benchmark/Program.cs | 2 ++ .../SpanBasedStringBuilder_Benchmark.cs | 2 ++ src/StringTools.UnitTests/InterningTestData.cs | 2 ++ src/StringTools.UnitTests/SpanBasedStringBuilder_Tests.cs | 2 ++ src/StringTools.UnitTests/StringTools_Tests.cs | 2 ++ src/StringTools.UnitTests/WeakStringCache_Tests.cs | 2 ++ src/StringTools/StringTools.csproj | 3 +-- src/Tasks.UnitTests/Al_Tests.cs | 2 ++ src/Tasks.UnitTests/AppConfig_Tests.cs | 2 ++ src/Tasks.UnitTests/AspNetCompiler_Tests.cs | 2 ++ .../AssemblyDependency/AssemblyFoldersFromConfig_Tests.cs | 2 ++ src/Tasks.UnitTests/AssemblyDependency/FilePrimary.cs | 2 ++ .../AssemblyDependency/GlobalAssemblyCacheTests.cs | 2 ++ .../AssemblyDependency/InstalledSDKResolverFixture.cs | 2 ++ src/Tasks.UnitTests/AssemblyDependency/Miscellaneous.cs | 2 ++ .../AssemblyDependency/NonSpecificVersionStrictPrimary.cs | 2 ++ src/Tasks.UnitTests/AssemblyDependency/Perf.cs | 2 ++ src/Tasks.UnitTests/AssemblyDependency/ReferenceTests.cs | 2 ++ .../ResolveAssemblyReferenceCacheSerialization.cs | 2 ++ .../ResolveAssemblyReferenceTestFixture.cs | 2 ++ .../AssemblyDependency/SpecificVersionPrimary.cs | 2 ++ .../AssemblyDependency/StronglyNamedDependency.cs | 2 ++ .../AssemblyDependency/StronglyNamedDependencyAppConfig.cs | 2 ++ .../AssemblyDependency/StronglyNamedDependencyAutoUnify.cs | 2 ++ src/Tasks.UnitTests/AssemblyDependency/SuggestedRedirects.cs | 2 ++ .../AssemblyDependency/TaskTranslatorHelpers.cs | 2 ++ .../VerifyIgnoreVersionForFrameworkReference.cs | 2 ++ .../AssemblyDependency/VerifyTargetFrameworkAttribute.cs | 2 ++ .../VerifyTargetFrameworkHigherThanRedist.cs | 2 ++ src/Tasks.UnitTests/AssemblyDependency/WinMDTests.cs | 2 ++ src/Tasks.UnitTests/AssemblyRegistrationCache_Tests.cs | 2 ++ src/Tasks.UnitTests/AssignCulture_Tests.cs | 2 ++ src/Tasks.UnitTests/AssignLinkMetadata_Tests.cs | 2 ++ src/Tasks.UnitTests/AssignProjectConfiguration_Tests.cs | 2 ++ src/Tasks.UnitTests/AssignTargetPath_Tests.cs | 2 ++ src/Tasks.UnitTests/AxImp_Tests.cs | 2 ++ src/Tasks.UnitTests/AxTlbBaseTask_Tests.cs | 2 ++ src/Tasks.UnitTests/CSharpParserUtilitites_Tests.cs | 2 ++ src/Tasks.UnitTests/CSharpTokenizer_Tests.cs | 2 ++ src/Tasks.UnitTests/CallTarget_Tests.cs | 2 ++ src/Tasks.UnitTests/CodeTaskFactoryTests.cs | 2 ++ src/Tasks.UnitTests/ComReferenceWalker_Tests.cs | 2 ++ src/Tasks.UnitTests/ComReference_Tests.cs | 2 ++ src/Tasks.UnitTests/CombinePath_Tests.cs | 2 ++ src/Tasks.UnitTests/CommandLineBuilderExtension_Tests.cs | 2 ++ src/Tasks.UnitTests/CommandLineGenerator_Tests.cs | 2 ++ src/Tasks.UnitTests/CommandLine_Support.cs | 2 ++ src/Tasks.UnitTests/ConvertToAbsolutePath_Tests.cs | 2 ++ src/Tasks.UnitTests/Copy_Tests.cs | 2 ++ .../CreateCSharpManifestResourceName_Tests.cs | 2 ++ src/Tasks.UnitTests/CreateItem_Tests.cs | 2 ++ src/Tasks.UnitTests/CreateProperty_Tests.cs | 2 ++ .../CreateVisualBasicManifestResourceName_Tests.cs | 2 ++ src/Tasks.UnitTests/Culture_Tests.cs | 2 ++ src/Tasks.UnitTests/Delete_Tests.cs | 2 ++ src/Tasks.UnitTests/DependentAssembly_Tests.cs | 2 ++ src/Tasks.UnitTests/DirectoryBuildProjectImportTestBase.cs | 2 ++ src/Tasks.UnitTests/DirectoryBuildPropsImportTests.cs | 2 ++ src/Tasks.UnitTests/DirectoryBuildTargetsImportTests.cs | 2 ++ src/Tasks.UnitTests/DownloadFile_Tests.cs | 2 ++ src/Tasks.UnitTests/ErrorWarningMessage_Tests.cs | 2 ++ src/Tasks.UnitTests/Exec_Tests.cs | 2 ++ src/Tasks.UnitTests/FileStateTests.cs | 2 ++ src/Tasks.UnitTests/FindAppConfigFile_Tests.cs | 2 ++ src/Tasks.UnitTests/FindInList_Tests.cs | 2 ++ src/Tasks.UnitTests/FindInvalidProjectReferences_Tests.cs | 2 ++ src/Tasks.UnitTests/FindUnderPath_Tests.cs | 2 ++ src/Tasks.UnitTests/GenerateBindingRedirects_Tests.cs | 2 ++ src/Tasks.UnitTests/GetCompatiblePlatform_Tests.cs | 2 ++ src/Tasks.UnitTests/GetFileHash_Tests.cs | 2 ++ src/Tasks.UnitTests/GetInstalledSDKLocations_Tests.cs | 2 ++ src/Tasks.UnitTests/GetReferencePaths_Tests.cs | 2 ++ src/Tasks.UnitTests/GetSDKReference_Tests.cs | 2 ++ src/Tasks.UnitTests/Hash_Tests.cs | 2 ++ src/Tasks.UnitTests/HintPathResolver_Tests.cs | 2 ++ src/Tasks.UnitTests/LC_Tests.cs | 2 ++ src/Tasks.UnitTests/MSBuild_Tests.cs | 2 ++ src/Tasks.UnitTests/MakeDir_Tests.cs | 2 ++ src/Tasks.UnitTests/MockFaultInjectionHelper.cs | 2 ++ src/Tasks.UnitTests/MockTypeInfo.cs | 2 ++ src/Tasks.UnitTests/MockTypeLib.cs | 2 ++ src/Tasks.UnitTests/MockUnmanagedMemoryHelper.cs | 2 ++ src/Tasks.UnitTests/Move_Tests.cs | 2 ++ src/Tasks.UnitTests/NuGetPropsImportTests.cs | 2 ++ src/Tasks.UnitTests/OutputPathTests.cs | 2 ++ src/Tasks.UnitTests/PortableTasks_Tests.cs | 2 ++ src/Tasks.UnitTests/ProjectExtensionsImportTestBase.cs | 2 ++ src/Tasks.UnitTests/ProjectExtensionsPropsImportTest.cs | 2 ++ src/Tasks.UnitTests/ProjectExtensionsTargetsImportTest.cs | 2 ++ src/Tasks.UnitTests/PropertyParser_Tests.cs | 2 ++ src/Tasks.UnitTests/RARPrecomputedCache_Tests.cs | 2 ++ src/Tasks.UnitTests/ReadLinesFromFile_Tests.cs | 2 ++ src/Tasks.UnitTests/RegressionTests.cs | 2 ++ src/Tasks.UnitTests/RemoveDir_Tests.cs | 2 ++ src/Tasks.UnitTests/RemoveDuplicates_Tests.cs | 2 ++ src/Tasks.UnitTests/ResolveCodeAnalysisRuleSet_Tests.cs | 2 ++ src/Tasks.UnitTests/ResolveComReference_Tests.cs | 2 ++ src/Tasks.UnitTests/ResolveNonMSBuildProjectOutput_Tests.cs | 2 ++ src/Tasks.UnitTests/ResolveSDKReference_Tests.cs | 2 ++ src/Tasks.UnitTests/ResolveVCProjectOutput_Tests.cs | 2 ++ .../ResourceHandling/GenerateResourceOutOfProc_Tests.cs | 2 ++ .../ResourceHandling/GenerateResource_Tests.cs | 2 ++ .../ResourceHandling/MSBuildResXReader_Tests.cs | 2 ++ .../ResourceHandling/ResGenDependencies_Tests.cs | 2 ++ src/Tasks.UnitTests/ResourceHandling/ResGen_Tests.cs | 2 ++ src/Tasks.UnitTests/ResourceHandling/ResXHelper.cs | 2 ++ src/Tasks.UnitTests/ResourceManagement_Tests.cs | 2 ++ src/Tasks.UnitTests/RoslynCodeTaskFactory_Tests.cs | 2 ++ src/Tasks.UnitTests/SGen_Tests.cs | 2 ++ src/Tasks.UnitTests/SdkToolsPathUtility_Tests.cs | 2 ++ src/Tasks.UnitTests/StreamHelpers.cs | 2 ++ src/Tasks.UnitTests/StreamMappedString_Tests.cs | 2 ++ src/Tasks.UnitTests/TelemetryTaskTests.cs | 2 ++ src/Tasks.UnitTests/TestResources/TestBinary.cs | 2 ++ src/Tasks.UnitTests/TlbImp_Tests.cs | 2 ++ src/Tasks.UnitTests/ToolTaskExtension_Tests.cs | 2 ++ src/Tasks.UnitTests/Touch_Tests.cs | 2 ++ src/Tasks.UnitTests/Unzip_Tests.cs | 2 ++ src/Tasks.UnitTests/VerifyFileHash_Tests.cs | 2 ++ src/Tasks.UnitTests/VisualBasicParserUtilitites_Tests.cs | 2 ++ src/Tasks.UnitTests/VisualBasicTokenizer_Tests.cs | 2 ++ src/Tasks.UnitTests/WinMDExp_Tests.cs | 2 ++ src/Tasks.UnitTests/WriteCodeFragment_Tests.cs | 2 ++ src/Tasks.UnitTests/WriteLinesToFile_Tests.cs | 2 ++ src/Tasks.UnitTests/XamlDataDrivenToolTask_Tests.cs | 2 ++ src/Tasks.UnitTests/XamlTaskFactory_Tests.cs | 2 ++ src/Tasks.UnitTests/XamlTestHelpers.cs | 2 ++ src/Tasks.UnitTests/XmlPeek_Tests.cs | 2 ++ src/Tasks.UnitTests/XmlPoke_Tests.cs | 2 ++ src/Tasks.UnitTests/XslTransformation_Tests.cs | 2 ++ src/Tasks.UnitTests/ZipDirectory_Tests.cs | 2 ++ src/Tasks/Al.cs | 2 ++ src/Tasks/AppConfig/AppConfig.cs | 2 ++ src/Tasks/AppConfig/AppConfigException.cs | 2 ++ src/Tasks/AppConfig/BindingRedirect.cs | 2 ++ src/Tasks/AppConfig/DependentAssembly.cs | 2 ++ src/Tasks/AppConfig/RuntimeSection.cs | 2 ++ src/Tasks/AppDomainIsolatedTaskExtension.cs | 2 ++ src/Tasks/AspNetCompiler.cs | 2 ++ src/Tasks/AssemblyDependency/AssemblyFoldersExResolver.cs | 2 ++ .../AssemblyFoldersFromConfigCache.cs | 2 ++ .../AssemblyFoldersFromConfigResolver.cs | 2 ++ src/Tasks/AssemblyDependency/AssemblyFoldersResolver.cs | 2 ++ src/Tasks/AssemblyDependency/AssemblyInformation.cs | 2 ++ src/Tasks/AssemblyDependency/AssemblyMetadata.cs | 2 ++ src/Tasks/AssemblyDependency/AssemblyNameReference.cs | 2 ++ .../AssemblyNameReferenceAscendingVersionComparer.cs | 2 ++ src/Tasks/AssemblyDependency/AssemblyResolution.cs | 2 ++ src/Tasks/AssemblyDependency/AssemblyResolutionConstants.cs | 2 ++ src/Tasks/AssemblyDependency/BadImageReferenceException.cs | 2 ++ .../AssemblyDependency/CandidateAssemblyFilesResolver.cs | 2 ++ src/Tasks/AssemblyDependency/ConflictLossReason.cs | 2 ++ src/Tasks/AssemblyDependency/CopyLocalState.cs | 2 ++ .../AssemblyDependency/DependencyResolutionException.cs | 2 ++ src/Tasks/AssemblyDependency/DirectoryResolver.cs | 2 ++ src/Tasks/AssemblyDependency/DisposableBase.cs | 2 ++ src/Tasks/AssemblyDependency/FrameworkPathResolver.cs | 2 ++ src/Tasks/AssemblyDependency/GacResolver.cs | 2 ++ src/Tasks/AssemblyDependency/GenerateBindingRedirects.cs | 2 ++ src/Tasks/AssemblyDependency/GlobalAssemblyCache.cs | 2 ++ src/Tasks/AssemblyDependency/HintPathResolver.cs | 2 ++ src/Tasks/AssemblyDependency/InstalledAssemblies.cs | 2 ++ .../InvalidReferenceAssemblyNameException.cs | 2 ++ src/Tasks/AssemblyDependency/NoMatchReason.cs | 2 ++ src/Tasks/AssemblyDependency/RawFilenameResolver.cs | 2 ++ src/Tasks/AssemblyDependency/Reference.cs | 2 ++ src/Tasks/AssemblyDependency/ReferenceResolutionException.cs | 2 ++ src/Tasks/AssemblyDependency/ReferenceTable.cs | 2 ++ src/Tasks/AssemblyDependency/ResolutionSearchLocation.cs | 2 ++ src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs | 2 ++ src/Tasks/AssemblyDependency/Resolver.cs | 2 ++ src/Tasks/AssemblyDependency/TaskItemSpecFilenameComparer.cs | 2 ++ src/Tasks/AssemblyDependency/UnificationReason.cs | 2 ++ src/Tasks/AssemblyDependency/UnificationVersion.cs | 2 ++ src/Tasks/AssemblyDependency/UnifiedAssemblyName.cs | 2 ++ .../WarnOrErrorOnTargetArchitectureMismatchBehavior.cs | 2 ++ src/Tasks/AssemblyFolder.cs | 2 ++ src/Tasks/AssemblyRegistrationCache.cs | 2 ++ src/Tasks/AssemblyRemapping.cs | 2 ++ src/Tasks/AssemblyResources.cs | 2 ++ src/Tasks/AssignCulture.cs | 2 ++ src/Tasks/AssignLinkMetadata.cs | 2 ++ src/Tasks/AssignProjectConfiguration.cs | 2 ++ src/Tasks/AssignTargetPath.cs | 2 ++ src/Tasks/AxImp.cs | 2 ++ src/Tasks/AxReference.cs | 2 ++ src/Tasks/AxTlbBaseReference.cs | 2 ++ src/Tasks/AxTlbBaseTask.cs | 2 ++ src/Tasks/BootstrapperUtil/BootstrapperBuilder.cs | 2 ++ src/Tasks/BootstrapperUtil/BuildMessage.cs | 2 ++ src/Tasks/BootstrapperUtil/BuildResults.cs | 2 ++ src/Tasks/BootstrapperUtil/BuildSettings.cs | 2 ++ src/Tasks/BootstrapperUtil/Interfaces.cs | 2 ++ src/Tasks/BootstrapperUtil/NativeMethods.cs | 2 ++ src/Tasks/BootstrapperUtil/Package.cs | 2 ++ src/Tasks/BootstrapperUtil/PackageCollection.cs | 2 ++ src/Tasks/BootstrapperUtil/Product.cs | 2 ++ src/Tasks/BootstrapperUtil/ProductBuilder.cs | 2 ++ src/Tasks/BootstrapperUtil/ProductBuilderCollection.cs | 2 ++ src/Tasks/BootstrapperUtil/ProductCollection.cs | 2 ++ src/Tasks/BootstrapperUtil/ResourceUpdater.cs | 2 ++ src/Tasks/BootstrapperUtil/Util.cs | 2 ++ src/Tasks/BootstrapperUtil/productvalidationresults.cs | 2 ++ src/Tasks/BootstrapperUtil/xmlvalidationresults.cs | 2 ++ src/Tasks/BuildCacheDisposeWrapper.cs | 2 ++ src/Tasks/CSharpParserUtilities.cs | 2 ++ src/Tasks/CallTarget.cs | 2 ++ src/Tasks/CodeTaskFactory.cs | 2 ++ src/Tasks/ComDependencyWalker.cs | 2 ++ src/Tasks/ComReference.cs | 2 ++ src/Tasks/ComReferenceInfo.cs | 2 ++ src/Tasks/ComReferenceItemAttributes.cs | 2 ++ src/Tasks/ComReferenceResolutionException.cs | 2 ++ src/Tasks/ComReferenceTypes.cs | 2 ++ src/Tasks/ComReferenceWrapperInfo.cs | 2 ++ src/Tasks/CombinePath.cs | 2 ++ src/Tasks/CombineTargetFrameworkInfoProperties.cs | 2 ++ src/Tasks/CombineXmlElements.cs | 2 ++ src/Tasks/CommandLineBuilderExtension.cs | 2 ++ src/Tasks/ConvertToAbsolutePath.cs | 2 ++ src/Tasks/Copy.cs | 2 ++ src/Tasks/CreateCSharpManifestResourceName.cs | 2 ++ src/Tasks/CreateItem.cs | 2 ++ src/Tasks/CreateManifestResourceName.cs | 2 ++ src/Tasks/CreateProperty.cs | 2 ++ src/Tasks/CreateVisualBasicManifestResourceName.cs | 2 ++ src/Tasks/Culture.cs | 2 ++ src/Tasks/CultureInfoCache.cs | 2 ++ src/Tasks/DataDriven/DataDrivenToolTask.cs | 2 ++ src/Tasks/Delegate.cs | 2 ++ src/Tasks/Delete.cs | 2 ++ src/Tasks/DependencyFile.cs | 2 ++ src/Tasks/DownloadFile.cs | 2 ++ src/Tasks/Error.cs | 2 ++ src/Tasks/ErrorFromResources.cs | 2 ++ src/Tasks/Exec.cs | 2 ++ src/Tasks/ExtractedClassName.cs | 2 ++ src/Tasks/FileIO/GetFileHash.cs | 2 ++ src/Tasks/FileIO/HashEncoding.cs | 2 ++ src/Tasks/FileIO/ReadLinesFromFile.cs | 2 ++ src/Tasks/FileIO/VerifyFileHash.cs | 2 ++ src/Tasks/FileIO/WriteLinesToFile.cs | 2 ++ src/Tasks/FileState.cs | 2 ++ src/Tasks/FindAppConfigFile.cs | 2 ++ src/Tasks/FindInList.cs | 2 ++ src/Tasks/FindInvalidProjectReferences.cs | 2 ++ src/Tasks/FormatUrl.cs | 2 ++ src/Tasks/FormatVersion.cs | 2 ++ src/Tasks/GenerateApplicationManifest.cs | 2 ++ src/Tasks/GenerateBootstrapper.cs | 2 ++ src/Tasks/GenerateDeploymentManifest.cs | 2 ++ src/Tasks/GenerateLauncher.cs | 2 ++ src/Tasks/GenerateManifestBase.cs | 2 ++ src/Tasks/GenerateResource.cs | 2 ++ src/Tasks/GenerateTrustInfo.cs | 2 ++ src/Tasks/GetAssemblyIdentity.cs | 2 ++ src/Tasks/GetCompatiblePlatform.cs | 1 - src/Tasks/GetFrameworkPath.cs | 2 ++ src/Tasks/GetFrameworkSDKPath.cs | 2 ++ src/Tasks/GetInstalledSDKLocations.cs | 2 ++ src/Tasks/GetReferenceAssemblyPaths.cs | 2 ++ src/Tasks/GetSDKReferenceFiles.cs | 2 ++ src/Tasks/Hash.cs | 2 ++ src/Tasks/IAnalyzerHostObject.cs | 2 ++ src/Tasks/IComReferenceResolver.cs | 2 ++ src/Tasks/ICscHostObject.cs | 2 ++ src/Tasks/ICscHostObject2.cs | 2 ++ src/Tasks/ICscHostObject3.cs | 2 ++ src/Tasks/ICscHostObject4.cs | 2 ++ src/Tasks/IVbcHostObject.cs | 2 ++ src/Tasks/IVbcHostObject2.cs | 2 ++ src/Tasks/IVbcHostObject3.cs | 2 ++ src/Tasks/IVbcHostObject4.cs | 2 ++ src/Tasks/IVbcHostObject5.cs | 2 ++ src/Tasks/IVbcHostObjectFreeThreaded.cs | 2 ++ src/Tasks/InstalledSDKResolver.cs | 2 ++ src/Tasks/InvalidParameterValueException.cs | 2 ++ src/Tasks/LC.cs | 2 ++ src/Tasks/ListOperators/FindUnderPath.cs | 2 ++ src/Tasks/ListOperators/RemoveDuplicates.cs | 2 ++ src/Tasks/LockCheck.cs | 2 ++ src/Tasks/MSBuild.cs | 2 ++ src/Tasks/MakeDir.cs | 2 ++ src/Tasks/ManifestUtil/ApplicationIdentity.cs | 2 ++ src/Tasks/ManifestUtil/ApplicationManifest.cs | 2 ++ src/Tasks/ManifestUtil/AssemblyIdentity.cs | 2 ++ src/Tasks/ManifestUtil/AssemblyManifest.cs | 2 ++ src/Tasks/ManifestUtil/AssemblyReference.cs | 2 ++ src/Tasks/ManifestUtil/AssemblyReferenceCollection.cs | 2 ++ src/Tasks/ManifestUtil/BaseReference.cs | 2 ++ src/Tasks/ManifestUtil/CngLightup.cs | 2 ++ src/Tasks/ManifestUtil/ComImporter.cs | 2 ++ src/Tasks/ManifestUtil/CompatibleFramework.cs | 2 ++ src/Tasks/ManifestUtil/CompatibleFrameworkCollection.cs | 2 ++ src/Tasks/ManifestUtil/Constants.cs | 2 ++ src/Tasks/ManifestUtil/ConvertUtil.cs | 2 ++ src/Tasks/ManifestUtil/DeployManifest.cs | 2 ++ src/Tasks/ManifestUtil/EmbeddedManifestReader.cs | 2 ++ src/Tasks/ManifestUtil/FileAssociation.cs | 2 ++ src/Tasks/ManifestUtil/FileAssociationCollection.cs | 2 ++ src/Tasks/ManifestUtil/FileReference.cs | 2 ++ src/Tasks/ManifestUtil/FileReferenceCollection.cs | 2 ++ src/Tasks/ManifestUtil/LauncherBuilder.cs | 2 ++ src/Tasks/ManifestUtil/Manifest.cs | 2 ++ src/Tasks/ManifestUtil/ManifestFormatter.cs | 2 ++ src/Tasks/ManifestUtil/ManifestReader.cs | 2 ++ src/Tasks/ManifestUtil/ManifestWriter.cs | 2 ++ src/Tasks/ManifestUtil/MetadataReader.cs | 2 ++ src/Tasks/ManifestUtil/NativeMethods.cs | 2 ++ src/Tasks/ManifestUtil/OutputMessage.cs | 2 ++ src/Tasks/ManifestUtil/PathUtil.cs | 2 ++ src/Tasks/ManifestUtil/RSAPKCS1SHA256SignatureDescription.cs | 2 ++ src/Tasks/ManifestUtil/SecurityUtil.cs | 2 ++ src/Tasks/ManifestUtil/TrustInfo.cs | 2 ++ src/Tasks/ManifestUtil/Util.cs | 2 ++ src/Tasks/ManifestUtil/XPaths.cs | 2 ++ src/Tasks/ManifestUtil/XmlNamespaces.cs | 2 ++ src/Tasks/ManifestUtil/XmlUtil.cs | 2 ++ src/Tasks/ManifestUtil/mansign2.cs | 2 ++ src/Tasks/Message.cs | 2 ++ src/Tasks/Move.cs | 2 ++ src/Tasks/NativeMethods.cs | 2 ++ src/Tasks/ParserState.cs | 2 ++ src/Tasks/PiaReference.cs | 2 ++ src/Tasks/RCWForCurrentContext.cs | 2 ++ src/Tasks/RedistList.cs | 2 ++ src/Tasks/RegisterAssembly.cs | 2 ++ src/Tasks/RemoveDir.cs | 2 ++ src/Tasks/RequiresFramework35SP1Assembly.cs | 2 ++ src/Tasks/ResGen.cs | 2 ++ src/Tasks/ResGenDependencies.cs | 2 ++ src/Tasks/ResolveCodeAnalysisRuleSet.cs | 2 ++ src/Tasks/ResolveComReference.cs | 2 ++ src/Tasks/ResolveComReferenceCache.cs | 2 ++ src/Tasks/ResolveKeySource.cs | 2 ++ src/Tasks/ResolveManifestFiles.cs | 2 ++ src/Tasks/ResolveNativeReference.cs | 2 ++ src/Tasks/ResolveNonMSBuildProjectOutput.cs | 2 ++ src/Tasks/ResolveProjectBase.cs | 2 ++ src/Tasks/ResolveSDKReference.cs | 2 ++ .../ResourceHandling/BinaryFormatterByteArrayResource.cs | 2 ++ src/Tasks/ResourceHandling/FileStreamResource.cs | 2 ++ src/Tasks/ResourceHandling/IResource.cs | 2 ++ .../ResourceHandling/InputFormatNotSupportedException.cs | 2 ++ src/Tasks/ResourceHandling/LiveObjectResource.cs | 2 ++ src/Tasks/ResourceHandling/MSBuildResXException.cs | 2 ++ src/Tasks/ResourceHandling/MSBuildResXReader.cs | 2 ++ src/Tasks/ResourceHandling/NameUtilities.cs | 2 ++ .../PreserializedResourceWriterRequiredException.cs | 2 ++ src/Tasks/ResourceHandling/StringResource.cs | 2 ++ src/Tasks/ResourceHandling/TypeConverterByteArrayResource.cs | 2 ++ src/Tasks/ResourceHandling/TypeConverterStringResource.cs | 2 ++ src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactory.cs | 2 ++ .../RoslynCodeTaskFactory/RoslynCodeTaskFactoryCodeType.cs | 2 ++ .../RoslynCodeTaskFactory/RoslynCodeTaskFactoryCompilers.cs | 2 ++ .../RoslynCodeTaskFactory/RoslynCodeTaskFactoryTaskInfo.cs | 2 ++ src/Tasks/SGen.cs | 2 ++ src/Tasks/SdkToolsPathUtility.cs | 2 ++ src/Tasks/SignFile.cs | 2 ++ src/Tasks/StateFileBase.cs | 2 ++ src/Tasks/StrongNameException.cs | 2 ++ src/Tasks/StrongNameUtils.cs | 2 ++ src/Tasks/System.Design.cs | 2 ++ src/Tasks/SystemState.cs | 2 ++ src/Tasks/TaskExtension.cs | 2 ++ src/Tasks/TaskTranslatorHelpers.cs | 2 ++ src/Tasks/Telemetry.cs | 2 ++ src/Tasks/TlbImp.cs | 2 ++ src/Tasks/TlbReference.cs | 2 ++ src/Tasks/ToolTaskExtension.cs | 2 ++ src/Tasks/Touch.cs | 2 ++ src/Tasks/UnregisterAssembly.cs | 2 ++ src/Tasks/Unzip.cs | 2 ++ src/Tasks/UpdateManifest.cs | 2 ++ src/Tasks/VisualBasicParserUtilities.cs | 2 ++ src/Tasks/Warning.cs | 2 ++ src/Tasks/WinMDExp.cs | 2 ++ src/Tasks/WriteCodeFragment.cs | 2 ++ src/Tasks/XamlTaskFactory/CommandLineGenerator.cs | 2 ++ src/Tasks/XamlTaskFactory/CommandLineToolSwitch.cs | 2 ++ src/Tasks/XamlTaskFactory/Property.cs | 2 ++ src/Tasks/XamlTaskFactory/RelationsParser.cs | 2 ++ src/Tasks/XamlTaskFactory/TaskGenerator.cs | 2 ++ src/Tasks/XamlTaskFactory/TaskParser.cs | 2 ++ src/Tasks/XamlTaskFactory/XamlDataDrivenToolTask.cs | 2 ++ src/Tasks/XamlTaskFactory/XamlTaskFactory.cs | 2 ++ src/Tasks/XmlPeek.cs | 2 ++ src/Tasks/XmlPoke.cs | 2 ++ src/Tasks/XslTransformation.cs | 2 ++ src/Tasks/ZipDirectory.cs | 2 ++ src/Tasks/system.design/stronglytypedresourcebuilder.cs | 2 ++ src/UnitTests.Shared/AssemblyResources.cs | 2 ++ src/UnitTests.Shared/RunnerUtilities.cs | 2 ++ src/Utilities.UnitTests/CanonicalError_Tests.cs | 2 ++ src/Utilities.UnitTests/CommandLineBuilder_Tests.cs | 2 ++ src/Utilities.UnitTests/EventArgsFormatting_Tests.cs | 2 ++ src/Utilities.UnitTests/Logger_Tests.cs | 2 ++ src/Utilities.UnitTests/MockEngine.cs | 2 ++ src/Utilities.UnitTests/MockTask.cs | 2 ++ src/Utilities.UnitTests/MuxLogger_Tests.cs | 2 ++ src/Utilities.UnitTests/PlatformManifest_Tests.cs | 2 ++ src/Utilities.UnitTests/ProcessExtensions_Tests.cs | 2 ++ src/Utilities.UnitTests/ProcessorArchitecture_Tests.cs | 2 ++ src/Utilities.UnitTests/StringExtensions_Tests.cs | 2 ++ src/Utilities.UnitTests/TaskItem_Tests.cs | 2 ++ src/Utilities.UnitTests/TaskLoggingHelper_Tests.cs | 2 ++ src/Utilities.UnitTests/ToolLocationHelper_Tests.cs | 2 ++ src/Utilities.UnitTests/ToolTask_Tests.cs | 2 ++ .../TrackedDependencies/FileTrackerTests.cs | 2 ++ src/Utilities.UnitTests/TrackedDependencies/MockEngine.cs | 2 ++ .../TrackedDependencies/TrackedDependenciesTests.cs | 2 ++ src/Utilities/ApiContract.cs | 2 ++ src/Utilities/AppDomainIsolatedTask.cs | 2 ++ src/Utilities/AssemblyFolders/AssemblyFoldersExInfo.cs | 2 ++ .../AssemblyFolders/AssemblyFoldersFromConfigInfo.cs | 2 ++ src/Utilities/AssemblyResources.cs | 2 ++ src/Utilities/CommandLineBuilder.cs | 2 ++ src/Utilities/ExtensionSDK.cs | 2 ++ src/Utilities/Logger.cs | 2 ++ src/Utilities/MuxLogger.cs | 2 ++ src/Utilities/PlatformManifest.cs | 2 ++ src/Utilities/ProcessorArchitecture.cs | 2 ++ src/Utilities/SDKManifest.cs | 2 ++ src/Utilities/SDKType.cs | 2 ++ src/Utilities/TargetPlatformSDK.cs | 2 ++ src/Utilities/Task.cs | 2 ++ src/Utilities/TaskItem.cs | 2 ++ src/Utilities/ToolLocationHelper.cs | 2 ++ src/Utilities/ToolTask.cs | 2 ++ .../TrackedDependencies/CanonicalTrackedFilesHelper.cs | 2 ++ .../TrackedDependencies/CanonicalTrackedInputFiles.cs | 2 ++ .../TrackedDependencies/CanonicalTrackedOutputFiles.cs | 2 ++ src/Utilities/TrackedDependencies/DependencyTableCache.cs | 2 ++ src/Utilities/TrackedDependencies/FileTracker.cs | 2 ++ src/Utilities/TrackedDependencies/FlatTrackingData.cs | 2 ++ src/Utilities/TrackedDependencies/TrackedDependencies.cs | 2 ++ .../AssemblyFixtureSupport/AssemblyFixtureAttribute.cs | 2 ++ .../XunitTestAssemblyRunnerWithAssemblyFixture.cs | 2 ++ .../XunitTestClassRunnerWithAssemblyFixture.cs | 2 ++ .../XunitTestCollectionRunnerWithAssemblyFixture.cs | 2 ++ .../XunitTestFrameworkExecutorWithAssemblyFixture.cs | 2 ++ .../XunitTestFrameworkWithAssemblyFixture.cs | 2 ++ .../XunitTestMethodRunnerWithAssemblyFixture.cs | 2 ++ 1429 files changed, 2827 insertions(+), 31 deletions(-) diff --git a/src/Build.OM.UnitTests/AssemblyResources.cs b/src/Build.OM.UnitTests/AssemblyResources.cs index 962b5b0342f..baa3ffd33ba 100644 --- a/src/Build.OM.UnitTests/AssemblyResources.cs +++ b/src/Build.OM.UnitTests/AssemblyResources.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Build.OM.UnitTests/Construction/ConstructionEditing_Tests.cs b/src/Build.OM.UnitTests/Construction/ConstructionEditing_Tests.cs index f3003665a5c..8d842b18f6d 100644 --- a/src/Build.OM.UnitTests/Construction/ConstructionEditing_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ConstructionEditing_Tests.cs @@ -15,6 +15,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ElementLocationPublic_Tests.cs b/src/Build.OM.UnitTests/Construction/ElementLocationPublic_Tests.cs index 70387ca7c6c..779243f3b16 100644 --- a/src/Build.OM.UnitTests/Construction/ElementLocationPublic_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ElementLocationPublic_Tests.cs @@ -8,6 +8,8 @@ using Xunit; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectChooseElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectChooseElement_Tests.cs index b94af9ae152..159572b1e2f 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectChooseElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectChooseElement_Tests.cs @@ -13,6 +13,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectExtensionsElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectExtensionsElement_Tests.cs index 8c6f22b5837..1791e4a702f 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectExtensionsElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectExtensionsElement_Tests.cs @@ -9,6 +9,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectFormatting_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectFormatting_Tests.cs index 432f5b8072d..f653f343857 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectFormatting_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectFormatting_Tests.cs @@ -11,6 +11,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Engine.OM.UnitTests.Construction { public class ProjectFormatting_Tests : IDisposable diff --git a/src/Build.OM.UnitTests/Construction/ProjectImportElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectImportElement_Tests.cs index 13746b1eed6..e7febaf5bd1 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectImportElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectImportElement_Tests.cs @@ -13,6 +13,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectImportGroupElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectImportGroupElement_Tests.cs index 19989aba62d..aa4e08949ab 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectImportGroupElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectImportGroupElement_Tests.cs @@ -10,6 +10,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectItemDefinitionElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectItemDefinitionElement_Tests.cs index 0389131d1ea..25214d33202 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectItemDefinitionElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectItemDefinitionElement_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Exceptions; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectItemDefinitionGroupElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectItemDefinitionGroupElement_Tests.cs index 197c94939e2..234aca51ca1 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectItemDefinitionGroupElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectItemDefinitionGroupElement_Tests.cs @@ -9,6 +9,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectItemElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectItemElement_Tests.cs index 9e3310ef8de..6b9f84cd55a 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectItemElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectItemElement_Tests.cs @@ -12,6 +12,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectItemGroupElement_tests.cs b/src/Build.OM.UnitTests/Construction/ProjectItemGroupElement_tests.cs index 9d4ddb0be13..22e5b500162 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectItemGroupElement_tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectItemGroupElement_tests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Construction; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectMetadataElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectMetadataElement_Tests.cs index 7c234adcd32..5f728028be7 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectMetadataElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectMetadataElement_Tests.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Evaluation; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectOnErrorElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectOnErrorElement_Tests.cs index 650d52c277b..e9c9038343f 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectOnErrorElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectOnErrorElement_Tests.cs @@ -10,6 +10,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectOutputElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectOutputElement_Tests.cs index dc8164367fa..a1c2c5403ec 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectOutputElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectOutputElement_Tests.cs @@ -9,6 +9,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectPropertyElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectPropertyElement_Tests.cs index 11b85ff1e23..810e9fd0f0b 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectPropertyElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectPropertyElement_Tests.cs @@ -9,6 +9,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectPropertyGroupElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectPropertyGroupElement_Tests.cs index 6342999cc94..ec569875fbb 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectPropertyGroupElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectPropertyGroupElement_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Construction; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectRootElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectRootElement_Tests.cs index 3c88ebe1567..d6739ff996d 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectRootElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectRootElement_Tests.cs @@ -22,6 +22,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectTargetElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectTargetElement_Tests.cs index c2680241ad3..9455e2f0552 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectTargetElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectTargetElement_Tests.cs @@ -9,6 +9,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectTaskElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectTaskElement_Tests.cs index 0f15baab37b..341ddf19a52 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectTaskElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectTaskElement_Tests.cs @@ -9,6 +9,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/ProjectUsingTaskElement_Tests.cs b/src/Build.OM.UnitTests/Construction/ProjectUsingTaskElement_Tests.cs index aa78c557e38..1dcffc4b6e3 100644 --- a/src/Build.OM.UnitTests/Construction/ProjectUsingTaskElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/ProjectUsingTaskElement_Tests.cs @@ -10,6 +10,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/SolutionFile_Tests.cs b/src/Build.OM.UnitTests/Construction/SolutionFile_Tests.cs index 483adcb954b..47f7a7b0333 100644 --- a/src/Build.OM.UnitTests/Construction/SolutionFile_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/SolutionFile_Tests.cs @@ -11,6 +11,8 @@ using Xunit; using System.Text; +#nullable disable + namespace Microsoft.Build.UnitTests.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/UsingTaskBodyElement_Tests.cs b/src/Build.OM.UnitTests/Construction/UsingTaskBodyElement_Tests.cs index 443aaf127fd..026eea8a288 100644 --- a/src/Build.OM.UnitTests/Construction/UsingTaskBodyElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/UsingTaskBodyElement_Tests.cs @@ -9,6 +9,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/UsingTaskParameterElement_Tests.cs b/src/Build.OM.UnitTests/Construction/UsingTaskParameterElement_Tests.cs index 684c39aab1a..c41979b3033 100644 --- a/src/Build.OM.UnitTests/Construction/UsingTaskParameterElement_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/UsingTaskParameterElement_Tests.cs @@ -9,6 +9,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/UsingTaskParameterGroup_Tests.cs b/src/Build.OM.UnitTests/Construction/UsingTaskParameterGroup_Tests.cs index 7504f82a1a5..c292e82e704 100644 --- a/src/Build.OM.UnitTests/Construction/UsingTaskParameterGroup_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/UsingTaskParameterGroup_Tests.cs @@ -9,6 +9,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.OM.UnitTests/Construction/WhiteSpacePreservation_Tests.cs b/src/Build.OM.UnitTests/Construction/WhiteSpacePreservation_Tests.cs index ea7e3549811..bdd6490ac91 100644 --- a/src/Build.OM.UnitTests/Construction/WhiteSpacePreservation_Tests.cs +++ b/src/Build.OM.UnitTests/Construction/WhiteSpacePreservation_Tests.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { public class WhitespacePreservation_Tests diff --git a/src/Build.OM.UnitTests/Definition/DefinitionEditing_Tests.cs b/src/Build.OM.UnitTests/Definition/DefinitionEditing_Tests.cs index fed092e5bdc..deb58a4718d 100644 --- a/src/Build.OM.UnitTests/Definition/DefinitionEditing_Tests.cs +++ b/src/Build.OM.UnitTests/Definition/DefinitionEditing_Tests.cs @@ -13,6 +13,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Definition { /// diff --git a/src/Build.OM.UnitTests/Definition/EditingElementsReferencedByOrReferences_Tests.cs b/src/Build.OM.UnitTests/Definition/EditingElementsReferencedByOrReferences_Tests.cs index bb59d52bb6e..a93e541c7e1 100644 --- a/src/Build.OM.UnitTests/Definition/EditingElementsReferencedByOrReferences_Tests.cs +++ b/src/Build.OM.UnitTests/Definition/EditingElementsReferencedByOrReferences_Tests.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Evaluation; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Definition { /// diff --git a/src/Build.OM.UnitTests/Definition/ProjectCollection_Tests.cs b/src/Build.OM.UnitTests/Definition/ProjectCollection_Tests.cs index f134be8dc9d..5f570a4d53b 100644 --- a/src/Build.OM.UnitTests/Definition/ProjectCollection_Tests.cs +++ b/src/Build.OM.UnitTests/Definition/ProjectCollection_Tests.cs @@ -16,6 +16,8 @@ using Shouldly; using System.Reflection; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Definition { /// diff --git a/src/Build.OM.UnitTests/Definition/ProjectItemDefinition_Tests.cs b/src/Build.OM.UnitTests/Definition/ProjectItemDefinition_Tests.cs index 3e75bf081c2..b6196db8d6a 100644 --- a/src/Build.OM.UnitTests/Definition/ProjectItemDefinition_Tests.cs +++ b/src/Build.OM.UnitTests/Definition/ProjectItemDefinition_Tests.cs @@ -14,6 +14,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Definition { /// diff --git a/src/Build.OM.UnitTests/Definition/ProjectItem_Tests.cs b/src/Build.OM.UnitTests/Definition/ProjectItem_Tests.cs index 015e7429c55..515c657dfc0 100644 --- a/src/Build.OM.UnitTests/Definition/ProjectItem_Tests.cs +++ b/src/Build.OM.UnitTests/Definition/ProjectItem_Tests.cs @@ -15,6 +15,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Definition { /// diff --git a/src/Build.OM.UnitTests/Definition/ProjectMetadata_Tests.cs b/src/Build.OM.UnitTests/Definition/ProjectMetadata_Tests.cs index 92c322850cd..42e18a5c742 100644 --- a/src/Build.OM.UnitTests/Definition/ProjectMetadata_Tests.cs +++ b/src/Build.OM.UnitTests/Definition/ProjectMetadata_Tests.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Definition { /// diff --git a/src/Build.OM.UnitTests/Definition/ProjectProperty_Tests.cs b/src/Build.OM.UnitTests/Definition/ProjectProperty_Tests.cs index bd72053898a..367f6b3f5a2 100644 --- a/src/Build.OM.UnitTests/Definition/ProjectProperty_Tests.cs +++ b/src/Build.OM.UnitTests/Definition/ProjectProperty_Tests.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Definition { /// diff --git a/src/Build.OM.UnitTests/Definition/Project_Tests.cs b/src/Build.OM.UnitTests/Definition/Project_Tests.cs index afaf6ecf8ab..5dd7d583c19 100644 --- a/src/Build.OM.UnitTests/Definition/Project_Tests.cs +++ b/src/Build.OM.UnitTests/Definition/Project_Tests.cs @@ -28,6 +28,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Definition { /// diff --git a/src/Build.OM.UnitTests/Definition/ProtectImports_Tests.cs b/src/Build.OM.UnitTests/Definition/ProtectImports_Tests.cs index a269fca7c64..33349cd5465 100644 --- a/src/Build.OM.UnitTests/Definition/ProtectImports_Tests.cs +++ b/src/Build.OM.UnitTests/Definition/ProtectImports_Tests.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Evaluation; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Definition { /// diff --git a/src/Build.OM.UnitTests/Instance/ProjectInstance_Tests.cs b/src/Build.OM.UnitTests/Instance/ProjectInstance_Tests.cs index dc1e3cfdc23..b023b0c6a75 100644 --- a/src/Build.OM.UnitTests/Instance/ProjectInstance_Tests.cs +++ b/src/Build.OM.UnitTests/Instance/ProjectInstance_Tests.cs @@ -16,6 +16,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.OM.UnitTests/Instance/ProjectItemInstance_Tests.cs b/src/Build.OM.UnitTests/Instance/ProjectItemInstance_Tests.cs index e1ddcb897b8..a2c680c51d1 100644 --- a/src/Build.OM.UnitTests/Instance/ProjectItemInstance_Tests.cs +++ b/src/Build.OM.UnitTests/Instance/ProjectItemInstance_Tests.cs @@ -16,6 +16,8 @@ using Xunit; using System.Linq; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.OM.UnitTests/Instance/ProjectMetadataInstance_Tests.cs b/src/Build.OM.UnitTests/Instance/ProjectMetadataInstance_Tests.cs index fa2a87e73a5..f716a9469c1 100644 --- a/src/Build.OM.UnitTests/Instance/ProjectMetadataInstance_Tests.cs +++ b/src/Build.OM.UnitTests/Instance/ProjectMetadataInstance_Tests.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Execution; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.OM.UnitTests/Instance/ProjectOnErrorInstance_Tests.cs b/src/Build.OM.UnitTests/Instance/ProjectOnErrorInstance_Tests.cs index 9f7f440fc76..5c6e3751827 100644 --- a/src/Build.OM.UnitTests/Instance/ProjectOnErrorInstance_Tests.cs +++ b/src/Build.OM.UnitTests/Instance/ProjectOnErrorInstance_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Execution; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.OM.UnitTests/Instance/ProjectPropertyInstance_Tests.cs b/src/Build.OM.UnitTests/Instance/ProjectPropertyInstance_Tests.cs index 26363cbe96b..1f925217111 100644 --- a/src/Build.OM.UnitTests/Instance/ProjectPropertyInstance_Tests.cs +++ b/src/Build.OM.UnitTests/Instance/ProjectPropertyInstance_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Execution; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.OM.UnitTests/Instance/ProjectTargetInstance_Tests.cs b/src/Build.OM.UnitTests/Instance/ProjectTargetInstance_Tests.cs index cd8b717083a..4cbb6eb2e7f 100644 --- a/src/Build.OM.UnitTests/Instance/ProjectTargetInstance_Tests.cs +++ b/src/Build.OM.UnitTests/Instance/ProjectTargetInstance_Tests.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Execution; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.OM.UnitTests/Instance/ProjectTaskInstance_Tests.cs b/src/Build.OM.UnitTests/Instance/ProjectTaskInstance_Tests.cs index 0ba22ec5eaf..0f50f5d0665 100644 --- a/src/Build.OM.UnitTests/Instance/ProjectTaskInstance_Tests.cs +++ b/src/Build.OM.UnitTests/Instance/ProjectTaskInstance_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Execution; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.OM.UnitTests/Instance/ProjectTaskOutputItemInstance_Tests.cs b/src/Build.OM.UnitTests/Instance/ProjectTaskOutputItemInstance_Tests.cs index 6d4906fe710..da1dfad9733 100644 --- a/src/Build.OM.UnitTests/Instance/ProjectTaskOutputItemInstance_Tests.cs +++ b/src/Build.OM.UnitTests/Instance/ProjectTaskOutputItemInstance_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Execution; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.OM.UnitTests/Instance/ProjectTaskOutputPropertyInstance_Tests.cs b/src/Build.OM.UnitTests/Instance/ProjectTaskOutputPropertyInstance_Tests.cs index 6c588126a63..823913f110d 100644 --- a/src/Build.OM.UnitTests/Instance/ProjectTaskOutputPropertyInstance_Tests.cs +++ b/src/Build.OM.UnitTests/Instance/ProjectTaskOutputPropertyInstance_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Execution; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.OM.UnitTests/LazyFormattedEventArgs_Tests.cs b/src/Build.OM.UnitTests/LazyFormattedEventArgs_Tests.cs index 493237ec52c..12244b26b57 100644 --- a/src/Build.OM.UnitTests/LazyFormattedEventArgs_Tests.cs +++ b/src/Build.OM.UnitTests/LazyFormattedEventArgs_Tests.cs @@ -4,6 +4,8 @@ using System.IO; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Framework { /// diff --git a/src/Build.OM.UnitTests/NugetRestoreTests.cs b/src/Build.OM.UnitTests/NugetRestoreTests.cs index 93d56ae6aaf..3c75c36b772 100644 --- a/src/Build.OM.UnitTests/NugetRestoreTests.cs +++ b/src/Build.OM.UnitTests/NugetRestoreTests.cs @@ -10,6 +10,8 @@ #endif using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Engine.OM.UnitTests { public sealed class NugetRestoreTests diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/TestCollectionGroup.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/TestCollectionGroup.cs index 3e9fd6a872f..83ce92e4d30 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/TestCollectionGroup.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/TestCollectionGroup.cs @@ -1,5 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/ViewValidation.construction.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/ViewValidation.construction.cs index 8ebfe5804bb..100d0b6ae77 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/ViewValidation.construction.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/ViewValidation.construction.cs @@ -1,5 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/ViewValidation.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/ViewValidation.cs index 3589801cb5b..4e1161c32ab 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/ViewValidation.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/ViewValidation.cs @@ -1,5 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/ViewValidation.evaluation.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/ViewValidation.evaluation.cs index fea0765bb61..ea46c70faa3 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/ViewValidation.evaluation.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/Helpers/ViewValidation.evaluation.cs @@ -1,5 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedConstructionModify_Tests.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedConstructionModify_Tests.cs index 942348cb23d..4226c3d5435 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedConstructionModify_Tests.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedConstructionModify_Tests.cs @@ -1,5 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedConstructionReadOnly_Tests.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedConstructionReadOnly_Tests.cs index 1222d6f9175..5c53201c0d8 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedConstructionReadOnly_Tests.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedConstructionReadOnly_Tests.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Linq; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedEvaluationModify_Tests.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedEvaluationModify_Tests.cs index 707c2fd8e66..1d403b81f7b 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedEvaluationModify_Tests.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedEvaluationModify_Tests.cs @@ -1,5 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedEvaluationReadOnly_Tests.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedEvaluationReadOnly_Tests.cs index a85eefbec89..5197936d9e4 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedEvaluationReadOnly_Tests.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedEvaluationReadOnly_Tests.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Linq; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedProjectCollection_Tests.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedProjectCollection_Tests.cs index 1860c67e314..89447997df1 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedProjectCollection_Tests.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedProjectCollection_Tests.cs @@ -1,5 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedSpecialCasesScenarios.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedSpecialCasesScenarios.cs index 8f1a864574a..26f7a13f777 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedSpecialCasesScenarios.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/LinkedSpecialCasesScenarios.cs @@ -1,5 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/CollectionsHelpers.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/CollectionsHelpers.cs index 3f0f13a0137..b6d935f41a7 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/CollectionsHelpers.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/CollectionsHelpers.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/InheritanceImplementationHelpers.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/InheritanceImplementationHelpers.cs index 0c53fd5bed8..2dff6a546e7 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/InheritanceImplementationHelpers.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/InheritanceImplementationHelpers.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectChooseElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectChooseElementLink.cs index 9f302bece84..9967a7b4caf 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectChooseElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectChooseElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectElementContainerLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectElementContainerLink.cs index 26ea393decb..e4754f60d2c 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectElementContainerLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectElementContainerLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectElementLink.cs index 41a79358295..40ee91d732b 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectExtensionsElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectExtensionsElementLink.cs index 1a38891169a..f4dadff9519 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectExtensionsElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectExtensionsElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectImportElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectImportElementLink.cs index daeeb6c9bd3..590b4f9dfe0 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectImportElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectImportElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectImportGroupElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectImportGroupElementLink.cs index 22a6ec3962e..98fe38f3e28 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectImportGroupElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectImportGroupElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemDefinitionElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemDefinitionElementLink.cs index 95c629b6f6c..2ebcdf29e14 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemDefinitionElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemDefinitionElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemDefinitionGroupElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemDefinitionGroupElementLink.cs index b8eb8f02601..324de0cd4ad 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemDefinitionGroupElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemDefinitionGroupElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemElementLink.cs index 19fe9b5f21a..387636a661a 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemGroupElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemGroupElementLink.cs index cf303dd364b..40c67b66ae4 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemGroupElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectItemGroupElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectMetadataElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectMetadataElementLink.cs index 93a45d29468..d4201a0e566 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectMetadataElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectMetadataElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectOnErrorElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectOnErrorElementLink.cs index f0150fcb16f..670037f8ab9 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectOnErrorElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectOnErrorElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectOtherwiseElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectOtherwiseElementLink.cs index 61d41fdb213..cf9ed5cfc73 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectOtherwiseElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectOtherwiseElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectOutputElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectOutputElementLink.cs index 71b51714734..e92c8bada54 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectOutputElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectOutputElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectPropertyElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectPropertyElementLink.cs index 8333d6cea58..171e9537b91 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectPropertyElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectPropertyElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectPropertyGroupElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectPropertyGroupElementLink.cs index 84df3d61166..aa4aa21be26 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectPropertyGroupElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectPropertyGroupElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectRootElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectRootElementLink.cs index 8e86f380dff..23839cbbd6a 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectRootElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectRootElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectSdkElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectSdkElementLink.cs index 42bd25eea51..e388f98a799 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectSdkElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectSdkElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectTargetElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectTargetElementLink.cs index fd3ead348d4..5f167256223 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectTargetElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectTargetElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectTaskElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectTaskElementLink.cs index 4da84bb4ba6..0270ebd93f1 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectTaskElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectTaskElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectUsingTaskBodyElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectUsingTaskBodyElementLink.cs index 91946a3ed35..738ae4b419f 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectUsingTaskBodyElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectUsingTaskBodyElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectUsingTaskElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectUsingTaskElementLink.cs index 103ddf08fd5..6c712d6a783 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectUsingTaskElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectUsingTaskElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectUsingTaskParameterElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectUsingTaskParameterElementLink.cs index 3c5674aaa91..1a10555b4b8 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectUsingTaskParameterElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectUsingTaskParameterElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectWhenElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectWhenElementLink.cs index b691aab8001..eab1585dd0b 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectWhenElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockProjectWhenElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockUsingTaskParameterGroupElementLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockUsingTaskParameterGroupElementLink.cs index 3a29f8fcb6c..7756a107763 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockUsingTaskParameterGroupElementLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/MockUsingTaskParameterGroupElementLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/ProjectElemetExportHelper.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/ProjectElemetExportHelper.cs index 8ede445cd3e..641e4b1b66b 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/ProjectElemetExportHelper.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ConstructionLinkMocks/ProjectElemetExportHelper.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/DirectlyRemotedClasses.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/DirectlyRemotedClasses.cs index dd4dcf72f23..d09294c9ada 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/DirectlyRemotedClasses.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/DirectlyRemotedClasses.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using Microsoft.Build.Construction; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectItemDefinitionLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectItemDefinitionLink.cs index 25b9fa61b9b..4462df28a6f 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectItemDefinitionLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectItemDefinitionLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectItemLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectItemLink.cs index a4015cb2fb7..8bc6637683a 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectItemLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectItemLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System.Collections.Generic; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectLink.cs index 324dcb6eb3f..6f2d2a20899 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectMetadataLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectMetadataLink.cs index dea676b3ea4..d0fe2270eb2 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectMetadataLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectMetadataLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using Microsoft.Build.Construction; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectPropertyLink.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectPropertyLink.cs index 374f44d06bc..68b725949df 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectPropertyLink.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/EvaluationLinkMocks/MockProjectPropertyLink.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using Microsoft.Build.Construction; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ExporterMock.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ExporterMock.cs index 95a409f777e..004bbf7dfa9 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ExporterMock.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/ExporterMock.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System; diff --git a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/LinkedObjectsMap.cs b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/LinkedObjectsMap.cs index b4a5223c125..da3a45fc598 100644 --- a/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/LinkedObjectsMap.cs +++ b/src/Build.OM.UnitTests/ObjectModelRemoting/RemoteProjectsProviderMock/LinkedObjectsMap.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests.OM.ObjectModelRemoting { using System; diff --git a/src/Build.OM.UnitTests/TransientIO.cs b/src/Build.OM.UnitTests/TransientIO.cs index a4baa8399ca..982474d02ea 100644 --- a/src/Build.OM.UnitTests/TransientIO.cs +++ b/src/Build.OM.UnitTests/TransientIO.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests { using System; diff --git a/src/Build.UnitTests/BackEnd/AssemblyLoadContextTestTasks.cs b/src/Build.UnitTests/BackEnd/AssemblyLoadContextTestTasks.cs index e3835a04268..3b1628e1def 100644 --- a/src/Build.UnitTests/BackEnd/AssemblyLoadContextTestTasks.cs +++ b/src/Build.UnitTests/BackEnd/AssemblyLoadContextTestTasks.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; +#nullable disable + namespace AssemblyLoadContextTest { public class RegisterObject : Task diff --git a/src/Build.UnitTests/BackEnd/AssemblyTaskFactory_Tests.cs b/src/Build.UnitTests/BackEnd/AssemblyTaskFactory_Tests.cs index 106e03beaf3..e12c7da2b85 100644 --- a/src/Build.UnitTests/BackEnd/AssemblyTaskFactory_Tests.cs +++ b/src/Build.UnitTests/BackEnd/AssemblyTaskFactory_Tests.cs @@ -12,6 +12,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/BatchingEngine_Tests.cs b/src/Build.UnitTests/BackEnd/BatchingEngine_Tests.cs index bd728aee05e..7257dd511d2 100644 --- a/src/Build.UnitTests/BackEnd/BatchingEngine_Tests.cs +++ b/src/Build.UnitTests/BackEnd/BatchingEngine_Tests.cs @@ -16,6 +16,8 @@ using ProjectItemInstanceFactory = Microsoft.Build.Execution.ProjectItemInstance.TaskItem.ProjectItemInstanceFactory; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class BatchingEngine_Tests diff --git a/src/Build.UnitTests/BackEnd/BinaryTranslator_Tests.cs b/src/Build.UnitTests/BackEnd/BinaryTranslator_Tests.cs index 32e5a1a9ce1..6c068f87d83 100644 --- a/src/Build.UnitTests/BackEnd/BinaryTranslator_Tests.cs +++ b/src/Build.UnitTests/BackEnd/BinaryTranslator_Tests.cs @@ -11,6 +11,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/BuildEventArgTransportSink_Tests.cs b/src/Build.UnitTests/BackEnd/BuildEventArgTransportSink_Tests.cs index 154780129ae..ff47a190984 100644 --- a/src/Build.UnitTests/BackEnd/BuildEventArgTransportSink_Tests.cs +++ b/src/Build.UnitTests/BackEnd/BuildEventArgTransportSink_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Logging { /// diff --git a/src/Build.UnitTests/BackEnd/BuildManager_Tests.cs b/src/Build.UnitTests/BackEnd/BuildManager_Tests.cs index 466bce2536a..f79cbf36870 100644 --- a/src/Build.UnitTests/BackEnd/BuildManager_Tests.cs +++ b/src/Build.UnitTests/BackEnd/BuildManager_Tests.cs @@ -28,6 +28,8 @@ using Xunit.Abstractions; using static Microsoft.Build.UnitTests.ObjectModelHelpers; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/BuildRequestConfigurationResponse_Tests.cs b/src/Build.UnitTests/BackEnd/BuildRequestConfigurationResponse_Tests.cs index ea11fb4ac01..c34403403be 100644 --- a/src/Build.UnitTests/BackEnd/BuildRequestConfigurationResponse_Tests.cs +++ b/src/Build.UnitTests/BackEnd/BuildRequestConfigurationResponse_Tests.cs @@ -4,6 +4,8 @@ using Microsoft.Build.BackEnd; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/BuildRequestConfiguration_Tests.cs b/src/Build.UnitTests/BackEnd/BuildRequestConfiguration_Tests.cs index 9ccf30da8e2..9169257ea35 100644 --- a/src/Build.UnitTests/BackEnd/BuildRequestConfiguration_Tests.cs +++ b/src/Build.UnitTests/BackEnd/BuildRequestConfiguration_Tests.cs @@ -18,6 +18,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class BuildRequestConfiguration_Tests : IDisposable diff --git a/src/Build.UnitTests/BackEnd/BuildRequestEngine_Tests.cs b/src/Build.UnitTests/BackEnd/BuildRequestEngine_Tests.cs index bd2e1172fe5..176a21de6d1 100644 --- a/src/Build.UnitTests/BackEnd/BuildRequestEngine_Tests.cs +++ b/src/Build.UnitTests/BackEnd/BuildRequestEngine_Tests.cs @@ -15,6 +15,8 @@ using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { using NodeLoggingContext = Microsoft.Build.BackEnd.Logging.NodeLoggingContext; diff --git a/src/Build.UnitTests/BackEnd/BuildRequestEntry_Tests.cs b/src/Build.UnitTests/BackEnd/BuildRequestEntry_Tests.cs index 00e27aeca13..04e1a6ff1f4 100644 --- a/src/Build.UnitTests/BackEnd/BuildRequestEntry_Tests.cs +++ b/src/Build.UnitTests/BackEnd/BuildRequestEntry_Tests.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Unittest; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class BuildRequestEntry_Tests diff --git a/src/Build.UnitTests/BackEnd/BuildRequest_Tests.cs b/src/Build.UnitTests/BackEnd/BuildRequest_Tests.cs index 9cede0f7298..83b1acac8a5 100644 --- a/src/Build.UnitTests/BackEnd/BuildRequest_Tests.cs +++ b/src/Build.UnitTests/BackEnd/BuildRequest_Tests.cs @@ -9,6 +9,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class BuildRequest_Tests diff --git a/src/Build.UnitTests/BackEnd/BuildResult_Tests.cs b/src/Build.UnitTests/BackEnd/BuildResult_Tests.cs index e46a84eb0e4..f683a372813 100644 --- a/src/Build.UnitTests/BackEnd/BuildResult_Tests.cs +++ b/src/Build.UnitTests/BackEnd/BuildResult_Tests.cs @@ -14,6 +14,8 @@ using Xunit; using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class BuildResult_Tests diff --git a/src/Build.UnitTests/BackEnd/CacheAggregator_Tests.cs b/src/Build.UnitTests/BackEnd/CacheAggregator_Tests.cs index 738978a9e07..0a55644bbf8 100644 --- a/src/Build.UnitTests/BackEnd/CacheAggregator_Tests.cs +++ b/src/Build.UnitTests/BackEnd/CacheAggregator_Tests.cs @@ -13,6 +13,8 @@ using Xunit; using static Microsoft.Build.Unittest.BuildResultUtilities; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class CacheAggregator_Tests diff --git a/src/Build.UnitTests/BackEnd/CentralForwardingLogger_Tests.cs b/src/Build.UnitTests/BackEnd/CentralForwardingLogger_Tests.cs index 62f686d4657..c4b329cabf7 100644 --- a/src/Build.UnitTests/BackEnd/CentralForwardingLogger_Tests.cs +++ b/src/Build.UnitTests/BackEnd/CentralForwardingLogger_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Logging { /// diff --git a/src/Build.UnitTests/BackEnd/ConfigCache_Tests.cs b/src/Build.UnitTests/BackEnd/ConfigCache_Tests.cs index e3dc1ff11f7..77441aa3a97 100644 --- a/src/Build.UnitTests/BackEnd/ConfigCache_Tests.cs +++ b/src/Build.UnitTests/BackEnd/ConfigCache_Tests.cs @@ -9,6 +9,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class ConfigCache_Tests diff --git a/src/Build.UnitTests/BackEnd/ConfigurationMetadata_Tests.cs b/src/Build.UnitTests/BackEnd/ConfigurationMetadata_Tests.cs index 74b8c257d49..b8f69fc9af0 100644 --- a/src/Build.UnitTests/BackEnd/ConfigurationMetadata_Tests.cs +++ b/src/Build.UnitTests/BackEnd/ConfigurationMetadata_Tests.cs @@ -12,6 +12,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/CustomLogAndReturnTask.cs b/src/Build.UnitTests/BackEnd/CustomLogAndReturnTask.cs index e6f05dff154..e7234395cb7 100644 --- a/src/Build.UnitTests/BackEnd/CustomLogAndReturnTask.cs +++ b/src/Build.UnitTests/BackEnd/CustomLogAndReturnTask.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.UnitTests { public class CustomLogAndReturnTask : Task diff --git a/src/Build.UnitTests/BackEnd/CustomTaskHelper.cs b/src/Build.UnitTests/BackEnd/CustomTaskHelper.cs index fc97d6fc91d..cc4575f5e70 100644 --- a/src/Build.UnitTests/BackEnd/CustomTaskHelper.cs +++ b/src/Build.UnitTests/BackEnd/CustomTaskHelper.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/DebugUtils_tests.cs b/src/Build.UnitTests/BackEnd/DebugUtils_tests.cs index 07c9c392b41..351d86a0d6a 100644 --- a/src/Build.UnitTests/BackEnd/DebugUtils_tests.cs +++ b/src/Build.UnitTests/BackEnd/DebugUtils_tests.cs @@ -8,6 +8,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class DebugUtils_Tests diff --git a/src/Build.UnitTests/BackEnd/EventRedirectorToSink_Tests.cs b/src/Build.UnitTests/BackEnd/EventRedirectorToSink_Tests.cs index 59580199847..aa8672631df 100644 --- a/src/Build.UnitTests/BackEnd/EventRedirectorToSink_Tests.cs +++ b/src/Build.UnitTests/BackEnd/EventRedirectorToSink_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Logging { /// diff --git a/src/Build.UnitTests/BackEnd/EventSourceSink_Tests.cs b/src/Build.UnitTests/BackEnd/EventSourceSink_Tests.cs index 8dc2e82dbdd..62ead33ff5e 100644 --- a/src/Build.UnitTests/BackEnd/EventSourceSink_Tests.cs +++ b/src/Build.UnitTests/BackEnd/EventSourceSink_Tests.cs @@ -10,6 +10,8 @@ using InternalLoggerException = Microsoft.Build.Exceptions.InternalLoggerException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Logging { /// diff --git a/src/Build.UnitTests/BackEnd/FailingBuilderTask.cs b/src/Build.UnitTests/BackEnd/FailingBuilderTask.cs index 7371e45ffd4..c8701f6beb4 100644 --- a/src/Build.UnitTests/BackEnd/FailingBuilderTask.cs +++ b/src/Build.UnitTests/BackEnd/FailingBuilderTask.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.UnitTests { public class FailingBuilderTask : Task diff --git a/src/Build.UnitTests/BackEnd/FailingTask.cs b/src/Build.UnitTests/BackEnd/FailingTask.cs index 2060a8639c5..b2c784c90ab 100644 --- a/src/Build.UnitTests/BackEnd/FailingTask.cs +++ b/src/Build.UnitTests/BackEnd/FailingTask.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.UnitTests { public class FailingTask : Task diff --git a/src/Build.UnitTests/BackEnd/FullyQualifiedBuildRequest_Tests.cs b/src/Build.UnitTests/BackEnd/FullyQualifiedBuildRequest_Tests.cs index 4901c0fe91b..2d7c9d7df15 100644 --- a/src/Build.UnitTests/BackEnd/FullyQualifiedBuildRequest_Tests.cs +++ b/src/Build.UnitTests/BackEnd/FullyQualifiedBuildRequest_Tests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Execution; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class FullyQualifiedBuildRequest_Tests diff --git a/src/Build.UnitTests/BackEnd/GenerateTemporaryTargetAssembly_Tests.cs b/src/Build.UnitTests/BackEnd/GenerateTemporaryTargetAssembly_Tests.cs index 5faa5279a03..4d3b8c7c06c 100644 --- a/src/Build.UnitTests/BackEnd/GenerateTemporaryTargetAssembly_Tests.cs +++ b/src/Build.UnitTests/BackEnd/GenerateTemporaryTargetAssembly_Tests.cs @@ -6,6 +6,8 @@ using System.Reflection; using Xunit; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.BackEnd { sealed public class GenerateTemporaryTargetAssembly_Tests diff --git a/src/Build.UnitTests/BackEnd/ITestTaskHost.cs b/src/Build.UnitTests/BackEnd/ITestTaskHost.cs index 41206a64e15..bf139b239a1 100644 --- a/src/Build.UnitTests/BackEnd/ITestTaskHost.cs +++ b/src/Build.UnitTests/BackEnd/ITestTaskHost.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/IntegrationTests.cs b/src/Build.UnitTests/BackEnd/IntegrationTests.cs index c9550165546..9a951727c87 100644 --- a/src/Build.UnitTests/BackEnd/IntegrationTests.cs +++ b/src/Build.UnitTests/BackEnd/IntegrationTests.cs @@ -1,4 +1,6 @@ -namespace Microsoft.Build.Unittest.BackEnd +#nullable disable + +namespace Microsoft.Build.Unittest.BackEnd { class IntegrationTests { diff --git a/src/Build.UnitTests/BackEnd/IntrinsicTask_Tests.cs b/src/Build.UnitTests/BackEnd/IntrinsicTask_Tests.cs index a52b53f97f5..ad59e9aa5ce 100644 --- a/src/Build.UnitTests/BackEnd/IntrinsicTask_Tests.cs +++ b/src/Build.UnitTests/BackEnd/IntrinsicTask_Tests.cs @@ -20,6 +20,8 @@ using NodeLoggingContext = Microsoft.Build.BackEnd.Logging.NodeLoggingContext; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class IntrinsicTask_Tests diff --git a/src/Build.UnitTests/BackEnd/ItemCreationTask.cs b/src/Build.UnitTests/BackEnd/ItemCreationTask.cs index 67d1764aa55..717cdb9812f 100644 --- a/src/Build.UnitTests/BackEnd/ItemCreationTask.cs +++ b/src/Build.UnitTests/BackEnd/ItemCreationTask.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; +#nullable disable + namespace ItemCreationTask { public class ItemCreationTask : Task diff --git a/src/Build.UnitTests/BackEnd/LoggingContext_Tests.cs b/src/Build.UnitTests/BackEnd/LoggingContext_Tests.cs index 68439641529..8a372962d89 100644 --- a/src/Build.UnitTests/BackEnd/LoggingContext_Tests.cs +++ b/src/Build.UnitTests/BackEnd/LoggingContext_Tests.cs @@ -8,6 +8,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/LoggingServiceFactory_Tests.cs b/src/Build.UnitTests/BackEnd/LoggingServiceFactory_Tests.cs index 10cf7d2192a..c69153fc7a2 100644 --- a/src/Build.UnitTests/BackEnd/LoggingServiceFactory_Tests.cs +++ b/src/Build.UnitTests/BackEnd/LoggingServiceFactory_Tests.cs @@ -5,6 +5,8 @@ using Microsoft.Build.BackEnd; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Logging { /// diff --git a/src/Build.UnitTests/BackEnd/LoggingService_Tests.cs b/src/Build.UnitTests/BackEnd/LoggingService_Tests.cs index 4d84c33b60f..ca6d7535564 100644 --- a/src/Build.UnitTests/BackEnd/LoggingService_Tests.cs +++ b/src/Build.UnitTests/BackEnd/LoggingService_Tests.cs @@ -19,6 +19,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Logging { /// diff --git a/src/Build.UnitTests/BackEnd/LoggingServicesLogMethod_Tests.cs b/src/Build.UnitTests/BackEnd/LoggingServicesLogMethod_Tests.cs index ebbec93cd53..09b271ca757 100644 --- a/src/Build.UnitTests/BackEnd/LoggingServicesLogMethod_Tests.cs +++ b/src/Build.UnitTests/BackEnd/LoggingServicesLogMethod_Tests.cs @@ -21,6 +21,8 @@ using Xunit; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests.Logging { /// diff --git a/src/Build.UnitTests/BackEnd/Lookup_Tests.cs b/src/Build.UnitTests/BackEnd/Lookup_Tests.cs index 82720f575ba..ae99bbcc52f 100644 --- a/src/Build.UnitTests/BackEnd/Lookup_Tests.cs +++ b/src/Build.UnitTests/BackEnd/Lookup_Tests.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class Lookup_Tests diff --git a/src/Build.UnitTests/BackEnd/MSBuild_Tests.cs b/src/Build.UnitTests/BackEnd/MSBuild_Tests.cs index a6340ab95ef..55a1959e969 100644 --- a/src/Build.UnitTests/BackEnd/MSBuild_Tests.cs +++ b/src/Build.UnitTests/BackEnd/MSBuild_Tests.cs @@ -14,6 +14,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class MSBuildTask_Tests : IDisposable diff --git a/src/Build.UnitTests/BackEnd/MockHost.cs b/src/Build.UnitTests/BackEnd/MockHost.cs index 1d787f19f91..dc4aaff843e 100644 --- a/src/Build.UnitTests/BackEnd/MockHost.cs +++ b/src/Build.UnitTests/BackEnd/MockHost.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Execution; using LegacyThreadingData = Microsoft.Build.Execution.LegacyThreadingData; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/MockLoggingService.cs b/src/Build.UnitTests/BackEnd/MockLoggingService.cs index 9dfc0009db4..f69b9525340 100644 --- a/src/Build.UnitTests/BackEnd/MockLoggingService.cs +++ b/src/Build.UnitTests/BackEnd/MockLoggingService.cs @@ -13,6 +13,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/MockRemoteHostObject.cs b/src/Build.UnitTests/BackEnd/MockRemoteHostObject.cs index 726b692a6d8..4ce3b3498cf 100644 --- a/src/Build.UnitTests/BackEnd/MockRemoteHostObject.cs +++ b/src/Build.UnitTests/BackEnd/MockRemoteHostObject.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { internal class MockRemoteHostObject : ITaskHost, ITestRemoteHostObject diff --git a/src/Build.UnitTests/BackEnd/MockRunningObjectTable.cs b/src/Build.UnitTests/BackEnd/MockRunningObjectTable.cs index 4e41ced5758..ce9ad201d0a 100644 --- a/src/Build.UnitTests/BackEnd/MockRunningObjectTable.cs +++ b/src/Build.UnitTests/BackEnd/MockRunningObjectTable.cs @@ -6,6 +6,8 @@ using System.Runtime.InteropServices; using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { internal class MockRunningObjectTable : IRunningObjectTableWrapper diff --git a/src/Build.UnitTests/BackEnd/MockSdkResolverService.cs b/src/Build.UnitTests/BackEnd/MockSdkResolverService.cs index c31322a43bf..b963f89756d 100644 --- a/src/Build.UnitTests/BackEnd/MockSdkResolverService.cs +++ b/src/Build.UnitTests/BackEnd/MockSdkResolverService.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using System; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.BackEnd { internal class MockSdkResolverService : IBuildComponent, ISdkResolverService diff --git a/src/Build.UnitTests/BackEnd/MockTaskBuilder.cs b/src/Build.UnitTests/BackEnd/MockTaskBuilder.cs index 8f5590fe5ae..4cdbfdaa711 100644 --- a/src/Build.UnitTests/BackEnd/MockTaskBuilder.cs +++ b/src/Build.UnitTests/BackEnd/MockTaskBuilder.cs @@ -11,6 +11,8 @@ using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; using System.Threading.Tasks; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/NodeEndpointInProc_Tests.cs b/src/Build.UnitTests/BackEnd/NodeEndpointInProc_Tests.cs index 6791d729dd8..7b6a17d9d9d 100644 --- a/src/Build.UnitTests/BackEnd/NodeEndpointInProc_Tests.cs +++ b/src/Build.UnitTests/BackEnd/NodeEndpointInProc_Tests.cs @@ -12,6 +12,8 @@ using LegacyThreadingData = Microsoft.Build.Execution.LegacyThreadingData; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class NodeEndpointInProc_Tests diff --git a/src/Build.UnitTests/BackEnd/NodePackets_Tests.cs b/src/Build.UnitTests/BackEnd/NodePackets_Tests.cs index 78d73604056..63018958d65 100644 --- a/src/Build.UnitTests/BackEnd/NodePackets_Tests.cs +++ b/src/Build.UnitTests/BackEnd/NodePackets_Tests.cs @@ -11,6 +11,8 @@ using System.Collections.Generic; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/NullMetadataTask.cs b/src/Build.UnitTests/BackEnd/NullMetadataTask.cs index 844e68e8a7e..0a06cbdcbea 100644 --- a/src/Build.UnitTests/BackEnd/NullMetadataTask.cs +++ b/src/Build.UnitTests/BackEnd/NullMetadataTask.cs @@ -6,6 +6,8 @@ using System.Collections; using System.Collections.Generic; +#nullable disable + namespace NullMetadataTask { public class NullMetadataTask : Task diff --git a/src/Build.UnitTests/BackEnd/OnError_Tests.cs b/src/Build.UnitTests/BackEnd/OnError_Tests.cs index bbb9ada34e5..164bbd71800 100644 --- a/src/Build.UnitTests/BackEnd/OnError_Tests.cs +++ b/src/Build.UnitTests/BackEnd/OnError_Tests.cs @@ -13,6 +13,8 @@ using Shouldly; using System.Linq; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /* diff --git a/src/Build.UnitTests/BackEnd/ProcessIdTask.cs b/src/Build.UnitTests/BackEnd/ProcessIdTask.cs index 18dee2718bb..ffc97d6f455 100644 --- a/src/Build.UnitTests/BackEnd/ProcessIdTask.cs +++ b/src/Build.UnitTests/BackEnd/ProcessIdTask.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Build.UnitTests/BackEnd/RequestBuilder_Tests.cs b/src/Build.UnitTests/BackEnd/RequestBuilder_Tests.cs index 42ceffcef27..02d3dfc415a 100644 --- a/src/Build.UnitTests/BackEnd/RequestBuilder_Tests.cs +++ b/src/Build.UnitTests/BackEnd/RequestBuilder_Tests.cs @@ -15,6 +15,8 @@ using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; diff --git a/src/Build.UnitTests/BackEnd/ResultsCache_Tests.cs b/src/Build.UnitTests/BackEnd/ResultsCache_Tests.cs index 781db5fb46a..63479f7c6c3 100644 --- a/src/Build.UnitTests/BackEnd/ResultsCache_Tests.cs +++ b/src/Build.UnitTests/BackEnd/ResultsCache_Tests.cs @@ -15,6 +15,8 @@ +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class ResultsCache_Tests diff --git a/src/Build.UnitTests/BackEnd/ReturnFailureWithoutLoggingErrorTask.cs b/src/Build.UnitTests/BackEnd/ReturnFailureWithoutLoggingErrorTask.cs index 5e2fb261506..f630dc546de 100644 --- a/src/Build.UnitTests/BackEnd/ReturnFailureWithoutLoggingErrorTask.cs +++ b/src/Build.UnitTests/BackEnd/ReturnFailureWithoutLoggingErrorTask.cs @@ -2,6 +2,8 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Build.UnitTests/BackEnd/Scheduler_Tests.cs b/src/Build.UnitTests/BackEnd/Scheduler_Tests.cs index 7386b34a91f..4a443fcc458 100644 --- a/src/Build.UnitTests/BackEnd/Scheduler_Tests.cs +++ b/src/Build.UnitTests/BackEnd/Scheduler_Tests.cs @@ -15,6 +15,8 @@ using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { using Microsoft.Build.Unittest; diff --git a/src/Build.UnitTests/BackEnd/SdkResolverLoader_Tests.cs b/src/Build.UnitTests/BackEnd/SdkResolverLoader_Tests.cs index ac3317da212..4b14bd3537a 100644 --- a/src/Build.UnitTests/BackEnd/SdkResolverLoader_Tests.cs +++ b/src/Build.UnitTests/BackEnd/SdkResolverLoader_Tests.cs @@ -19,6 +19,8 @@ using SdkResultBase = Microsoft.Build.Framework.SdkResult; using SdkResultFactoryBase = Microsoft.Build.Framework.SdkResultFactory; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.BackEnd { public class SdkResolverLoader_Tests diff --git a/src/Build.UnitTests/BackEnd/SdkResolverService_Tests.cs b/src/Build.UnitTests/BackEnd/SdkResolverService_Tests.cs index cbfd97c5f83..ceaecb12aea 100644 --- a/src/Build.UnitTests/BackEnd/SdkResolverService_Tests.cs +++ b/src/Build.UnitTests/BackEnd/SdkResolverService_Tests.cs @@ -18,6 +18,8 @@ using SdkResultFactoryBase = Microsoft.Build.Framework.SdkResultFactory; using SdkResultImpl = Microsoft.Build.BackEnd.SdkResolution.SdkResult; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.BackEnd { public class SdkResolverService_Tests diff --git a/src/Build.UnitTests/BackEnd/SdkResultItemComparison_Tests.cs b/src/Build.UnitTests/BackEnd/SdkResultItemComparison_Tests.cs index 41e3db02aa5..cec66126473 100644 --- a/src/Build.UnitTests/BackEnd/SdkResultItemComparison_Tests.cs +++ b/src/Build.UnitTests/BackEnd/SdkResultItemComparison_Tests.cs @@ -7,6 +7,8 @@ using System.Collections.Generic; using Xunit; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.BackEnd { public class SdkResultItemComparison_Tests diff --git a/src/Build.UnitTests/BackEnd/SdkResultOutOfProc_Tests.cs b/src/Build.UnitTests/BackEnd/SdkResultOutOfProc_Tests.cs index 562ac26f280..759f74f14e0 100644 --- a/src/Build.UnitTests/BackEnd/SdkResultOutOfProc_Tests.cs +++ b/src/Build.UnitTests/BackEnd/SdkResultOutOfProc_Tests.cs @@ -19,6 +19,8 @@ using Xunit.Abstractions; using static Microsoft.Build.UnitTests.ObjectModelHelpers; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class SdkResultOutOfProc_Tests : IDisposable diff --git a/src/Build.UnitTests/BackEnd/TargetBuilder_Tests.cs b/src/Build.UnitTests/BackEnd/TargetBuilder_Tests.cs index 62674749d33..85949260a53 100644 --- a/src/Build.UnitTests/BackEnd/TargetBuilder_Tests.cs +++ b/src/Build.UnitTests/BackEnd/TargetBuilder_Tests.cs @@ -23,6 +23,8 @@ using Microsoft.Build.Engine.UnitTests.BackEnd; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/TargetEntry_Tests.cs b/src/Build.UnitTests/BackEnd/TargetEntry_Tests.cs index 3446700cae3..67e589b6ea8 100644 --- a/src/Build.UnitTests/BackEnd/TargetEntry_Tests.cs +++ b/src/Build.UnitTests/BackEnd/TargetEntry_Tests.cs @@ -20,6 +20,8 @@ using Xunit; using ElementLocation = Microsoft.Build.Construction.ElementLocation; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/TargetResult_Tests.cs b/src/Build.UnitTests/BackEnd/TargetResult_Tests.cs index 67950cf5716..5ab96821f48 100644 --- a/src/Build.UnitTests/BackEnd/TargetResult_Tests.cs +++ b/src/Build.UnitTests/BackEnd/TargetResult_Tests.cs @@ -10,6 +10,8 @@ using Xunit; using Microsoft.Build.Engine.UnitTests.TestComparers; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/TargetUpToDateChecker_Tests.cs b/src/Build.UnitTests/BackEnd/TargetUpToDateChecker_Tests.cs index 1c3da30e0c7..e2b71d10f36 100644 --- a/src/Build.UnitTests/BackEnd/TargetUpToDateChecker_Tests.cs +++ b/src/Build.UnitTests/BackEnd/TargetUpToDateChecker_Tests.cs @@ -17,6 +17,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class TargetUpToDateChecker_Tests : IDisposable diff --git a/src/Build.UnitTests/BackEnd/TaskBuilderTestTask.cs b/src/Build.UnitTests/BackEnd/TaskBuilderTestTask.cs index c0341747d64..f9b99f90586 100644 --- a/src/Build.UnitTests/BackEnd/TaskBuilderTestTask.cs +++ b/src/Build.UnitTests/BackEnd/TaskBuilderTestTask.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Framework; using System.Reflection; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/TaskBuilder_Tests.cs b/src/Build.UnitTests/BackEnd/TaskBuilder_Tests.cs index 7ba76a5b89d..c94468fdfe0 100644 --- a/src/Build.UnitTests/BackEnd/TaskBuilder_Tests.cs +++ b/src/Build.UnitTests/BackEnd/TaskBuilder_Tests.cs @@ -24,6 +24,8 @@ using Xunit.Abstractions; using System.Threading; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// @@ -1003,6 +1005,7 @@ private string GenerateSTATask(bool requireSTA) @" using System; using Microsoft.Build.Framework; + namespace ClassLibrary2 {" + (requireSTA ? "[RunInSTA]" : String.Empty) + @" public class ThreadTask : ITask diff --git a/src/Build.UnitTests/BackEnd/TaskExecutionHost_Tests.cs b/src/Build.UnitTests/BackEnd/TaskExecutionHost_Tests.cs index 93abec24663..fe959902ca2 100644 --- a/src/Build.UnitTests/BackEnd/TaskExecutionHost_Tests.cs +++ b/src/Build.UnitTests/BackEnd/TaskExecutionHost_Tests.cs @@ -22,6 +22,8 @@ using Xunit; using Microsoft.Build.Engine.UnitTests.TestComparers; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/TaskHostConfiguration_Tests.cs b/src/Build.UnitTests/BackEnd/TaskHostConfiguration_Tests.cs index 94c7c23f23d..0d596b32bc5 100644 --- a/src/Build.UnitTests/BackEnd/TaskHostConfiguration_Tests.cs +++ b/src/Build.UnitTests/BackEnd/TaskHostConfiguration_Tests.cs @@ -16,6 +16,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/TaskHostFactory_Tests.cs b/src/Build.UnitTests/BackEnd/TaskHostFactory_Tests.cs index fa4146484e9..de486a2e086 100644 --- a/src/Build.UnitTests/BackEnd/TaskHostFactory_Tests.cs +++ b/src/Build.UnitTests/BackEnd/TaskHostFactory_Tests.cs @@ -7,6 +7,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.BackEnd { public sealed class TaskHostFactory_Tests diff --git a/src/Build.UnitTests/BackEnd/TaskHostTaskCancelled_Tests.cs b/src/Build.UnitTests/BackEnd/TaskHostTaskCancelled_Tests.cs index 60ad45a978d..df7e6dafa41 100644 --- a/src/Build.UnitTests/BackEnd/TaskHostTaskCancelled_Tests.cs +++ b/src/Build.UnitTests/BackEnd/TaskHostTaskCancelled_Tests.cs @@ -5,6 +5,8 @@ using Xunit; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/TaskHostTaskComplete_Tests.cs b/src/Build.UnitTests/BackEnd/TaskHostTaskComplete_Tests.cs index b6be946a836..1b46cfd3090 100644 --- a/src/Build.UnitTests/BackEnd/TaskHostTaskComplete_Tests.cs +++ b/src/Build.UnitTests/BackEnd/TaskHostTaskComplete_Tests.cs @@ -13,6 +13,8 @@ using TaskHostPacketHelpers = Microsoft.Build.UnitTests.BackEnd.TaskHostConfiguration_Tests.TaskHostPacketHelpers; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/TaskHost_Tests.cs b/src/Build.UnitTests/BackEnd/TaskHost_Tests.cs index e45add12e09..be9b7d57893 100644 --- a/src/Build.UnitTests/BackEnd/TaskHost_Tests.cs +++ b/src/Build.UnitTests/BackEnd/TaskHost_Tests.cs @@ -17,6 +17,8 @@ using Xunit; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BackEnd/TaskRegistry_Tests.cs b/src/Build.UnitTests/BackEnd/TaskRegistry_Tests.cs index ecdfc421d3c..bd2ae3edfae 100644 --- a/src/Build.UnitTests/BackEnd/TaskRegistry_Tests.cs +++ b/src/Build.UnitTests/BackEnd/TaskRegistry_Tests.cs @@ -21,6 +21,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { public class TestTask : Task diff --git a/src/Build.UnitTests/BackEnd/TranslationHelpers.cs b/src/Build.UnitTests/BackEnd/TranslationHelpers.cs index a4f5a3c09e5..21dd0b7b1fe 100644 --- a/src/Build.UnitTests/BackEnd/TranslationHelpers.cs +++ b/src/Build.UnitTests/BackEnd/TranslationHelpers.cs @@ -10,6 +10,8 @@ using Microsoft.Build.BackEnd; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/BinaryLogger_Tests.cs b/src/Build.UnitTests/BinaryLogger_Tests.cs index d7e2b9b5d4b..17527ef7440 100644 --- a/src/Build.UnitTests/BinaryLogger_Tests.cs +++ b/src/Build.UnitTests/BinaryLogger_Tests.cs @@ -11,6 +11,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { public class BinaryLoggerTests : IDisposable diff --git a/src/Build.UnitTests/BuildEnvironmentHelper_Tests.cs b/src/Build.UnitTests/BuildEnvironmentHelper_Tests.cs index c6f59eea74f..47bf0c2c6c3 100644 --- a/src/Build.UnitTests/BuildEnvironmentHelper_Tests.cs +++ b/src/Build.UnitTests/BuildEnvironmentHelper_Tests.cs @@ -5,6 +5,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests { public class BuildEnvironmentHelper_Tests diff --git a/src/Build.UnitTests/BuildEventArgsSerialization_Tests.cs b/src/Build.UnitTests/BuildEventArgsSerialization_Tests.cs index 1d06b86c43b..4ad1bb35cac 100644 --- a/src/Build.UnitTests/BuildEventArgsSerialization_Tests.cs +++ b/src/Build.UnitTests/BuildEventArgsSerialization_Tests.cs @@ -12,6 +12,8 @@ using Microsoft.Build.UnitTests.BackEnd; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class BuildEventArgsSerializationTests diff --git a/src/Build.UnitTests/BuildResultUtilities.cs b/src/Build.UnitTests/BuildResultUtilities.cs index 244fee76119..d6f7661b224 100644 --- a/src/Build.UnitTests/BuildResultUtilities.cs +++ b/src/Build.UnitTests/BuildResultUtilities.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Execution; using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; +#nullable disable + namespace Microsoft.Build.Unittest { internal class BuildResultUtilities diff --git a/src/Build.UnitTests/ChangeWaves_Tests.cs b/src/Build.UnitTests/ChangeWaves_Tests.cs index 9b151a10fc7..dd4cd24501d 100644 --- a/src/Build.UnitTests/ChangeWaves_Tests.cs +++ b/src/Build.UnitTests/ChangeWaves_Tests.cs @@ -11,6 +11,8 @@ using System; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests { sealed public class ChangeWaves_Tests diff --git a/src/Build.UnitTests/Collections/CopyOnReadEnumerable_Tests.cs b/src/Build.UnitTests/Collections/CopyOnReadEnumerable_Tests.cs index 5049533a341..a9eda40bf93 100644 --- a/src/Build.UnitTests/Collections/CopyOnReadEnumerable_Tests.cs +++ b/src/Build.UnitTests/Collections/CopyOnReadEnumerable_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Collections; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Collections { /// diff --git a/src/Build.UnitTests/Collections/MSBuildNameIgnoreCaseComparer_Tests.cs b/src/Build.UnitTests/Collections/MSBuildNameIgnoreCaseComparer_Tests.cs index ca9c3f60b06..98458c643a6 100644 --- a/src/Build.UnitTests/Collections/MSBuildNameIgnoreCaseComparer_Tests.cs +++ b/src/Build.UnitTests/Collections/MSBuildNameIgnoreCaseComparer_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Execution; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Collections { /// diff --git a/src/Build.UnitTests/Collections/MultiDictionary_Tests.cs b/src/Build.UnitTests/Collections/MultiDictionary_Tests.cs index 63d31dd25bf..b26c561f60f 100644 --- a/src/Build.UnitTests/Collections/MultiDictionary_Tests.cs +++ b/src/Build.UnitTests/Collections/MultiDictionary_Tests.cs @@ -6,6 +6,8 @@ using System; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Collections { /// diff --git a/src/Build.UnitTests/Collections/OMcollections_tests.cs b/src/Build.UnitTests/Collections/OMcollections_tests.cs index 90a169b7a64..19b4c44ab26 100644 --- a/src/Build.UnitTests/Collections/OMcollections_tests.cs +++ b/src/Build.UnitTests/Collections/OMcollections_tests.cs @@ -16,6 +16,8 @@ using Xunit; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Collections { /// diff --git a/src/Build.UnitTests/ConfigureableForwardingLogger_Tests.cs b/src/Build.UnitTests/ConfigureableForwardingLogger_Tests.cs index 3698f90ed5d..3e17a8bf6ef 100644 --- a/src/Build.UnitTests/ConfigureableForwardingLogger_Tests.cs +++ b/src/Build.UnitTests/ConfigureableForwardingLogger_Tests.cs @@ -9,6 +9,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class ConfigureableForwardingLogger_Tests diff --git a/src/Build.UnitTests/ConsoleLogger_Tests.cs b/src/Build.UnitTests/ConsoleLogger_Tests.cs index 353fadb719c..e72b97ed626 100644 --- a/src/Build.UnitTests/ConsoleLogger_Tests.cs +++ b/src/Build.UnitTests/ConsoleLogger_Tests.cs @@ -21,6 +21,8 @@ using Xunit.Abstractions; using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.UnitTests { public class ConsoleLoggerTest diff --git a/src/Build.UnitTests/ConsoleOutputAlignerTests.cs b/src/Build.UnitTests/ConsoleOutputAlignerTests.cs index b0227c062a0..36d24c027e3 100644 --- a/src/Build.UnitTests/ConsoleOutputAlignerTests.cs +++ b/src/Build.UnitTests/ConsoleOutputAlignerTests.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System; using Microsoft.Build.BackEnd.Logging; using Shouldly; diff --git a/src/Build.UnitTests/Construction/ElementLocation_Tests.cs b/src/Build.UnitTests/Construction/ElementLocation_Tests.cs index ae23198472c..4f0510593ad 100644 --- a/src/Build.UnitTests/Construction/ElementLocation_Tests.cs +++ b/src/Build.UnitTests/Construction/ElementLocation_Tests.cs @@ -13,6 +13,8 @@ using Xunit; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.UnitTests.Construction { /// diff --git a/src/Build.UnitTests/Construction/ProjectImportElement_Tests.cs b/src/Build.UnitTests/Construction/ProjectImportElement_Tests.cs index 4450f83c458..0fcd05dc03b 100644 --- a/src/Build.UnitTests/Construction/ProjectImportElement_Tests.cs +++ b/src/Build.UnitTests/Construction/ProjectImportElement_Tests.cs @@ -8,6 +8,8 @@ using System.Linq; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Construction { public class ProjectImportElement_Tests diff --git a/src/Build.UnitTests/Construction/ProjectRootElement_Tests.cs b/src/Build.UnitTests/Construction/ProjectRootElement_Tests.cs index a7b25df1968..dce65c09acb 100644 --- a/src/Build.UnitTests/Construction/ProjectRootElement_Tests.cs +++ b/src/Build.UnitTests/Construction/ProjectRootElement_Tests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Construction; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Construction { /// diff --git a/src/Build.UnitTests/Construction/SolutionFile_Tests.cs b/src/Build.UnitTests/Construction/SolutionFile_Tests.cs index 786305ab9c0..af601518dfe 100644 --- a/src/Build.UnitTests/Construction/SolutionFile_Tests.cs +++ b/src/Build.UnitTests/Construction/SolutionFile_Tests.cs @@ -12,6 +12,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.Construction { public class SolutionFile_Tests diff --git a/src/Build.UnitTests/Construction/SolutionProjectGenerator_Tests.cs b/src/Build.UnitTests/Construction/SolutionProjectGenerator_Tests.cs index 232aa1366ef..56d5d33a7b7 100644 --- a/src/Build.UnitTests/Construction/SolutionProjectGenerator_Tests.cs +++ b/src/Build.UnitTests/Construction/SolutionProjectGenerator_Tests.cs @@ -30,6 +30,8 @@ using Shouldly; using Microsoft.Build.UnitTests.Shared; +#nullable disable + namespace Microsoft.Build.UnitTests.Construction { public class SolutionProjectGenerator_Tests : IDisposable diff --git a/src/Build.UnitTests/Construction/XmlReaderWithoutLocation_Tests.cs b/src/Build.UnitTests/Construction/XmlReaderWithoutLocation_Tests.cs index 16878ee979c..b790a35ea3a 100644 --- a/src/Build.UnitTests/Construction/XmlReaderWithoutLocation_Tests.cs +++ b/src/Build.UnitTests/Construction/XmlReaderWithoutLocation_Tests.cs @@ -6,6 +6,8 @@ using System.IO; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Construction { public class XmlReaderWithoutLocation_Tests diff --git a/src/Build.UnitTests/Definition/ItemDataCollectionValue_Tests.cs b/src/Build.UnitTests/Definition/ItemDataCollectionValue_Tests.cs index b0699e3ab43..b1499384ed5 100644 --- a/src/Build.UnitTests/Definition/ItemDataCollectionValue_Tests.cs +++ b/src/Build.UnitTests/Definition/ItemDataCollectionValue_Tests.cs @@ -7,6 +7,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Definition { /// diff --git a/src/Build.UnitTests/Definition/ItemDefinitionGroup_Tests.cs b/src/Build.UnitTests/Definition/ItemDefinitionGroup_Tests.cs index 55055c61a51..a04dbc363b2 100644 --- a/src/Build.UnitTests/Definition/ItemDefinitionGroup_Tests.cs +++ b/src/Build.UnitTests/Definition/ItemDefinitionGroup_Tests.cs @@ -16,6 +16,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Definition { /// diff --git a/src/Build.UnitTests/Definition/ProjectEvaluationContext_Tests.cs b/src/Build.UnitTests/Definition/ProjectEvaluationContext_Tests.cs index 4605aa5827e..0821ce83dad 100644 --- a/src/Build.UnitTests/Definition/ProjectEvaluationContext_Tests.cs +++ b/src/Build.UnitTests/Definition/ProjectEvaluationContext_Tests.cs @@ -18,6 +18,8 @@ using Xunit; using SdkResult = Microsoft.Build.BackEnd.SdkResolution.SdkResult; +#nullable disable + namespace Microsoft.Build.UnitTests.Definition { /// diff --git a/src/Build.UnitTests/Definition/ProjectHelpers.cs b/src/Build.UnitTests/Definition/ProjectHelpers.cs index f72243b4eb1..a7ee529b63d 100644 --- a/src/Build.UnitTests/Definition/ProjectHelpers.cs +++ b/src/Build.UnitTests/Definition/ProjectHelpers.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Evaluation; using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.UnitTests.BackEnd { /// diff --git a/src/Build.UnitTests/Definition/ProjectItem_Tests.cs b/src/Build.UnitTests/Definition/ProjectItem_Tests.cs index 65b62be1c52..f8d660feeb3 100644 --- a/src/Build.UnitTests/Definition/ProjectItem_Tests.cs +++ b/src/Build.UnitTests/Definition/ProjectItem_Tests.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Construction; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Definition { /// diff --git a/src/Build.UnitTests/Definition/Project_Internal_Tests.cs b/src/Build.UnitTests/Definition/Project_Internal_Tests.cs index 66d5409729f..a2bef1d7c0c 100644 --- a/src/Build.UnitTests/Definition/Project_Internal_Tests.cs +++ b/src/Build.UnitTests/Definition/Project_Internal_Tests.cs @@ -11,6 +11,8 @@ using InternalUtilities = Microsoft.Build.Internal.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Definition { /// diff --git a/src/Build.UnitTests/Definition/ToolsVersion_Tests.cs b/src/Build.UnitTests/Definition/ToolsVersion_Tests.cs index f08106527a4..607e17f234c 100644 --- a/src/Build.UnitTests/Definition/ToolsVersion_Tests.cs +++ b/src/Build.UnitTests/Definition/ToolsVersion_Tests.cs @@ -19,6 +19,8 @@ using InternalUtilities = Microsoft.Build.Internal.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Definition { public class ToolsetState_Tests diff --git a/src/Build.UnitTests/Definition/ToolsetConfigurationReaderTestHelper.cs b/src/Build.UnitTests/Definition/ToolsetConfigurationReaderTestHelper.cs index 9299d5c6d87..3f71617095f 100644 --- a/src/Build.UnitTests/Definition/ToolsetConfigurationReaderTestHelper.cs +++ b/src/Build.UnitTests/Definition/ToolsetConfigurationReaderTestHelper.cs @@ -8,6 +8,8 @@ #pragma warning disable 436 +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Build.UnitTests/Definition/ToolsetConfigurationReader_Tests.cs b/src/Build.UnitTests/Definition/ToolsetConfigurationReader_Tests.cs index 6babb127ce7..4560b91f20b 100644 --- a/src/Build.UnitTests/Definition/ToolsetConfigurationReader_Tests.cs +++ b/src/Build.UnitTests/Definition/ToolsetConfigurationReader_Tests.cs @@ -12,6 +12,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.UnitTests.Definition { /// diff --git a/src/Build.UnitTests/Definition/ToolsetReader_Tests.cs b/src/Build.UnitTests/Definition/ToolsetReader_Tests.cs index c90b546da38..e1c99c40e33 100644 --- a/src/Build.UnitTests/Definition/ToolsetReader_Tests.cs +++ b/src/Build.UnitTests/Definition/ToolsetReader_Tests.cs @@ -21,6 +21,8 @@ using InternalUtilities = Microsoft.Build.Internal.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Definition { #if FEATURE_REGISTRY_TOOLSETS diff --git a/src/Build.UnitTests/Definition/ToolsetRegistryReader_Tests.cs b/src/Build.UnitTests/Definition/ToolsetRegistryReader_Tests.cs index 41e2d74ef72..38a7a917f76 100644 --- a/src/Build.UnitTests/Definition/ToolsetRegistryReader_Tests.cs +++ b/src/Build.UnitTests/Definition/ToolsetRegistryReader_Tests.cs @@ -16,6 +16,8 @@ using InvalidToolsetDefinitionException = Microsoft.Build.Exceptions.InvalidToolsetDefinitionException; +#nullable disable + namespace Microsoft.Build.UnitTests.Definition { /// diff --git a/src/Build.UnitTests/Definition/Toolset_Tests.cs b/src/Build.UnitTests/Definition/Toolset_Tests.cs index 7c6230a9f7c..5e5a3260b5d 100644 --- a/src/Build.UnitTests/Definition/Toolset_Tests.cs +++ b/src/Build.UnitTests/Definition/Toolset_Tests.cs @@ -13,6 +13,8 @@ using Microsoft.Build.UnitTests.BackEnd; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Definition { public class Toolset_Tests diff --git a/src/Build.UnitTests/EndToEndCondition_Tests.cs b/src/Build.UnitTests/EndToEndCondition_Tests.cs index 5e8e0d06c8b..22845c25d9f 100644 --- a/src/Build.UnitTests/EndToEndCondition_Tests.cs +++ b/src/Build.UnitTests/EndToEndCondition_Tests.cs @@ -7,6 +7,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { public class EndToEndCondition_Tests diff --git a/src/Build.UnitTests/EscapingInProjects_Tests.cs b/src/Build.UnitTests/EscapingInProjects_Tests.cs index edd37ea0144..d174d8b80a5 100644 --- a/src/Build.UnitTests/EscapingInProjects_Tests.cs +++ b/src/Build.UnitTests/EscapingInProjects_Tests.cs @@ -23,6 +23,8 @@ using Xunit.Abstractions; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.UnitTests.EscapingInProjects_Tests { /// diff --git a/src/Build.UnitTests/Evaluation/EvaluationLogging_Tests.cs b/src/Build.UnitTests/Evaluation/EvaluationLogging_Tests.cs index 67b0b745de8..3f8e86969ed 100644 --- a/src/Build.UnitTests/Evaluation/EvaluationLogging_Tests.cs +++ b/src/Build.UnitTests/Evaluation/EvaluationLogging_Tests.cs @@ -10,6 +10,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Evaluation { /// diff --git a/src/Build.UnitTests/Evaluation/Evaluator_Tests.cs b/src/Build.UnitTests/Evaluation/Evaluator_Tests.cs index 7a4f17f2686..0ac654bcb3a 100644 --- a/src/Build.UnitTests/Evaluation/Evaluator_Tests.cs +++ b/src/Build.UnitTests/Evaluation/Evaluator_Tests.cs @@ -22,6 +22,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; +#nullable disable + namespace Microsoft.Build.UnitTests.Evaluation { /// diff --git a/src/Build.UnitTests/Evaluation/Expander_Tests.cs b/src/Build.UnitTests/Evaluation/Expander_Tests.cs index 76f7b71321f..1ffc80a6c98 100644 --- a/src/Build.UnitTests/Evaluation/Expander_Tests.cs +++ b/src/Build.UnitTests/Evaluation/Expander_Tests.cs @@ -32,6 +32,8 @@ using Microsoft.Build.Shared.FileSystem; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests.Evaluation { public class Expander_Tests diff --git a/src/Build.UnitTests/Evaluation/ExpressionShredder_Tests.cs b/src/Build.UnitTests/Evaluation/ExpressionShredder_Tests.cs index 653a01f2fd3..33f42d34883 100644 --- a/src/Build.UnitTests/Evaluation/ExpressionShredder_Tests.cs +++ b/src/Build.UnitTests/Evaluation/ExpressionShredder_Tests.cs @@ -9,6 +9,8 @@ using System.Text.RegularExpressions; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Evaluation { /// diff --git a/src/Build.UnitTests/Evaluation/ImportFromMSBuildExtensionsPath_Tests.cs b/src/Build.UnitTests/Evaluation/ImportFromMSBuildExtensionsPath_Tests.cs index bfcf5685dc2..1993567e97c 100644 --- a/src/Build.UnitTests/Evaluation/ImportFromMSBuildExtensionsPath_Tests.cs +++ b/src/Build.UnitTests/Evaluation/ImportFromMSBuildExtensionsPath_Tests.cs @@ -12,6 +12,8 @@ using System.Collections.Generic; using System.IO; +#nullable disable + namespace Microsoft.Build.UnitTests.Evaluation { /// diff --git a/src/Build.UnitTests/Evaluation/ItemEvaluation_Tests.cs b/src/Build.UnitTests/Evaluation/ItemEvaluation_Tests.cs index 1c9389c162f..694e901dbbc 100644 --- a/src/Build.UnitTests/Evaluation/ItemEvaluation_Tests.cs +++ b/src/Build.UnitTests/Evaluation/ItemEvaluation_Tests.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Internal; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.UnitTests.Evaluation { /// diff --git a/src/Build.UnitTests/Evaluation/ItemSpec_Tests.cs b/src/Build.UnitTests/Evaluation/ItemSpec_Tests.cs index f0564b0dcba..0923131def0 100644 --- a/src/Build.UnitTests/Evaluation/ItemSpec_Tests.cs +++ b/src/Build.UnitTests/Evaluation/ItemSpec_Tests.cs @@ -16,6 +16,8 @@ Microsoft.Build.Evaluation.Expander; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Evaluation { public class ItemSpec_Tests diff --git a/src/Build.UnitTests/Evaluation/Preprocessor_Tests.cs b/src/Build.UnitTests/Evaluation/Preprocessor_Tests.cs index 3f42d9bd664..d3702dc3b68 100644 --- a/src/Build.UnitTests/Evaluation/Preprocessor_Tests.cs +++ b/src/Build.UnitTests/Evaluation/Preprocessor_Tests.cs @@ -13,6 +13,8 @@ using Microsoft.Build.Framework; using System.Linq; +#nullable disable + namespace Microsoft.Build.UnitTests.Preprocessor { /// diff --git a/src/Build.UnitTests/Evaluation/ProjectCollection_Tests.cs b/src/Build.UnitTests/Evaluation/ProjectCollection_Tests.cs index db0b10e31c6..280ca20b09b 100644 --- a/src/Build.UnitTests/Evaluation/ProjectCollection_Tests.cs +++ b/src/Build.UnitTests/Evaluation/ProjectCollection_Tests.cs @@ -2,6 +2,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Evaluation { public class ProjectCollection_Tests diff --git a/src/Build.UnitTests/Evaluation/ProjectRootElementCache_Tests.cs b/src/Build.UnitTests/Evaluation/ProjectRootElementCache_Tests.cs index 94d96427465..ec26ad0381d 100644 --- a/src/Build.UnitTests/Evaluation/ProjectRootElementCache_Tests.cs +++ b/src/Build.UnitTests/Evaluation/ProjectRootElementCache_Tests.cs @@ -12,6 +12,8 @@ +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Evaluation { /// diff --git a/src/Build.UnitTests/Evaluation/ProjectSdkImplicitImport_Tests.cs b/src/Build.UnitTests/Evaluation/ProjectSdkImplicitImport_Tests.cs index a25dec785b1..59b589aa3d8 100644 --- a/src/Build.UnitTests/Evaluation/ProjectSdkImplicitImport_Tests.cs +++ b/src/Build.UnitTests/Evaluation/ProjectSdkImplicitImport_Tests.cs @@ -21,6 +21,8 @@ using SdkResultFactory = Microsoft.Build.Framework.SdkResultFactory; using SdkReferencePropertyExpansionMode = Microsoft.Build.Framework.EscapeHatches.SdkReferencePropertyExpansionMode; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Construction { /// diff --git a/src/Build.UnitTests/Evaluation/ProjectStringCache_Tests.cs b/src/Build.UnitTests/Evaluation/ProjectStringCache_Tests.cs index dc5bca68248..4b956c2fdab 100644 --- a/src/Build.UnitTests/Evaluation/ProjectStringCache_Tests.cs +++ b/src/Build.UnitTests/Evaluation/ProjectStringCache_Tests.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Evaluation { /// diff --git a/src/Build.UnitTests/Evaluation/SdkResultEvaluation_Tests.cs b/src/Build.UnitTests/Evaluation/SdkResultEvaluation_Tests.cs index e40e6a6d93a..815b667a6be 100644 --- a/src/Build.UnitTests/Evaluation/SdkResultEvaluation_Tests.cs +++ b/src/Build.UnitTests/Evaluation/SdkResultEvaluation_Tests.cs @@ -15,6 +15,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.Evaluation { public class SdkResultEvaluation_Tests : IDisposable diff --git a/src/Build.UnitTests/Evaluation/SemiColonTokenizer_Tests.cs b/src/Build.UnitTests/Evaluation/SemiColonTokenizer_Tests.cs index 68334db169b..18442c49de2 100644 --- a/src/Build.UnitTests/Evaluation/SemiColonTokenizer_Tests.cs +++ b/src/Build.UnitTests/Evaluation/SemiColonTokenizer_Tests.cs @@ -6,6 +6,8 @@ using Xunit; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests.Evaluation { public class SemiColonTokenizer_Tests diff --git a/src/Build.UnitTests/Evaluation/SimpleProjectRootElementCache_Tests.cs b/src/Build.UnitTests/Evaluation/SimpleProjectRootElementCache_Tests.cs index 28fd32be143..05ee16eecac 100644 --- a/src/Build.UnitTests/Evaluation/SimpleProjectRootElementCache_Tests.cs +++ b/src/Build.UnitTests/Evaluation/SimpleProjectRootElementCache_Tests.cs @@ -9,6 +9,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.Evaluation { public class SimpleProjectRootElementCache_Tests : IDisposable diff --git a/src/Build.UnitTests/Evaluation/SimpleVersion_Tests.cs b/src/Build.UnitTests/Evaluation/SimpleVersion_Tests.cs index 7c08340bcf3..55f05760f31 100644 --- a/src/Build.UnitTests/Evaluation/SimpleVersion_Tests.cs +++ b/src/Build.UnitTests/Evaluation/SimpleVersion_Tests.cs @@ -9,6 +9,8 @@ using System.Collections.Generic; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.Evaluation { public class SimpleVersion_Tests diff --git a/src/Build.UnitTests/Evaluation/ToolsetConfigurationNet5_Tests.cs b/src/Build.UnitTests/Evaluation/ToolsetConfigurationNet5_Tests.cs index 298cf5ff37f..8c0126af739 100644 --- a/src/Build.UnitTests/Evaluation/ToolsetConfigurationNet5_Tests.cs +++ b/src/Build.UnitTests/Evaluation/ToolsetConfigurationNet5_Tests.cs @@ -12,6 +12,8 @@ using System.Collections.Generic; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests.Evaluation { /// diff --git a/src/Build.UnitTests/EvaluationProfiler_Tests.cs b/src/Build.UnitTests/EvaluationProfiler_Tests.cs index 94dea5eccbd..d92ea77aa5d 100644 --- a/src/Build.UnitTests/EvaluationProfiler_Tests.cs +++ b/src/Build.UnitTests/EvaluationProfiler_Tests.cs @@ -16,6 +16,8 @@ using Xunit.Abstractions; using static Microsoft.Build.UnitTests.ObjectModelHelpers; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests { /// diff --git a/src/Build.UnitTests/EventArgsFormatting_Tests.cs b/src/Build.UnitTests/EventArgsFormatting_Tests.cs index ad415d35bdd..1f19220f9b1 100644 --- a/src/Build.UnitTests/EventArgsFormatting_Tests.cs +++ b/src/Build.UnitTests/EventArgsFormatting_Tests.cs @@ -7,6 +7,8 @@ +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Build.UnitTests/ExpressionTreeExpression_Tests.cs b/src/Build.UnitTests/ExpressionTreeExpression_Tests.cs index 6c0dd4d9db9..a065e5de133 100644 --- a/src/Build.UnitTests/ExpressionTreeExpression_Tests.cs +++ b/src/Build.UnitTests/ExpressionTreeExpression_Tests.cs @@ -11,6 +11,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { public class ExpressionTest : IDisposable diff --git a/src/Build.UnitTests/ExpressionTree_Tests.cs b/src/Build.UnitTests/ExpressionTree_Tests.cs index 5124da86a6a..7ab7ee1b247 100644 --- a/src/Build.UnitTests/ExpressionTree_Tests.cs +++ b/src/Build.UnitTests/ExpressionTree_Tests.cs @@ -15,6 +15,8 @@ +#nullable disable + namespace Microsoft.Build.UnitTests { public class ExpressionTreeTest diff --git a/src/Build.UnitTests/FileLogger_Tests.cs b/src/Build.UnitTests/FileLogger_Tests.cs index 26ec4e89942..96a16735cad 100644 --- a/src/Build.UnitTests/FileLogger_Tests.cs +++ b/src/Build.UnitTests/FileLogger_Tests.cs @@ -13,6 +13,8 @@ using Project = Microsoft.Build.Evaluation.Project; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class FileLogger_Tests diff --git a/src/Build.UnitTests/FileUtilitiesRegex_Tests.cs b/src/Build.UnitTests/FileUtilitiesRegex_Tests.cs index 5c8489fc7b6..6eb89d1cbf5 100644 --- a/src/Build.UnitTests/FileUtilitiesRegex_Tests.cs +++ b/src/Build.UnitTests/FileUtilitiesRegex_Tests.cs @@ -4,6 +4,8 @@ using System.Text.RegularExpressions; using System.Globalization; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests { public class FileUtilitiesRegex_Tests diff --git a/src/Build.UnitTests/FixPathOnUnix_Tests.cs b/src/Build.UnitTests/FixPathOnUnix_Tests.cs index ed0503e230c..d9f16e556a1 100644 --- a/src/Build.UnitTests/FixPathOnUnix_Tests.cs +++ b/src/Build.UnitTests/FixPathOnUnix_Tests.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { [PlatformSpecific(TestPlatforms.AnyUnix)] diff --git a/src/Build.UnitTests/Globbing/CompositeGlob_Tests.cs b/src/Build.UnitTests/Globbing/CompositeGlob_Tests.cs index ca0efc0d850..0d9995c0c1b 100644 --- a/src/Build.UnitTests/Globbing/CompositeGlob_Tests.cs +++ b/src/Build.UnitTests/Globbing/CompositeGlob_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Globbing.Extensions; using Xunit; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.Globbing { public class CompositeGlobTests diff --git a/src/Build.UnitTests/Globbing/MSBuildGlobWithGaps_Tests.cs b/src/Build.UnitTests/Globbing/MSBuildGlobWithGaps_Tests.cs index fd742516500..0a993dbc5b6 100644 --- a/src/Build.UnitTests/Globbing/MSBuildGlobWithGaps_Tests.cs +++ b/src/Build.UnitTests/Globbing/MSBuildGlobWithGaps_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Globbing; using Xunit; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.Globbing { public class MSBuildGlobWithGaps_Tests diff --git a/src/Build.UnitTests/Globbing/MSBuildGlob_Tests.cs b/src/Build.UnitTests/Globbing/MSBuildGlob_Tests.cs index c550d10b888..5cae35dbd70 100644 --- a/src/Build.UnitTests/Globbing/MSBuildGlob_Tests.cs +++ b/src/Build.UnitTests/Globbing/MSBuildGlob_Tests.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.Globbing { /// diff --git a/src/Build.UnitTests/Graph/GraphLoadedFromSolution_tests.cs b/src/Build.UnitTests/Graph/GraphLoadedFromSolution_tests.cs index bed09d043ec..04c61fc8f2c 100644 --- a/src/Build.UnitTests/Graph/GraphLoadedFromSolution_tests.cs +++ b/src/Build.UnitTests/Graph/GraphLoadedFromSolution_tests.cs @@ -17,6 +17,8 @@ using static Microsoft.Build.Graph.UnitTests.GraphTestingUtilities; using static Microsoft.Build.UnitTests.Helpers; +#nullable disable + namespace Microsoft.Build.Graph.UnitTests { public class GraphLoadedFromSolutionTests : IDisposable diff --git a/src/Build.UnitTests/Graph/GraphTestingUtilities.cs b/src/Build.UnitTests/Graph/GraphTestingUtilities.cs index 4bb00a27384..870a51b595b 100644 --- a/src/Build.UnitTests/Graph/GraphTestingUtilities.cs +++ b/src/Build.UnitTests/Graph/GraphTestingUtilities.cs @@ -10,6 +10,8 @@ using Microsoft.Build.UnitTests; using Shouldly; +#nullable disable + namespace Microsoft.Build.Graph.UnitTests { internal static class GraphTestingUtilities diff --git a/src/Build.UnitTests/Graph/IsolateProjects_Tests.cs b/src/Build.UnitTests/Graph/IsolateProjects_Tests.cs index 60c0a3500c3..b610f6e496f 100644 --- a/src/Build.UnitTests/Graph/IsolateProjects_Tests.cs +++ b/src/Build.UnitTests/Graph/IsolateProjects_Tests.cs @@ -13,6 +13,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Graph.UnitTests { public class IsolateProjectsTests : IDisposable diff --git a/src/Build.UnitTests/Graph/ParallelWorkSet_Tests.cs b/src/Build.UnitTests/Graph/ParallelWorkSet_Tests.cs index 5592f324956..f4251fcde21 100644 --- a/src/Build.UnitTests/Graph/ParallelWorkSet_Tests.cs +++ b/src/Build.UnitTests/Graph/ParallelWorkSet_Tests.cs @@ -6,6 +6,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.Graph.UnitTests { public class ParallelWorkSet_Tests diff --git a/src/Build.UnitTests/Graph/ProjectGraph_Tests.cs b/src/Build.UnitTests/Graph/ProjectGraph_Tests.cs index 94eda2f6168..c6d4436ed77 100644 --- a/src/Build.UnitTests/Graph/ProjectGraph_Tests.cs +++ b/src/Build.UnitTests/Graph/ProjectGraph_Tests.cs @@ -18,6 +18,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Graph.UnitTests { [ActiveIssue("https://github.com/dotnet/msbuild/issues/4368")] diff --git a/src/Build.UnitTests/Graph/ResultCacheBasedBuilds_Tests.cs b/src/Build.UnitTests/Graph/ResultCacheBasedBuilds_Tests.cs index b5c742d2791..cb40be2fbad 100644 --- a/src/Build.UnitTests/Graph/ResultCacheBasedBuilds_Tests.cs +++ b/src/Build.UnitTests/Graph/ResultCacheBasedBuilds_Tests.cs @@ -20,6 +20,8 @@ using ExpectedNodeBuildOutput = System.Collections.Generic.Dictionary; using OutputCacheDictionary = System.Collections.Generic.Dictionary; +#nullable disable + namespace Microsoft.Build.Graph.UnitTests { public class ResultCacheBasedBuilds_Tests : IDisposable diff --git a/src/Build.UnitTests/HashTableUtility_Tests.cs b/src/Build.UnitTests/HashTableUtility_Tests.cs index db6888967d9..78bd02da31d 100644 --- a/src/Build.UnitTests/HashTableUtility_Tests.cs +++ b/src/Build.UnitTests/HashTableUtility_Tests.cs @@ -7,6 +7,8 @@ using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class HashTableUtilityTests diff --git a/src/Build.UnitTests/Instance/HostServices_Tests.cs b/src/Build.UnitTests/Instance/HostServices_Tests.cs index 318d56ef351..eb54fc972e4 100644 --- a/src/Build.UnitTests/Instance/HostServices_Tests.cs +++ b/src/Build.UnitTests/Instance/HostServices_Tests.cs @@ -13,6 +13,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.UnitTests/Instance/ProjectInstance_Internal_Tests.cs b/src/Build.UnitTests/Instance/ProjectInstance_Internal_Tests.cs index 6b294012cbb..b5d79282eae 100644 --- a/src/Build.UnitTests/Instance/ProjectInstance_Internal_Tests.cs +++ b/src/Build.UnitTests/Instance/ProjectInstance_Internal_Tests.cs @@ -19,6 +19,8 @@ using Xunit.Abstractions; using static Microsoft.Build.Engine.UnitTests.TestComparers.ProjectInstanceModelTestComparers; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.UnitTests/Instance/ProjectItemGroupTaskItemInstance_Internal_Tests.cs b/src/Build.UnitTests/Instance/ProjectItemGroupTaskItemInstance_Internal_Tests.cs index 3d93f0efdc5..2ce98e6f74d 100644 --- a/src/Build.UnitTests/Instance/ProjectItemGroupTaskItemInstance_Internal_Tests.cs +++ b/src/Build.UnitTests/Instance/ProjectItemGroupTaskItemInstance_Internal_Tests.cs @@ -10,6 +10,8 @@ using static Microsoft.Build.Engine.UnitTests.TestComparers.ProjectInstanceModelTestComparers; using static Microsoft.Build.Engine.UnitTests.TestData.ProjectInstanceTestObjects; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.Instance { public class ProjectItemGroupTaskItemInstance_Internal_Tests diff --git a/src/Build.UnitTests/Instance/ProjectMetadataInstance_Internal_Tests.cs b/src/Build.UnitTests/Instance/ProjectMetadataInstance_Internal_Tests.cs index a887dfb4c42..98816c8f4c3 100644 --- a/src/Build.UnitTests/Instance/ProjectMetadataInstance_Internal_Tests.cs +++ b/src/Build.UnitTests/Instance/ProjectMetadataInstance_Internal_Tests.cs @@ -8,6 +8,8 @@ using Xunit; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.UnitTests/Instance/ProjectPropertyGroupTaskPropertyInstance_Internal_Tests.cs b/src/Build.UnitTests/Instance/ProjectPropertyGroupTaskPropertyInstance_Internal_Tests.cs index 15128123a9e..3b7790a1104 100644 --- a/src/Build.UnitTests/Instance/ProjectPropertyGroupTaskPropertyInstance_Internal_Tests.cs +++ b/src/Build.UnitTests/Instance/ProjectPropertyGroupTaskPropertyInstance_Internal_Tests.cs @@ -9,6 +9,8 @@ using static Microsoft.Build.Engine.UnitTests.TestData.ProjectInstanceTestObjects; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.Instance { public class ProjectPropertyGroupTaskPropertyInstance_Internal_Tests diff --git a/src/Build.UnitTests/Instance/ProjectPropertyInstance_Internal_Tests.cs b/src/Build.UnitTests/Instance/ProjectPropertyInstance_Internal_Tests.cs index fc286c5d9ca..97c471392b4 100644 --- a/src/Build.UnitTests/Instance/ProjectPropertyInstance_Internal_Tests.cs +++ b/src/Build.UnitTests/Instance/ProjectPropertyInstance_Internal_Tests.cs @@ -8,6 +8,8 @@ using Xunit; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.UnitTests/Instance/ProjectTargetInstance_Internal_Tests.cs b/src/Build.UnitTests/Instance/ProjectTargetInstance_Internal_Tests.cs index df74f7c9cca..d24d65f35d3 100644 --- a/src/Build.UnitTests/Instance/ProjectTargetInstance_Internal_Tests.cs +++ b/src/Build.UnitTests/Instance/ProjectTargetInstance_Internal_Tests.cs @@ -10,6 +10,8 @@ using static Microsoft.Build.Engine.UnitTests.TestData.ProjectInstanceTestObjects; using static Microsoft.Build.Engine.UnitTests.TestComparers.ProjectInstanceModelTestComparers; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.Instance { public class ProjectTargetInstance_Internal_Tests diff --git a/src/Build.UnitTests/Instance/ProjectTaskInstance_Internal_Tests.cs b/src/Build.UnitTests/Instance/ProjectTaskInstance_Internal_Tests.cs index b500df91717..0c32202a0a8 100644 --- a/src/Build.UnitTests/Instance/ProjectTaskInstance_Internal_Tests.cs +++ b/src/Build.UnitTests/Instance/ProjectTaskInstance_Internal_Tests.cs @@ -11,6 +11,8 @@ using Xunit; using static Microsoft.Build.Engine.UnitTests.TestData.ProjectInstanceTestObjects; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.Instance { public class ProjectTaskInstance_Internal_Tests diff --git a/src/Build.UnitTests/Instance/TaskItem_Tests.cs b/src/Build.UnitTests/Instance/TaskItem_Tests.cs index 50b4dd3b487..5e7a14912d7 100644 --- a/src/Build.UnitTests/Instance/TaskItem_Tests.cs +++ b/src/Build.UnitTests/Instance/TaskItem_Tests.cs @@ -12,6 +12,8 @@ using Xunit; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Instance { /// diff --git a/src/Build.UnitTests/InternalEngineHelpers.cs b/src/Build.UnitTests/InternalEngineHelpers.cs index aa0ae0c34be..92a24a8f03d 100644 --- a/src/Build.UnitTests/InternalEngineHelpers.cs +++ b/src/Build.UnitTests/InternalEngineHelpers.cs @@ -18,6 +18,8 @@ using SdkResult = Microsoft.Build.BackEnd.SdkResolution.SdkResult; using SdkResultFactory = Microsoft.Build.Framework.SdkResultFactory; +#nullable disable + namespace Microsoft.Build.Unittest { internal static class SdkUtilities diff --git a/src/Build.UnitTests/InvalidProjectFileException_Tests.cs b/src/Build.UnitTests/InvalidProjectFileException_Tests.cs index 9c302ec2efa..a5b3fd5652c 100644 --- a/src/Build.UnitTests/InvalidProjectFileException_Tests.cs +++ b/src/Build.UnitTests/InvalidProjectFileException_Tests.cs @@ -9,6 +9,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { public class InvalidProjectFileExceptionTests diff --git a/src/Build.UnitTests/LogFormatter_Tests.cs b/src/Build.UnitTests/LogFormatter_Tests.cs index 74d6744d2b0..612088969b8 100644 --- a/src/Build.UnitTests/LogFormatter_Tests.cs +++ b/src/Build.UnitTests/LogFormatter_Tests.cs @@ -6,6 +6,8 @@ using System.Globalization; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class LogFormatterTest diff --git a/src/Build.UnitTests/LoggerDescription_Tests.cs b/src/Build.UnitTests/LoggerDescription_Tests.cs index ceae5ff707c..864522ae43c 100644 --- a/src/Build.UnitTests/LoggerDescription_Tests.cs +++ b/src/Build.UnitTests/LoggerDescription_Tests.cs @@ -8,6 +8,8 @@ using Xunit; using Microsoft.Build.Logging; +#nullable disable + namespace Microsoft.Build.UnitTests { public class LoggerDescription_Tests diff --git a/src/Build.UnitTests/LoggerException_Tests.cs b/src/Build.UnitTests/LoggerException_Tests.cs index 79dafa6e0e3..1e66dff1800 100644 --- a/src/Build.UnitTests/LoggerException_Tests.cs +++ b/src/Build.UnitTests/LoggerException_Tests.cs @@ -8,6 +8,8 @@ using Xunit; using System.Runtime.Serialization.Formatters.Binary; +#nullable disable + namespace Microsoft.Build.UnitTests { public class InternalLoggerExceptionTests diff --git a/src/Build.UnitTests/MockElementLocation.cs b/src/Build.UnitTests/MockElementLocation.cs index 7ea1cd9825f..a122931106b 100644 --- a/src/Build.UnitTests/MockElementLocation.cs +++ b/src/Build.UnitTests/MockElementLocation.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Build.UnitTests/MockLoggingContext.cs b/src/Build.UnitTests/MockLoggingContext.cs index 4ce200fdc10..17fb2a448d4 100644 --- a/src/Build.UnitTests/MockLoggingContext.cs +++ b/src/Build.UnitTests/MockLoggingContext.cs @@ -4,6 +4,8 @@ using Microsoft.Build.BackEnd.Logging; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests { /// diff --git a/src/Build.UnitTests/MockTask.cs b/src/Build.UnitTests/MockTask.cs index 929243a2859..b09930be051 100644 --- a/src/Build.UnitTests/MockTask.cs +++ b/src/Build.UnitTests/MockTask.cs @@ -8,6 +8,8 @@ using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; +#nullable disable + namespace Microsoft.Build.UnitTests { internal class MockTaskBase diff --git a/src/Build.UnitTests/Parser_Tests.cs b/src/Build.UnitTests/Parser_Tests.cs index 3c426bfb38c..bc7efd3b6ef 100644 --- a/src/Build.UnitTests/Parser_Tests.cs +++ b/src/Build.UnitTests/Parser_Tests.cs @@ -9,6 +9,8 @@ +#nullable disable + namespace Microsoft.Build.UnitTests { public class ParserTest diff --git a/src/Build.UnitTests/ProjectCache/ProjectCacheTests.cs b/src/Build.UnitTests/ProjectCache/ProjectCacheTests.cs index c994edab0ff..d0f17bf9dc7 100644 --- a/src/Build.UnitTests/ProjectCache/ProjectCacheTests.cs +++ b/src/Build.UnitTests/ProjectCache/ProjectCacheTests.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System; using System.Collections.Concurrent; using System.Collections.Generic; diff --git a/src/Build.UnitTests/ProjectEvaluationFinishedEventArgs_Tests.cs b/src/Build.UnitTests/ProjectEvaluationFinishedEventArgs_Tests.cs index 93c1af36e9d..278d09e7431 100644 --- a/src/Build.UnitTests/ProjectEvaluationFinishedEventArgs_Tests.cs +++ b/src/Build.UnitTests/ProjectEvaluationFinishedEventArgs_Tests.cs @@ -12,6 +12,8 @@ using Microsoft.Build.UnitTests.BackEnd; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { // Although this tests the ProfilerResult API from Microsoft.Build.Framework, it uses the diff --git a/src/Build.UnitTests/Scanner_Tests.cs b/src/Build.UnitTests/Scanner_Tests.cs index 8fb33e821cd..41532eee324 100644 --- a/src/Build.UnitTests/Scanner_Tests.cs +++ b/src/Build.UnitTests/Scanner_Tests.cs @@ -13,6 +13,8 @@ +#nullable disable + namespace Microsoft.Build.UnitTests { public class ScannerTest diff --git a/src/Build.UnitTests/SolutionFileBuilder.cs b/src/Build.UnitTests/SolutionFileBuilder.cs index 2aa973078bd..19f04cfe9c3 100644 --- a/src/Build.UnitTests/SolutionFileBuilder.cs +++ b/src/Build.UnitTests/SolutionFileBuilder.cs @@ -20,6 +20,8 @@ using Microsoft.Build.UnitTests; using Shouldly; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests { internal class SolutionFileBuilder diff --git a/src/Build.UnitTests/TargetsFile_Test.cs b/src/Build.UnitTests/TargetsFile_Test.cs index 4a7e4b27904..ea6002e5bcb 100644 --- a/src/Build.UnitTests/TargetsFile_Test.cs +++ b/src/Build.UnitTests/TargetsFile_Test.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Evaluation; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Build.UnitTests/TestComparers/ProjectInstanceModelTestComparers.cs b/src/Build.UnitTests/TestComparers/ProjectInstanceModelTestComparers.cs index a9ba7b26914..ef9e52db8b9 100644 --- a/src/Build.UnitTests/TestComparers/ProjectInstanceModelTestComparers.cs +++ b/src/Build.UnitTests/TestComparers/ProjectInstanceModelTestComparers.cs @@ -13,6 +13,8 @@ Microsoft.Build.Evaluation.IEvaluatorData; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.TestComparers { public static class ProjectInstanceModelTestComparers diff --git a/src/Build.UnitTests/TestComparers/TaskItemComparer.cs b/src/Build.UnitTests/TestComparers/TaskItemComparer.cs index cc089195da3..36b1da60309 100644 --- a/src/Build.UnitTests/TestComparers/TaskItemComparer.cs +++ b/src/Build.UnitTests/TestComparers/TaskItemComparer.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.TestComparers { /// diff --git a/src/Build.UnitTests/TestComparers/TaskRegistryComparers.cs b/src/Build.UnitTests/TestComparers/TaskRegistryComparers.cs index 8d11cb21445..73492a83c4f 100644 --- a/src/Build.UnitTests/TestComparers/TaskRegistryComparers.cs +++ b/src/Build.UnitTests/TestComparers/TaskRegistryComparers.cs @@ -9,6 +9,8 @@ using Microsoft.Build.UnitTests; using Xunit; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.TestComparers { internal class TaskRegistryComparers diff --git a/src/Build.UnitTests/TestData/ProjectInstanceTestObjects.cs b/src/Build.UnitTests/TestData/ProjectInstanceTestObjects.cs index 755ef004019..9f7435a781b 100644 --- a/src/Build.UnitTests/TestData/ProjectInstanceTestObjects.cs +++ b/src/Build.UnitTests/TestData/ProjectInstanceTestObjects.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.UnitTests; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.TestData { internal static class ProjectInstanceTestObjects diff --git a/src/Build.UnitTests/Utilities_Tests.cs b/src/Build.UnitTests/Utilities_Tests.cs index 7f3f2601bf4..c6f7af84e57 100644 --- a/src/Build.UnitTests/Utilities_Tests.cs +++ b/src/Build.UnitTests/Utilities_Tests.cs @@ -23,6 +23,8 @@ using System.IO; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { public class UtilitiesTestStandard : UtilitiesTest diff --git a/src/Build.UnitTests/WarningsAsMessagesAndErrors_Tests.cs b/src/Build.UnitTests/WarningsAsMessagesAndErrors_Tests.cs index 9b3f28df02f..ed6ef8fd68a 100644 --- a/src/Build.UnitTests/WarningsAsMessagesAndErrors_Tests.cs +++ b/src/Build.UnitTests/WarningsAsMessagesAndErrors_Tests.cs @@ -7,6 +7,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests { public sealed class WarningsAsMessagesAndErrorsTests diff --git a/src/Build/BackEnd/BuildManager/BuildManager.cs b/src/Build/BackEnd/BuildManager/BuildManager.cs index d1a29b8abaf..2ab79c82d3c 100644 --- a/src/Build/BackEnd/BuildManager/BuildManager.cs +++ b/src/Build/BackEnd/BuildManager/BuildManager.cs @@ -36,6 +36,8 @@ using Microsoft.NET.StringTools; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/BackEnd/BuildManager/BuildParameters.cs b/src/Build/BackEnd/BuildManager/BuildParameters.cs index 93d21956172..bf4c28d8035 100644 --- a/src/Build/BackEnd/BuildManager/BuildParameters.cs +++ b/src/Build/BackEnd/BuildManager/BuildParameters.cs @@ -18,6 +18,8 @@ using Microsoft.Build.Shared.FileSystem; using ForwardingLoggerRecord = Microsoft.Build.Logging.ForwardingLoggerRecord; +#nullable disable + namespace Microsoft.Build.Execution { using Utilities = Internal.Utilities; diff --git a/src/Build/BackEnd/BuildManager/BuildRequestData.cs b/src/Build/BackEnd/BuildManager/BuildRequestData.cs index 6f3a29a5765..cb2685b14ef 100644 --- a/src/Build/BackEnd/BuildManager/BuildRequestData.cs +++ b/src/Build/BackEnd/BuildManager/BuildRequestData.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Evaluation; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/BackEnd/BuildManager/BuildSubmission.cs b/src/Build/BackEnd/BuildManager/BuildSubmission.cs index 5b574b82b20..a6ee56f90ba 100644 --- a/src/Build/BackEnd/BuildManager/BuildSubmission.cs +++ b/src/Build/BackEnd/BuildManager/BuildSubmission.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using System.Globalization; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/BackEnd/BuildManager/CacheAggregator.cs b/src/Build/BackEnd/BuildManager/CacheAggregator.cs index 7c4530234cb..104c59fa31b 100644 --- a/src/Build/BackEnd/BuildManager/CacheAggregator.cs +++ b/src/Build/BackEnd/BuildManager/CacheAggregator.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Internal; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Execution { internal class CacheAggregator diff --git a/src/Build/BackEnd/BuildManager/CacheSerialization.cs b/src/Build/BackEnd/BuildManager/CacheSerialization.cs index 8bce00b3a26..757b6d032d6 100644 --- a/src/Build/BackEnd/BuildManager/CacheSerialization.cs +++ b/src/Build/BackEnd/BuildManager/CacheSerialization.cs @@ -6,6 +6,8 @@ using Microsoft.Build.BackEnd; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Execution { internal static class CacheSerialization diff --git a/src/Build/BackEnd/BuildManager/LegacyThreadingData.cs b/src/Build/BackEnd/BuildManager/LegacyThreadingData.cs index 34b563ae053..cb18ea93bb4 100644 --- a/src/Build/BackEnd/BuildManager/LegacyThreadingData.cs +++ b/src/Build/BackEnd/BuildManager/LegacyThreadingData.cs @@ -8,6 +8,8 @@ using System.Collections.Generic; using System.Threading.Tasks; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/BackEnd/BuildManager/RequestedProjectState.cs b/src/Build/BackEnd/BuildManager/RequestedProjectState.cs index 1df6a64b42b..f1aa79796a3 100644 --- a/src/Build/BackEnd/BuildManager/RequestedProjectState.cs +++ b/src/Build/BackEnd/BuildManager/RequestedProjectState.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/BackEnd/Components/BuildComponentFactoryCollection.cs b/src/Build/BackEnd/Components/BuildComponentFactoryCollection.cs index 05ea23f5425..0bf9cfd50e0 100644 --- a/src/Build/BackEnd/Components/BuildComponentFactoryCollection.cs +++ b/src/Build/BackEnd/Components/BuildComponentFactoryCollection.cs @@ -6,6 +6,8 @@ using Microsoft.Build.BackEnd.SdkResolution; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestConfigurationResponse.cs b/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestConfigurationResponse.cs index c5fefa0a7cf..73596f26127 100644 --- a/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestConfigurationResponse.cs +++ b/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestConfigurationResponse.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestEngine.cs b/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestEngine.cs index 7fe3d19fcf0..2c286b34b93 100644 --- a/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestEngine.cs +++ b/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestEngine.cs @@ -17,6 +17,8 @@ using Microsoft.Build.Utilities; using BuildAbortedException = Microsoft.Build.Exceptions.BuildAbortedException; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestEntry.cs b/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestEntry.cs index fec15006b64..13af9acbd6a 100644 --- a/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestEntry.cs +++ b/src/Build/BackEnd/Components/BuildRequestEngine/BuildRequestEntry.cs @@ -10,6 +10,8 @@ using BuildAbortedException = Microsoft.Build.Exceptions.BuildAbortedException; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/BuildRequestEngine/FullyQualifiedBuildRequest.cs b/src/Build/BackEnd/Components/BuildRequestEngine/FullyQualifiedBuildRequest.cs index c7422949516..b415350f1e6 100644 --- a/src/Build/BackEnd/Components/BuildRequestEngine/FullyQualifiedBuildRequest.cs +++ b/src/Build/BackEnd/Components/BuildRequestEngine/FullyQualifiedBuildRequest.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/BuildRequestEngine/IBuildRequestEngine.cs b/src/Build/BackEnd/Components/BuildRequestEngine/IBuildRequestEngine.cs index 13d40bd7c19..439c175fbb8 100644 --- a/src/Build/BackEnd/Components/BuildRequestEngine/IBuildRequestEngine.cs +++ b/src/Build/BackEnd/Components/BuildRequestEngine/IBuildRequestEngine.cs @@ -5,6 +5,8 @@ using NodeLoggingContext = Microsoft.Build.BackEnd.Logging.NodeLoggingContext; using BuildResult = Microsoft.Build.Execution.BuildResult; +#nullable disable + namespace Microsoft.Build.BackEnd { #region Delegates diff --git a/src/Build/BackEnd/Components/Caching/ConfigCache.cs b/src/Build/BackEnd/Components/Caching/ConfigCache.cs index 2e695a60aab..5aa568f567c 100644 --- a/src/Build/BackEnd/Components/Caching/ConfigCache.cs +++ b/src/Build/BackEnd/Components/Caching/ConfigCache.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Caching/ConfigCacheWithOverride.cs b/src/Build/BackEnd/Components/Caching/ConfigCacheWithOverride.cs index 12bc8de169f..4660a22db52 100644 --- a/src/Build/BackEnd/Components/Caching/ConfigCacheWithOverride.cs +++ b/src/Build/BackEnd/Components/Caching/ConfigCacheWithOverride.cs @@ -6,6 +6,8 @@ using Microsoft.Build.BackEnd; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Execution { internal class ConfigCacheWithOverride : IConfigCache diff --git a/src/Build/BackEnd/Components/Caching/IConfigCache.cs b/src/Build/BackEnd/Components/Caching/IConfigCache.cs index c60f95c6086..581474b8e12 100644 --- a/src/Build/BackEnd/Components/Caching/IConfigCache.cs +++ b/src/Build/BackEnd/Components/Caching/IConfigCache.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Caching/IPropertyCache.cs b/src/Build/BackEnd/Components/Caching/IPropertyCache.cs index fdbab85a251..054467b6782 100644 --- a/src/Build/BackEnd/Components/Caching/IPropertyCache.cs +++ b/src/Build/BackEnd/Components/Caching/IPropertyCache.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Caching/IRegisteredTaskObjectCache.cs b/src/Build/BackEnd/Components/Caching/IRegisteredTaskObjectCache.cs index c2d6503c933..4bf05c0688c 100644 --- a/src/Build/BackEnd/Components/Caching/IRegisteredTaskObjectCache.cs +++ b/src/Build/BackEnd/Components/Caching/IRegisteredTaskObjectCache.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Framework; +#nullable disable + #if BUILD_ENGINE namespace Microsoft.Build.BackEnd.Components.Caching #else diff --git a/src/Build/BackEnd/Components/Caching/IResultsCache.cs b/src/Build/BackEnd/Components/Caching/IResultsCache.cs index e78d4e2909d..033ec80bed0 100644 --- a/src/Build/BackEnd/Components/Caching/IResultsCache.cs +++ b/src/Build/BackEnd/Components/Caching/IResultsCache.cs @@ -5,6 +5,8 @@ using BuildResult = Microsoft.Build.Execution.BuildResult; +#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 c277f88b83d..4b8e067b09f 100644 --- a/src/Build/BackEnd/Components/Caching/RegisteredTaskObjectCache.cs +++ b/src/Build/BackEnd/Components/Caching/RegisteredTaskObjectCache.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd.Components.Caching { /// diff --git a/src/Build/BackEnd/Components/Caching/ResultsCache.cs b/src/Build/BackEnd/Components/Caching/ResultsCache.cs index ee236fac998..2eb1893b66c 100644 --- a/src/Build/BackEnd/Components/Caching/ResultsCache.cs +++ b/src/Build/BackEnd/Components/Caching/ResultsCache.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Caching/ResultsCacheResponse.cs b/src/Build/BackEnd/Components/Caching/ResultsCacheResponse.cs index 4cce5d68aae..63302b46b01 100644 --- a/src/Build/BackEnd/Components/Caching/ResultsCacheResponse.cs +++ b/src/Build/BackEnd/Components/Caching/ResultsCacheResponse.cs @@ -6,6 +6,8 @@ using BuildResult = Microsoft.Build.Execution.BuildResult; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Caching/ResultsCacheWithOverride.cs b/src/Build/BackEnd/Components/Caching/ResultsCacheWithOverride.cs index 66b1e17ccca..68e56285f86 100644 --- a/src/Build/BackEnd/Components/Caching/ResultsCacheWithOverride.cs +++ b/src/Build/BackEnd/Components/Caching/ResultsCacheWithOverride.cs @@ -6,6 +6,8 @@ using Microsoft.Build.BackEnd; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Execution { internal class ResultsCacheWithOverride : IResultsCache diff --git a/src/Build/BackEnd/Components/Communications/INodeManager.cs b/src/Build/BackEnd/Components/Communications/INodeManager.cs index d08a101867f..161fb779341 100644 --- a/src/Build/BackEnd/Components/Communications/INodeManager.cs +++ b/src/Build/BackEnd/Components/Communications/INodeManager.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/INodeProvider.cs b/src/Build/BackEnd/Components/Communications/INodeProvider.cs index fc7faf679e0..1a3f6b84ade 100644 --- a/src/Build/BackEnd/Components/Communications/INodeProvider.cs +++ b/src/Build/BackEnd/Components/Communications/INodeProvider.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/LogMessagePacket.cs b/src/Build/BackEnd/Components/Communications/LogMessagePacket.cs index 1f8a521673e..31591eb8c6d 100644 --- a/src/Build/BackEnd/Components/Communications/LogMessagePacket.cs +++ b/src/Build/BackEnd/Components/Communications/LogMessagePacket.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/NodeEndpointInProc.cs b/src/Build/BackEnd/Components/Communications/NodeEndpointInProc.cs index 4c2b6d2b8eb..5f3faf1a371 100644 --- a/src/Build/BackEnd/Components/Communications/NodeEndpointInProc.cs +++ b/src/Build/BackEnd/Components/Communications/NodeEndpointInProc.cs @@ -9,6 +9,8 @@ using BuildParameters = Microsoft.Build.Execution.BuildParameters; using System.Globalization; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/NodeEndpointOutOfProc.cs b/src/Build/BackEnd/Components/Communications/NodeEndpointOutOfProc.cs index 5f73ac08e8b..45303ac6d30 100644 --- a/src/Build/BackEnd/Components/Communications/NodeEndpointOutOfProc.cs +++ b/src/Build/BackEnd/Components/Communications/NodeEndpointOutOfProc.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Internal; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/NodeFailedToLaunchException.cs b/src/Build/BackEnd/Components/Communications/NodeFailedToLaunchException.cs index 9d0c59a201b..237b58a810b 100644 --- a/src/Build/BackEnd/Components/Communications/NodeFailedToLaunchException.cs +++ b/src/Build/BackEnd/Components/Communications/NodeFailedToLaunchException.cs @@ -7,6 +7,8 @@ using System.Security.Permissions; #endif +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/NodeInfo.cs b/src/Build/BackEnd/Components/Communications/NodeInfo.cs index fda92dae71e..fbdf2efd3b7 100644 --- a/src/Build/BackEnd/Components/Communications/NodeInfo.cs +++ b/src/Build/BackEnd/Components/Communications/NodeInfo.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/NodeManager.cs b/src/Build/BackEnd/Components/Communications/NodeManager.cs index 5a533e05fbb..2ff641fb1b0 100644 --- a/src/Build/BackEnd/Components/Communications/NodeManager.cs +++ b/src/Build/BackEnd/Components/Communications/NodeManager.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/NodeProviderInProc.cs b/src/Build/BackEnd/Components/Communications/NodeProviderInProc.cs index 0081265b99c..8107f5ae84c 100644 --- a/src/Build/BackEnd/Components/Communications/NodeProviderInProc.cs +++ b/src/Build/BackEnd/Components/Communications/NodeProviderInProc.cs @@ -10,6 +10,8 @@ using BuildParameters = Microsoft.Build.Execution.BuildParameters; using NodeEngineShutdownReason = Microsoft.Build.Execution.NodeEngineShutdownReason; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/NodeProviderOutOfProc.cs b/src/Build/BackEnd/Components/Communications/NodeProviderOutOfProc.cs index 12237b65bec..2430e450cac 100644 --- a/src/Build/BackEnd/Components/Communications/NodeProviderOutOfProc.cs +++ b/src/Build/BackEnd/Components/Communications/NodeProviderOutOfProc.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Internal; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/NodeProviderOutOfProcBase.cs b/src/Build/BackEnd/Components/Communications/NodeProviderOutOfProcBase.cs index 9d7adfb26a6..4b17c85a326 100644 --- a/src/Build/BackEnd/Components/Communications/NodeProviderOutOfProcBase.cs +++ b/src/Build/BackEnd/Components/Communications/NodeProviderOutOfProcBase.cs @@ -30,6 +30,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.BackEnd.Logging; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/NodeProviderOutOfProcTaskHost.cs b/src/Build/BackEnd/Components/Communications/NodeProviderOutOfProcTaskHost.cs index 5d6c5f8f2cc..90a6f9dc012 100644 --- a/src/Build/BackEnd/Components/Communications/NodeProviderOutOfProcTaskHost.cs +++ b/src/Build/BackEnd/Components/Communications/NodeProviderOutOfProcTaskHost.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Internal; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/TaskHostNodeManager.cs b/src/Build/BackEnd/Components/Communications/TaskHostNodeManager.cs index e54ed7f2f70..7c539f906e9 100644 --- a/src/Build/BackEnd/Components/Communications/TaskHostNodeManager.cs +++ b/src/Build/BackEnd/Components/Communications/TaskHostNodeManager.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Communications/TranslatorExtensions.cs b/src/Build/BackEnd/Components/Communications/TranslatorExtensions.cs index f10fbf8dc50..a831e63f427 100644 --- a/src/Build/BackEnd/Components/Communications/TranslatorExtensions.cs +++ b/src/Build/BackEnd/Components/Communications/TranslatorExtensions.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/IBuildComponent.cs b/src/Build/BackEnd/Components/IBuildComponent.cs index 6ee30b83ed9..a133f4f31e1 100644 --- a/src/Build/BackEnd/Components/IBuildComponent.cs +++ b/src/Build/BackEnd/Components/IBuildComponent.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/IBuildComponentHost.cs b/src/Build/BackEnd/Components/IBuildComponentHost.cs index 4e57c5f2ae1..100571a029f 100644 --- a/src/Build/BackEnd/Components/IBuildComponentHost.cs +++ b/src/Build/BackEnd/Components/IBuildComponentHost.cs @@ -5,6 +5,8 @@ using BuildParameters = Microsoft.Build.Execution.BuildParameters; using LegacyThreadingData = Microsoft.Build.Execution.LegacyThreadingData; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Logging/BuildEventArgTransportSink.cs b/src/Build/BackEnd/Components/Logging/BuildEventArgTransportSink.cs index 57c0e51523e..db701c61150 100644 --- a/src/Build/BackEnd/Components/Logging/BuildEventArgTransportSink.cs +++ b/src/Build/BackEnd/Components/Logging/BuildEventArgTransportSink.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/BuildLoggingContext.cs b/src/Build/BackEnd/Components/Logging/BuildLoggingContext.cs index 239dccfaf33..aa2a8a9a3da 100644 --- a/src/Build/BackEnd/Components/Logging/BuildLoggingContext.cs +++ b/src/Build/BackEnd/Components/Logging/BuildLoggingContext.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/CentralForwardingLogger.cs b/src/Build/BackEnd/Components/Logging/CentralForwardingLogger.cs index 02b143cdc40..4cd8e3abf0b 100644 --- a/src/Build/BackEnd/Components/Logging/CentralForwardingLogger.cs +++ b/src/Build/BackEnd/Components/Logging/CentralForwardingLogger.cs @@ -4,6 +4,8 @@ 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 db2e6aecb4f..c1fa3e463a7 100644 --- a/src/Build/BackEnd/Components/Logging/EvaluationLoggingContext.cs +++ b/src/Build/BackEnd/Components/Logging/EvaluationLoggingContext.cs @@ -8,6 +8,8 @@ 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 b2817ca1b11..8219327f45b 100644 --- a/src/Build/BackEnd/Components/Logging/EventRedirectorToSink.cs +++ b/src/Build/BackEnd/Components/Logging/EventRedirectorToSink.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/EventSourceSink.cs b/src/Build/BackEnd/Components/Logging/EventSourceSink.cs index eb5e38969a2..5604021e28a 100644 --- a/src/Build/BackEnd/Components/Logging/EventSourceSink.cs +++ b/src/Build/BackEnd/Components/Logging/EventSourceSink.cs @@ -9,6 +9,8 @@ using InternalLoggerException = Microsoft.Build.Exceptions.InternalLoggerException; +#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 09cc3138399..d2b9738db36 100644 --- a/src/Build/BackEnd/Components/Logging/ForwardingLoggerRecord.cs +++ b/src/Build/BackEnd/Components/Logging/ForwardingLoggerRecord.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/ILoggingService.cs b/src/Build/BackEnd/Components/Logging/ILoggingService.cs index 85538f7baa4..7ef991c3e40 100644 --- a/src/Build/BackEnd/Components/Logging/ILoggingService.cs +++ b/src/Build/BackEnd/Components/Logging/ILoggingService.cs @@ -12,6 +12,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { #region Delegates diff --git a/src/Build/BackEnd/Components/Logging/LoggingContext.cs b/src/Build/BackEnd/Components/Logging/LoggingContext.cs index 5fd43fbbfb7..a81fd673b27 100644 --- a/src/Build/BackEnd/Components/Logging/LoggingContext.cs +++ b/src/Build/BackEnd/Components/Logging/LoggingContext.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/LoggingService.cs b/src/Build/BackEnd/Components/Logging/LoggingService.cs index 117f5195448..2ce75e0c1a6 100644 --- a/src/Build/BackEnd/Components/Logging/LoggingService.cs +++ b/src/Build/BackEnd/Components/Logging/LoggingService.cs @@ -15,6 +15,8 @@ using InternalLoggerException = Microsoft.Build.Exceptions.InternalLoggerException; using LoggerDescription = Microsoft.Build.Logging.LoggerDescription; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/LoggingServiceFactory.cs b/src/Build/BackEnd/Components/Logging/LoggingServiceFactory.cs index dcc4e2f8074..d75e7a12a6a 100644 --- a/src/Build/BackEnd/Components/Logging/LoggingServiceFactory.cs +++ b/src/Build/BackEnd/Components/Logging/LoggingServiceFactory.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/LoggingServiceLogMethods.cs b/src/Build/BackEnd/Components/Logging/LoggingServiceLogMethods.cs index dcc79a8efcd..8ba4a356154 100644 --- a/src/Build/BackEnd/Components/Logging/LoggingServiceLogMethods.cs +++ b/src/Build/BackEnd/Components/Logging/LoggingServiceLogMethods.cs @@ -12,6 +12,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/NodeLoggingContext.cs b/src/Build/BackEnd/Components/Logging/NodeLoggingContext.cs index 870e358c69d..019090a8efd 100644 --- a/src/Build/BackEnd/Components/Logging/NodeLoggingContext.cs +++ b/src/Build/BackEnd/Components/Logging/NodeLoggingContext.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/ProjectLoggingContext.cs b/src/Build/BackEnd/Components/Logging/ProjectLoggingContext.cs index 30ffe92df56..a2973596f22 100644 --- a/src/Build/BackEnd/Components/Logging/ProjectLoggingContext.cs +++ b/src/Build/BackEnd/Components/Logging/ProjectLoggingContext.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared; using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/TargetLoggingContext.cs b/src/Build/BackEnd/Components/Logging/TargetLoggingContext.cs index efde35dd8af..8e434303492 100644 --- a/src/Build/BackEnd/Components/Logging/TargetLoggingContext.cs +++ b/src/Build/BackEnd/Components/Logging/TargetLoggingContext.cs @@ -9,6 +9,8 @@ using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; using System.Collections; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/Logging/TaskLoggingContext.cs b/src/Build/BackEnd/Components/Logging/TaskLoggingContext.cs index 51c266e6485..a6171cb4e91 100644 --- a/src/Build/BackEnd/Components/Logging/TaskLoggingContext.cs +++ b/src/Build/BackEnd/Components/Logging/TaskLoggingContext.cs @@ -7,6 +7,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/BackEnd/Components/ProjectCache/CacheContext.cs b/src/Build/BackEnd/Components/ProjectCache/CacheContext.cs index bc7354b9a90..eaa9d5e05ce 100644 --- a/src/Build/BackEnd/Components/ProjectCache/CacheContext.cs +++ b/src/Build/BackEnd/Components/ProjectCache/CacheContext.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System.Collections.Generic; using Microsoft.Build.FileSystem; using Microsoft.Build.Graph; diff --git a/src/Build/BackEnd/Components/ProjectCache/CacheResult.cs b/src/Build/BackEnd/Components/ProjectCache/CacheResult.cs index 50ac573159f..3423453f19c 100644 --- a/src/Build/BackEnd/Components/ProjectCache/CacheResult.cs +++ b/src/Build/BackEnd/Components/ProjectCache/CacheResult.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Build/BackEnd/Components/ProjectCache/PluginLoggerBase.cs b/src/Build/BackEnd/Components/ProjectCache/PluginLoggerBase.cs index d6159906e8b..a9a13d0dc6e 100644 --- a/src/Build/BackEnd/Components/ProjectCache/PluginLoggerBase.cs +++ b/src/Build/BackEnd/Components/ProjectCache/PluginLoggerBase.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using Microsoft.Build.Framework; namespace Microsoft.Build.Experimental.ProjectCache diff --git a/src/Build/BackEnd/Components/ProjectCache/PluginTargetResult.cs b/src/Build/BackEnd/Components/ProjectCache/PluginTargetResult.cs index 7afe81169c0..7e1801e783a 100644 --- a/src/Build/BackEnd/Components/ProjectCache/PluginTargetResult.cs +++ b/src/Build/BackEnd/Components/ProjectCache/PluginTargetResult.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System.Collections.Generic; using Microsoft.Build.Execution; using Microsoft.Build.Framework; diff --git a/src/Build/BackEnd/Components/ProjectCache/ProjectCacheDescriptor.cs b/src/Build/BackEnd/Components/ProjectCache/ProjectCacheDescriptor.cs index 10c97621ef5..6ac1b6b6b2a 100644 --- a/src/Build/BackEnd/Components/ProjectCache/ProjectCacheDescriptor.cs +++ b/src/Build/BackEnd/Components/ProjectCache/ProjectCacheDescriptor.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System.Collections.Generic; using System.Linq; using Microsoft.Build.Graph; diff --git a/src/Build/BackEnd/Components/ProjectCache/ProjectCacheException.cs b/src/Build/BackEnd/Components/ProjectCache/ProjectCacheException.cs index 994c9da77a8..1ae508340be 100644 --- a/src/Build/BackEnd/Components/ProjectCache/ProjectCacheException.cs +++ b/src/Build/BackEnd/Components/ProjectCache/ProjectCacheException.cs @@ -4,6 +4,8 @@ using System; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Experimental.ProjectCache { /// diff --git a/src/Build/BackEnd/Components/ProjectCache/ProjectCacheItem.cs b/src/Build/BackEnd/Components/ProjectCache/ProjectCacheItem.cs index b1d781b1ca2..2982c7508d9 100644 --- a/src/Build/BackEnd/Components/ProjectCache/ProjectCacheItem.cs +++ b/src/Build/BackEnd/Components/ProjectCache/ProjectCacheItem.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Build/BackEnd/Components/ProjectCache/ProjectCachePluginBase.cs b/src/Build/BackEnd/Components/ProjectCache/ProjectCachePluginBase.cs index 5cf28808582..79d10b72864 100644 --- a/src/Build/BackEnd/Components/ProjectCache/ProjectCachePluginBase.cs +++ b/src/Build/BackEnd/Components/ProjectCache/ProjectCachePluginBase.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System.Threading; using System.Threading.Tasks; using Microsoft.Build.Execution; diff --git a/src/Build/BackEnd/Components/ProjectCache/ProjectCacheService.cs b/src/Build/BackEnd/Components/ProjectCache/ProjectCacheService.cs index 1b69d9e04ba..2a11a10f59b 100644 --- a/src/Build/BackEnd/Components/ProjectCache/ProjectCacheService.cs +++ b/src/Build/BackEnd/Components/ProjectCache/ProjectCacheService.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System; using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Build/BackEnd/Components/ProjectCache/ProxyTargets.cs b/src/Build/BackEnd/Components/ProjectCache/ProxyTargets.cs index 6b83993c148..47b9e36867c 100644 --- a/src/Build/BackEnd/Components/ProjectCache/ProxyTargets.cs +++ b/src/Build/BackEnd/Components/ProjectCache/ProxyTargets.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Build/BackEnd/Components/RequestBuilder/BatchingEngine.cs b/src/Build/BackEnd/Components/RequestBuilder/BatchingEngine.cs index 3fde04be279..363e9eaebc7 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/BatchingEngine.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/BatchingEngine.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/FullTracking.cs b/src/Build/BackEnd/Components/RequestBuilder/FullTracking.cs index 6d5d8f7d72a..505fa0ed693 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/FullTracking.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/FullTracking.cs @@ -9,6 +9,8 @@ #if FEATURE_FILE_TRACKER +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/IRequestBuilder.cs b/src/Build/BackEnd/Components/RequestBuilder/IRequestBuilder.cs index 5db9a001e46..503da08ff64 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/IRequestBuilder.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/IRequestBuilder.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Execution; using NodeLoggingContext = Microsoft.Build.BackEnd.Logging.NodeLoggingContext; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/IRequestBuilderCallback.cs b/src/Build/BackEnd/Components/RequestBuilder/IRequestBuilderCallback.cs index 386db137259..8f9b3188292 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/IRequestBuilderCallback.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/IRequestBuilderCallback.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Collections; using System.Threading.Tasks; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/ITargetBuilder.cs b/src/Build/BackEnd/Components/RequestBuilder/ITargetBuilder.cs index 97bd307200d..5b88ab5db9e 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/ITargetBuilder.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/ITargetBuilder.cs @@ -6,6 +6,8 @@ using Microsoft.Build.BackEnd.Logging; using BuildResult = Microsoft.Build.Execution.BuildResult; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/ITargetBuilderCallback.cs b/src/Build/BackEnd/Components/RequestBuilder/ITargetBuilderCallback.cs index dbbc7c2c585..5d114eb00fd 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/ITargetBuilderCallback.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/ITargetBuilderCallback.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Execution; using System.Threading.Tasks; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/ITaskBuilder.cs b/src/Build/BackEnd/Components/RequestBuilder/ITaskBuilder.cs index 15522204ed6..8507f540064 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/ITaskBuilder.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/ITaskBuilder.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Execution; using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTask.cs b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTask.cs index 304989547d4..9fb80539f26 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTask.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTask.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.BackEnd.Logging; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/CallTarget.cs b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/CallTarget.cs index cd25ccc91c4..676a9d98c24 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/CallTarget.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/CallTarget.cs @@ -8,6 +8,8 @@ // This CallTarget intrinsic task replaces the one on Microsoft.Build.Tasks, which is now deprecated. +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/IntrinsicTaskFactory.cs b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/IntrinsicTaskFactory.cs index 0c9b0baec23..7d73eb5ae7c 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/IntrinsicTaskFactory.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/IntrinsicTaskFactory.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/ItemGroupIntrinsicTask.cs b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/ItemGroupIntrinsicTask.cs index 885ccfa24b3..255d2936476 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/ItemGroupIntrinsicTask.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/ItemGroupIntrinsicTask.cs @@ -16,6 +16,8 @@ using EngineFileUtilities = Microsoft.Build.Internal.EngineFileUtilities; using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/ItemGroupLoggingHelper.cs b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/ItemGroupLoggingHelper.cs index da174cbb259..76f4522e9ce 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/ItemGroupLoggingHelper.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/ItemGroupLoggingHelper.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/MSBuild.cs b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/MSBuild.cs index 6e0ba6a0d5f..e05113ea688 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/MSBuild.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/MSBuild.cs @@ -13,6 +13,8 @@ // NOTE: This is nearly identical to the MSBuild task in Microsoft.Build.Tasks. We are deprecating that task, // so this is the governing implementation. +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/PropertyGroupIntrinsicTask.cs b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/PropertyGroupIntrinsicTask.cs index 14feb6aa094..cc58134235c 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/PropertyGroupIntrinsicTask.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/IntrinsicTasks/PropertyGroupIntrinsicTask.cs @@ -10,6 +10,8 @@ using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/ItemBucket.cs b/src/Build/BackEnd/Components/RequestBuilder/ItemBucket.cs index 1779d6ba70f..c15cee3f250 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/ItemBucket.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/ItemBucket.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Collections; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/Lookup.cs b/src/Build/BackEnd/Components/RequestBuilder/Lookup.cs index 71141924280..a207b46d0d5 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/Lookup.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/Lookup.cs @@ -12,6 +12,8 @@ using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; +#nullable disable + namespace Microsoft.Build.BackEnd { using ItemsMetadataUpdateDictionary = Dictionary; diff --git a/src/Build/BackEnd/Components/RequestBuilder/RequestBuilder.cs b/src/Build/BackEnd/Components/RequestBuilder/RequestBuilder.cs index 7204146c1cd..812474cec31 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/RequestBuilder.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/RequestBuilder.cs @@ -21,6 +21,8 @@ using NodeLoggingContext = Microsoft.Build.BackEnd.Logging.NodeLoggingContext; using ProjectLoggingContext = Microsoft.Build.BackEnd.Logging.ProjectLoggingContext; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/TargetBuilder.cs b/src/Build/BackEnd/Components/RequestBuilder/TargetBuilder.cs index 6b4b24dfa81..da6d63a7d76 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/TargetBuilder.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/TargetBuilder.cs @@ -16,6 +16,8 @@ using BuildAbortedException = Microsoft.Build.Exceptions.BuildAbortedException; using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/TargetEntry.cs b/src/Build/BackEnd/Components/RequestBuilder/TargetEntry.cs index d3a925b34a8..dde1f2f56de 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/TargetEntry.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/TargetEntry.cs @@ -22,6 +22,8 @@ #if MSBUILDENABLEVSPROFILING using Microsoft.VisualStudio.Profiler; #endif +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/TargetSpecification.cs b/src/Build/BackEnd/Components/RequestBuilder/TargetSpecification.cs index 4da4b2f8aba..cc55c5c90d3 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/TargetSpecification.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/TargetSpecification.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Shared; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/TargetUpToDateChecker.cs b/src/Build/BackEnd/Components/RequestBuilder/TargetUpToDateChecker.cs index 9013bc11272..06b221c0d2f 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/TargetUpToDateChecker.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/TargetUpToDateChecker.cs @@ -15,6 +15,8 @@ using ElementLocation = Microsoft.Build.Construction.ElementLocation; using ProjectItemInstanceFactory = Microsoft.Build.Execution.ProjectItemInstance.TaskItem.ProjectItemInstanceFactory; +#nullable disable + namespace Microsoft.Build.BackEnd { using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; diff --git a/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs b/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs index efe47bf3381..67a453d77ca 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs @@ -23,6 +23,8 @@ using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; using TaskLoggingContext = Microsoft.Build.BackEnd.Logging.TaskLoggingContext; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/RequestBuilder/TaskHost.cs b/src/Build/BackEnd/Components/RequestBuilder/TaskHost.cs index 0c07dae6d6f..9ab8c7b0227 100644 --- a/src/Build/BackEnd/Components/RequestBuilder/TaskHost.cs +++ b/src/Build/BackEnd/Components/RequestBuilder/TaskHost.cs @@ -24,6 +24,8 @@ using Microsoft.Build.Eventing; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Scheduler/IScheduler.cs b/src/Build/BackEnd/Components/Scheduler/IScheduler.cs index cb704e70981..f0b32acb722 100644 --- a/src/Build/BackEnd/Components/Scheduler/IScheduler.cs +++ b/src/Build/BackEnd/Components/Scheduler/IScheduler.cs @@ -5,6 +5,8 @@ using System.Threading.Tasks; using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Scheduler/SchedulableRequest.cs b/src/Build/BackEnd/Components/Scheduler/SchedulableRequest.cs index 994f3b155e9..a3d17131919 100644 --- a/src/Build/BackEnd/Components/Scheduler/SchedulableRequest.cs +++ b/src/Build/BackEnd/Components/Scheduler/SchedulableRequest.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Scheduler/ScheduleResponse.cs b/src/Build/BackEnd/Components/Scheduler/ScheduleResponse.cs index 955e5e070e5..8e514e01dc6 100644 --- a/src/Build/BackEnd/Components/Scheduler/ScheduleResponse.cs +++ b/src/Build/BackEnd/Components/Scheduler/ScheduleResponse.cs @@ -5,6 +5,8 @@ using System.Globalization; using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Scheduler/ScheduleTimeRecord.cs b/src/Build/BackEnd/Components/Scheduler/ScheduleTimeRecord.cs index d17fe5734e2..b274c9fdd3b 100644 --- a/src/Build/BackEnd/Components/Scheduler/ScheduleTimeRecord.cs +++ b/src/Build/BackEnd/Components/Scheduler/ScheduleTimeRecord.cs @@ -4,6 +4,8 @@ using System; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Scheduler/Scheduler.cs b/src/Build/BackEnd/Components/Scheduler/Scheduler.cs index baa4c5b1a44..e3804e0bb28 100644 --- a/src/Build/BackEnd/Components/Scheduler/Scheduler.cs +++ b/src/Build/BackEnd/Components/Scheduler/Scheduler.cs @@ -20,6 +20,8 @@ using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; using NodeLoggingContext = Microsoft.Build.BackEnd.Logging.NodeLoggingContext; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Scheduler/SchedulerCircularDependencyException.cs b/src/Build/BackEnd/Components/Scheduler/SchedulerCircularDependencyException.cs index 43d90a092bf..4da80ca7d92 100644 --- a/src/Build/BackEnd/Components/Scheduler/SchedulerCircularDependencyException.cs +++ b/src/Build/BackEnd/Components/Scheduler/SchedulerCircularDependencyException.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Scheduler/SchedulingData.cs b/src/Build/BackEnd/Components/Scheduler/SchedulingData.cs index 9aeb9009c80..7888b1a6679 100644 --- a/src/Build/BackEnd/Components/Scheduler/SchedulingData.cs +++ b/src/Build/BackEnd/Components/Scheduler/SchedulingData.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Collections; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/Scheduler/SchedulingPlan.cs b/src/Build/BackEnd/Components/Scheduler/SchedulingPlan.cs index b8546bbe1b6..9fdc4c5f8bc 100644 --- a/src/Build/BackEnd/Components/Scheduler/SchedulingPlan.cs +++ b/src/Build/BackEnd/Components/Scheduler/SchedulingPlan.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/CachingSdkResolverService.cs b/src/Build/BackEnd/Components/SdkResolution/CachingSdkResolverService.cs index 23c505ff896..38dda361add 100644 --- a/src/Build/BackEnd/Components/SdkResolution/CachingSdkResolverService.cs +++ b/src/Build/BackEnd/Components/SdkResolution/CachingSdkResolverService.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.BackEnd.SdkResolution { internal sealed class CachingSdkResolverService: SdkResolverService diff --git a/src/Build/BackEnd/Components/SdkResolution/DefaultSdkResolver.cs b/src/Build/BackEnd/Components/SdkResolution/DefaultSdkResolver.cs index b73baa44200..ef3e569dd06 100644 --- a/src/Build/BackEnd/Components/SdkResolution/DefaultSdkResolver.cs +++ b/src/Build/BackEnd/Components/SdkResolution/DefaultSdkResolver.cs @@ -10,6 +10,8 @@ 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/HostedSdkResolverServiceBase.cs b/src/Build/BackEnd/Components/SdkResolution/HostedSdkResolverServiceBase.cs index fc2d03a2079..46edc4f4a4d 100644 --- a/src/Build/BackEnd/Components/SdkResolution/HostedSdkResolverServiceBase.cs +++ b/src/Build/BackEnd/Components/SdkResolution/HostedSdkResolverServiceBase.cs @@ -7,6 +7,8 @@ using System; using System.Threading; +#nullable disable + namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/ISdkResolverService.cs b/src/Build/BackEnd/Components/SdkResolution/ISdkResolverService.cs index 2aeed6fe132..f2f4544ccd1 100644 --- a/src/Build/BackEnd/Components/SdkResolution/ISdkResolverService.cs +++ b/src/Build/BackEnd/Components/SdkResolution/ISdkResolverService.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using System; +#nullable disable + namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/MainNodeSdkResolverService.cs b/src/Build/BackEnd/Components/SdkResolution/MainNodeSdkResolverService.cs index d0ba73f4f8d..f91c52fc746 100644 --- a/src/Build/BackEnd/Components/SdkResolution/MainNodeSdkResolverService.cs +++ b/src/Build/BackEnd/Components/SdkResolution/MainNodeSdkResolverService.cs @@ -12,6 +12,8 @@ using System.Threading; using System.Threading.Tasks; +#nullable disable + namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/OutOfProcNodeSdkResolverService.cs b/src/Build/BackEnd/Components/SdkResolution/OutOfProcNodeSdkResolverService.cs index 6ae4a89268e..1a449cf0c44 100644 --- a/src/Build/BackEnd/Components/SdkResolution/OutOfProcNodeSdkResolverService.cs +++ b/src/Build/BackEnd/Components/SdkResolution/OutOfProcNodeSdkResolverService.cs @@ -10,6 +10,8 @@ using System.Collections.Concurrent; using System.Threading; +#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 80a1536e05f..95e380153f1 100644 --- a/src/Build/BackEnd/Components/SdkResolution/OutOfProcNodeSdkResolverServiceFactory.cs +++ b/src/Build/BackEnd/Components/SdkResolution/OutOfProcNodeSdkResolverServiceFactory.cs @@ -3,6 +3,8 @@ 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 182cda8da52..a08ba96dc43 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkLogger.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkLogger.cs @@ -6,6 +6,8 @@ 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 39cc6820930..962ed5b4b5a 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkResolverCachingWrapper.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkResolverCachingWrapper.cs @@ -10,6 +10,8 @@ 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 438557c97ed..7c846f8decb 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkResolverContext.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkResolverContext.cs @@ -5,6 +5,8 @@ using SdkResolverContextBase = Microsoft.Build.Framework.SdkResolverContext; +#nullable disable + namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/SdkResolverException.cs b/src/Build/BackEnd/Components/SdkResolution/SdkResolverException.cs index d4f5b35a3d7..505f3d40275 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkResolverException.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkResolverException.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/SdkResolverLoader.cs b/src/Build/BackEnd/Components/SdkResolution/SdkResolverLoader.cs index 9c2fca19031..c7ede7db341 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkResolverLoader.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkResolverLoader.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd.SdkResolution { internal class SdkResolverLoader diff --git a/src/Build/BackEnd/Components/SdkResolution/SdkResolverManifest.cs b/src/Build/BackEnd/Components/SdkResolution/SdkResolverManifest.cs index dd0ca202dc1..295ec8d7877 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkResolverManifest.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkResolverManifest.cs @@ -2,6 +2,8 @@ using System.IO; using System.Xml; +#nullable disable + namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/SdkResolverRequest.cs b/src/Build/BackEnd/Components/SdkResolution/SdkResolverRequest.cs index a89cd605234..89c54eff53a 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkResolverRequest.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkResolverRequest.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Construction; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/SdkResolverService.cs b/src/Build/BackEnd/Components/SdkResolution/SdkResolverService.cs index ff98112817b..6c74e1f12b7 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkResolverService.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkResolverService.cs @@ -13,6 +13,8 @@ using System.Reflection; using Microsoft.Build.Eventing; +#nullable disable + namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/SdkResult.cs b/src/Build/BackEnd/Components/SdkResolution/SdkResult.cs index 3f02bac8abc..920e80f4196 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkResult.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkResult.cs @@ -8,6 +8,8 @@ using SdkReference = Microsoft.Build.Framework.SdkReference; using SdkResultBase = Microsoft.Build.Framework.SdkResult; +#nullable disable + namespace Microsoft.Build.BackEnd.SdkResolution { /// diff --git a/src/Build/BackEnd/Components/SdkResolution/SdkResultFactory.cs b/src/Build/BackEnd/Components/SdkResolution/SdkResultFactory.cs index 9744bc0bbb2..082ee42c97a 100644 --- a/src/Build/BackEnd/Components/SdkResolution/SdkResultFactory.cs +++ b/src/Build/BackEnd/Components/SdkResolution/SdkResultFactory.cs @@ -8,6 +8,8 @@ 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/TranslationHelpers.cs b/src/Build/BackEnd/Components/SdkResolution/TranslationHelpers.cs index 37ba6eb79d9..586db964fec 100644 --- a/src/Build/BackEnd/Components/SdkResolution/TranslationHelpers.cs +++ b/src/Build/BackEnd/Components/SdkResolution/TranslationHelpers.cs @@ -2,6 +2,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.BackEnd.SdkResolution { static class SdkResultTranslationHelpers diff --git a/src/Build/BackEnd/Node/INode.cs b/src/Build/BackEnd/Node/INode.cs index ccd9fd075ef..7e8d7bf205b 100644 --- a/src/Build/BackEnd/Node/INode.cs +++ b/src/Build/BackEnd/Node/INode.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.BackEnd { using NodeEngineShutdownReason = Execution.NodeEngineShutdownReason; diff --git a/src/Build/BackEnd/Node/InProcNode.cs b/src/Build/BackEnd/Node/InProcNode.cs index 81b4ab63279..a8ef616135b 100644 --- a/src/Build/BackEnd/Node/InProcNode.cs +++ b/src/Build/BackEnd/Node/InProcNode.cs @@ -14,6 +14,8 @@ using NodeLoggingContext = Microsoft.Build.BackEnd.Logging.NodeLoggingContext; using Microsoft.Build.BackEnd.Components.Caching; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Node/LoggingNodeConfiguration.cs b/src/Build/BackEnd/Node/LoggingNodeConfiguration.cs index 2c7a47703c0..ba9dfbfff31 100644 --- a/src/Build/BackEnd/Node/LoggingNodeConfiguration.cs +++ b/src/Build/BackEnd/Node/LoggingNodeConfiguration.cs @@ -5,6 +5,8 @@ // A packet which contains information needed for a node to configure itself for build. //----------------------------------------------------------------------- +#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 7695757e2ab..66eb9b8f702 100644 --- a/src/Build/BackEnd/Node/NativeMethods.cs +++ b/src/Build/BackEnd/Node/NativeMethods.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Node/NodeConfiguration.cs b/src/Build/BackEnd/Node/NodeConfiguration.cs index 029b1814605..cada0e2fcdf 100644 --- a/src/Build/BackEnd/Node/NodeConfiguration.cs +++ b/src/Build/BackEnd/Node/NodeConfiguration.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Logging; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Node/OutOfProcNode.cs b/src/Build/BackEnd/Node/OutOfProcNode.cs index ae59a7b50af..42668dff618 100644 --- a/src/Build/BackEnd/Node/OutOfProcNode.cs +++ b/src/Build/BackEnd/Node/OutOfProcNode.cs @@ -19,6 +19,8 @@ using Microsoft.Build.BackEnd.SdkResolution; using SdkResult = Microsoft.Build.BackEnd.SdkResolution.SdkResult; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/BackEnd/Shared/BuildAbortedException.cs b/src/Build/BackEnd/Shared/BuildAbortedException.cs index 03a595879bd..e86a747c6b5 100644 --- a/src/Build/BackEnd/Shared/BuildAbortedException.cs +++ b/src/Build/BackEnd/Shared/BuildAbortedException.cs @@ -8,6 +8,8 @@ #endif using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Exceptions { /// diff --git a/src/Build/BackEnd/Shared/BuildRequest.cs b/src/Build/BackEnd/Shared/BuildRequest.cs index 9f43e5b804b..5958f654534 100644 --- a/src/Build/BackEnd/Shared/BuildRequest.cs +++ b/src/Build/BackEnd/Shared/BuildRequest.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Experimental.ProjectCache; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Shared/BuildRequestBlocker.cs b/src/Build/BackEnd/Shared/BuildRequestBlocker.cs index 672034caece..a694cb56329 100644 --- a/src/Build/BackEnd/Shared/BuildRequestBlocker.cs +++ b/src/Build/BackEnd/Shared/BuildRequestBlocker.cs @@ -4,6 +4,8 @@ using System.Diagnostics; using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Shared/BuildRequestConfiguration.cs b/src/Build/BackEnd/Shared/BuildRequestConfiguration.cs index 6d55273c55c..b1fdcf4e964 100644 --- a/src/Build/BackEnd/Shared/BuildRequestConfiguration.cs +++ b/src/Build/BackEnd/Shared/BuildRequestConfiguration.cs @@ -16,6 +16,8 @@ using Microsoft.Build.Globbing; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Shared/BuildRequestUnblocker.cs b/src/Build/BackEnd/Shared/BuildRequestUnblocker.cs index 49403b5f032..b3419d0e869 100644 --- a/src/Build/BackEnd/Shared/BuildRequestUnblocker.cs +++ b/src/Build/BackEnd/Shared/BuildRequestUnblocker.cs @@ -6,6 +6,8 @@ using BuildResult = Microsoft.Build.Execution.BuildResult; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Shared/BuildResult.cs b/src/Build/BackEnd/Shared/BuildResult.cs index 67138103af8..97b64d603a3 100644 --- a/src/Build/BackEnd/Shared/BuildResult.cs +++ b/src/Build/BackEnd/Shared/BuildResult.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/BackEnd/Shared/CircularDependencyException.cs b/src/Build/BackEnd/Shared/CircularDependencyException.cs index d8765b2e968..a2e1910b3ec 100644 --- a/src/Build/BackEnd/Shared/CircularDependencyException.cs +++ b/src/Build/BackEnd/Shared/CircularDependencyException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Exceptions { /// diff --git a/src/Build/BackEnd/Shared/ConfigurationMetadata.cs b/src/Build/BackEnd/Shared/ConfigurationMetadata.cs index ef92495c45a..64da2af0c03 100644 --- a/src/Build/BackEnd/Shared/ConfigurationMetadata.cs +++ b/src/Build/BackEnd/Shared/ConfigurationMetadata.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Shared/IBuildResults.cs b/src/Build/BackEnd/Shared/IBuildResults.cs index 0004b23ccc7..28fe90b842c 100644 --- a/src/Build/BackEnd/Shared/IBuildResults.cs +++ b/src/Build/BackEnd/Shared/IBuildResults.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Shared/ITargetResult.cs b/src/Build/BackEnd/Shared/ITargetResult.cs index 2ba2185c2c4..8fd59e071c7 100644 --- a/src/Build/BackEnd/Shared/ITargetResult.cs +++ b/src/Build/BackEnd/Shared/ITargetResult.cs @@ -5,6 +5,8 @@ using System.Diagnostics.CodeAnalysis; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/BackEnd/Shared/ResourceRequest.cs b/src/Build/BackEnd/Shared/ResourceRequest.cs index 815eedb9200..0dfe5c9d808 100644 --- a/src/Build/BackEnd/Shared/ResourceRequest.cs +++ b/src/Build/BackEnd/Shared/ResourceRequest.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Shared/ResourceResponse.cs b/src/Build/BackEnd/Shared/ResourceResponse.cs index 22fcefef30f..a1cc63c18fc 100644 --- a/src/Build/BackEnd/Shared/ResourceResponse.cs +++ b/src/Build/BackEnd/Shared/ResourceResponse.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/Shared/TargetResult.cs b/src/Build/BackEnd/Shared/TargetResult.cs index d94d59beda8..26d41241e41 100644 --- a/src/Build/BackEnd/Shared/TargetResult.cs +++ b/src/Build/BackEnd/Shared/TargetResult.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Collections; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/BackEnd/Shared/WorkUnitResult.cs b/src/Build/BackEnd/Shared/WorkUnitResult.cs index cb77c22c216..fdf1b3c909f 100644 --- a/src/Build/BackEnd/Shared/WorkUnitResult.cs +++ b/src/Build/BackEnd/Shared/WorkUnitResult.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/TaskExecutionHost/AddInParts/ITaskExecutionHost.cs b/src/Build/BackEnd/TaskExecutionHost/AddInParts/ITaskExecutionHost.cs index b591daf469c..b882915f83c 100644 --- a/src/Build/BackEnd/TaskExecutionHost/AddInParts/ITaskExecutionHost.cs +++ b/src/Build/BackEnd/TaskExecutionHost/AddInParts/ITaskExecutionHost.cs @@ -10,6 +10,8 @@ using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; using TaskLoggingContext = Microsoft.Build.BackEnd.Logging.TaskLoggingContext; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs b/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs index 77497354b7b..b017028082d 100644 --- a/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs +++ b/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs @@ -25,6 +25,8 @@ using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; using Task = System.Threading.Tasks.Task; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/Collections/ArrayDictionary.cs b/src/Build/Collections/ArrayDictionary.cs index 01e883f6058..b2ab9062e08 100644 --- a/src/Build/Collections/ArrayDictionary.cs +++ b/src/Build/Collections/ArrayDictionary.cs @@ -5,6 +5,8 @@ using System.Collections; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/ConcurrentQueueExtensions.cs b/src/Build/Collections/ConcurrentQueueExtensions.cs index cf9d278a48f..6160e4605a9 100644 --- a/src/Build/Collections/ConcurrentQueueExtensions.cs +++ b/src/Build/Collections/ConcurrentQueueExtensions.cs @@ -4,6 +4,8 @@ using System.Collections.Concurrent; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/ConcurrentStackExtensions.cs b/src/Build/Collections/ConcurrentStackExtensions.cs index 2e1fa1d97f3..e4a552676d9 100644 --- a/src/Build/Collections/ConcurrentStackExtensions.cs +++ b/src/Build/Collections/ConcurrentStackExtensions.cs @@ -4,6 +4,8 @@ using System.Collections.Concurrent; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/ConvertingEnumerable.cs b/src/Build/Collections/ConvertingEnumerable.cs index 0c994599c42..d7d8980bb20 100644 --- a/src/Build/Collections/ConvertingEnumerable.cs +++ b/src/Build/Collections/ConvertingEnumerable.cs @@ -5,6 +5,8 @@ using System.Collections; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/CopyOnReadEnumerable.cs b/src/Build/Collections/CopyOnReadEnumerable.cs index 16bde74dd11..4a902ec1bcd 100644 --- a/src/Build/Collections/CopyOnReadEnumerable.cs +++ b/src/Build/Collections/CopyOnReadEnumerable.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/CopyOnWritePropertyDictionary.cs b/src/Build/Collections/CopyOnWritePropertyDictionary.cs index 59bb01163fe..5454b4ae4dc 100644 --- a/src/Build/Collections/CopyOnWritePropertyDictionary.cs +++ b/src/Build/Collections/CopyOnWritePropertyDictionary.cs @@ -9,6 +9,8 @@ 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 7807b336c45..74dfee37ef8 100644 --- a/src/Build/Collections/HashTableUtility.cs +++ b/src/Build/Collections/HashTableUtility.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/IDeepCloneable.cs b/src/Build/Collections/IDeepCloneable.cs index 7842e447788..4e0c467fdff 100644 --- a/src/Build/Collections/IDeepCloneable.cs +++ b/src/Build/Collections/IDeepCloneable.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/IImmutable.cs b/src/Build/Collections/IImmutable.cs index b499ca29f90..012cfaf1948 100644 --- a/src/Build/Collections/IImmutable.cs +++ b/src/Build/Collections/IImmutable.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/IValued.cs b/src/Build/Collections/IValued.cs index 9e1ee5a5740..966d5497d31 100644 --- a/src/Build/Collections/IValued.cs +++ b/src/Build/Collections/IValued.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/ItemDictionary.cs b/src/Build/Collections/ItemDictionary.cs index b0e1ab517ef..3f0aa891501 100644 --- a/src/Build/Collections/ItemDictionary.cs +++ b/src/Build/Collections/ItemDictionary.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Evaluation; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/LookasideStringInterner.cs b/src/Build/Collections/LookasideStringInterner.cs index 01f8a0928ab..c0f5e1d3142 100644 --- a/src/Build/Collections/LookasideStringInterner.cs +++ b/src/Build/Collections/LookasideStringInterner.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/MultiDictionary.cs b/src/Build/Collections/MultiDictionary.cs index 468fd98a4f6..1f34c6009bb 100644 --- a/src/Build/Collections/MultiDictionary.cs +++ b/src/Build/Collections/MultiDictionary.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/PropertyDictionary.cs b/src/Build/Collections/PropertyDictionary.cs index e1929f7ca58..9edb5b2211a 100644 --- a/src/Build/Collections/PropertyDictionary.cs +++ b/src/Build/Collections/PropertyDictionary.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Evaluation; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/ReadOnlyConvertingDictionary.cs b/src/Build/Collections/ReadOnlyConvertingDictionary.cs index 33bfb114787..d14ed476c1c 100644 --- a/src/Build/Collections/ReadOnlyConvertingDictionary.cs +++ b/src/Build/Collections/ReadOnlyConvertingDictionary.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/RetrievableEntryHashSet/BitHelper.cs b/src/Build/Collections/RetrievableEntryHashSet/BitHelper.cs index bcef8af6fa0..8099a4d75ac 100644 --- a/src/Build/Collections/RetrievableEntryHashSet/BitHelper.cs +++ b/src/Build/Collections/RetrievableEntryHashSet/BitHelper.cs @@ -3,6 +3,8 @@ using System.Security; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/RetrievableEntryHashSet/HashHelpers.cs b/src/Build/Collections/RetrievableEntryHashSet/HashHelpers.cs index 5db12d82c2e..735c08b2a37 100644 --- a/src/Build/Collections/RetrievableEntryHashSet/HashHelpers.cs +++ b/src/Build/Collections/RetrievableEntryHashSet/HashHelpers.cs @@ -9,6 +9,8 @@ #endif #endif +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/RetrievableEntryHashSet/HashSet.cs b/src/Build/Collections/RetrievableEntryHashSet/HashSet.cs index 001c7b87f69..7c3efec3bac 100644 --- a/src/Build/Collections/RetrievableEntryHashSet/HashSet.cs +++ b/src/Build/Collections/RetrievableEntryHashSet/HashSet.cs @@ -39,6 +39,8 @@ nor unit test it directly. ================================================================================================================== */ +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/RetrievableEntryHashSet/HashSetDebugView.cs b/src/Build/Collections/RetrievableEntryHashSet/HashSetDebugView.cs index 45e69ec57ac..b4cd58a485b 100644 --- a/src/Build/Collections/RetrievableEntryHashSet/HashSetDebugView.cs +++ b/src/Build/Collections/RetrievableEntryHashSet/HashSetDebugView.cs @@ -4,6 +4,8 @@ using System; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Collections/RetrievableEntryHashSet/Originals/BitHelper.cs b/src/Build/Collections/RetrievableEntryHashSet/Originals/BitHelper.cs index de0a9bedfd0..bfd9c45d47c 100644 --- a/src/Build/Collections/RetrievableEntryHashSet/Originals/BitHelper.cs +++ b/src/Build/Collections/RetrievableEntryHashSet/Originals/BitHelper.cs @@ -2,6 +2,8 @@ using System.Collections; using System.Text; +#nullable disable + namespace System.Collections.Generic { /// diff --git a/src/Build/Collections/RetrievableEntryHashSet/Originals/HashHelpers.cs b/src/Build/Collections/RetrievableEntryHashSet/Originals/HashHelpers.cs index 1b1d758aa18..b637621ae4a 100644 --- a/src/Build/Collections/RetrievableEntryHashSet/Originals/HashHelpers.cs +++ b/src/Build/Collections/RetrievableEntryHashSet/Originals/HashHelpers.cs @@ -7,6 +7,8 @@ #endif using System.Text; +#nullable disable + namespace System.Collections.Generic { /// diff --git a/src/Build/Collections/RetrievableEntryHashSet/Originals/HashSet.cs b/src/Build/Collections/RetrievableEntryHashSet/Originals/HashSet.cs index 05307d55329..41c90e2f090 100644 --- a/src/Build/Collections/RetrievableEntryHashSet/Originals/HashSet.cs +++ b/src/Build/Collections/RetrievableEntryHashSet/Originals/HashSet.cs @@ -8,6 +8,8 @@ using System.Diagnostics.CodeAnalysis; using System.Security; +#nullable disable + namespace System.Collections.Generic { /// diff --git a/src/Build/Collections/RetrievableEntryHashSet/Originals/HashSetDebugView.cs b/src/Build/Collections/RetrievableEntryHashSet/Originals/HashSetDebugView.cs index e409ed204fe..5fd5651ac32 100644 --- a/src/Build/Collections/RetrievableEntryHashSet/Originals/HashSetDebugView.cs +++ b/src/Build/Collections/RetrievableEntryHashSet/Originals/HashSetDebugView.cs @@ -4,6 +4,8 @@ using System.Diagnostics; using System.Text; +#nullable disable + namespace System.Collections.Generic { /// diff --git a/src/Build/Collections/WeakValueDictionary.cs b/src/Build/Collections/WeakValueDictionary.cs index 6193363093d..5b2f1e62e56 100644 --- a/src/Build/Collections/WeakValueDictionary.cs +++ b/src/Build/Collections/WeakValueDictionary.cs @@ -6,6 +6,8 @@ using System.Diagnostics; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Build/Construction/ImplicitImportLocation.cs b/src/Build/Construction/ImplicitImportLocation.cs index 8f6ad0af683..3bc16698999 100644 --- a/src/Build/Construction/ImplicitImportLocation.cs +++ b/src/Build/Construction/ImplicitImportLocation.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectChooseElement.cs b/src/Build/Construction/ProjectChooseElement.cs index def7d686cff..e89bfe3aa96 100644 --- a/src/Build/Construction/ProjectChooseElement.cs +++ b/src/Build/Construction/ProjectChooseElement.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Collections; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectElement.cs b/src/Build/Construction/ProjectElement.cs index 8327feda09e..0b8916d5f2b 100644 --- a/src/Build/Construction/ProjectElement.cs +++ b/src/Build/Construction/ProjectElement.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared; using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectElementContainer.cs b/src/Build/Construction/ProjectElementContainer.cs index 3c4c0d6f269..f377db4c8d9 100644 --- a/src/Build/Construction/ProjectElementContainer.cs +++ b/src/Build/Construction/ProjectElementContainer.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Internal; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectExtensionsElement.cs b/src/Build/Construction/ProjectExtensionsElement.cs index 26bb1f9d0f0..ae667ee6675 100644 --- a/src/Build/Construction/ProjectExtensionsElement.cs +++ b/src/Build/Construction/ProjectExtensionsElement.cs @@ -7,6 +7,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectImportElement.cs b/src/Build/Construction/ProjectImportElement.cs index 0260a1eae46..36ba393d7be 100644 --- a/src/Build/Construction/ProjectImportElement.cs +++ b/src/Build/Construction/ProjectImportElement.cs @@ -6,6 +6,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectImportGroupElement.cs b/src/Build/Construction/ProjectImportGroupElement.cs index 0a726c4f0e1..62337399feb 100644 --- a/src/Build/Construction/ProjectImportGroupElement.cs +++ b/src/Build/Construction/ProjectImportGroupElement.cs @@ -8,6 +8,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectItemDefinitionElement.cs b/src/Build/Construction/ProjectItemDefinitionElement.cs index 2f93312bc32..1d9eacd9309 100644 --- a/src/Build/Construction/ProjectItemDefinitionElement.cs +++ b/src/Build/Construction/ProjectItemDefinitionElement.cs @@ -9,6 +9,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectItemDefinitionGroupElement.cs b/src/Build/Construction/ProjectItemDefinitionGroupElement.cs index 15bca1819c1..29627027867 100644 --- a/src/Build/Construction/ProjectItemDefinitionGroupElement.cs +++ b/src/Build/Construction/ProjectItemDefinitionGroupElement.cs @@ -9,6 +9,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectItemElement.cs b/src/Build/Construction/ProjectItemElement.cs index dd7f7f6ea6c..3bf4639787c 100644 --- a/src/Build/Construction/ProjectItemElement.cs +++ b/src/Build/Construction/ProjectItemElement.cs @@ -10,6 +10,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectItemGroupElement.cs b/src/Build/Construction/ProjectItemGroupElement.cs index 6af68278575..58418960335 100644 --- a/src/Build/Construction/ProjectItemGroupElement.cs +++ b/src/Build/Construction/ProjectItemGroupElement.cs @@ -9,6 +9,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectMetadataElement.cs b/src/Build/Construction/ProjectMetadataElement.cs index 9657cc1a647..6027266e540 100644 --- a/src/Build/Construction/ProjectMetadataElement.cs +++ b/src/Build/Construction/ProjectMetadataElement.cs @@ -5,6 +5,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectOnErrorElement.cs b/src/Build/Construction/ProjectOnErrorElement.cs index 0dbced91dab..a1564143564 100644 --- a/src/Build/Construction/ProjectOnErrorElement.cs +++ b/src/Build/Construction/ProjectOnErrorElement.cs @@ -5,6 +5,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectOtherwiseElement.cs b/src/Build/Construction/ProjectOtherwiseElement.cs index ba469217ab6..f41d862b1fe 100644 --- a/src/Build/Construction/ProjectOtherwiseElement.cs +++ b/src/Build/Construction/ProjectOtherwiseElement.cs @@ -8,6 +8,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectOutputElement.cs b/src/Build/Construction/ProjectOutputElement.cs index 0df9620ec98..92c23bd1274 100644 --- a/src/Build/Construction/ProjectOutputElement.cs +++ b/src/Build/Construction/ProjectOutputElement.cs @@ -7,6 +7,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectPropertyElement.cs b/src/Build/Construction/ProjectPropertyElement.cs index 43414b08260..1cac5075d00 100644 --- a/src/Build/Construction/ProjectPropertyElement.cs +++ b/src/Build/Construction/ProjectPropertyElement.cs @@ -6,6 +6,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectPropertyGroupElement.cs b/src/Build/Construction/ProjectPropertyGroupElement.cs index 0ed94cb9a27..e211c892f6e 100644 --- a/src/Build/Construction/ProjectPropertyGroupElement.cs +++ b/src/Build/Construction/ProjectPropertyGroupElement.cs @@ -9,6 +9,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectRootElement.cs b/src/Build/Construction/ProjectRootElement.cs index cb08aee7b3e..046c2100da0 100644 --- a/src/Build/Construction/ProjectRootElement.cs +++ b/src/Build/Construction/ProjectRootElement.cs @@ -23,6 +23,8 @@ using Microsoft.Build.Shared.FileSystem; using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectSdkElement.cs b/src/Build/Construction/ProjectSdkElement.cs index e95d8ea5b12..751a1c80a39 100644 --- a/src/Build/Construction/ProjectSdkElement.cs +++ b/src/Build/Construction/ProjectSdkElement.cs @@ -5,6 +5,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectTargetElement.cs b/src/Build/Construction/ProjectTargetElement.cs index 3b167544c55..5865039ceff 100644 --- a/src/Build/Construction/ProjectTargetElement.cs +++ b/src/Build/Construction/ProjectTargetElement.cs @@ -12,6 +12,8 @@ using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectTaskElement.cs b/src/Build/Construction/ProjectTaskElement.cs index 40fa75fb6d2..f599e4d6f71 100644 --- a/src/Build/Construction/ProjectTaskElement.cs +++ b/src/Build/Construction/ProjectTaskElement.cs @@ -11,6 +11,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectUsingTaskBodyElement.cs b/src/Build/Construction/ProjectUsingTaskBodyElement.cs index 82da24ff8b6..02f37cebceb 100644 --- a/src/Build/Construction/ProjectUsingTaskBodyElement.cs +++ b/src/Build/Construction/ProjectUsingTaskBodyElement.cs @@ -7,6 +7,8 @@ using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectUsingTaskElement.cs b/src/Build/Construction/ProjectUsingTaskElement.cs index 4d8b2358194..3bf3005a306 100644 --- a/src/Build/Construction/ProjectUsingTaskElement.cs +++ b/src/Build/Construction/ProjectUsingTaskElement.cs @@ -7,6 +7,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectUsingTaskParameterElement.cs b/src/Build/Construction/ProjectUsingTaskParameterElement.cs index bde3344cdfb..77ff6bc1893 100644 --- a/src/Build/Construction/ProjectUsingTaskParameterElement.cs +++ b/src/Build/Construction/ProjectUsingTaskParameterElement.cs @@ -6,6 +6,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/ProjectWhenElement.cs b/src/Build/Construction/ProjectWhenElement.cs index 69c31e4655f..105aa19ad69 100644 --- a/src/Build/Construction/ProjectWhenElement.cs +++ b/src/Build/Construction/ProjectWhenElement.cs @@ -9,6 +9,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/Solution/ProjectConfigurationInSolution.cs b/src/Build/Construction/Solution/ProjectConfigurationInSolution.cs index 0700c134ddb..6f3507e19c3 100644 --- a/src/Build/Construction/Solution/ProjectConfigurationInSolution.cs +++ b/src/Build/Construction/Solution/ProjectConfigurationInSolution.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/Solution/ProjectInSolution.cs b/src/Build/Construction/Solution/ProjectInSolution.cs index a0ec7d24e57..7ccd2e7dfef 100644 --- a/src/Build/Construction/Solution/ProjectInSolution.cs +++ b/src/Build/Construction/Solution/ProjectInSolution.cs @@ -19,6 +19,8 @@ using System.Collections.ObjectModel; using System.Linq; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/Solution/SolutionConfigurationInSolution.cs b/src/Build/Construction/Solution/SolutionConfigurationInSolution.cs index e35d36a9330..7518fc26980 100644 --- a/src/Build/Construction/Solution/SolutionConfigurationInSolution.cs +++ b/src/Build/Construction/Solution/SolutionConfigurationInSolution.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/Solution/SolutionFile.cs b/src/Build/Construction/Solution/SolutionFile.cs index e0e9059c984..15b302f59ec 100644 --- a/src/Build/Construction/Solution/SolutionFile.cs +++ b/src/Build/Construction/Solution/SolutionFile.cs @@ -22,6 +22,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/Solution/SolutionProjectGenerator.cs b/src/Build/Construction/Solution/SolutionProjectGenerator.cs index 43318152844..646deb3b33e 100644 --- a/src/Build/Construction/Solution/SolutionProjectGenerator.cs +++ b/src/Build/Construction/Solution/SolutionProjectGenerator.cs @@ -30,6 +30,8 @@ using Microsoft.NET.StringTools; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Construction/UsingTaskParameterGroupElement.cs b/src/Build/Construction/UsingTaskParameterGroupElement.cs index a2bfc6c7a66..0f52d672ff0 100644 --- a/src/Build/Construction/UsingTaskParameterGroupElement.cs +++ b/src/Build/Construction/UsingTaskParameterGroupElement.cs @@ -11,6 +11,8 @@ using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Definition/BuiltInMetadata.cs b/src/Build/Definition/BuiltInMetadata.cs index 6f9a3b9ee82..dd325c8a458 100644 --- a/src/Build/Definition/BuiltInMetadata.cs +++ b/src/Build/Definition/BuiltInMetadata.cs @@ -6,6 +6,8 @@ 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 4cf0db07107..9c1842bfca5 100644 --- a/src/Build/Definition/NewProjectFileOptions.cs +++ b/src/Build/Definition/NewProjectFileOptions.cs @@ -1,5 +1,7 @@ using System; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/Project.cs b/src/Build/Definition/Project.cs index df1d8ed8eb4..a0c7648cdd3 100644 --- a/src/Build/Definition/Project.cs +++ b/src/Build/Definition/Project.cs @@ -34,6 +34,8 @@ using SdkResult = Microsoft.Build.BackEnd.SdkResolution.SdkResult; using Microsoft.Build.FileSystem; +#nullable disable + namespace Microsoft.Build.Evaluation { using Utilities = Internal.Utilities; diff --git a/src/Build/Definition/ProjectCollection.cs b/src/Build/Definition/ProjectCollection.cs index 8629bd94317..1567601949a 100644 --- a/src/Build/Definition/ProjectCollection.cs +++ b/src/Build/Definition/ProjectCollection.cs @@ -27,6 +27,8 @@ using LoggerMode = Microsoft.Build.BackEnd.Logging.LoggerMode; using ObjectModel = System.Collections.ObjectModel; +#nullable disable + namespace Microsoft.Build.Evaluation { using Utilities = Internal.Utilities; diff --git a/src/Build/Definition/ProjectCollectionChangedEventArgs.cs b/src/Build/Definition/ProjectCollectionChangedEventArgs.cs index ffee5a19f7c..2b7f7d5f927 100644 --- a/src/Build/Definition/ProjectCollectionChangedEventArgs.cs +++ b/src/Build/Definition/ProjectCollectionChangedEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ProjectImportPathMatch.cs b/src/Build/Definition/ProjectImportPathMatch.cs index 1c670eb06a4..f793dda52fd 100644 --- a/src/Build/Definition/ProjectImportPathMatch.cs +++ b/src/Build/Definition/ProjectImportPathMatch.cs @@ -5,6 +5,8 @@ using Microsoft.Build.BackEnd; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ProjectItem.cs b/src/Build/Definition/ProjectItem.cs index 0b3c28e1562..592a8a078a1 100644 --- a/src/Build/Definition/ProjectItem.cs +++ b/src/Build/Definition/ProjectItem.cs @@ -12,6 +12,8 @@ using System.Linq; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ProjectItemDefinition.cs b/src/Build/Definition/ProjectItemDefinition.cs index 35fc50b2d08..3dac87761bb 100644 --- a/src/Build/Definition/ProjectItemDefinition.cs +++ b/src/Build/Definition/ProjectItemDefinition.cs @@ -11,6 +11,8 @@ using System; using System.Linq; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ProjectLoadSettings.cs b/src/Build/Definition/ProjectLoadSettings.cs index ef51122eca5..9f767d1bf47 100644 --- a/src/Build/Definition/ProjectLoadSettings.cs +++ b/src/Build/Definition/ProjectLoadSettings.cs @@ -1,6 +1,8 @@ using System; using System.Diagnostics.CodeAnalysis; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ProjectMetadata.cs b/src/Build/Definition/ProjectMetadata.cs index 2e5f4c958ae..198c8231ac8 100644 --- a/src/Build/Definition/ProjectMetadata.cs +++ b/src/Build/Definition/ProjectMetadata.cs @@ -8,6 +8,8 @@ using Microsoft.Build.ObjectModelRemoting; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ProjectOptions.cs b/src/Build/Definition/ProjectOptions.cs index fadfe73a6e3..6cdbc750dbd 100644 --- a/src/Build/Definition/ProjectOptions.cs +++ b/src/Build/Definition/ProjectOptions.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Evaluation.Context; using Microsoft.Build.FileSystem; +#nullable disable + namespace Microsoft.Build.Definition { /// diff --git a/src/Build/Definition/ProjectProperty.cs b/src/Build/Definition/ProjectProperty.cs index 518babfb2d6..b3e808c3c9a 100644 --- a/src/Build/Definition/ProjectProperty.cs +++ b/src/Build/Definition/ProjectProperty.cs @@ -9,6 +9,8 @@ using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ResolvedImport.cs b/src/Build/Definition/ResolvedImport.cs index 5b9111f5bdb..378b6546baa 100644 --- a/src/Build/Definition/ResolvedImport.cs +++ b/src/Build/Definition/ResolvedImport.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/SubToolset.cs b/src/Build/Definition/SubToolset.cs index 3f27dc905ac..90e7f0be784 100644 --- a/src/Build/Definition/SubToolset.cs +++ b/src/Build/Definition/SubToolset.cs @@ -11,6 +11,8 @@ using ObjectModel = System.Collections.ObjectModel; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/Toolset.cs b/src/Build/Definition/Toolset.cs index b623fed7040..eabdffb16e8 100644 --- a/src/Build/Definition/Toolset.cs +++ b/src/Build/Definition/Toolset.cs @@ -22,6 +22,8 @@ using ObjectModel = System.Collections.ObjectModel; using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ToolsetConfigurationReader.cs b/src/Build/Definition/ToolsetConfigurationReader.cs index e2df26e70dd..89a68f2756a 100644 --- a/src/Build/Definition/ToolsetConfigurationReader.cs +++ b/src/Build/Definition/ToolsetConfigurationReader.cs @@ -15,6 +15,8 @@ using ErrorUtilities = Microsoft.Build.Shared.ErrorUtilities; using InvalidToolsetDefinitionException = Microsoft.Build.Exceptions.InvalidToolsetDefinitionException; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ToolsetLocalReader.cs b/src/Build/Definition/ToolsetLocalReader.cs index 9669ae466b9..ce17fd8ffb1 100644 --- a/src/Build/Definition/ToolsetLocalReader.cs +++ b/src/Build/Definition/ToolsetLocalReader.cs @@ -8,6 +8,8 @@ using System.Collections.Generic; using System.Linq; +#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 b21273d5aa1..01e4a01bc6c 100644 --- a/src/Build/Definition/ToolsetPropertyDefinition.cs +++ b/src/Build/Definition/ToolsetPropertyDefinition.cs @@ -6,6 +6,8 @@ using ErrorUtilities = Microsoft.Build.Shared.ErrorUtilities; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ToolsetReader.cs b/src/Build/Definition/ToolsetReader.cs index eb0e6c3a064..213d927c9bb 100644 --- a/src/Build/Definition/ToolsetReader.cs +++ b/src/Build/Definition/ToolsetReader.cs @@ -17,6 +17,8 @@ using InvalidToolsetDefinitionException = Microsoft.Build.Exceptions.InvalidToolsetDefinitionException; using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Definition/ToolsetRegistryReader.cs b/src/Build/Definition/ToolsetRegistryReader.cs index d49b10b1cf2..f049808eaea 100644 --- a/src/Build/Definition/ToolsetRegistryReader.cs +++ b/src/Build/Definition/ToolsetRegistryReader.cs @@ -17,6 +17,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Internal; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/ElementLocation/ElementLocation.cs b/src/Build/ElementLocation/ElementLocation.cs index 3b5a286956a..e0cc6e95fcc 100644 --- a/src/Build/ElementLocation/ElementLocation.cs +++ b/src/Build/ElementLocation/ElementLocation.cs @@ -7,6 +7,8 @@ using System; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/ElementLocation/RegistryLocation.cs b/src/Build/ElementLocation/RegistryLocation.cs index d6577196d97..598b72a853c 100644 --- a/src/Build/ElementLocation/RegistryLocation.cs +++ b/src/Build/ElementLocation/RegistryLocation.cs @@ -5,6 +5,8 @@ using Microsoft.Build.BackEnd; using System; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/ElementLocation/XmlAttributeWithLocation.cs b/src/Build/ElementLocation/XmlAttributeWithLocation.cs index 2a8ad231e60..8aa000ccfab 100644 --- a/src/Build/ElementLocation/XmlAttributeWithLocation.cs +++ b/src/Build/ElementLocation/XmlAttributeWithLocation.cs @@ -5,6 +5,8 @@ using System.Xml; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/ElementLocation/XmlDocumentWithLocation.cs b/src/Build/ElementLocation/XmlDocumentWithLocation.cs index 1b3de4bb5e0..68b74ac0598 100644 --- a/src/Build/ElementLocation/XmlDocumentWithLocation.cs +++ b/src/Build/ElementLocation/XmlDocumentWithLocation.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Internal; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/ElementLocation/XmlElementWithLocation.cs b/src/Build/ElementLocation/XmlElementWithLocation.cs index 47446943860..726bf84df57 100644 --- a/src/Build/ElementLocation/XmlElementWithLocation.cs +++ b/src/Build/ElementLocation/XmlElementWithLocation.cs @@ -6,6 +6,8 @@ using System.Diagnostics; using Microsoft.Build.ObjectModelRemoting; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/ElementLocation/XmlNameTableThreadSafe.cs b/src/Build/ElementLocation/XmlNameTableThreadSafe.cs index ac593ced2b8..a5f068becf4 100644 --- a/src/Build/ElementLocation/XmlNameTableThreadSafe.cs +++ b/src/Build/ElementLocation/XmlNameTableThreadSafe.cs @@ -4,6 +4,8 @@ using System; using System.Xml; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Errors/InternalLoggerException.cs b/src/Build/Errors/InternalLoggerException.cs index 56016a76d82..7acb0b4603d 100644 --- a/src/Build/Errors/InternalLoggerException.cs +++ b/src/Build/Errors/InternalLoggerException.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Exceptions { /// diff --git a/src/Build/Errors/InvalidProjectFileException.cs b/src/Build/Errors/InvalidProjectFileException.cs index 6588acce0b8..a947dd83005 100644 --- a/src/Build/Errors/InvalidProjectFileException.cs +++ b/src/Build/Errors/InvalidProjectFileException.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Exceptions { /// diff --git a/src/Build/Errors/InvalidToolsetDefinitionException.cs b/src/Build/Errors/InvalidToolsetDefinitionException.cs index 79354ecd57d..3d516446388 100644 --- a/src/Build/Errors/InvalidToolsetDefinitionException.cs +++ b/src/Build/Errors/InvalidToolsetDefinitionException.cs @@ -9,6 +9,8 @@ using System.Security.Permissions; #endif +#nullable disable + namespace Microsoft.Build.Exceptions { /// diff --git a/src/Build/Errors/RegistryException.cs b/src/Build/Errors/RegistryException.cs index d1b86501d33..4e3cb2e25ac 100644 --- a/src/Build/Errors/RegistryException.cs +++ b/src/Build/Errors/RegistryException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Exceptions { /// diff --git a/src/Build/Evaluation/ConditionEvaluator.cs b/src/Build/Evaluation/ConditionEvaluator.cs index 8eb493e6398..31dd956ed2e 100644 --- a/src/Build/Evaluation/ConditionEvaluator.cs +++ b/src/Build/Evaluation/ConditionEvaluator.cs @@ -7,6 +7,8 @@ using System.Text.RegularExpressions; using System.Threading; +#nullable disable + namespace Microsoft.Build.Evaluation { using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; diff --git a/src/Build/Evaluation/Conditionals/AndExpressionNode.cs b/src/Build/Evaluation/Conditionals/AndExpressionNode.cs index 69df786fb83..94513436e9c 100644 --- a/src/Build/Evaluation/Conditionals/AndExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/AndExpressionNode.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Shared; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/CharacterUtilities.cs b/src/Build/Evaluation/Conditionals/CharacterUtilities.cs index 277036eac9d..9eb85cf6b6d 100644 --- a/src/Build/Evaluation/Conditionals/CharacterUtilities.cs +++ b/src/Build/Evaluation/Conditionals/CharacterUtilities.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#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 190a880068e..939493a148f 100644 --- a/src/Build/Evaluation/Conditionals/EqualExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/EqualExpressionNode.cs @@ -4,6 +4,8 @@ using System; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/FunctionCallExpressionNode.cs b/src/Build/Evaluation/Conditionals/FunctionCallExpressionNode.cs index d1ffa2a8248..e0b57181361 100644 --- a/src/Build/Evaluation/Conditionals/FunctionCallExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/FunctionCallExpressionNode.cs @@ -8,6 +8,8 @@ using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/GenericExpressionNode.cs b/src/Build/Evaluation/Conditionals/GenericExpressionNode.cs index c85b95e088d..d6007133404 100644 --- a/src/Build/Evaluation/Conditionals/GenericExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/GenericExpressionNode.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/GreaterThanExpressionNode.cs b/src/Build/Evaluation/Conditionals/GreaterThanExpressionNode.cs index 6749b70b166..0639c92cf4f 100644 --- a/src/Build/Evaluation/Conditionals/GreaterThanExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/GreaterThanExpressionNode.cs @@ -4,6 +4,8 @@ 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 1f743d9e657..74a3e162ce4 100644 --- a/src/Build/Evaluation/Conditionals/GreaterThanOrEqualExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/GreaterThanOrEqualExpressionNode.cs @@ -4,6 +4,8 @@ using System; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/IItem.cs b/src/Build/Evaluation/Conditionals/IItem.cs index 000aacf9c0a..e26b0b3e567 100644 --- a/src/Build/Evaluation/Conditionals/IItem.cs +++ b/src/Build/Evaluation/Conditionals/IItem.cs @@ -4,6 +4,8 @@ using System.Collections.Generic; using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/LessThanExpressionNode.cs b/src/Build/Evaluation/Conditionals/LessThanExpressionNode.cs index 0b3ba717d50..a7cf6dcff1e 100644 --- a/src/Build/Evaluation/Conditionals/LessThanExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/LessThanExpressionNode.cs @@ -4,6 +4,8 @@ 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 8701e50e6d6..19de29eccf6 100644 --- a/src/Build/Evaluation/Conditionals/LessThanOrEqualExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/LessThanOrEqualExpressionNode.cs @@ -4,6 +4,8 @@ using System; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/MultipleComparisonExpressionNode.cs b/src/Build/Evaluation/Conditionals/MultipleComparisonExpressionNode.cs index 18e1caad924..65e23c7718f 100644 --- a/src/Build/Evaluation/Conditionals/MultipleComparisonExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/MultipleComparisonExpressionNode.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/NotEqualExpressionNode.cs b/src/Build/Evaluation/Conditionals/NotEqualExpressionNode.cs index a8cf898793d..34aedc61d6c 100644 --- a/src/Build/Evaluation/Conditionals/NotEqualExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/NotEqualExpressionNode.cs @@ -4,6 +4,8 @@ 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 2f5dd07d112..e5b00ac781a 100644 --- a/src/Build/Evaluation/Conditionals/NotExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/NotExpressionNode.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Shared; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/NumericComparisonExpressionNode.cs b/src/Build/Evaluation/Conditionals/NumericComparisonExpressionNode.cs index a86a3031bb3..02c242ceef5 100644 --- a/src/Build/Evaluation/Conditionals/NumericComparisonExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/NumericComparisonExpressionNode.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/NumericExpressionNode.cs b/src/Build/Evaluation/Conditionals/NumericExpressionNode.cs index fe21a15a1ad..66fa552443d 100644 --- a/src/Build/Evaluation/Conditionals/NumericExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/NumericExpressionNode.cs @@ -6,6 +6,8 @@ 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 35ecbb065f4..9efeb65a947 100644 --- a/src/Build/Evaluation/Conditionals/OperandExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/OperandExpressionNode.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/OperatorExpressionNode.cs b/src/Build/Evaluation/Conditionals/OperatorExpressionNode.cs index 92609fd763e..c6e4b4c349c 100644 --- a/src/Build/Evaluation/Conditionals/OperatorExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/OperatorExpressionNode.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/OrExpressionNode.cs b/src/Build/Evaluation/Conditionals/OrExpressionNode.cs index 1ac1713a5aa..250e8c9602c 100644 --- a/src/Build/Evaluation/Conditionals/OrExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/OrExpressionNode.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Shared; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/Parser.cs b/src/Build/Evaluation/Conditionals/Parser.cs index 292226a5ed8..1983df8e36d 100644 --- a/src/Build/Evaluation/Conditionals/Parser.cs +++ b/src/Build/Evaluation/Conditionals/Parser.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using ElementLocation = Microsoft.Build.Construction.ElementLocation; +#nullable disable + namespace Microsoft.Build.Evaluation { using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; diff --git a/src/Build/Evaluation/Conditionals/Scanner.cs b/src/Build/Evaluation/Conditionals/Scanner.cs index 04af6a1a016..8a711257b2f 100644 --- a/src/Build/Evaluation/Conditionals/Scanner.cs +++ b/src/Build/Evaluation/Conditionals/Scanner.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/StringExpressionNode.cs b/src/Build/Evaluation/Conditionals/StringExpressionNode.cs index f87cd766ca5..7017b0b5023 100644 --- a/src/Build/Evaluation/Conditionals/StringExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/StringExpressionNode.cs @@ -5,6 +5,8 @@ using System.Diagnostics; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Conditionals/Token.cs b/src/Build/Evaluation/Conditionals/Token.cs index 4ff4196dc1c..f0a18231634 100644 --- a/src/Build/Evaluation/Conditionals/Token.cs +++ b/src/Build/Evaluation/Conditionals/Token.cs @@ -3,6 +3,8 @@ using ErrorUtilities = Microsoft.Build.Shared.ErrorUtilities; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Context/EvaluationContext.cs b/src/Build/Evaluation/Context/EvaluationContext.cs index 19510f6d663..7d9b891a484 100644 --- a/src/Build/Evaluation/Context/EvaluationContext.cs +++ b/src/Build/Evaluation/Context/EvaluationContext.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Evaluation.Context { /// diff --git a/src/Build/Evaluation/Evaluator.cs b/src/Build/Evaluation/Evaluator.cs index ae7efd6e832..1983d6c976c 100644 --- a/src/Build/Evaluation/Evaluator.cs +++ b/src/Build/Evaluation/Evaluator.cs @@ -34,6 +34,8 @@ using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; using SdkReferencePropertyExpansionMode = Microsoft.Build.Framework.EscapeHatches.SdkReferencePropertyExpansionMode; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/EvaluatorMetadataTable.cs b/src/Build/Evaluation/EvaluatorMetadataTable.cs index caab55331b3..686f524e965 100644 --- a/src/Build/Evaluation/EvaluatorMetadataTable.cs +++ b/src/Build/Evaluation/EvaluatorMetadataTable.cs @@ -9,6 +9,8 @@ using EscapingUtilities = Microsoft.Build.Shared.EscapingUtilities; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Expander.cs b/src/Build/Evaluation/Expander.cs index 6e7151fcc60..ddc5f981ba7 100644 --- a/src/Build/Evaluation/Expander.cs +++ b/src/Build/Evaluation/Expander.cs @@ -28,6 +28,8 @@ using Microsoft.NET.StringTools; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/ExpressionShredder.cs b/src/Build/Evaluation/ExpressionShredder.cs index 1ea8786cf67..79d4de04eb6 100644 --- a/src/Build/Evaluation/ExpressionShredder.cs +++ b/src/Build/Evaluation/ExpressionShredder.cs @@ -9,6 +9,8 @@ using System.Collections.Generic; using Microsoft.Build.Collections; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/IEvaluatorData.cs b/src/Build/Evaluation/IEvaluatorData.cs index 7e2c9c5c85c..cf0b17d457f 100644 --- a/src/Build/Evaluation/IEvaluatorData.cs +++ b/src/Build/Evaluation/IEvaluatorData.cs @@ -10,6 +10,8 @@ using Microsoft.Build.BackEnd.SdkResolution; using Microsoft.Build.Evaluation.Context; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/IItem.cs b/src/Build/Evaluation/IItem.cs index 197cd8389e6..63ee0e41e3e 100644 --- a/src/Build/Evaluation/IItem.cs +++ b/src/Build/Evaluation/IItem.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Collections; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/IItemDefinition.cs b/src/Build/Evaluation/IItemDefinition.cs index c9d41bf5453..a1be67f9a98 100644 --- a/src/Build/Evaluation/IItemDefinition.cs +++ b/src/Build/Evaluation/IItemDefinition.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/IItemFactory.cs b/src/Build/Evaluation/IItemFactory.cs index bcd3b91211f..e888059ee97 100644 --- a/src/Build/Evaluation/IItemFactory.cs +++ b/src/Build/Evaluation/IItemFactory.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Construction; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/IItemProvider.cs b/src/Build/Evaluation/IItemProvider.cs index 2bd826a481a..cba344f2553 100644 --- a/src/Build/Evaluation/IItemProvider.cs +++ b/src/Build/Evaluation/IItemProvider.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/IMetadataTable.cs b/src/Build/Evaluation/IMetadataTable.cs index 5f95f3a8f08..8dbc16dc63a 100644 --- a/src/Build/Evaluation/IMetadataTable.cs +++ b/src/Build/Evaluation/IMetadataTable.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/IMetadatum.cs b/src/Build/Evaluation/IMetadatum.cs index 5521a562ea6..2c7618c22d1 100644 --- a/src/Build/Evaluation/IMetadatum.cs +++ b/src/Build/Evaluation/IMetadatum.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Collections; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/IProjectMetadataParent.cs b/src/Build/Evaluation/IProjectMetadataParent.cs index ef432656ff8..74c4ad1e2d8 100644 --- a/src/Build/Evaluation/IProjectMetadataParent.cs +++ b/src/Build/Evaluation/IProjectMetadataParent.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/IProperty.cs b/src/Build/Evaluation/IProperty.cs index bdaedfcaff7..ed57eef4ea3 100644 --- a/src/Build/Evaluation/IProperty.cs +++ b/src/Build/Evaluation/IProperty.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Collections; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/IPropertyProvider.cs b/src/Build/Evaluation/IPropertyProvider.cs index 6b293c4c108..715cf119a36 100644 --- a/src/Build/Evaluation/IPropertyProvider.cs +++ b/src/Build/Evaluation/IPropertyProvider.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/IToolsetProvider.cs b/src/Build/Evaluation/IToolsetProvider.cs index 46bbb505063..1b9e76836a4 100644 --- a/src/Build/Evaluation/IToolsetProvider.cs +++ b/src/Build/Evaluation/IToolsetProvider.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/IntrinsicFunctions.cs b/src/Build/Evaluation/IntrinsicFunctions.cs index 479d5578559..f2aa07d6f5d 100644 --- a/src/Build/Evaluation/IntrinsicFunctions.cs +++ b/src/Build/Evaluation/IntrinsicFunctions.cs @@ -17,6 +17,8 @@ // Needed for DoesTaskHostExistForParameters using NodeProviderOutOfProcTaskHost = Microsoft.Build.BackEnd.NodeProviderOutOfProcTaskHost; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/ItemDataCollectionValue.cs b/src/Build/Evaluation/ItemDataCollectionValue.cs index 15807cc996d..5671a9d96ca 100644 --- a/src/Build/Evaluation/ItemDataCollectionValue.cs +++ b/src/Build/Evaluation/ItemDataCollectionValue.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/ItemSpec.cs b/src/Build/Evaluation/ItemSpec.cs index 5cd47ea797b..8f1fb449206 100644 --- a/src/Build/Evaluation/ItemSpec.cs +++ b/src/Build/Evaluation/ItemSpec.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Internal; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/ItemsAndMetadataPair.cs b/src/Build/Evaluation/ItemsAndMetadataPair.cs index 5e9841d34e1..b949777e8d2 100644 --- a/src/Build/Evaluation/ItemsAndMetadataPair.cs +++ b/src/Build/Evaluation/ItemsAndMetadataPair.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/LazyItemEvaluator.EvaluatorData.cs b/src/Build/Evaluation/LazyItemEvaluator.EvaluatorData.cs index c493969feb5..0934053e67e 100644 --- a/src/Build/Evaluation/LazyItemEvaluator.EvaluatorData.cs +++ b/src/Build/Evaluation/LazyItemEvaluator.EvaluatorData.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Evaluation.Context; using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.Evaluation { internal partial class LazyItemEvaluator diff --git a/src/Build/Evaluation/LazyItemEvaluator.IItemOperation.cs b/src/Build/Evaluation/LazyItemEvaluator.IItemOperation.cs index 40ee16b1d88..7d9b469564a 100644 --- a/src/Build/Evaluation/LazyItemEvaluator.IItemOperation.cs +++ b/src/Build/Evaluation/LazyItemEvaluator.IItemOperation.cs @@ -3,6 +3,8 @@ using System.Collections.Immutable; +#nullable disable + namespace Microsoft.Build.Evaluation { internal partial class LazyItemEvaluator diff --git a/src/Build/Evaluation/LazyItemEvaluator.IncludeOperation.cs b/src/Build/Evaluation/LazyItemEvaluator.IncludeOperation.cs index c67b057ae9e..0fe765844fa 100644 --- a/src/Build/Evaluation/LazyItemEvaluator.IncludeOperation.cs +++ b/src/Build/Evaluation/LazyItemEvaluator.IncludeOperation.cs @@ -13,6 +13,8 @@ using System.Collections.Immutable; using System.Linq; +#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 779491c3049..9bda1d32cdf 100644 --- a/src/Build/Evaluation/LazyItemEvaluator.ItemFactoryWrapper.cs +++ b/src/Build/Evaluation/LazyItemEvaluator.ItemFactoryWrapper.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Construction; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { internal partial class LazyItemEvaluator diff --git a/src/Build/Evaluation/LazyItemEvaluator.LazyItemOperation.cs b/src/Build/Evaluation/LazyItemEvaluator.LazyItemOperation.cs index e574a4567f2..ad27682fa2d 100644 --- a/src/Build/Evaluation/LazyItemEvaluator.LazyItemOperation.cs +++ b/src/Build/Evaluation/LazyItemEvaluator.LazyItemOperation.cs @@ -11,6 +11,8 @@ using System.Diagnostics; using System.Linq; +#nullable disable + namespace Microsoft.Build.Evaluation { internal partial class LazyItemEvaluator diff --git a/src/Build/Evaluation/LazyItemEvaluator.OrderedItemDataCollection.cs b/src/Build/Evaluation/LazyItemEvaluator.OrderedItemDataCollection.cs index e56334b81a7..ac9264ca6dc 100644 --- a/src/Build/Evaluation/LazyItemEvaluator.OrderedItemDataCollection.cs +++ b/src/Build/Evaluation/LazyItemEvaluator.OrderedItemDataCollection.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Collections.Immutable; +#nullable disable + namespace Microsoft.Build.Evaluation { internal partial class LazyItemEvaluator diff --git a/src/Build/Evaluation/LazyItemEvaluator.RemoveOperation.cs b/src/Build/Evaluation/LazyItemEvaluator.RemoveOperation.cs index 5604b9b96b0..7d1e2679c7d 100644 --- a/src/Build/Evaluation/LazyItemEvaluator.RemoveOperation.cs +++ b/src/Build/Evaluation/LazyItemEvaluator.RemoveOperation.cs @@ -9,6 +9,8 @@ using System.Collections.Immutable; using System.Linq; +#nullable disable + namespace Microsoft.Build.Evaluation { internal partial class LazyItemEvaluator diff --git a/src/Build/Evaluation/LazyItemEvaluator.UpdateOperation.cs b/src/Build/Evaluation/LazyItemEvaluator.UpdateOperation.cs index 349a561c231..612c1a8d9d1 100644 --- a/src/Build/Evaluation/LazyItemEvaluator.UpdateOperation.cs +++ b/src/Build/Evaluation/LazyItemEvaluator.UpdateOperation.cs @@ -9,6 +9,8 @@ using System.Linq; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Evaluation { internal partial class LazyItemEvaluator diff --git a/src/Build/Evaluation/LazyItemEvaluator.cs b/src/Build/Evaluation/LazyItemEvaluator.cs index 99dc789d996..bcbc373afb8 100644 --- a/src/Build/Evaluation/LazyItemEvaluator.cs +++ b/src/Build/Evaluation/LazyItemEvaluator.cs @@ -18,6 +18,8 @@ using System.Linq; using System.Threading; +#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 0bb7ce0fbf0..c0cf9b33319 100644 --- a/src/Build/Evaluation/MetadataReference.cs +++ b/src/Build/Evaluation/MetadataReference.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Preprocessor.cs b/src/Build/Evaluation/Preprocessor.cs index 104bcba8a2c..7655b5b0faa 100644 --- a/src/Build/Evaluation/Preprocessor.cs +++ b/src/Build/Evaluation/Preprocessor.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Construction; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Profiler/EvaluationLocationMarkdownPrettyPrinter.cs b/src/Build/Evaluation/Profiler/EvaluationLocationMarkdownPrettyPrinter.cs index bc91a1b1ea8..bdb57bf9566 100644 --- a/src/Build/Evaluation/Profiler/EvaluationLocationMarkdownPrettyPrinter.cs +++ b/src/Build/Evaluation/Profiler/EvaluationLocationMarkdownPrettyPrinter.cs @@ -5,6 +5,8 @@ using System.Text; using Microsoft.Build.Framework.Profiler; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Profiler/EvaluationLocationPrettyPrinterBase.cs b/src/Build/Evaluation/Profiler/EvaluationLocationPrettyPrinterBase.cs index 32701f72fbe..6a849a6a95d 100644 --- a/src/Build/Evaluation/Profiler/EvaluationLocationPrettyPrinterBase.cs +++ b/src/Build/Evaluation/Profiler/EvaluationLocationPrettyPrinterBase.cs @@ -5,6 +5,8 @@ using System.Text; using Microsoft.Build.Framework.Profiler; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Profiler/EvaluationLocationTabSeparatedPrettyPrinter.cs b/src/Build/Evaluation/Profiler/EvaluationLocationTabSeparatedPrettyPrinter.cs index 555aef21810..71ee33974d9 100644 --- a/src/Build/Evaluation/Profiler/EvaluationLocationTabSeparatedPrettyPrinter.cs +++ b/src/Build/Evaluation/Profiler/EvaluationLocationTabSeparatedPrettyPrinter.cs @@ -5,6 +5,8 @@ using System.Text; using Microsoft.Build.Framework.Profiler; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Profiler/EvaluationProfiler.cs b/src/Build/Evaluation/Profiler/EvaluationProfiler.cs index 1082b9e2876..a55ad7e1906 100644 --- a/src/Build/Evaluation/Profiler/EvaluationProfiler.cs +++ b/src/Build/Evaluation/Profiler/EvaluationProfiler.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Framework.Profiler; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/Profiler/ProfilerResultPrettyPrinter.cs b/src/Build/Evaluation/Profiler/ProfilerResultPrettyPrinter.cs index 43bd34b27f6..bdc3a95ee28 100644 --- a/src/Build/Evaluation/Profiler/ProfilerResultPrettyPrinter.cs +++ b/src/Build/Evaluation/Profiler/ProfilerResultPrettyPrinter.cs @@ -7,6 +7,8 @@ using System.Text; using Microsoft.Build.Framework.Profiler; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/ProjectChangedEventArgs.cs b/src/Build/Evaluation/ProjectChangedEventArgs.cs index 7683617b1bb..943697e432f 100644 --- a/src/Build/Evaluation/ProjectChangedEventArgs.cs +++ b/src/Build/Evaluation/ProjectChangedEventArgs.cs @@ -4,6 +4,8 @@ using System; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/ProjectParser.cs b/src/Build/Evaluation/ProjectParser.cs index 186ed1ddf4c..1f84c8f7602 100644 --- a/src/Build/Evaluation/ProjectParser.cs +++ b/src/Build/Evaluation/ProjectParser.cs @@ -11,6 +11,8 @@ using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Evaluation/ProjectRootElementCache.cs b/src/Build/Evaluation/ProjectRootElementCache.cs index a526ce4540b..8c4a2a95a9c 100644 --- a/src/Build/Evaluation/ProjectRootElementCache.cs +++ b/src/Build/Evaluation/ProjectRootElementCache.cs @@ -15,6 +15,8 @@ using Microsoft.Build.Internal; using OutOfProcNode = Microsoft.Build.Execution.OutOfProcNode; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/ProjectRootElementCacheBase.cs b/src/Build/Evaluation/ProjectRootElementCacheBase.cs index 5ac30a2b20e..ebc505ad699 100644 --- a/src/Build/Evaluation/ProjectRootElementCacheBase.cs +++ b/src/Build/Evaluation/ProjectRootElementCacheBase.cs @@ -4,6 +4,8 @@ using System; using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Evaluation { internal abstract class ProjectRootElementCacheBase diff --git a/src/Build/Evaluation/ProjectStringCache.cs b/src/Build/Evaluation/ProjectStringCache.cs index 32277f91fec..ee61fc8fd4d 100644 --- a/src/Build/Evaluation/ProjectStringCache.cs +++ b/src/Build/Evaluation/ProjectStringCache.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Collections; +#nullable disable + namespace Microsoft.Build.Construction { /// diff --git a/src/Build/Evaluation/ProjectXmlChangedEventArgs.cs b/src/Build/Evaluation/ProjectXmlChangedEventArgs.cs index 529c07069be..135c97beb40 100644 --- a/src/Build/Evaluation/ProjectXmlChangedEventArgs.cs +++ b/src/Build/Evaluation/ProjectXmlChangedEventArgs.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Construction; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/PropertyTrackingEvaluatorDataWrapper.cs b/src/Build/Evaluation/PropertyTrackingEvaluatorDataWrapper.cs index 54effc239c5..da81aaf21b5 100644 --- a/src/Build/Evaluation/PropertyTrackingEvaluatorDataWrapper.cs +++ b/src/Build/Evaluation/PropertyTrackingEvaluatorDataWrapper.cs @@ -13,6 +13,8 @@ using Microsoft.Build.Shared; using SdkResult = Microsoft.Build.BackEnd.SdkResolution.SdkResult; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/SemiColonTokenizer.cs b/src/Build/Evaluation/SemiColonTokenizer.cs index 625f2ae0487..b5e9eadba70 100644 --- a/src/Build/Evaluation/SemiColonTokenizer.cs +++ b/src/Build/Evaluation/SemiColonTokenizer.cs @@ -7,6 +7,8 @@ using Microsoft.NET.StringTools; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/SimpleProjectRootElementCache.cs b/src/Build/Evaluation/SimpleProjectRootElementCache.cs index 7e7700d1467..7864a3a5813 100644 --- a/src/Build/Evaluation/SimpleProjectRootElementCache.cs +++ b/src/Build/Evaluation/SimpleProjectRootElementCache.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Construction; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/StringMetadataTable.cs b/src/Build/Evaluation/StringMetadataTable.cs index 0064888281c..0b2001450ea 100644 --- a/src/Build/Evaluation/StringMetadataTable.cs +++ b/src/Build/Evaluation/StringMetadataTable.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Evaluation/ToolsetProvider.cs b/src/Build/Evaluation/ToolsetProvider.cs index c45a4d25034..a9d1ad339e6 100644 --- a/src/Build/Evaluation/ToolsetProvider.cs +++ b/src/Build/Evaluation/ToolsetProvider.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/FileSystem/DirectoryCacheFileSystemWrapper.cs b/src/Build/FileSystem/DirectoryCacheFileSystemWrapper.cs index 84c24fb02cc..a88d36f224c 100644 --- a/src/Build/FileSystem/DirectoryCacheFileSystemWrapper.cs +++ b/src/Build/FileSystem/DirectoryCacheFileSystemWrapper.cs @@ -12,6 +12,8 @@ using Path = Microsoft.IO.Path; #endif +#nullable disable + namespace Microsoft.Build.FileSystem { internal class DirectoryCacheFileSystemWrapper : IFileSystem diff --git a/src/Build/FileSystem/IDirectoryCache.cs b/src/Build/FileSystem/IDirectoryCache.cs index fb6e62c1b6a..428cd3159e0 100644 --- a/src/Build/FileSystem/IDirectoryCache.cs +++ b/src/Build/FileSystem/IDirectoryCache.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.FileSystem { /// diff --git a/src/Build/FileSystem/MSBuildFileSystemBase.cs b/src/Build/FileSystem/MSBuildFileSystemBase.cs index 8855cd50da4..d007f600c23 100644 --- a/src/Build/FileSystem/MSBuildFileSystemBase.cs +++ b/src/Build/FileSystem/MSBuildFileSystemBase.cs @@ -6,6 +6,8 @@ using System.Collections.Generic; using System.IO; +#nullable disable + namespace Microsoft.Build.FileSystem { /// diff --git a/src/Build/Globbing/CompositeGlob.cs b/src/Build/Globbing/CompositeGlob.cs index 4be643c1695..fb13d021aa5 100644 --- a/src/Build/Globbing/CompositeGlob.cs +++ b/src/Build/Globbing/CompositeGlob.cs @@ -7,6 +7,8 @@ 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 949e35a2ef4..4caec4a3a9d 100644 --- a/src/Build/Globbing/Extensions/MSBuildGlobExtensions.cs +++ b/src/Build/Globbing/Extensions/MSBuildGlobExtensions.cs @@ -4,6 +4,8 @@ using System.Collections.Generic; using Microsoft.Build.Globbing.Visitor; +#nullable disable + namespace Microsoft.Build.Globbing.Extensions { /// diff --git a/src/Build/Globbing/IMSBuildGlob.cs b/src/Build/Globbing/IMSBuildGlob.cs index c6b9279ab50..55a8c24c9d4 100644 --- a/src/Build/Globbing/IMSBuildGlob.cs +++ b/src/Build/Globbing/IMSBuildGlob.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Globbing { /// diff --git a/src/Build/Globbing/MSBuildGlob.cs b/src/Build/Globbing/MSBuildGlob.cs index 706933b8c43..ce624d60323 100644 --- a/src/Build/Globbing/MSBuildGlob.cs +++ b/src/Build/Globbing/MSBuildGlob.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Utilities; using Microsoft.NET.StringTools; +#nullable disable + namespace Microsoft.Build.Globbing { /// diff --git a/src/Build/Globbing/MSBuildGlobWithGaps.cs b/src/Build/Globbing/MSBuildGlobWithGaps.cs index fd6cf67baf4..26062969f0c 100644 --- a/src/Build/Globbing/MSBuildGlobWithGaps.cs +++ b/src/Build/Globbing/MSBuildGlobWithGaps.cs @@ -5,6 +5,8 @@ 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 972af2443ad..25b094d9438 100644 --- a/src/Build/Globbing/Visitor/GlobVisitor.cs +++ b/src/Build/Globbing/Visitor/GlobVisitor.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#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 da3db642dd4..417a8b56d49 100644 --- a/src/Build/Globbing/Visitor/ParsedGlobCollector.cs +++ b/src/Build/Globbing/Visitor/ParsedGlobCollector.cs @@ -1,5 +1,7 @@ using System.Collections.Immutable; +#nullable disable + namespace Microsoft.Build.Globbing.Visitor { internal class ParsedGlobCollector : GlobVisitor diff --git a/src/Build/Graph/GraphBuildRequestData.cs b/src/Build/Graph/GraphBuildRequestData.cs index 0a1e008820b..1477b097b63 100644 --- a/src/Build/Graph/GraphBuildRequestData.cs +++ b/src/Build/Graph/GraphBuildRequestData.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Graph { public record GraphBuildOptions diff --git a/src/Build/Graph/GraphBuildResult.cs b/src/Build/Graph/GraphBuildResult.cs index c7c2007a605..a37dd86dd1f 100644 --- a/src/Build/Graph/GraphBuildResult.cs +++ b/src/Build/Graph/GraphBuildResult.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.Execution; +#nullable disable + namespace Microsoft.Build.Graph { public sealed class GraphBuildResult diff --git a/src/Build/Graph/GraphBuildSubmission.cs b/src/Build/Graph/GraphBuildSubmission.cs index 02b68d8835e..9da8e4e97bb 100644 --- a/src/Build/Graph/GraphBuildSubmission.cs +++ b/src/Build/Graph/GraphBuildSubmission.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Graph { /// diff --git a/src/Build/Graph/GraphBuilder.cs b/src/Build/Graph/GraphBuilder.cs index 4f9c7d0879c..0e55dd3d119 100644 --- a/src/Build/Graph/GraphBuilder.cs +++ b/src/Build/Graph/GraphBuilder.cs @@ -16,6 +16,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Graph { internal class GraphBuilder diff --git a/src/Build/Graph/ParallelWorkSet.cs b/src/Build/Graph/ParallelWorkSet.cs index 488d33e0173..15010e607b6 100644 --- a/src/Build/Graph/ParallelWorkSet.cs +++ b/src/Build/Graph/ParallelWorkSet.cs @@ -7,6 +7,8 @@ using System.Threading; using System.Threading.Tasks; +#nullable disable + namespace Microsoft.Build.Graph { /// diff --git a/src/Build/Graph/ProjectGraph.cs b/src/Build/Graph/ProjectGraph.cs index 40cf6aee0ed..6d187b20e95 100644 --- a/src/Build/Graph/ProjectGraph.cs +++ b/src/Build/Graph/ProjectGraph.cs @@ -18,6 +18,8 @@ using Microsoft.Build.Shared.Debugging; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Graph { /// diff --git a/src/Build/Graph/ProjectGraphEntryPoint.cs b/src/Build/Graph/ProjectGraphEntryPoint.cs index 576bbcf0ff9..ae8586e6d6a 100644 --- a/src/Build/Graph/ProjectGraphEntryPoint.cs +++ b/src/Build/Graph/ProjectGraphEntryPoint.cs @@ -4,6 +4,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Graph { /// diff --git a/src/Build/Graph/ProjectGraphNode.cs b/src/Build/Graph/ProjectGraphNode.cs index 0a2280a1758..40e4a2b451e 100644 --- a/src/Build/Graph/ProjectGraphNode.cs +++ b/src/Build/Graph/ProjectGraphNode.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Graph { /// diff --git a/src/Build/Graph/ProjectInterpretation.cs b/src/Build/Graph/ProjectInterpretation.cs index 99362abab30..f7e949107d2 100644 --- a/src/Build/Graph/ProjectInterpretation.cs +++ b/src/Build/Graph/ProjectInterpretation.cs @@ -13,6 +13,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Graph { internal sealed class ProjectInterpretation diff --git a/src/Build/Instance/HostObjectException.cs b/src/Build/Instance/HostObjectException.cs index 5b669ae06de..14f8fecb9d6 100644 --- a/src/Build/Instance/HostObjectException.cs +++ b/src/Build/Instance/HostObjectException.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Execution { [Serializable] diff --git a/src/Build/Instance/HostServices.cs b/src/Build/Instance/HostServices.cs index a27e5787cfb..99d07305b77 100644 --- a/src/Build/Instance/HostServices.cs +++ b/src/Build/Instance/HostServices.cs @@ -10,6 +10,8 @@ using System.Linq; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/IRunningObjectTableWrapper.cs b/src/Build/Instance/IRunningObjectTableWrapper.cs index 5a3929bb13e..8007fa47c4a 100644 --- a/src/Build/Instance/IRunningObjectTableWrapper.cs +++ b/src/Build/Instance/IRunningObjectTableWrapper.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Execution { internal interface IRunningObjectTableWrapper diff --git a/src/Build/Instance/ProjectInstance.cs b/src/Build/Instance/ProjectInstance.cs index c3430ba548e..3777ecbec35 100644 --- a/src/Build/Instance/ProjectInstance.cs +++ b/src/Build/Instance/ProjectInstance.cs @@ -29,6 +29,8 @@ using ProjectItemInstanceFactory = Microsoft.Build.Execution.ProjectItemInstance.TaskItem.ProjectItemInstanceFactory; using SdkResult = Microsoft.Build.BackEnd.SdkResolution.SdkResult; +#nullable disable + namespace Microsoft.Build.Execution { using Utilities = Microsoft.Build.Internal.Utilities; diff --git a/src/Build/Instance/ProjectItemDefinitionInstance.cs b/src/Build/Instance/ProjectItemDefinitionInstance.cs index fcf5f799431..8c9c1f0f26c 100644 --- a/src/Build/Instance/ProjectItemDefinitionInstance.cs +++ b/src/Build/Instance/ProjectItemDefinitionInstance.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Evaluation; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectItemGroupTaskInstance.cs b/src/Build/Instance/ProjectItemGroupTaskInstance.cs index d22ea579d84..8473f7559b5 100644 --- a/src/Build/Instance/ProjectItemGroupTaskInstance.cs +++ b/src/Build/Instance/ProjectItemGroupTaskInstance.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectItemGroupTaskItemInstance.cs b/src/Build/Instance/ProjectItemGroupTaskItemInstance.cs index 2ba9a93a0e4..9eeda046676 100644 --- a/src/Build/Instance/ProjectItemGroupTaskItemInstance.cs +++ b/src/Build/Instance/ProjectItemGroupTaskItemInstance.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectItemGroupTaskMetadataInstance.cs b/src/Build/Instance/ProjectItemGroupTaskMetadataInstance.cs index f414ad75367..4ee2e3a30a0 100644 --- a/src/Build/Instance/ProjectItemGroupTaskMetadataInstance.cs +++ b/src/Build/Instance/ProjectItemGroupTaskMetadataInstance.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectItemInstance.cs b/src/Build/Instance/ProjectItemInstance.cs index db613c1a7aa..2932b6dd942 100644 --- a/src/Build/Instance/ProjectItemInstance.cs +++ b/src/Build/Instance/ProjectItemInstance.cs @@ -17,6 +17,8 @@ using Microsoft.Build.BackEnd; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectMetadataInstance.cs b/src/Build/Instance/ProjectMetadataInstance.cs index 6f9367bed45..a6e9912f5f1 100644 --- a/src/Build/Instance/ProjectMetadataInstance.cs +++ b/src/Build/Instance/ProjectMetadataInstance.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Evaluation; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectOnErrorInstance.cs b/src/Build/Instance/ProjectOnErrorInstance.cs index 778da933f1f..2b2a9f39147 100644 --- a/src/Build/Instance/ProjectOnErrorInstance.cs +++ b/src/Build/Instance/ProjectOnErrorInstance.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectPropertyGroupTaskInstance.cs b/src/Build/Instance/ProjectPropertyGroupTaskInstance.cs index d899bf7eeb8..77a2b30e416 100644 --- a/src/Build/Instance/ProjectPropertyGroupTaskInstance.cs +++ b/src/Build/Instance/ProjectPropertyGroupTaskInstance.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectPropertyGroupTaskPropertyInstance.cs b/src/Build/Instance/ProjectPropertyGroupTaskPropertyInstance.cs index 33e254f876c..9fd8e974939 100644 --- a/src/Build/Instance/ProjectPropertyGroupTaskPropertyInstance.cs +++ b/src/Build/Instance/ProjectPropertyGroupTaskPropertyInstance.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectPropertyInstance.cs b/src/Build/Instance/ProjectPropertyInstance.cs index 037cdac44a2..1eb578565e7 100644 --- a/src/Build/Instance/ProjectPropertyInstance.cs +++ b/src/Build/Instance/ProjectPropertyInstance.cs @@ -11,6 +11,8 @@ using ReservedPropertyNames = Microsoft.Build.Internal.ReservedPropertyNames; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectTargetInstance.cs b/src/Build/Instance/ProjectTargetInstance.cs index dd3dffc3cc5..d485da28e85 100644 --- a/src/Build/Instance/ProjectTargetInstance.cs +++ b/src/Build/Instance/ProjectTargetInstance.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared; using ObjectModel = System.Collections.ObjectModel; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectTargetInstanceChild.cs b/src/Build/Instance/ProjectTargetInstanceChild.cs index 8c4a36af614..9721855e030 100644 --- a/src/Build/Instance/ProjectTargetInstanceChild.cs +++ b/src/Build/Instance/ProjectTargetInstanceChild.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectTaskInstance.cs b/src/Build/Instance/ProjectTaskInstance.cs index 5df87bb29bb..541e5c1ada4 100644 --- a/src/Build/Instance/ProjectTaskInstance.cs +++ b/src/Build/Instance/ProjectTaskInstance.cs @@ -9,6 +9,8 @@ using System; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectTaskInstanceChild.cs b/src/Build/Instance/ProjectTaskInstanceChild.cs index e832eddaa9f..cfd33563367 100644 --- a/src/Build/Instance/ProjectTaskInstanceChild.cs +++ b/src/Build/Instance/ProjectTaskInstanceChild.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectTaskOutputItemInstance.cs b/src/Build/Instance/ProjectTaskOutputItemInstance.cs index c979bcbca24..e1648addda9 100644 --- a/src/Build/Instance/ProjectTaskOutputItemInstance.cs +++ b/src/Build/Instance/ProjectTaskOutputItemInstance.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ProjectTaskOutputPropertyInstance.cs b/src/Build/Instance/ProjectTaskOutputPropertyInstance.cs index 2017af40368..21bf266530d 100644 --- a/src/Build/Instance/ProjectTaskOutputPropertyInstance.cs +++ b/src/Build/Instance/ProjectTaskOutputPropertyInstance.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/ReflectableTaskPropertyInfo.cs b/src/Build/Instance/ReflectableTaskPropertyInfo.cs index 93e9594b6ed..571ba866933 100644 --- a/src/Build/Instance/ReflectableTaskPropertyInfo.cs +++ b/src/Build/Instance/ReflectableTaskPropertyInfo.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/RunningObjectTable.cs b/src/Build/Instance/RunningObjectTable.cs index 976ccde9eb0..5e0cc781414 100644 --- a/src/Build/Instance/RunningObjectTable.cs +++ b/src/Build/Instance/RunningObjectTable.cs @@ -6,6 +6,8 @@ using System.Threading; using System.Threading.Tasks; +#nullable disable + namespace Microsoft.Build.Execution { #if FEATURE_COM_INTEROP diff --git a/src/Build/Instance/TaskFactories/AssemblyTaskFactory.cs b/src/Build/Instance/TaskFactories/AssemblyTaskFactory.cs index 4596be57f52..bb61c6bd888 100644 --- a/src/Build/Instance/TaskFactories/AssemblyTaskFactory.cs +++ b/src/Build/Instance/TaskFactories/AssemblyTaskFactory.cs @@ -14,6 +14,8 @@ using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; using TaskLoggingContext = Microsoft.Build.BackEnd.Logging.TaskLoggingContext; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/Instance/TaskFactories/TaskHostTask.cs b/src/Build/Instance/TaskFactories/TaskHostTask.cs index 99bc7663895..ce29ccbed30 100644 --- a/src/Build/Instance/TaskFactories/TaskHostTask.cs +++ b/src/Build/Instance/TaskFactories/TaskHostTask.cs @@ -14,6 +14,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.BackEnd.Logging; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/Instance/TaskFactoryLoggingHost.cs b/src/Build/Instance/TaskFactoryLoggingHost.cs index 945fe1a875f..ead6db61dc9 100644 --- a/src/Build/Instance/TaskFactoryLoggingHost.cs +++ b/src/Build/Instance/TaskFactoryLoggingHost.cs @@ -13,6 +13,8 @@ using System.Reflection; using Microsoft.Build.BackEnd.Logging; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Build/Instance/TaskFactoryWrapper.cs b/src/Build/Instance/TaskFactoryWrapper.cs index f097932a8e6..72bf3ec5624 100644 --- a/src/Build/Instance/TaskFactoryWrapper.cs +++ b/src/Build/Instance/TaskFactoryWrapper.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Instance/TaskRegistry.cs b/src/Build/Instance/TaskRegistry.cs index a44626cccae..1690953101c 100644 --- a/src/Build/Instance/TaskRegistry.cs +++ b/src/Build/Instance/TaskRegistry.cs @@ -23,6 +23,8 @@ using Microsoft.NET.StringTools; +#nullable disable + namespace Microsoft.Build.Execution { /// diff --git a/src/Build/Logging/BaseConsoleLogger.cs b/src/Build/Logging/BaseConsoleLogger.cs index 1f7480ffc0c..e3b892f2b6e 100644 --- a/src/Build/Logging/BaseConsoleLogger.cs +++ b/src/Build/Logging/BaseConsoleLogger.cs @@ -18,6 +18,8 @@ using ColorResetter = Microsoft.Build.Logging.ColorResetter; using WriteHandler = Microsoft.Build.Logging.WriteHandler; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { #region Delegates diff --git a/src/Build/Logging/BinaryLogger/BinaryLogRecordKind.cs b/src/Build/Logging/BinaryLogger/BinaryLogRecordKind.cs index dcb22fc4979..5ea0941cde1 100644 --- a/src/Build/Logging/BinaryLogger/BinaryLogRecordKind.cs +++ b/src/Build/Logging/BinaryLogger/BinaryLogRecordKind.cs @@ -1,4 +1,6 @@ -namespace Microsoft.Build.Logging +#nullable disable + +namespace Microsoft.Build.Logging { internal enum BinaryLogRecordKind { diff --git a/src/Build/Logging/BinaryLogger/BinaryLogReplayEventSource.cs b/src/Build/Logging/BinaryLogger/BinaryLogReplayEventSource.cs index e4dc9c80b9c..62f72ae2917 100644 --- a/src/Build/Logging/BinaryLogger/BinaryLogReplayEventSource.cs +++ b/src/Build/Logging/BinaryLogger/BinaryLogReplayEventSource.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/BinaryLogger/BinaryLogger.cs b/src/Build/Logging/BinaryLogger/BinaryLogger.cs index dac426db8b4..f6b788a8d1b 100644 --- a/src/Build/Logging/BinaryLogger/BinaryLogger.cs +++ b/src/Build/Logging/BinaryLogger/BinaryLogger.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/BinaryLogger/BuildEventArgsDispatcher.cs b/src/Build/Logging/BinaryLogger/BuildEventArgsDispatcher.cs index acccfd531d6..3eb9fc9f65c 100644 --- a/src/Build/Logging/BinaryLogger/BuildEventArgsDispatcher.cs +++ b/src/Build/Logging/BinaryLogger/BuildEventArgsDispatcher.cs @@ -1,5 +1,7 @@ using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/BinaryLogger/BuildEventArgsFieldFlags.cs b/src/Build/Logging/BinaryLogger/BuildEventArgsFieldFlags.cs index a9f311ad1fd..9e9d1a9cd0f 100644 --- a/src/Build/Logging/BinaryLogger/BuildEventArgsFieldFlags.cs +++ b/src/Build/Logging/BinaryLogger/BuildEventArgsFieldFlags.cs @@ -1,5 +1,7 @@ using System; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/BinaryLogger/BuildEventArgsFields.cs b/src/Build/Logging/BinaryLogger/BuildEventArgsFields.cs index be6bfe622a5..898ea06c5ca 100644 --- a/src/Build/Logging/BinaryLogger/BuildEventArgsFields.cs +++ b/src/Build/Logging/BinaryLogger/BuildEventArgsFields.cs @@ -1,6 +1,8 @@ using System; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/BinaryLogger/BuildEventArgsReader.cs b/src/Build/Logging/BinaryLogger/BuildEventArgsReader.cs index c6be1d59db3..65e0658cce7 100644 --- a/src/Build/Logging/BinaryLogger/BuildEventArgsReader.cs +++ b/src/Build/Logging/BinaryLogger/BuildEventArgsReader.cs @@ -13,6 +13,8 @@ using Microsoft.Build.Framework.Profiler; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/BinaryLogger/BuildEventArgsWriter.cs b/src/Build/Logging/BinaryLogger/BuildEventArgsWriter.cs index 20583b991b0..68920531852 100644 --- a/src/Build/Logging/BinaryLogger/BuildEventArgsWriter.cs +++ b/src/Build/Logging/BinaryLogger/BuildEventArgsWriter.cs @@ -18,6 +18,8 @@ using Microsoft.Build.Internal; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/BinaryLogger/ProjectImportsCollector.cs b/src/Build/Logging/BinaryLogger/ProjectImportsCollector.cs index 59553953c79..e56f4750920 100644 --- a/src/Build/Logging/BinaryLogger/ProjectImportsCollector.cs +++ b/src/Build/Logging/BinaryLogger/ProjectImportsCollector.cs @@ -5,6 +5,8 @@ using System.Text; using System.Threading.Tasks; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/ConsoleLogger.cs b/src/Build/Logging/ConsoleLogger.cs index c6358a9badb..543667811bf 100644 --- a/src/Build/Logging/ConsoleLogger.cs +++ b/src/Build/Logging/ConsoleLogger.cs @@ -10,6 +10,8 @@ using SerialConsoleLogger = Microsoft.Build.BackEnd.Logging.SerialConsoleLogger; using ParallelConsoleLogger = Microsoft.Build.BackEnd.Logging.ParallelConsoleLogger; +#nullable disable + namespace Microsoft.Build.Logging { #region Delegates diff --git a/src/Build/Logging/DistributedLoggers/ConfigurableForwardingLogger.cs b/src/Build/Logging/DistributedLoggers/ConfigurableForwardingLogger.cs index 83c2499aefa..65a7ccca8ff 100644 --- a/src/Build/Logging/DistributedLoggers/ConfigurableForwardingLogger.cs +++ b/src/Build/Logging/DistributedLoggers/ConfigurableForwardingLogger.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/DistributedLoggers/DistributedFileLogger.cs b/src/Build/Logging/DistributedLoggers/DistributedFileLogger.cs index 72f225241d3..7318a086b81 100644 --- a/src/Build/Logging/DistributedLoggers/DistributedFileLogger.cs +++ b/src/Build/Logging/DistributedLoggers/DistributedFileLogger.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/EvaluationLocationIdAgnosticComparer.cs b/src/Build/Logging/EvaluationLocationIdAgnosticComparer.cs index 7160c103006..c5bcc3c61ad 100644 --- a/src/Build/Logging/EvaluationLocationIdAgnosticComparer.cs +++ b/src/Build/Logging/EvaluationLocationIdAgnosticComparer.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.Framework.Profiler; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/FileLogger.cs b/src/Build/Logging/FileLogger.cs index 96732da2b2d..100370273f7 100644 --- a/src/Build/Logging/FileLogger.cs +++ b/src/Build/Logging/FileLogger.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/LogFormatter.cs b/src/Build/Logging/LogFormatter.cs index 85d9e4dc31c..5dfc1207455 100644 --- a/src/Build/Logging/LogFormatter.cs +++ b/src/Build/Logging/LogFormatter.cs @@ -5,6 +5,8 @@ using System.Diagnostics; using System.Globalization; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/Logging/LoggerDescription.cs b/src/Build/Logging/LoggerDescription.cs index f50a53d0e68..32d7bfc98c5 100644 --- a/src/Build/Logging/LoggerDescription.cs +++ b/src/Build/Logging/LoggerDescription.cs @@ -12,6 +12,8 @@ using InternalLoggerException = Microsoft.Build.Exceptions.InternalLoggerException; using System.Linq; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/NullCentralLogger.cs b/src/Build/Logging/NullCentralLogger.cs index de64da650a1..5946cb57a13 100644 --- a/src/Build/Logging/NullCentralLogger.cs +++ b/src/Build/Logging/NullCentralLogger.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/Logging/ParallelLogger/ConsoleOutputAligner.cs b/src/Build/Logging/ParallelLogger/ConsoleOutputAligner.cs index 9f839cfff5f..84c2508d8e1 100644 --- a/src/Build/Logging/ParallelLogger/ConsoleOutputAligner.cs +++ b/src/Build/Logging/ParallelLogger/ConsoleOutputAligner.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System; using System.Diagnostics; using System.Text; diff --git a/src/Build/Logging/ParallelLogger/ParallelConsoleLogger.cs b/src/Build/Logging/ParallelLogger/ParallelConsoleLogger.cs index a68b477bfdc..e82a335b718 100644 --- a/src/Build/Logging/ParallelLogger/ParallelConsoleLogger.cs +++ b/src/Build/Logging/ParallelLogger/ParallelConsoleLogger.cs @@ -13,6 +13,8 @@ using ColorResetter = Microsoft.Build.Logging.ColorResetter; using WriteHandler = Microsoft.Build.Logging.WriteHandler; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/Logging/ParallelLogger/ParallelLoggerHelpers.cs b/src/Build/Logging/ParallelLogger/ParallelLoggerHelpers.cs index 8b9c74e5085..5013b85b0dd 100644 --- a/src/Build/Logging/ParallelLogger/ParallelLoggerHelpers.cs +++ b/src/Build/Logging/ParallelLogger/ParallelLoggerHelpers.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using System.Globalization; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Build/Logging/ProfilerLogger.cs b/src/Build/Logging/ProfilerLogger.cs index 5d0ed444b07..ac2aea73480 100644 --- a/src/Build/Logging/ProfilerLogger.cs +++ b/src/Build/Logging/ProfilerLogger.cs @@ -13,6 +13,8 @@ using Microsoft.Build.Framework.Profiler; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Logging { /// diff --git a/src/Build/Logging/SerialConsoleLogger.cs b/src/Build/Logging/SerialConsoleLogger.cs index 4784c183001..af18d6813ed 100644 --- a/src/Build/Logging/SerialConsoleLogger.cs +++ b/src/Build/Logging/SerialConsoleLogger.cs @@ -12,6 +12,8 @@ using ColorResetter = Microsoft.Build.Logging.ColorResetter; using WriteHandler = Microsoft.Build.Logging.WriteHandler; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { internal class SerialConsoleLogger : BaseConsoleLogger diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectElementContainerLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectElementContainerLink.cs index 3d5af435468..680ab19717c 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectElementContainerLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectElementContainerLink.cs @@ -2,6 +2,8 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectElementLink.cs b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectElementLink.cs index 8994636ccef..4a244d9e504 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectElementLink.cs @@ -5,6 +5,8 @@ using System.Xml; 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 b02191f7523..73aa5b17d8f 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectExtensionsElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectExtensionsElementLink.cs @@ -3,6 +3,8 @@ 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 da868640171..2f86d8d8722 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectImportElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectImportElementLink.cs @@ -3,6 +3,8 @@ 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 fadc6bba638..42e6a9220e6 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectItemElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectItemElementLink.cs @@ -3,6 +3,8 @@ 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 1b9f8247f30..61acf75ae4b 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectMetadataElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectMetadataElementLink.cs @@ -3,6 +3,8 @@ 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 484c0cac626..6350b741c79 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectPropertyElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectPropertyElementLink.cs @@ -3,6 +3,8 @@ 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 c99cbd978e9..1408fbfe666 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectRootElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectRootElementLink.cs @@ -7,6 +7,8 @@ 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 e1b7156316c..5e1e0b7e430 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectTargetElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectTargetElementLink.cs @@ -3,6 +3,8 @@ 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 2ebe6e8feb6..eb51368004b 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectTaskElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectTaskElementLink.cs @@ -4,6 +4,8 @@ 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 982ff434471..3d8a20ff82b 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectUsingTaskBodyElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectUsingTaskBodyElementLink.cs @@ -3,6 +3,8 @@ 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 c016f12551f..21dd119b625 100644 --- a/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectUsingTaskParameterElementLink.cs +++ b/src/Build/ObjectModelRemoting/ConstructionObjectLinks/ProjectUsingTaskParameterElementLink.cs @@ -3,6 +3,8 @@ 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 83cad7f28fe..7c24d5e39b7 100644 --- a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemDefinitionLink.cs +++ b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemDefinitionLink.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Evaluation; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemLink.cs b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemLink.cs index 3c7fa86178f..d19126d1c41 100644 --- a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemLink.cs +++ b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectItemLink.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Evaluation; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectLink.cs b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectLink.cs index c89d4ee4323..68e3609784b 100644 --- a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectLink.cs +++ b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectLink.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Logging; +#nullable disable + namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectMetadataLink.cs b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectMetadataLink.cs index 0de0274f582..b26bdcf2f47 100644 --- a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectMetadataLink.cs +++ b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectMetadataLink.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Construction; using Microsoft.Build.Evaluation; +#nullable disable + namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectPropertyLink.cs b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectPropertyLink.cs index 74fac4edbe2..a51ba9ad286 100644 --- a/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectPropertyLink.cs +++ b/src/Build/ObjectModelRemoting/DefinitionObjectsLinks/ProjectPropertyLink.cs @@ -4,6 +4,8 @@ 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 9b35ad1f429..745c21994a2 100644 --- a/src/Build/ObjectModelRemoting/ExternalProjectsProvider.cs +++ b/src/Build/ObjectModelRemoting/ExternalProjectsProvider.cs @@ -4,6 +4,8 @@ using System.Collections.Generic; using Microsoft.Build.Evaluation; +#nullable disable + namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/ObjectModelRemoting/LinkedObjectFactory.cs b/src/Build/ObjectModelRemoting/LinkedObjectFactory.cs index 2312e0d8be1..6d3f6a05138 100644 --- a/src/Build/ObjectModelRemoting/LinkedObjectFactory.cs +++ b/src/Build/ObjectModelRemoting/LinkedObjectFactory.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.ObjectModelRemoting { /// diff --git a/src/Build/Resources/AssemblyResources.cs b/src/Build/Resources/AssemblyResources.cs index a4a5c050267..76db7b0f1b2 100644 --- a/src/Build/Resources/AssemblyResources.cs +++ b/src/Build/Resources/AssemblyResources.cs @@ -5,6 +5,8 @@ using System.Reflection; using System.Globalization; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Build/Resources/Constants.cs b/src/Build/Resources/Constants.cs index a327906f7ef..ba324f8851b 100644 --- a/src/Build/Resources/Constants.cs +++ b/src/Build/Resources/Constants.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Evaluation; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Internal { /// diff --git a/src/Build/Resources/MSBuildAssemblyFileVersion.cs b/src/Build/Resources/MSBuildAssemblyFileVersion.cs index 18581de0d1b..be8d883559e 100644 --- a/src/Build/Resources/MSBuildAssemblyFileVersion.cs +++ b/src/Build/Resources/MSBuildAssemblyFileVersion.cs @@ -4,6 +4,8 @@ using System; using System.Reflection; +#nullable disable + namespace Microsoft.Build.Internal { /// diff --git a/src/Build/Utilities/EngineFileUtilities.cs b/src/Build/Utilities/EngineFileUtilities.cs index 81948ee46eb..5ee535bc9b7 100644 --- a/src/Build/Utilities/EngineFileUtilities.cs +++ b/src/Build/Utilities/EngineFileUtilities.cs @@ -11,6 +11,8 @@ using System.Text.RegularExpressions; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Internal { internal static class EngineFileUtilities diff --git a/src/Build/Utilities/FileSpecMatchTester.cs b/src/Build/Utilities/FileSpecMatchTester.cs index 281b0278888..f3c56d13061 100644 --- a/src/Build/Utilities/FileSpecMatchTester.cs +++ b/src/Build/Utilities/FileSpecMatchTester.cs @@ -7,6 +7,8 @@ using System.IO; using System.Text.RegularExpressions; +#nullable disable + namespace Microsoft.Build.Internal { internal readonly struct FileSpecMatcherTester diff --git a/src/Build/Utilities/ImmutableCollectionsExtensions.cs b/src/Build/Utilities/ImmutableCollectionsExtensions.cs index 242c5248400..6857e5c48eb 100644 --- a/src/Build/Utilities/ImmutableCollectionsExtensions.cs +++ b/src/Build/Utilities/ImmutableCollectionsExtensions.cs @@ -7,6 +7,8 @@ // provided by Linq. The immutable collections library includes ImmutableArrayExtensions // which is also in this namespace. +#nullable disable + namespace System.Linq { internal static class ImmutableCollectionsExtensions diff --git a/src/Build/Utilities/NuGetFrameworkWrapper.cs b/src/Build/Utilities/NuGetFrameworkWrapper.cs index a318ddb8117..4dd0453f567 100644 --- a/src/Build/Utilities/NuGetFrameworkWrapper.cs +++ b/src/Build/Utilities/NuGetFrameworkWrapper.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Build/Utilities/RegistryKeyWrapper.cs b/src/Build/Utilities/RegistryKeyWrapper.cs index c1503c698ef..3257b6eb229 100644 --- a/src/Build/Utilities/RegistryKeyWrapper.cs +++ b/src/Build/Utilities/RegistryKeyWrapper.cs @@ -8,6 +8,8 @@ using Microsoft.Win32; using RegistryException = Microsoft.Build.Exceptions.RegistryException; +#nullable disable + namespace Microsoft.Build.Internal { /// diff --git a/src/Build/Utilities/SimpleVersion.cs b/src/Build/Utilities/SimpleVersion.cs index e277165f314..052add40c0a 100644 --- a/src/Build/Utilities/SimpleVersion.cs +++ b/src/Build/Utilities/SimpleVersion.cs @@ -6,6 +6,8 @@ using System.Diagnostics; using System.Globalization; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Build/Utilities/Utilities.cs b/src/Build/Utilities/Utilities.cs index 325dc50740a..188c93e2bc9 100644 --- a/src/Build/Utilities/Utilities.cs +++ b/src/Build/Utilities/Utilities.cs @@ -17,6 +17,8 @@ using Toolset = Microsoft.Build.Evaluation.Toolset; using XmlElementWithLocation = Microsoft.Build.Construction.XmlElementWithLocation; +#nullable disable + namespace Microsoft.Build.Internal { /// diff --git a/src/Build/Xml/ProjectXmlUtilities.XmlElementChildIterator.cs b/src/Build/Xml/ProjectXmlUtilities.XmlElementChildIterator.cs index c139c1366fd..022027b249a 100644 --- a/src/Build/Xml/ProjectXmlUtilities.XmlElementChildIterator.cs +++ b/src/Build/Xml/ProjectXmlUtilities.XmlElementChildIterator.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Construction; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Internal { partial class ProjectXmlUtilities diff --git a/src/Build/Xml/ProjectXmlUtilities.cs b/src/Build/Xml/ProjectXmlUtilities.cs index 3c1528a3064..7dec7be9239 100644 --- a/src/Build/Xml/ProjectXmlUtilities.cs +++ b/src/Build/Xml/ProjectXmlUtilities.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Internal { /// diff --git a/src/Build/Xml/XmlReaderExtension.cs b/src/Build/Xml/XmlReaderExtension.cs index aa8e186f838..56b29744664 100644 --- a/src/Build/Xml/XmlReaderExtension.cs +++ b/src/Build/Xml/XmlReaderExtension.cs @@ -4,6 +4,8 @@ using System.Xml; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Internal { /// diff --git a/src/Deprecated/Conversion/Microsoft.Build.Conversion.csproj b/src/Deprecated/Conversion/Microsoft.Build.Conversion.csproj index 57e9ef80921..58ad5723984 100644 --- a/src/Deprecated/Conversion/Microsoft.Build.Conversion.csproj +++ b/src/Deprecated/Conversion/Microsoft.Build.Conversion.csproj @@ -1,4 +1,4 @@ - + Microsoft.Build.Conversion.Core $(FullFrameworkTFM) @@ -8,6 +8,7 @@ This package contains the $(MSBuildProjectName) assembly which contains logic for converting projects. NOTE: This assembly is deprecated. false $(NoWarn);1570;1572;1573;1587 + disable diff --git a/src/Deprecated/Engine/Microsoft.Build.Engine.csproj b/src/Deprecated/Engine/Microsoft.Build.Engine.csproj index 909942a9425..123a2e664f5 100644 --- a/src/Deprecated/Engine/Microsoft.Build.Engine.csproj +++ b/src/Deprecated/Engine/Microsoft.Build.Engine.csproj @@ -1,4 +1,4 @@ - + $(FullFrameworkTFM) $(NoWarn);618 @@ -14,6 +14,7 @@ This package contains the $(MSBuildProjectName) assembly which contains the legacy compatibility shim for the MSBuild engine. NOTE: This assembly is deprecated. false $(NoWarn);1570;1572;1573;1587 + disable diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 43f1e87e983..a96fe427c62 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -4,6 +4,7 @@ latest + enable true diff --git a/src/Framework.UnitTests/Attribute_Tests.cs b/src/Framework.UnitTests/Attribute_Tests.cs index 7e30539fb15..775aedc3dfa 100644 --- a/src/Framework.UnitTests/Attribute_Tests.cs +++ b/src/Framework.UnitTests/Attribute_Tests.cs @@ -7,6 +7,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class AttributeTests diff --git a/src/Framework.UnitTests/BuildErrorEventArgs_Tests.cs b/src/Framework.UnitTests/BuildErrorEventArgs_Tests.cs index 55015b677ef..cdbbb599b85 100644 --- a/src/Framework.UnitTests/BuildErrorEventArgs_Tests.cs +++ b/src/Framework.UnitTests/BuildErrorEventArgs_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/BuildFinishedEventArgs_Tests.cs b/src/Framework.UnitTests/BuildFinishedEventArgs_Tests.cs index c1ec13f0f6c..2bf43e98406 100644 --- a/src/Framework.UnitTests/BuildFinishedEventArgs_Tests.cs +++ b/src/Framework.UnitTests/BuildFinishedEventArgs_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/BuildMessageEventArgs_Tests.cs b/src/Framework.UnitTests/BuildMessageEventArgs_Tests.cs index 79c1ec3a544..7ae7d967b34 100644 --- a/src/Framework.UnitTests/BuildMessageEventArgs_Tests.cs +++ b/src/Framework.UnitTests/BuildMessageEventArgs_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/BuildStartedEventArgs_Tests.cs b/src/Framework.UnitTests/BuildStartedEventArgs_Tests.cs index 1b09d862187..d90cc0c30d2 100644 --- a/src/Framework.UnitTests/BuildStartedEventArgs_Tests.cs +++ b/src/Framework.UnitTests/BuildStartedEventArgs_Tests.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/BuildWarningEventArgs_Tests.cs b/src/Framework.UnitTests/BuildWarningEventArgs_Tests.cs index ecb02ac6e2c..ceadce87f69 100644 --- a/src/Framework.UnitTests/BuildWarningEventArgs_Tests.cs +++ b/src/Framework.UnitTests/BuildWarningEventArgs_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/CriticalBuildMessageEventArgs_Tests.cs b/src/Framework.UnitTests/CriticalBuildMessageEventArgs_Tests.cs index 5a040878d73..8f6cf3d8a76 100644 --- a/src/Framework.UnitTests/CriticalBuildMessageEventArgs_Tests.cs +++ b/src/Framework.UnitTests/CriticalBuildMessageEventArgs_Tests.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/CustomEventArgSerialization_Tests.cs b/src/Framework.UnitTests/CustomEventArgSerialization_Tests.cs index b8893caabde..482c530d587 100644 --- a/src/Framework.UnitTests/CustomEventArgSerialization_Tests.cs +++ b/src/Framework.UnitTests/CustomEventArgSerialization_Tests.cs @@ -10,6 +10,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class CustomEventArgSerialization_Tests : IDisposable diff --git a/src/Framework.UnitTests/EventArgs_Tests.cs b/src/Framework.UnitTests/EventArgs_Tests.cs index 69d90df50b3..aeab16776af 100644 --- a/src/Framework.UnitTests/EventArgs_Tests.cs +++ b/src/Framework.UnitTests/EventArgs_Tests.cs @@ -8,6 +8,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/ExternalProjectFinishedEventArgs_Tests.cs b/src/Framework.UnitTests/ExternalProjectFinishedEventArgs_Tests.cs index 16c0ae5a682..d9cfee51e0c 100644 --- a/src/Framework.UnitTests/ExternalProjectFinishedEventArgs_Tests.cs +++ b/src/Framework.UnitTests/ExternalProjectFinishedEventArgs_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/ExternalProjectStartedEventArgs_Tests.cs b/src/Framework.UnitTests/ExternalProjectStartedEventArgs_Tests.cs index 85ac7a761d3..9f94de41320 100644 --- a/src/Framework.UnitTests/ExternalProjectStartedEventArgs_Tests.cs +++ b/src/Framework.UnitTests/ExternalProjectStartedEventArgs_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/FileClassifier_Tests.cs b/src/Framework.UnitTests/FileClassifier_Tests.cs index 1a48973a067..de8585434e0 100644 --- a/src/Framework.UnitTests/FileClassifier_Tests.cs +++ b/src/Framework.UnitTests/FileClassifier_Tests.cs @@ -6,6 +6,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.Framework.UnitTests { public class FileClassifierTests diff --git a/src/Framework.UnitTests/LoggerException_Tests.cs b/src/Framework.UnitTests/LoggerException_Tests.cs index f6fbce644a2..f7f9b9023ea 100644 --- a/src/Framework.UnitTests/LoggerException_Tests.cs +++ b/src/Framework.UnitTests/LoggerException_Tests.cs @@ -9,6 +9,8 @@ using Xunit; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests { public class LoggerExceptionTests diff --git a/src/Framework.UnitTests/ProjectFinishedEventArgs_Tests.cs b/src/Framework.UnitTests/ProjectFinishedEventArgs_Tests.cs index cfbe2cdaf2c..94a52973afb 100644 --- a/src/Framework.UnitTests/ProjectFinishedEventArgs_Tests.cs +++ b/src/Framework.UnitTests/ProjectFinishedEventArgs_Tests.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/ProjectStartedEventArgs_Tests.cs b/src/Framework.UnitTests/ProjectStartedEventArgs_Tests.cs index fff513a82c6..4971021b470 100644 --- a/src/Framework.UnitTests/ProjectStartedEventArgs_Tests.cs +++ b/src/Framework.UnitTests/ProjectStartedEventArgs_Tests.cs @@ -8,6 +8,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/SdkReference_Tests.cs b/src/Framework.UnitTests/SdkReference_Tests.cs index a6d9238c30a..dbcb6a68f7e 100644 --- a/src/Framework.UnitTests/SdkReference_Tests.cs +++ b/src/Framework.UnitTests/SdkReference_Tests.cs @@ -4,6 +4,8 @@ using Xunit; using Shouldly; +#nullable disable + namespace Microsoft.Build.Framework.UnitTests { public class SdkReference_Tests diff --git a/src/Framework.UnitTests/TargetFinishedEventArgs_Tests.cs b/src/Framework.UnitTests/TargetFinishedEventArgs_Tests.cs index 3c353898831..c69a345484f 100644 --- a/src/Framework.UnitTests/TargetFinishedEventArgs_Tests.cs +++ b/src/Framework.UnitTests/TargetFinishedEventArgs_Tests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/TargetStartedEventArgs_Tests.cs b/src/Framework.UnitTests/TargetStartedEventArgs_Tests.cs index bd74d35ae0e..3706d0eb554 100644 --- a/src/Framework.UnitTests/TargetStartedEventArgs_Tests.cs +++ b/src/Framework.UnitTests/TargetStartedEventArgs_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/TaskCommandLineEventArgs_Tests.cs b/src/Framework.UnitTests/TaskCommandLineEventArgs_Tests.cs index 5ab233457da..755f6b098b7 100644 --- a/src/Framework.UnitTests/TaskCommandLineEventArgs_Tests.cs +++ b/src/Framework.UnitTests/TaskCommandLineEventArgs_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/TaskFinishedEventArgs_Tests.cs b/src/Framework.UnitTests/TaskFinishedEventArgs_Tests.cs index fa817280573..2c528d3ea90 100644 --- a/src/Framework.UnitTests/TaskFinishedEventArgs_Tests.cs +++ b/src/Framework.UnitTests/TaskFinishedEventArgs_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework.UnitTests/TaskStartedEventArgs_Tests.cs b/src/Framework.UnitTests/TaskStartedEventArgs_Tests.cs index 81bb4709fc1..6bdd960c208 100644 --- a/src/Framework.UnitTests/TaskStartedEventArgs_Tests.cs +++ b/src/Framework.UnitTests/TaskStartedEventArgs_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Framework/AssemblyUtilities.cs b/src/Framework/AssemblyUtilities.cs index cc87eb6448a..57f9c13fe4d 100644 --- a/src/Framework/AssemblyUtilities.cs +++ b/src/Framework/AssemblyUtilities.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Framework; // Declare this to get init properties. See https://github.com/dotnet/roslyn/issues/45510#issuecomment-694977239 +#nullable disable + namespace System.Runtime.CompilerServices { internal static class IsExternalInit { } diff --git a/src/Framework/BuildEngineResult.cs b/src/Framework/BuildEngineResult.cs index 3035212b8cc..7d1af72ffaa 100644 --- a/src/Framework/BuildEngineResult.cs +++ b/src/Framework/BuildEngineResult.cs @@ -5,6 +5,8 @@ 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 fae6127700e..9743b2a5eab 100644 --- a/src/Framework/BuildEnvironmentState.cs +++ b/src/Framework/BuildEnvironmentState.cs @@ -1,6 +1,8 @@ // 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/BuildErrorEventArgs.cs b/src/Framework/BuildErrorEventArgs.cs index 4cbbb4106d6..c8b9e23f432 100644 --- a/src/Framework/BuildErrorEventArgs.cs +++ b/src/Framework/BuildErrorEventArgs.cs @@ -5,6 +5,8 @@ using System.IO; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/BuildEventArgs.cs b/src/Framework/BuildEventArgs.cs index 0aaa6f0baaf..40d31995e38 100644 --- a/src/Framework/BuildEventArgs.cs +++ b/src/Framework/BuildEventArgs.cs @@ -7,6 +7,8 @@ using System.Text; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/BuildEventContext.cs b/src/Framework/BuildEventContext.cs index 0cda93d76c6..52693a4fa70 100644 --- a/src/Framework/BuildEventContext.cs +++ b/src/Framework/BuildEventContext.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/BuildFinishedEventArgs.cs b/src/Framework/BuildFinishedEventArgs.cs index 198b7df2034..1647591416c 100644 --- a/src/Framework/BuildFinishedEventArgs.cs +++ b/src/Framework/BuildFinishedEventArgs.cs @@ -4,6 +4,8 @@ using System; using System.IO; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/BuildMessageEventArgs.cs b/src/Framework/BuildMessageEventArgs.cs index e84c9ed6c02..ffa7b88da4c 100644 --- a/src/Framework/BuildMessageEventArgs.cs +++ b/src/Framework/BuildMessageEventArgs.cs @@ -6,6 +6,8 @@ using System.Runtime.Serialization; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/BuildStartedEventArgs.cs b/src/Framework/BuildStartedEventArgs.cs index 8297879a12c..9d35298dc83 100644 --- a/src/Framework/BuildStartedEventArgs.cs +++ b/src/Framework/BuildStartedEventArgs.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/BuildStatusEventArgs.cs b/src/Framework/BuildStatusEventArgs.cs index c8c3b1d35e1..440a0935f50 100644 --- a/src/Framework/BuildStatusEventArgs.cs +++ b/src/Framework/BuildStatusEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/BuildWarningEventArgs.cs b/src/Framework/BuildWarningEventArgs.cs index f78f7716bff..ea8d963afc3 100644 --- a/src/Framework/BuildWarningEventArgs.cs +++ b/src/Framework/BuildWarningEventArgs.cs @@ -5,6 +5,8 @@ using System.IO; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ChangeWaves.cs b/src/Framework/ChangeWaves.cs index 90eed3b8aad..3ebe0b75ef8 100644 --- a/src/Framework/ChangeWaves.cs +++ b/src/Framework/ChangeWaves.cs @@ -4,6 +4,8 @@ using System; using System.Linq; +#nullable disable + namespace Microsoft.Build.Framework { internal enum ChangeWaveConversionState diff --git a/src/Framework/CriticalBuildMessageEventArgs.cs b/src/Framework/CriticalBuildMessageEventArgs.cs index 0aad4046ada..9fe9544de38 100644 --- a/src/Framework/CriticalBuildMessageEventArgs.cs +++ b/src/Framework/CriticalBuildMessageEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/CustomBuildEventArgs.cs b/src/Framework/CustomBuildEventArgs.cs index cba045ebb3e..69523a573b3 100644 --- a/src/Framework/CustomBuildEventArgs.cs +++ b/src/Framework/CustomBuildEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/Debugging/CommonWriter.cs b/src/Framework/Debugging/CommonWriter.cs index 4a0b29a4348..db17705ce15 100644 --- a/src/Framework/Debugging/CommonWriter.cs +++ b/src/Framework/Debugging/CommonWriter.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Shared.Debugging { internal class CommonWriter diff --git a/src/Framework/EnvironmentVariableReadEventArgs.cs b/src/Framework/EnvironmentVariableReadEventArgs.cs index 809a1b097fd..83391fe7def 100644 --- a/src/Framework/EnvironmentVariableReadEventArgs.cs +++ b/src/Framework/EnvironmentVariableReadEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ErrorUtilities.cs b/src/Framework/ErrorUtilities.cs index 8611d41a549..20792056fb0 100644 --- a/src/Framework/ErrorUtilities.cs +++ b/src/Framework/ErrorUtilities.cs @@ -7,6 +7,8 @@ using System.Text; using System.Threading.Tasks; +#nullable disable + namespace Microsoft.Build.Framework { // TODO: this should be unified with Shared\ErrorUtilities.cs, but it is hard to untangle everything diff --git a/src/Framework/ExternalProjectFinishedEventArgs.cs b/src/Framework/ExternalProjectFinishedEventArgs.cs index d09c6f56df1..94d5b7da698 100644 --- a/src/Framework/ExternalProjectFinishedEventArgs.cs +++ b/src/Framework/ExternalProjectFinishedEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ExternalProjectStartedEventArgs.cs b/src/Framework/ExternalProjectStartedEventArgs.cs index 2073ee505d6..6828ae736a9 100644 --- a/src/Framework/ExternalProjectStartedEventArgs.cs +++ b/src/Framework/ExternalProjectStartedEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/FileClassifier.cs b/src/Framework/FileClassifier.cs index e459dd8fc3b..5cd5303e605 100644 --- a/src/Framework/FileClassifier.cs +++ b/src/Framework/FileClassifier.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System; using System.Collections.Concurrent; using System.Collections.Generic; diff --git a/src/Framework/IBuildEngine.cs b/src/Framework/IBuildEngine.cs index d14aada27ed..68aac5eea4f 100644 --- a/src/Framework/IBuildEngine.cs +++ b/src/Framework/IBuildEngine.cs @@ -3,6 +3,8 @@ using System.Collections; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IBuildEngine10.cs b/src/Framework/IBuildEngine10.cs index 7a7805d9791..e8ac6071e21 100644 --- a/src/Framework/IBuildEngine10.cs +++ b/src/Framework/IBuildEngine10.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IBuildEngine2.cs b/src/Framework/IBuildEngine2.cs index 9bfb2949460..169c1a8f7ba 100644 --- a/src/Framework/IBuildEngine2.cs +++ b/src/Framework/IBuildEngine2.cs @@ -3,6 +3,8 @@ using System.Collections; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IBuildEngine3.cs b/src/Framework/IBuildEngine3.cs index cdcd50ef9ac..0ab02ddaafc 100644 --- a/src/Framework/IBuildEngine3.cs +++ b/src/Framework/IBuildEngine3.cs @@ -4,6 +4,8 @@ using System.Collections; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IBuildEngine4.cs b/src/Framework/IBuildEngine4.cs index 685d6bc7dca..09fa5277ba0 100644 --- a/src/Framework/IBuildEngine4.cs +++ b/src/Framework/IBuildEngine4.cs @@ -3,6 +3,8 @@ using System.Diagnostics.CodeAnalysis; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IBuildEngine5.cs b/src/Framework/IBuildEngine5.cs index 642c121997a..b03ab63c28e 100644 --- a/src/Framework/IBuildEngine5.cs +++ b/src/Framework/IBuildEngine5.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IBuildEngine6.cs b/src/Framework/IBuildEngine6.cs index a8b7f70a673..4a0fdf41710 100644 --- a/src/Framework/IBuildEngine6.cs +++ b/src/Framework/IBuildEngine6.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IBuildEngine7.cs b/src/Framework/IBuildEngine7.cs index 7f9200da1ab..d08af94fc04 100644 --- a/src/Framework/IBuildEngine7.cs +++ b/src/Framework/IBuildEngine7.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IBuildEngine8.cs b/src/Framework/IBuildEngine8.cs index 0caaad46678..f337b27694a 100644 --- a/src/Framework/IBuildEngine8.cs +++ b/src/Framework/IBuildEngine8.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IBuildEngine9.cs b/src/Framework/IBuildEngine9.cs index 6e44be92834..aac0cc87141 100644 --- a/src/Framework/IBuildEngine9.cs +++ b/src/Framework/IBuildEngine9.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ICancelableTask.cs b/src/Framework/ICancelableTask.cs index d714acb8704..e91d51ecd78 100644 --- a/src/Framework/ICancelableTask.cs +++ b/src/Framework/ICancelableTask.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IEventRedirector.cs b/src/Framework/IEventRedirector.cs index 9be0bce4c63..4b385c39c69 100644 --- a/src/Framework/IEventRedirector.cs +++ b/src/Framework/IEventRedirector.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IEventSource.cs b/src/Framework/IEventSource.cs index f0cea1f1ea4..8f49eccf2d1 100644 --- a/src/Framework/IEventSource.cs +++ b/src/Framework/IEventSource.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IEventSource2.cs b/src/Framework/IEventSource2.cs index 9c289611c0c..32be40c2abd 100644 --- a/src/Framework/IEventSource2.cs +++ b/src/Framework/IEventSource2.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IEventSource3.cs b/src/Framework/IEventSource3.cs index d50edf28105..e461ed4865d 100644 --- a/src/Framework/IEventSource3.cs +++ b/src/Framework/IEventSource3.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IEventSource4.cs b/src/Framework/IEventSource4.cs index 3b6cc009be4..b16ec11ee9a 100644 --- a/src/Framework/IEventSource4.cs +++ b/src/Framework/IEventSource4.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IForwardingLogger.cs b/src/Framework/IForwardingLogger.cs index 801e5b36012..95550550dad 100644 --- a/src/Framework/IForwardingLogger.cs +++ b/src/Framework/IForwardingLogger.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IGeneratedTask.cs b/src/Framework/IGeneratedTask.cs index 8bb038dc415..3629d679b70 100644 --- a/src/Framework/IGeneratedTask.cs +++ b/src/Framework/IGeneratedTask.cs @@ -3,6 +3,8 @@ using System.Diagnostics.CodeAnalysis; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ILogger.cs b/src/Framework/ILogger.cs index 938ea0bd890..2e36213ff7d 100644 --- a/src/Framework/ILogger.cs +++ b/src/Framework/ILogger.cs @@ -3,6 +3,8 @@ using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IMetadataContainer.cs b/src/Framework/IMetadataContainer.cs index 169130cdef3..eacb445c576 100644 --- a/src/Framework/IMetadataContainer.cs +++ b/src/Framework/IMetadataContainer.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/INodeLogger.cs b/src/Framework/INodeLogger.cs index 38faed17575..fabcbc70ec9 100644 --- a/src/Framework/INodeLogger.cs +++ b/src/Framework/INodeLogger.cs @@ -3,6 +3,8 @@ using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/IProjectElement.cs b/src/Framework/IProjectElement.cs index 9c2dff5336f..913f06b0e51 100644 --- a/src/Framework/IProjectElement.cs +++ b/src/Framework/IProjectElement.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ITask.cs b/src/Framework/ITask.cs index de05943b10a..f4cc8979a6c 100644 --- a/src/Framework/ITask.cs +++ b/src/Framework/ITask.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ITaskFactory.cs b/src/Framework/ITaskFactory.cs index 4c8c97bb209..a7b07159679 100644 --- a/src/Framework/ITaskFactory.cs +++ b/src/Framework/ITaskFactory.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ITaskFactory2.cs b/src/Framework/ITaskFactory2.cs index 948e4dfca45..882d7b1648d 100644 --- a/src/Framework/ITaskFactory2.cs +++ b/src/Framework/ITaskFactory2.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ITaskHost.cs b/src/Framework/ITaskHost.cs index 112ea50e0e2..cbad16b9efe 100644 --- a/src/Framework/ITaskHost.cs +++ b/src/Framework/ITaskHost.cs @@ -4,6 +4,8 @@ using System.Runtime.InteropServices; using System.Diagnostics.CodeAnalysis; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ITaskItem.cs b/src/Framework/ITaskItem.cs index 31a909036e2..b1de1f3bf4f 100644 --- a/src/Framework/ITaskItem.cs +++ b/src/Framework/ITaskItem.cs @@ -5,6 +5,8 @@ using System.Collections; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ITaskItem2.cs b/src/Framework/ITaskItem2.cs index ef4c557a5bd..f55467b85e9 100644 --- a/src/Framework/ITaskItem2.cs +++ b/src/Framework/ITaskItem2.cs @@ -5,6 +5,8 @@ using System.Collections; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ITaskItemExtensions.cs b/src/Framework/ITaskItemExtensions.cs index 53a5e0d5b42..589c483ac1c 100644 --- a/src/Framework/ITaskItemExtensions.cs +++ b/src/Framework/ITaskItemExtensions.cs @@ -6,6 +6,8 @@ using System.Collections.Generic; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Framework { internal static class ITaskItemExtensions diff --git a/src/Framework/ImmutableFilesTimestampCache.cs b/src/Framework/ImmutableFilesTimestampCache.cs index 5836e44d281..c20b768b74f 100644 --- a/src/Framework/ImmutableFilesTimestampCache.cs +++ b/src/Framework/ImmutableFilesTimestampCache.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using System; using System.Collections.Concurrent; diff --git a/src/Framework/InternalErrorException.cs b/src/Framework/InternalErrorException.cs index 7c6f9a27d21..b87f1a32a6d 100644 --- a/src/Framework/InternalErrorException.cs +++ b/src/Framework/InternalErrorException.cs @@ -5,6 +5,8 @@ using System.Diagnostics; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/LazyFormattedBuildEventArgs.cs b/src/Framework/LazyFormattedBuildEventArgs.cs index 9f0e8aded43..8f915b81113 100644 --- a/src/Framework/LazyFormattedBuildEventArgs.cs +++ b/src/Framework/LazyFormattedBuildEventArgs.cs @@ -5,6 +5,8 @@ using System.Globalization; using System.IO; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/LoadInSeparateAppDomainAttribute.cs b/src/Framework/LoadInSeparateAppDomainAttribute.cs index c464b35a413..9a26afec1f4 100644 --- a/src/Framework/LoadInSeparateAppDomainAttribute.cs +++ b/src/Framework/LoadInSeparateAppDomainAttribute.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/LoggerException.cs b/src/Framework/LoggerException.cs index 63ed9ea7606..f99fab5d903 100644 --- a/src/Framework/LoggerException.cs +++ b/src/Framework/LoggerException.cs @@ -7,6 +7,8 @@ using System.Security.Permissions; // for SecurityPermissionAttribute #endif +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/MSBuildEventSource.cs b/src/Framework/MSBuildEventSource.cs index f8587c129c4..742a09f2d23 100644 --- a/src/Framework/MSBuildEventSource.cs +++ b/src/Framework/MSBuildEventSource.cs @@ -1,5 +1,7 @@ using System.Diagnostics.Tracing; +#nullable disable + namespace Microsoft.Build.Eventing { /// diff --git a/src/Framework/MetaProjectGeneratedEventArgs.cs b/src/Framework/MetaProjectGeneratedEventArgs.cs index d690e9aa215..fa03336cf0b 100644 --- a/src/Framework/MetaProjectGeneratedEventArgs.cs +++ b/src/Framework/MetaProjectGeneratedEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/NativeMethods.cs b/src/Framework/NativeMethods.cs index 8f92cf66d93..367b4eb6955 100644 --- a/src/Framework/NativeMethods.cs +++ b/src/Framework/NativeMethods.cs @@ -19,6 +19,8 @@ using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME; +#nullable disable + namespace Microsoft.Build.Framework; internal static class NativeMethods { diff --git a/src/Framework/NullableAttributes.cs b/src/Framework/NullableAttributes.cs index 826ecacee10..86145426936 100644 --- a/src/Framework/NullableAttributes.cs +++ b/src/Framework/NullableAttributes.cs @@ -4,6 +4,8 @@ // This was copied from https://github.com/dotnet/runtime/blob/39b9607807f29e48cae4652cd74735182b31182e/src/libraries/System.Private.CoreLib/src/System/Diagnostics/CodeAnalysis/NullableAttributes.cs // and updated to have the scope of the attributes be internal. +#nullable disable + namespace System.Diagnostics.CodeAnalysis { #if !NETCOREAPP diff --git a/src/Framework/OutputAttribute.cs b/src/Framework/OutputAttribute.cs index 84125a0eb1b..0a1166b8654 100644 --- a/src/Framework/OutputAttribute.cs +++ b/src/Framework/OutputAttribute.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/Profiler/EvaluationIdProvider.cs b/src/Framework/Profiler/EvaluationIdProvider.cs index a348f793a94..0b0f8f491a2 100644 --- a/src/Framework/Profiler/EvaluationIdProvider.cs +++ b/src/Framework/Profiler/EvaluationIdProvider.cs @@ -4,6 +4,8 @@ using System.Diagnostics; using System.Threading; +#nullable disable + namespace Microsoft.Build.Framework.Profiler { /// diff --git a/src/Framework/Profiler/EvaluationLocation.cs b/src/Framework/Profiler/EvaluationLocation.cs index 61ff4933c84..fd5f57114cd 100644 --- a/src/Framework/Profiler/EvaluationLocation.cs +++ b/src/Framework/Profiler/EvaluationLocation.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Framework.Profiler { /// diff --git a/src/Framework/Profiler/ProfilerResult.cs b/src/Framework/Profiler/ProfilerResult.cs index 43cf2d62331..3e85be55367 100644 --- a/src/Framework/Profiler/ProfilerResult.cs +++ b/src/Framework/Profiler/ProfilerResult.cs @@ -6,6 +6,8 @@ using System.Collections.ObjectModel; using System.Linq; +#nullable disable + namespace Microsoft.Build.Framework.Profiler { /// diff --git a/src/Framework/ProjectEvaluationFinishedEventArgs.cs b/src/Framework/ProjectEvaluationFinishedEventArgs.cs index 88073ecf3ac..530c52f09fd 100644 --- a/src/Framework/ProjectEvaluationFinishedEventArgs.cs +++ b/src/Framework/ProjectEvaluationFinishedEventArgs.cs @@ -5,6 +5,8 @@ using System.Collections; using Microsoft.Build.Framework.Profiler; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ProjectEvaluationStartedEventArgs.cs b/src/Framework/ProjectEvaluationStartedEventArgs.cs index 14100183747..8f64d5c305d 100644 --- a/src/Framework/ProjectEvaluationStartedEventArgs.cs +++ b/src/Framework/ProjectEvaluationStartedEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ProjectFinishedEventArgs.cs b/src/Framework/ProjectFinishedEventArgs.cs index 77cedfe049d..030eddb3e7c 100644 --- a/src/Framework/ProjectFinishedEventArgs.cs +++ b/src/Framework/ProjectFinishedEventArgs.cs @@ -5,6 +5,8 @@ using System.IO; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ProjectImportedEventArgs.cs b/src/Framework/ProjectImportedEventArgs.cs index b9c5a7a6cae..a77e1344052 100644 --- a/src/Framework/ProjectImportedEventArgs.cs +++ b/src/Framework/ProjectImportedEventArgs.cs @@ -5,6 +5,8 @@ using System.IO; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/ProjectStartedEventArgs.cs b/src/Framework/ProjectStartedEventArgs.cs index 230d0629058..6601476f8e7 100644 --- a/src/Framework/ProjectStartedEventArgs.cs +++ b/src/Framework/ProjectStartedEventArgs.cs @@ -9,6 +9,8 @@ using System.Linq; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/PropertyInitialValueSetEventArgs.cs b/src/Framework/PropertyInitialValueSetEventArgs.cs index d73247be932..050d0c80272 100644 --- a/src/Framework/PropertyInitialValueSetEventArgs.cs +++ b/src/Framework/PropertyInitialValueSetEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/PropertyReassignmentEventArgs.cs b/src/Framework/PropertyReassignmentEventArgs.cs index 8820254215f..fa709c7789c 100644 --- a/src/Framework/PropertyReassignmentEventArgs.cs +++ b/src/Framework/PropertyReassignmentEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/RequiredAttribute.cs b/src/Framework/RequiredAttribute.cs index 5971f488767..91e4a6afa36 100644 --- a/src/Framework/RequiredAttribute.cs +++ b/src/Framework/RequiredAttribute.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/RequiredRuntimeAttribute.cs b/src/Framework/RequiredRuntimeAttribute.cs index 0e343be56af..3848003a021 100644 --- a/src/Framework/RequiredRuntimeAttribute.cs +++ b/src/Framework/RequiredRuntimeAttribute.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/RunInMTAAttribute.cs b/src/Framework/RunInMTAAttribute.cs index e6b782a08b8..e2590108ec8 100644 --- a/src/Framework/RunInMTAAttribute.cs +++ b/src/Framework/RunInMTAAttribute.cs @@ -4,6 +4,8 @@ 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 8bd83eb026e..69750928db8 100644 --- a/src/Framework/RunInSTAAttribute.cs +++ b/src/Framework/RunInSTAAttribute.cs @@ -4,6 +4,8 @@ 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 883ddb109dd..cbf47f81245 100644 --- a/src/Framework/Sdk/SdkLogger.cs +++ b/src/Framework/Sdk/SdkLogger.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/Sdk/SdkReference.cs b/src/Framework/Sdk/SdkReference.cs index f48c8444bbc..d3003c12ce4 100644 --- a/src/Framework/Sdk/SdkReference.cs +++ b/src/Framework/Sdk/SdkReference.cs @@ -6,6 +6,8 @@ using System.Linq; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/Sdk/SdkResolver.cs b/src/Framework/Sdk/SdkResolver.cs index 9280c30af24..2dafc6b5b92 100644 --- a/src/Framework/Sdk/SdkResolver.cs +++ b/src/Framework/Sdk/SdkResolver.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/Sdk/SdkResolverContext.cs b/src/Framework/Sdk/SdkResolverContext.cs index 63e2f48482d..2c8e907906e 100644 --- a/src/Framework/Sdk/SdkResolverContext.cs +++ b/src/Framework/Sdk/SdkResolverContext.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/Sdk/SdkResult.cs b/src/Framework/Sdk/SdkResult.cs index 29c201f24b8..7465b41be82 100644 --- a/src/Framework/Sdk/SdkResult.cs +++ b/src/Framework/Sdk/SdkResult.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/Sdk/SdkResultFactory.cs b/src/Framework/Sdk/SdkResultFactory.cs index 70f672cd62e..aac55e6833f 100644 --- a/src/Framework/Sdk/SdkResultFactory.cs +++ b/src/Framework/Sdk/SdkResultFactory.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/StringBuilderCache.cs b/src/Framework/StringBuilderCache.cs index abf23d07ff4..190e7ed5de9 100644 --- a/src/Framework/StringBuilderCache.cs +++ b/src/Framework/StringBuilderCache.cs @@ -38,6 +38,8 @@ using Microsoft.Build.Eventing; #endif +#nullable disable + namespace Microsoft.Build.Framework { internal static class StringBuilderCache diff --git a/src/Framework/TargetBuiltReason.cs b/src/Framework/TargetBuiltReason.cs index d318a515819..5f271125003 100644 --- a/src/Framework/TargetBuiltReason.cs +++ b/src/Framework/TargetBuiltReason.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/TargetFinishedEventArgs.cs b/src/Framework/TargetFinishedEventArgs.cs index fceebc108da..5398fd557a3 100644 --- a/src/Framework/TargetFinishedEventArgs.cs +++ b/src/Framework/TargetFinishedEventArgs.cs @@ -6,6 +6,8 @@ using System.Collections; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/TargetSkippedEventArgs.cs b/src/Framework/TargetSkippedEventArgs.cs index 61580ae92b5..05177c0c594 100644 --- a/src/Framework/TargetSkippedEventArgs.cs +++ b/src/Framework/TargetSkippedEventArgs.cs @@ -5,6 +5,8 @@ using System.IO; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/TargetStartedEventArgs.cs b/src/Framework/TargetStartedEventArgs.cs index c4a44a744b0..2a51fddd380 100644 --- a/src/Framework/TargetStartedEventArgs.cs +++ b/src/Framework/TargetStartedEventArgs.cs @@ -5,6 +5,8 @@ using System.IO; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/TaskCommandLineEventArgs.cs b/src/Framework/TaskCommandLineEventArgs.cs index 4a6f1af686e..2e80c7ddc0e 100644 --- a/src/Framework/TaskCommandLineEventArgs.cs +++ b/src/Framework/TaskCommandLineEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/TaskFinishedEventArgs.cs b/src/Framework/TaskFinishedEventArgs.cs index def68d090d9..3b282a9afac 100644 --- a/src/Framework/TaskFinishedEventArgs.cs +++ b/src/Framework/TaskFinishedEventArgs.cs @@ -5,6 +5,8 @@ using System.IO; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/TaskItemData.cs b/src/Framework/TaskItemData.cs index e32f20416f5..6f35859a355 100644 --- a/src/Framework/TaskItemData.cs +++ b/src/Framework/TaskItemData.cs @@ -5,6 +5,8 @@ using System.Collections; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/TaskParameterEventArgs.cs b/src/Framework/TaskParameterEventArgs.cs index 1ca1a55f7ad..88160c644ab 100644 --- a/src/Framework/TaskParameterEventArgs.cs +++ b/src/Framework/TaskParameterEventArgs.cs @@ -9,6 +9,8 @@ using System.Text; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { public enum TaskParameterMessageKind diff --git a/src/Framework/TaskPropertyInfo.cs b/src/Framework/TaskPropertyInfo.cs index 7180c722eed..449354b5e43 100644 --- a/src/Framework/TaskPropertyInfo.cs +++ b/src/Framework/TaskPropertyInfo.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/TaskStartedEventArgs.cs b/src/Framework/TaskStartedEventArgs.cs index 55e6ca69998..eafeb579b5d 100644 --- a/src/Framework/TaskStartedEventArgs.cs +++ b/src/Framework/TaskStartedEventArgs.cs @@ -5,6 +5,8 @@ using System.IO; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/TelemetryEventArgs.cs b/src/Framework/TelemetryEventArgs.cs index 3557981135e..4edc7d0a626 100644 --- a/src/Framework/TelemetryEventArgs.cs +++ b/src/Framework/TelemetryEventArgs.cs @@ -6,6 +6,8 @@ using System.IO; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/TestInfo.cs b/src/Framework/TestInfo.cs index 1d2ebbb32bb..48c47b52296 100644 --- a/src/Framework/TestInfo.cs +++ b/src/Framework/TestInfo.cs @@ -1,4 +1,6 @@ -namespace Microsoft.Build.Framework +#nullable disable + +namespace Microsoft.Build.Framework { // This is a central place to keep track of whether tests are running or not. Test startup code // will set this to true. It is consumed in BuildEnvironmentHelper. However, since that class diff --git a/src/Framework/Traits.cs b/src/Framework/Traits.cs index 95903c15c94..ddcb8ade1ed 100644 --- a/src/Framework/Traits.cs +++ b/src/Framework/Traits.cs @@ -4,6 +4,8 @@ using System; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/UninitializedPropertyReadEventArgs.cs b/src/Framework/UninitializedPropertyReadEventArgs.cs index fa11b3c8f89..954cc5e43ca 100644 --- a/src/Framework/UninitializedPropertyReadEventArgs.cs +++ b/src/Framework/UninitializedPropertyReadEventArgs.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Framework { /// diff --git a/src/Framework/VisualStudioLocationHelper.cs b/src/Framework/VisualStudioLocationHelper.cs index 54d57493b1f..4ec70063990 100644 --- a/src/Framework/VisualStudioLocationHelper.cs +++ b/src/Framework/VisualStudioLocationHelper.cs @@ -5,6 +5,8 @@ using Microsoft.VisualStudio.Setup.Configuration; #endif +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Framework/XamlTypes/Argument.cs b/src/Framework/XamlTypes/Argument.cs index 8620f4305b1..bc69f83a709 100644 --- a/src/Framework/XamlTypes/Argument.cs +++ b/src/Framework/XamlTypes/Argument.cs @@ -4,6 +4,8 @@ using System; using System.ComponentModel; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/BaseProperty.cs b/src/Framework/XamlTypes/BaseProperty.cs index 52ca96c0024..4587cd8ab93 100644 --- a/src/Framework/XamlTypes/BaseProperty.cs +++ b/src/Framework/XamlTypes/BaseProperty.cs @@ -7,6 +7,8 @@ using System.Diagnostics.CodeAnalysis; using System.Windows.Markup; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/BoolProperty.cs b/src/Framework/XamlTypes/BoolProperty.cs index 84e49ddf2a7..d1db3eac06b 100644 --- a/src/Framework/XamlTypes/BoolProperty.cs +++ b/src/Framework/XamlTypes/BoolProperty.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/Category.cs b/src/Framework/XamlTypes/Category.cs index b67ff735563..5756483902e 100644 --- a/src/Framework/XamlTypes/Category.cs +++ b/src/Framework/XamlTypes/Category.cs @@ -3,6 +3,8 @@ using System.ComponentModel; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/CategorySchema.cs b/src/Framework/XamlTypes/CategorySchema.cs index 4f684ba7f4c..72b2fe6bf46 100644 --- a/src/Framework/XamlTypes/CategorySchema.cs +++ b/src/Framework/XamlTypes/CategorySchema.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/ContentType.cs b/src/Framework/XamlTypes/ContentType.cs index 0fe304b22fc..93d6298362c 100644 --- a/src/Framework/XamlTypes/ContentType.cs +++ b/src/Framework/XamlTypes/ContentType.cs @@ -7,6 +7,8 @@ using System.Diagnostics.CodeAnalysis; using System.Windows.Markup; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/DataSource.cs b/src/Framework/XamlTypes/DataSource.cs index 52248fedf67..bd1e559d682 100644 --- a/src/Framework/XamlTypes/DataSource.cs +++ b/src/Framework/XamlTypes/DataSource.cs @@ -4,6 +4,8 @@ using System; using System.ComponentModel; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/DynamicEnumProperty.cs b/src/Framework/XamlTypes/DynamicEnumProperty.cs index 3e090dd3ac4..f4e1655abb2 100644 --- a/src/Framework/XamlTypes/DynamicEnumProperty.cs +++ b/src/Framework/XamlTypes/DynamicEnumProperty.cs @@ -4,6 +4,8 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/EnumProperty.cs b/src/Framework/XamlTypes/EnumProperty.cs index 2cae0dedb63..d07d9eba886 100644 --- a/src/Framework/XamlTypes/EnumProperty.cs +++ b/src/Framework/XamlTypes/EnumProperty.cs @@ -5,6 +5,8 @@ using System.Diagnostics.CodeAnalysis; using System.Windows.Markup; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/EnumValue.cs b/src/Framework/XamlTypes/EnumValue.cs index 8db8e5991d5..014262e8bf0 100644 --- a/src/Framework/XamlTypes/EnumValue.cs +++ b/src/Framework/XamlTypes/EnumValue.cs @@ -7,6 +7,8 @@ using System.Diagnostics.CodeAnalysis; using System.Windows.Markup; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/FileExtension.cs b/src/Framework/XamlTypes/FileExtension.cs index a9eda03f02e..a1368b9abf4 100644 --- a/src/Framework/XamlTypes/FileExtension.cs +++ b/src/Framework/XamlTypes/FileExtension.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/IProjectSchemaNode.cs b/src/Framework/XamlTypes/IProjectSchemaNode.cs index e7423da3336..879e9bc3cd1 100644 --- a/src/Framework/XamlTypes/IProjectSchemaNode.cs +++ b/src/Framework/XamlTypes/IProjectSchemaNode.cs @@ -4,6 +4,8 @@ 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 68828b3fcef..eb8d77a669a 100644 --- a/src/Framework/XamlTypes/IntProperty.cs +++ b/src/Framework/XamlTypes/IntProperty.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/ItemType.cs b/src/Framework/XamlTypes/ItemType.cs index c83c628f4b0..e6696f3b2d6 100644 --- a/src/Framework/XamlTypes/ItemType.cs +++ b/src/Framework/XamlTypes/ItemType.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.ComponentModel; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/NameValuePair.cs b/src/Framework/XamlTypes/NameValuePair.cs index 3822dd7c7df..f180244d508 100644 --- a/src/Framework/XamlTypes/NameValuePair.cs +++ b/src/Framework/XamlTypes/NameValuePair.cs @@ -3,6 +3,8 @@ using System.ComponentModel; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/ProjectSchemaDefinitions.cs b/src/Framework/XamlTypes/ProjectSchemaDefinitions.cs index 55d41ffa8e0..353136c50e8 100644 --- a/src/Framework/XamlTypes/ProjectSchemaDefinitions.cs +++ b/src/Framework/XamlTypes/ProjectSchemaDefinitions.cs @@ -6,6 +6,8 @@ using System.Diagnostics.CodeAnalysis; using System.Windows.Markup; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/Rule.cs b/src/Framework/XamlTypes/Rule.cs index 5893a27acf7..7c07bbfcd0a 100644 --- a/src/Framework/XamlTypes/Rule.cs +++ b/src/Framework/XamlTypes/Rule.cs @@ -10,6 +10,8 @@ using System.Diagnostics.CodeAnalysis; using System.Windows.Markup; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { // DEV11DESIGNISSUE (pavana): Once the de-serialization is complete, seal the type so diff --git a/src/Framework/XamlTypes/RuleBag.cs b/src/Framework/XamlTypes/RuleBag.cs index e1e5ff5aede..1831443deeb 100644 --- a/src/Framework/XamlTypes/RuleBag.cs +++ b/src/Framework/XamlTypes/RuleBag.cs @@ -7,6 +7,8 @@ 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 a4369541ea9..7ce3572062c 100644 --- a/src/Framework/XamlTypes/RuleSchema.cs +++ b/src/Framework/XamlTypes/RuleSchema.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/StringListProperty.cs b/src/Framework/XamlTypes/StringListProperty.cs index d3c6a74b503..91298c04a18 100644 --- a/src/Framework/XamlTypes/StringListProperty.cs +++ b/src/Framework/XamlTypes/StringListProperty.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/StringProperty.cs b/src/Framework/XamlTypes/StringProperty.cs index 47704a9b24f..e2b61544f1b 100644 --- a/src/Framework/XamlTypes/StringProperty.cs +++ b/src/Framework/XamlTypes/StringProperty.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/Framework/XamlTypes/ValueEditor.cs b/src/Framework/XamlTypes/ValueEditor.cs index 9e7be2f3944..e58c6e236a4 100644 --- a/src/Framework/XamlTypes/ValueEditor.cs +++ b/src/Framework/XamlTypes/ValueEditor.cs @@ -7,6 +7,8 @@ using System.Diagnostics.CodeAnalysis; using System.Windows.Markup; +#nullable disable + namespace Microsoft.Build.Framework.XamlTypes { /// diff --git a/src/MSBuild.UnitTests/CommandLineSwitches_Tests.cs b/src/MSBuild.UnitTests/CommandLineSwitches_Tests.cs index bd04dfc4a6f..56740ebea60 100644 --- a/src/MSBuild.UnitTests/CommandLineSwitches_Tests.cs +++ b/src/MSBuild.UnitTests/CommandLineSwitches_Tests.cs @@ -16,6 +16,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class CommandLineSwitchesTests diff --git a/src/MSBuild.UnitTests/PerfLog_Tests.cs b/src/MSBuild.UnitTests/PerfLog_Tests.cs index be18d7b6a47..700671f1a8d 100644 --- a/src/MSBuild.UnitTests/PerfLog_Tests.cs +++ b/src/MSBuild.UnitTests/PerfLog_Tests.cs @@ -20,6 +20,8 @@ using System.IO.Compression; using System.Reflection; +#nullable disable + namespace Microsoft.Build.UnitTests { public class PerfLogTests diff --git a/src/MSBuild.UnitTests/ProjectSchemaValidationHandler_Tests.cs b/src/MSBuild.UnitTests/ProjectSchemaValidationHandler_Tests.cs index ae0e0d671f2..3885423a888 100644 --- a/src/MSBuild.UnitTests/ProjectSchemaValidationHandler_Tests.cs +++ b/src/MSBuild.UnitTests/ProjectSchemaValidationHandler_Tests.cs @@ -13,6 +13,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class ProjectSchemaValidationHandlerTest diff --git a/src/MSBuild.UnitTests/ValidateAssemblyLoadContext.cs b/src/MSBuild.UnitTests/ValidateAssemblyLoadContext.cs index fec7f8d4654..249571a1802 100644 --- a/src/MSBuild.UnitTests/ValidateAssemblyLoadContext.cs +++ b/src/MSBuild.UnitTests/ValidateAssemblyLoadContext.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Utilities; using System.Runtime.Loader; +#nullable disable + namespace Microsoft.Build.UnitTests { public class ValidateAssemblyLoadContext : Task diff --git a/src/MSBuild.UnitTests/XMake_Tests.cs b/src/MSBuild.UnitTests/XMake_Tests.cs index e44fe59257f..2f7596e1496 100644 --- a/src/MSBuild.UnitTests/XMake_Tests.cs +++ b/src/MSBuild.UnitTests/XMake_Tests.cs @@ -21,6 +21,8 @@ using System.Reflection; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.UnitTests { public class XMakeAppTests : IDisposable diff --git a/src/MSBuild/AssemblyResources.cs b/src/MSBuild/AssemblyResources.cs index 516724288ac..ed9431764ac 100644 --- a/src/MSBuild/AssemblyResources.cs +++ b/src/MSBuild/AssemblyResources.cs @@ -5,6 +5,8 @@ using System.Reflection; using System.Globalization; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/MSBuild/CommandLineSwitchException.cs b/src/MSBuild/CommandLineSwitchException.cs index eeafb59adcf..b1ee673c8ee 100644 --- a/src/MSBuild/CommandLineSwitchException.cs +++ b/src/MSBuild/CommandLineSwitchException.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuild/CommandLineSwitches.cs b/src/MSBuild/CommandLineSwitches.cs index e1e53cbb1f5..117880c451b 100644 --- a/src/MSBuild/CommandLineSwitches.cs +++ b/src/MSBuild/CommandLineSwitches.cs @@ -7,6 +7,8 @@ using System.Diagnostics; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuild/DistributedLoggerRecord.cs b/src/MSBuild/DistributedLoggerRecord.cs index e644cc4076d..695b2834563 100644 --- a/src/MSBuild/DistributedLoggerRecord.cs +++ b/src/MSBuild/DistributedLoggerRecord.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Logging; +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuild/InitializationException.cs b/src/MSBuild/InitializationException.cs index 7fefa686647..0461ba155f2 100644 --- a/src/MSBuild/InitializationException.cs +++ b/src/MSBuild/InitializationException.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuild/LogMessagePacket.cs b/src/MSBuild/LogMessagePacket.cs index 54ec464146b..d5e60321b33 100644 --- a/src/MSBuild/LogMessagePacket.cs +++ b/src/MSBuild/LogMessagePacket.cs @@ -10,6 +10,8 @@ using TaskEngineAssemblyResolver = Microsoft.Build.BackEnd.Logging.TaskEngineAssemblyResolver; #endif +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuild/NodeEndpointOutOfProcTaskHost.cs b/src/MSBuild/NodeEndpointOutOfProcTaskHost.cs index 1714165cad1..36ea494b383 100644 --- a/src/MSBuild/NodeEndpointOutOfProcTaskHost.cs +++ b/src/MSBuild/NodeEndpointOutOfProcTaskHost.cs @@ -4,6 +4,8 @@ using Microsoft.Build.BackEnd; using Microsoft.Build.Internal; +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuild/OutOfProcTaskAppDomainWrapper.cs b/src/MSBuild/OutOfProcTaskAppDomainWrapper.cs index 1a971a16b76..2812e8b48de 100644 --- a/src/MSBuild/OutOfProcTaskAppDomainWrapper.cs +++ b/src/MSBuild/OutOfProcTaskAppDomainWrapper.cs @@ -4,6 +4,8 @@ using System; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuild/OutOfProcTaskAppDomainWrapperBase.cs b/src/MSBuild/OutOfProcTaskAppDomainWrapperBase.cs index b1f085e2da1..94e797b172c 100644 --- a/src/MSBuild/OutOfProcTaskAppDomainWrapperBase.cs +++ b/src/MSBuild/OutOfProcTaskAppDomainWrapperBase.cs @@ -14,6 +14,8 @@ using System.Runtime.Remoting; #endif +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuild/OutOfProcTaskHostNode.cs b/src/MSBuild/OutOfProcTaskHostNode.cs index e747dbcc9a3..63c9111db00 100644 --- a/src/MSBuild/OutOfProcTaskHostNode.cs +++ b/src/MSBuild/OutOfProcTaskHostNode.cs @@ -19,6 +19,8 @@ using System.Runtime.Remoting; #endif +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuild/PerformanceLogEventListener.cs b/src/MSBuild/PerformanceLogEventListener.cs index b3857fd50f4..3e08da0d512 100644 --- a/src/MSBuild/PerformanceLogEventListener.cs +++ b/src/MSBuild/PerformanceLogEventListener.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Eventing; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.CommandLine { internal sealed class PerformanceLogEventListener : EventListener diff --git a/src/MSBuild/ProjectSchemaValidationHandler.cs b/src/MSBuild/ProjectSchemaValidationHandler.cs index 8620083844b..a2c4ff0395b 100644 --- a/src/MSBuild/ProjectSchemaValidationHandler.cs +++ b/src/MSBuild/ProjectSchemaValidationHandler.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuild/XMake.cs b/src/MSBuild/XMake.cs index ae95d608193..63b6f3590e4 100644 --- a/src/MSBuild/XMake.cs +++ b/src/MSBuild/XMake.cs @@ -40,6 +40,8 @@ using ForwardingLoggerRecord = Microsoft.Build.Logging.ForwardingLoggerRecord; using BinaryLogger = Microsoft.Build.Logging.BinaryLogger; +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuildTaskHost/AssemblyResources.cs b/src/MSBuildTaskHost/AssemblyResources.cs index a35961b2946..a43269ecd9c 100644 --- a/src/MSBuildTaskHost/AssemblyResources.cs +++ b/src/MSBuildTaskHost/AssemblyResources.cs @@ -5,6 +5,8 @@ using System.Reflection; using System.Globalization; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/MSBuildTaskHost/Concurrent/ConcurrentDictionary.cs b/src/MSBuildTaskHost/Concurrent/ConcurrentDictionary.cs index 76a126450a7..588c67814f1 100644 --- a/src/MSBuildTaskHost/Concurrent/ConcurrentDictionary.cs +++ b/src/MSBuildTaskHost/Concurrent/ConcurrentDictionary.cs @@ -3,6 +3,8 @@ using System.Diagnostics; using System.Threading; +#nullable disable + namespace Microsoft.Build.Shared.Concurrent { // The following class is back-ported from .NET 4.X CoreFX library because diff --git a/src/MSBuildTaskHost/Concurrent/ConcurrentQueue.cs b/src/MSBuildTaskHost/Concurrent/ConcurrentQueue.cs index 6bda6d306e2..fefb43b48bb 100644 --- a/src/MSBuildTaskHost/Concurrent/ConcurrentQueue.cs +++ b/src/MSBuildTaskHost/Concurrent/ConcurrentQueue.cs @@ -3,6 +3,8 @@ using System.Runtime.InteropServices; using System.Threading; +#nullable disable + namespace Microsoft.Build.Shared.Concurrent { // The following class is back-ported from .NET 4.X CoreFX library because diff --git a/src/MSBuildTaskHost/FileSystem/MSBuildTaskHostFileSystem.cs b/src/MSBuildTaskHost/FileSystem/MSBuildTaskHostFileSystem.cs index 14949660eac..18a19d1c85f 100644 --- a/src/MSBuildTaskHost/FileSystem/MSBuildTaskHostFileSystem.cs +++ b/src/MSBuildTaskHost/FileSystem/MSBuildTaskHostFileSystem.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.IO; +#nullable disable + namespace Microsoft.Build.Shared.FileSystem { /// diff --git a/src/MSBuildTaskHost/Immutable/ImmutableDictionary.cs b/src/MSBuildTaskHost/Immutable/ImmutableDictionary.cs index 6ed1e6755d5..f3eb19e6dc1 100644 --- a/src/MSBuildTaskHost/Immutable/ImmutableDictionary.cs +++ b/src/MSBuildTaskHost/Immutable/ImmutableDictionary.cs @@ -4,6 +4,8 @@ using System.Collections.Generic; using System.Linq; +#nullable disable + namespace System.Collections.Immutable { static class ImmutableExtensions diff --git a/src/MSBuildTaskHost/OutOfProcTaskAppDomainWrapper.cs b/src/MSBuildTaskHost/OutOfProcTaskAppDomainWrapper.cs index 9ad2624a492..9cc9e2b7796 100644 --- a/src/MSBuildTaskHost/OutOfProcTaskAppDomainWrapper.cs +++ b/src/MSBuildTaskHost/OutOfProcTaskAppDomainWrapper.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuildTaskHost/OutOfProcTaskHost.cs b/src/MSBuildTaskHost/OutOfProcTaskHost.cs index 48f3dce2cde..c7afd19c8db 100644 --- a/src/MSBuildTaskHost/OutOfProcTaskHost.cs +++ b/src/MSBuildTaskHost/OutOfProcTaskHost.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Execution; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.CommandLine { /// diff --git a/src/MSBuildTaskHost/TypeLoader.cs b/src/MSBuildTaskHost/TypeLoader.cs index 59579d98cac..5b4833472c4 100644 --- a/src/MSBuildTaskHost/TypeLoader.cs +++ b/src/MSBuildTaskHost/TypeLoader.cs @@ -7,6 +7,8 @@ using System.Collections.Generic; using System.Threading; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Package/Microsoft.Build.UnGAC/NativeMethods.cs b/src/Package/Microsoft.Build.UnGAC/NativeMethods.cs index f468942cf12..4d81006edea 100644 --- a/src/Package/Microsoft.Build.UnGAC/NativeMethods.cs +++ b/src/Package/Microsoft.Build.UnGAC/NativeMethods.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.UnGAC { // See: https://docs.microsoft.com/en-us/dotnet/framework/unmanaged-api/fusion/iassemblycache-interface diff --git a/src/Package/Microsoft.Build.UnGAC/Program.cs b/src/Package/Microsoft.Build.UnGAC/Program.cs index c5b5caa710d..3515f1781a2 100644 --- a/src/Package/Microsoft.Build.UnGAC/Program.cs +++ b/src/Package/Microsoft.Build.UnGAC/Program.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.UnGAC { /// diff --git a/src/Samples/Dependency/Alpha.cs b/src/Samples/Dependency/Alpha.cs index 61ad4b52b6a..409caee5360 100644 --- a/src/Samples/Dependency/Alpha.cs +++ b/src/Samples/Dependency/Alpha.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Dependency { public class Alpha diff --git a/src/Samples/PortableTask/ShowItems.cs b/src/Samples/PortableTask/ShowItems.cs index b3fb7747824..10e53fa21fa 100644 --- a/src/Samples/PortableTask/ShowItems.cs +++ b/src/Samples/PortableTask/ShowItems.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using System.Reflection; +#nullable disable + namespace PortableTask { public class ShowItems : Microsoft.Build.Utilities.Task diff --git a/src/Samples/PortableTask/Sleep.cs b/src/Samples/PortableTask/Sleep.cs index 19c1c1663bd..ea11d4d1685 100644 --- a/src/Samples/PortableTask/Sleep.cs +++ b/src/Samples/PortableTask/Sleep.cs @@ -1,6 +1,8 @@ using System; using System.Threading.Tasks; +#nullable disable + namespace PortableTask { public class Sleep : Microsoft.Build.Utilities.Task diff --git a/src/Samples/ProjectCachePlugin/AssemblyMockCache.cs b/src/Samples/ProjectCachePlugin/AssemblyMockCache.cs index 4277bdad314..4d9b3f345b1 100644 --- a/src/Samples/ProjectCachePlugin/AssemblyMockCache.cs +++ b/src/Samples/ProjectCachePlugin/AssemblyMockCache.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Graph; using Shouldly; +#nullable disable + namespace MockCacheFromAssembly { public class AssemblyMockCache : ProjectCachePluginBase diff --git a/src/Samples/TaskUsageLogger/TaskUsageLogger.cs b/src/Samples/TaskUsageLogger/TaskUsageLogger.cs index 4ed1dbcb9b0..001357401f6 100644 --- a/src/Samples/TaskUsageLogger/TaskUsageLogger.cs +++ b/src/Samples/TaskUsageLogger/TaskUsageLogger.cs @@ -15,6 +15,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; +#nullable disable + namespace TaskUsageLogger { /// diff --git a/src/Samples/TaskWithDependency/LogStringFromDependency.cs b/src/Samples/TaskWithDependency/LogStringFromDependency.cs index b1c902ff02b..8bd5ab1b1e4 100644 --- a/src/Samples/TaskWithDependency/LogStringFromDependency.cs +++ b/src/Samples/TaskWithDependency/LogStringFromDependency.cs @@ -3,6 +3,8 @@ using Dependency; +#nullable disable + namespace TaskWithDependency { public class LogStringFromDependency : Microsoft.Build.Utilities.Task diff --git a/src/Samples/XmlFileLogger/ILogNode.cs b/src/Samples/XmlFileLogger/ILogNode.cs index 569b7534685..bedae997a3f 100644 --- a/src/Samples/XmlFileLogger/ILogNode.cs +++ b/src/Samples/XmlFileLogger/ILogNode.cs @@ -3,6 +3,8 @@ using System.Xml.Linq; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/ItemGroupParser.cs b/src/Samples/XmlFileLogger/ItemGroupParser.cs index 25928e3e40b..c17ab8bfac4 100644 --- a/src/Samples/XmlFileLogger/ItemGroupParser.cs +++ b/src/Samples/XmlFileLogger/ItemGroupParser.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { internal static class ItemGroupParser diff --git a/src/Samples/XmlFileLogger/LogProcessNode.cs b/src/Samples/XmlFileLogger/LogProcessNode.cs index 4982128eba6..086c98a1534 100644 --- a/src/Samples/XmlFileLogger/LogProcessNode.cs +++ b/src/Samples/XmlFileLogger/LogProcessNode.cs @@ -6,6 +6,8 @@ using System.Linq; using System.Xml.Linq; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/ObjectModel/Build.cs b/src/Samples/XmlFileLogger/ObjectModel/Build.cs index 639fb441a70..80b274e93c4 100644 --- a/src/Samples/XmlFileLogger/ObjectModel/Build.cs +++ b/src/Samples/XmlFileLogger/ObjectModel/Build.cs @@ -6,6 +6,8 @@ using System.Xml.Linq; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/ObjectModel/InputParameter.cs b/src/Samples/XmlFileLogger/ObjectModel/InputParameter.cs index 2b305ce6e6a..6787d9381c8 100644 --- a/src/Samples/XmlFileLogger/ObjectModel/InputParameter.cs +++ b/src/Samples/XmlFileLogger/ObjectModel/InputParameter.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/ObjectModel/Item.cs b/src/Samples/XmlFileLogger/ObjectModel/Item.cs index 7b3bbd31dfb..2a8620187c3 100644 --- a/src/Samples/XmlFileLogger/ObjectModel/Item.cs +++ b/src/Samples/XmlFileLogger/ObjectModel/Item.cs @@ -5,6 +5,8 @@ using System.Linq; using System.Xml.Linq; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/ObjectModel/ItemGroup.cs b/src/Samples/XmlFileLogger/ObjectModel/ItemGroup.cs index 17acc9b3bd2..568c56e3635 100644 --- a/src/Samples/XmlFileLogger/ObjectModel/ItemGroup.cs +++ b/src/Samples/XmlFileLogger/ObjectModel/ItemGroup.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/ObjectModel/Message.cs b/src/Samples/XmlFileLogger/ObjectModel/Message.cs index c96f680d1e4..b893987b08c 100644 --- a/src/Samples/XmlFileLogger/ObjectModel/Message.cs +++ b/src/Samples/XmlFileLogger/ObjectModel/Message.cs @@ -4,6 +4,8 @@ using System; using System.Xml.Linq; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/ObjectModel/OutputItem.cs b/src/Samples/XmlFileLogger/ObjectModel/OutputItem.cs index 0ab46bb6910..159226a674f 100644 --- a/src/Samples/XmlFileLogger/ObjectModel/OutputItem.cs +++ b/src/Samples/XmlFileLogger/ObjectModel/OutputItem.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/ObjectModel/OutputProperty.cs b/src/Samples/XmlFileLogger/ObjectModel/OutputProperty.cs index 7e5b86489b3..0654cd4b583 100644 --- a/src/Samples/XmlFileLogger/ObjectModel/OutputProperty.cs +++ b/src/Samples/XmlFileLogger/ObjectModel/OutputProperty.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/ObjectModel/Project.cs b/src/Samples/XmlFileLogger/ObjectModel/Project.cs index fbe8d847cee..1ce36edaf9a 100644 --- a/src/Samples/XmlFileLogger/ObjectModel/Project.cs +++ b/src/Samples/XmlFileLogger/ObjectModel/Project.cs @@ -8,6 +8,8 @@ using System.Xml.Linq; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/ObjectModel/Target.cs b/src/Samples/XmlFileLogger/ObjectModel/Target.cs index 062ecc4c5c9..a92d2013f16 100644 --- a/src/Samples/XmlFileLogger/ObjectModel/Target.cs +++ b/src/Samples/XmlFileLogger/ObjectModel/Target.cs @@ -5,6 +5,8 @@ using System.Xml.Linq; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/ObjectModel/Task.cs b/src/Samples/XmlFileLogger/ObjectModel/Task.cs index 10042b2b97d..3d276a28cb8 100644 --- a/src/Samples/XmlFileLogger/ObjectModel/Task.cs +++ b/src/Samples/XmlFileLogger/ObjectModel/Task.cs @@ -4,6 +4,8 @@ using System.Xml.Linq; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/ObjectModel/TaskParameter.cs b/src/Samples/XmlFileLogger/ObjectModel/TaskParameter.cs index 4e28d5136f1..464d10c5d19 100644 --- a/src/Samples/XmlFileLogger/ObjectModel/TaskParameter.cs +++ b/src/Samples/XmlFileLogger/ObjectModel/TaskParameter.cs @@ -5,6 +5,8 @@ using System.Linq; using System.Xml.Linq; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/PropertyBag.cs b/src/Samples/XmlFileLogger/PropertyBag.cs index b70c9300fac..9f5b6f00fde 100644 --- a/src/Samples/XmlFileLogger/PropertyBag.cs +++ b/src/Samples/XmlFileLogger/PropertyBag.cs @@ -5,6 +5,8 @@ using System.Collections; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Samples/XmlFileLogger/UnknownTaskParameterPrefixException.cs b/src/Samples/XmlFileLogger/UnknownTaskParameterPrefixException.cs index 93053bd8d9c..b2aec3d718a 100644 --- a/src/Samples/XmlFileLogger/UnknownTaskParameterPrefixException.cs +++ b/src/Samples/XmlFileLogger/UnknownTaskParameterPrefixException.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { internal class UnknownTaskParameterPrefixException : Exception diff --git a/src/Samples/XmlFileLogger/XmlFileLogger.cs b/src/Samples/XmlFileLogger/XmlFileLogger.cs index 5663da5cd74..e5ab9109723 100644 --- a/src/Samples/XmlFileLogger/XmlFileLogger.cs +++ b/src/Samples/XmlFileLogger/XmlFileLogger.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Logging.StructuredLogger { /// diff --git a/src/Shared/AssemblyFolders/AssemblyFoldersEx.cs b/src/Shared/AssemblyFolders/AssemblyFoldersEx.cs index da266d8220e..5bc6022778e 100644 --- a/src/Shared/AssemblyFolders/AssemblyFoldersEx.cs +++ b/src/Shared/AssemblyFolders/AssemblyFoldersEx.cs @@ -10,6 +10,8 @@ using Microsoft.Win32; using ProcessorArchitecture = System.Reflection.ProcessorArchitecture; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/AssemblyFolders/AssemblyFoldersFromConfig.cs b/src/Shared/AssemblyFolders/AssemblyFoldersFromConfig.cs index de37122792b..df443a76c86 100644 --- a/src/Shared/AssemblyFolders/AssemblyFoldersFromConfig.cs +++ b/src/Shared/AssemblyFolders/AssemblyFoldersFromConfig.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Utilities; using ProcessorArchitecture = System.Reflection.ProcessorArchitecture; +#nullable disable + namespace Microsoft.Build.Tasks.AssemblyFoldersFromConfig { internal class AssemblyFoldersFromConfig : IEnumerable diff --git a/src/Shared/AssemblyFolders/Serialization/AssemblyFolderCollection.cs b/src/Shared/AssemblyFolders/Serialization/AssemblyFolderCollection.cs index 20b19a423e1..30583b8abbe 100644 --- a/src/Shared/AssemblyFolders/Serialization/AssemblyFolderCollection.cs +++ b/src/Shared/AssemblyFolders/Serialization/AssemblyFolderCollection.cs @@ -4,6 +4,8 @@ using System.Xml; +#nullable disable + namespace Microsoft.Build.Shared.AssemblyFoldersFromConfig { [DataContract(Name = "AssemblyFoldersConfig", Namespace = "")] diff --git a/src/Shared/AssemblyFolders/Serialization/AssemblyFolderItem.cs b/src/Shared/AssemblyFolders/Serialization/AssemblyFolderItem.cs index ba2973e27ce..ede6de07772 100644 --- a/src/Shared/AssemblyFolders/Serialization/AssemblyFolderItem.cs +++ b/src/Shared/AssemblyFolders/Serialization/AssemblyFolderItem.cs @@ -1,6 +1,8 @@ using System.Diagnostics; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Shared.AssemblyFoldersFromConfig { [DataContract(Name="AssemblyFolder", Namespace = "")] diff --git a/src/Shared/AssemblyLoadInfo.cs b/src/Shared/AssemblyLoadInfo.cs index 014d7d411df..271a077efaa 100644 --- a/src/Shared/AssemblyLoadInfo.cs +++ b/src/Shared/AssemblyLoadInfo.cs @@ -6,6 +6,8 @@ using Microsoft.Build.BackEnd; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/AssemblyNameComparer.cs b/src/Shared/AssemblyNameComparer.cs index 389de34083b..1855a039164 100644 --- a/src/Shared/AssemblyNameComparer.cs +++ b/src/Shared/AssemblyNameComparer.cs @@ -5,6 +5,8 @@ using System.Collections; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/AssemblyNameExtension.cs b/src/Shared/AssemblyNameExtension.cs index 99db41274e3..f5f54c7e08d 100644 --- a/src/Shared/AssemblyNameExtension.cs +++ b/src/Shared/AssemblyNameExtension.cs @@ -15,6 +15,8 @@ using System.Reflection.Metadata; #endif +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/AssemblyNameReverseVersionComparer.cs b/src/Shared/AssemblyNameReverseVersionComparer.cs index 2d664afaf4f..6e8eb62be81 100644 --- a/src/Shared/AssemblyNameReverseVersionComparer.cs +++ b/src/Shared/AssemblyNameReverseVersionComparer.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/AwaitExtensions.cs b/src/Shared/AwaitExtensions.cs index b47da420b1f..3767e5f8c63 100644 --- a/src/Shared/AwaitExtensions.cs +++ b/src/Shared/AwaitExtensions.cs @@ -7,6 +7,8 @@ using System.Threading; using System.Threading.Tasks; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/BinaryReaderExtensions.cs b/src/Shared/BinaryReaderExtensions.cs index f1a1c16c587..ec48e932739 100644 --- a/src/Shared/BinaryReaderExtensions.cs +++ b/src/Shared/BinaryReaderExtensions.cs @@ -6,6 +6,8 @@ using System.Runtime.CompilerServices; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Shared { internal static class BinaryReaderExtensions diff --git a/src/Shared/BinaryTranslator.cs b/src/Shared/BinaryTranslator.cs index 56a1b1f3803..0991fe3a5b2 100644 --- a/src/Shared/BinaryTranslator.cs +++ b/src/Shared/BinaryTranslator.cs @@ -11,6 +11,8 @@ using System.Globalization; using System.Reflection; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/BinaryWriterExtensions.cs b/src/Shared/BinaryWriterExtensions.cs index 946eb483eaa..70d750aa883 100644 --- a/src/Shared/BinaryWriterExtensions.cs +++ b/src/Shared/BinaryWriterExtensions.cs @@ -6,6 +6,8 @@ using System.Runtime.CompilerServices; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Shared { internal static class BinaryWriterExtensions diff --git a/src/Shared/BufferedReadStream.cs b/src/Shared/BufferedReadStream.cs index f3f9b6906b3..479e5b7f168 100644 --- a/src/Shared/BufferedReadStream.cs +++ b/src/Shared/BufferedReadStream.cs @@ -4,6 +4,8 @@ using System; using System.IO; +#nullable disable + namespace Microsoft.Build.BackEnd { internal class BufferedReadStream : Stream diff --git a/src/Shared/BuildEnvironmentHelper.cs b/src/Shared/BuildEnvironmentHelper.cs index 6586362640f..8a75d738b65 100644 --- a/src/Shared/BuildEnvironmentHelper.cs +++ b/src/Shared/BuildEnvironmentHelper.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Shared { internal class BuildEnvironmentHelper diff --git a/src/Shared/BuildEventFileInfo.cs b/src/Shared/BuildEventFileInfo.cs index 7f2225e9fb4..a6e8f9108b3 100644 --- a/src/Shared/BuildEventFileInfo.cs +++ b/src/Shared/BuildEventFileInfo.cs @@ -5,6 +5,8 @@ using System.Xml; using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/CanonicalError.cs b/src/Shared/CanonicalError.cs index 6b8377e6531..406784dfeab 100644 --- a/src/Shared/CanonicalError.cs +++ b/src/Shared/CanonicalError.cs @@ -5,6 +5,8 @@ using System.Globalization; using System.Text.RegularExpressions; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/CollectionHelpers.cs b/src/Shared/CollectionHelpers.cs index 8d66f374154..18d052ed39e 100644 --- a/src/Shared/CollectionHelpers.cs +++ b/src/Shared/CollectionHelpers.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Linq; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/CommunicationsUtilities.cs b/src/Shared/CommunicationsUtilities.cs index 487080a3dff..2651cc3b0ae 100644 --- a/src/Shared/CommunicationsUtilities.cs +++ b/src/Shared/CommunicationsUtilities.cs @@ -22,6 +22,8 @@ using System.Threading.Tasks; #endif +#nullable disable + namespace Microsoft.Build.Internal { /// diff --git a/src/Shared/Constants.cs b/src/Shared/Constants.cs index 9a36fc1816e..3f63bd381c6 100644 --- a/src/Shared/Constants.cs +++ b/src/Shared/Constants.cs @@ -4,6 +4,8 @@ using System; using System.IO; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/ConversionUtilities.cs b/src/Shared/ConversionUtilities.cs index a6febc5c973..f043d4443be 100644 --- a/src/Shared/ConversionUtilities.cs +++ b/src/Shared/ConversionUtilities.cs @@ -6,6 +6,8 @@ using System.Text; using Error = Microsoft.Build.Shared.ErrorUtilities; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/CopyOnWriteDictionary.cs b/src/Shared/CopyOnWriteDictionary.cs index a452d24a321..8764cfcdc89 100644 --- a/src/Shared/CopyOnWriteDictionary.cs +++ b/src/Shared/CopyOnWriteDictionary.cs @@ -9,8 +9,6 @@ using System.Linq; using System.Runtime.Serialization; -#nullable enable - namespace Microsoft.Build.Collections { /// diff --git a/src/Shared/CoreCLRAssemblyLoader.cs b/src/Shared/CoreCLRAssemblyLoader.cs index cd02dba6528..11b4e076212 100644 --- a/src/Shared/CoreCLRAssemblyLoader.cs +++ b/src/Shared/CoreCLRAssemblyLoader.cs @@ -10,6 +10,8 @@ using System.Reflection; using System.Runtime.Loader; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/Debugging/DebugUtils.cs b/src/Shared/Debugging/DebugUtils.cs index 0ba09dac396..0d4975586ab 100644 --- a/src/Shared/Debugging/DebugUtils.cs +++ b/src/Shared/Debugging/DebugUtils.cs @@ -7,6 +7,8 @@ using System.IO; using System.Text.RegularExpressions; +#nullable disable + namespace Microsoft.Build.Shared.Debugging { internal static class DebugUtils diff --git a/src/Shared/Debugging/PrintLineDebugger.cs b/src/Shared/Debugging/PrintLineDebugger.cs index 28fe6c8587a..7584322ff2b 100644 --- a/src/Shared/Debugging/PrintLineDebugger.cs +++ b/src/Shared/Debugging/PrintLineDebugger.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Framework; using CommonWriterType = System.Action>; +#nullable disable + namespace Microsoft.Build.Shared.Debugging { /// diff --git a/src/Shared/Debugging/PrintLineDebuggerWriters.cs b/src/Shared/Debugging/PrintLineDebuggerWriters.cs index a5c33dca011..c95ad539ff2 100644 --- a/src/Shared/Debugging/PrintLineDebuggerWriters.cs +++ b/src/Shared/Debugging/PrintLineDebuggerWriters.cs @@ -7,6 +7,8 @@ using System.Linq; using CommonWriterType = System.Action>; +#nullable disable + namespace Microsoft.Build.Shared.Debugging { /// diff --git a/src/Shared/EncodingStringWriter.cs b/src/Shared/EncodingStringWriter.cs index 18465774860..fcbcb254b7d 100644 --- a/src/Shared/EncodingStringWriter.cs +++ b/src/Shared/EncodingStringWriter.cs @@ -2,6 +2,8 @@ using System.IO; using System.Text; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/EncodingUtilities.cs b/src/Shared/EncodingUtilities.cs index a938dce103e..40ae3a34e5b 100644 --- a/src/Shared/EncodingUtilities.cs +++ b/src/Shared/EncodingUtilities.cs @@ -7,6 +7,8 @@ using System.Linq; using System.Text; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/EnvironmentUtilities.cs b/src/Shared/EnvironmentUtilities.cs index 0167e5aa721..99f25138db0 100644 --- a/src/Shared/EnvironmentUtilities.cs +++ b/src/Shared/EnvironmentUtilities.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Shared { internal static partial class EnvironmentUtilities diff --git a/src/Shared/ErrorUtilities.cs b/src/Shared/ErrorUtilities.cs index ec9ea9a668c..7b9017f4701 100644 --- a/src/Shared/ErrorUtilities.cs +++ b/src/Shared/ErrorUtilities.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Framework; +#nullable disable + #if BUILDINGAPPXTASKS namespace Microsoft.Build.AppxPackage.Shared #else diff --git a/src/Shared/EscapingUtilities.cs b/src/Shared/EscapingUtilities.cs index 723a4df0139..51a9e9465d2 100644 --- a/src/Shared/EscapingUtilities.cs +++ b/src/Shared/EscapingUtilities.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Framework; using Microsoft.NET.StringTools; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/EventArgsFormatting.cs b/src/Shared/EventArgsFormatting.cs index 77de4f84fc0..b6903a50c3c 100644 --- a/src/Shared/EventArgsFormatting.cs +++ b/src/Shared/EventArgsFormatting.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/ExceptionHandling.cs b/src/Shared/ExceptionHandling.cs index f359e71a71d..d1eaf67c730 100644 --- a/src/Shared/ExceptionHandling.cs +++ b/src/Shared/ExceptionHandling.cs @@ -2,6 +2,8 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. #if BUILDINGAPPXTASKS +#nullable disable + namespace Microsoft.Build.AppxPackage.Shared #else using System; @@ -24,6 +26,8 @@ namespace Microsoft.Build.AppxPackage.Shared #endif using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Shared #endif { diff --git a/src/Shared/ExtensionFoldersRegistryKey.cs b/src/Shared/ExtensionFoldersRegistryKey.cs index bcfaa8c37de..a4eab36a425 100644 --- a/src/Shared/ExtensionFoldersRegistryKey.cs +++ b/src/Shared/ExtensionFoldersRegistryKey.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/FileDelegates.cs b/src/Shared/FileDelegates.cs index bbe0c8e39a4..c4e9db5ec78 100644 --- a/src/Shared/FileDelegates.cs +++ b/src/Shared/FileDelegates.cs @@ -3,6 +3,8 @@ using System.IO; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/FileMatcher.cs b/src/Shared/FileMatcher.cs index 6f089b3e8ad..2d1039f0ad3 100644 --- a/src/Shared/FileMatcher.cs +++ b/src/Shared/FileMatcher.cs @@ -14,6 +14,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/FileSystem/CachingFileSystemWrapper.cs b/src/Shared/FileSystem/CachingFileSystemWrapper.cs index b541f1b44f7..7dc859b7a61 100644 --- a/src/Shared/FileSystem/CachingFileSystemWrapper.cs +++ b/src/Shared/FileSystem/CachingFileSystemWrapper.cs @@ -6,6 +6,8 @@ using System.Collections.Generic; using System.IO; +#nullable disable + namespace Microsoft.Build.Shared.FileSystem { internal class CachingFileSystemWrapper : IFileSystem diff --git a/src/Shared/FileSystem/FileSystems.cs b/src/Shared/FileSystem/FileSystems.cs index 15b6b43bb2b..8a072f89e62 100644 --- a/src/Shared/FileSystem/FileSystems.cs +++ b/src/Shared/FileSystem/FileSystems.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Shared.FileSystem { /// diff --git a/src/Shared/FileSystem/IFileSystem.cs b/src/Shared/FileSystem/IFileSystem.cs index c5e32373eec..3b08f7ff451 100644 --- a/src/Shared/FileSystem/IFileSystem.cs +++ b/src/Shared/FileSystem/IFileSystem.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.IO; +#nullable disable + namespace Microsoft.Build.Shared.FileSystem { diff --git a/src/Shared/FileSystem/MSBuildOnWindowsFileSystem.cs b/src/Shared/FileSystem/MSBuildOnWindowsFileSystem.cs index e0be3971d7a..3dd41850342 100644 --- a/src/Shared/FileSystem/MSBuildOnWindowsFileSystem.cs +++ b/src/Shared/FileSystem/MSBuildOnWindowsFileSystem.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.IO; +#nullable disable + namespace Microsoft.Build.Shared.FileSystem { /// diff --git a/src/Shared/FileSystem/ManagedFileSystem.cs b/src/Shared/FileSystem/ManagedFileSystem.cs index 982a7d97273..4ae81fc5ada 100644 --- a/src/Shared/FileSystem/ManagedFileSystem.cs +++ b/src/Shared/FileSystem/ManagedFileSystem.cs @@ -6,6 +6,8 @@ using System.Collections.Generic; using System.IO; +#nullable disable + namespace Microsoft.Build.Shared.FileSystem { /// diff --git a/src/Shared/FileSystem/NativeWin32Exception.cs b/src/Shared/FileSystem/NativeWin32Exception.cs index b431c5cd2fa..e013be4f15d 100644 --- a/src/Shared/FileSystem/NativeWin32Exception.cs +++ b/src/Shared/FileSystem/NativeWin32Exception.cs @@ -6,6 +6,8 @@ using System.Diagnostics.CodeAnalysis; using System.Globalization; +#nullable disable + namespace Microsoft.Build.Shared.FileSystem { /// diff --git a/src/Shared/FileSystem/SafeFileHandle.cs b/src/Shared/FileSystem/SafeFileHandle.cs index 9f6a0d7c767..e24195c838a 100644 --- a/src/Shared/FileSystem/SafeFileHandle.cs +++ b/src/Shared/FileSystem/SafeFileHandle.cs @@ -3,6 +3,8 @@ 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 60b7d8ececa..03c739e6710 100644 --- a/src/Shared/FileSystem/WindowsFileSystem.cs +++ b/src/Shared/FileSystem/WindowsFileSystem.cs @@ -7,6 +7,8 @@ using System.IO; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Shared.FileSystem { /// diff --git a/src/Shared/FileSystem/WindowsNative.cs b/src/Shared/FileSystem/WindowsNative.cs index 416e91a5a16..6ff01bc882c 100644 --- a/src/Shared/FileSystem/WindowsNative.cs +++ b/src/Shared/FileSystem/WindowsNative.cs @@ -8,6 +8,8 @@ using System.IO; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Shared.FileSystem { /// diff --git a/src/Shared/FileUtilities.cs b/src/Shared/FileUtilities.cs index 940bcd46ce9..238d8d66792 100644 --- a/src/Shared/FileUtilities.cs +++ b/src/Shared/FileUtilities.cs @@ -20,6 +20,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/FileUtilitiesRegex.cs b/src/Shared/FileUtilitiesRegex.cs index d3e3b97af5f..be844880ad2 100644 --- a/src/Shared/FileUtilitiesRegex.cs +++ b/src/Shared/FileUtilitiesRegex.cs @@ -3,6 +3,8 @@ using System.Runtime.CompilerServices; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/FrameworkLocationHelper.cs b/src/Shared/FrameworkLocationHelper.cs index 42237dde8c9..135c2aa2b49 100644 --- a/src/Shared/FrameworkLocationHelper.cs +++ b/src/Shared/FrameworkLocationHelper.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/IConstrainedEqualityComparer.cs b/src/Shared/IConstrainedEqualityComparer.cs index 50f1bf44d99..bedd0146be9 100644 --- a/src/Shared/IConstrainedEqualityComparer.cs +++ b/src/Shared/IConstrainedEqualityComparer.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Shared/IElementLocation.cs b/src/Shared/IElementLocation.cs index b9b26cfd74b..fb1d1d25849 100644 --- a/src/Shared/IElementLocation.cs +++ b/src/Shared/IElementLocation.cs @@ -3,6 +3,8 @@ using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/IKeyed.cs b/src/Shared/IKeyed.cs index 43457411506..64bb7dc1094 100644 --- a/src/Shared/IKeyed.cs +++ b/src/Shared/IKeyed.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Shared/INodeEndpoint.cs b/src/Shared/INodeEndpoint.cs index a7dca856dd6..cb8ce4a4c0a 100644 --- a/src/Shared/INodeEndpoint.cs +++ b/src/Shared/INodeEndpoint.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.BackEnd { #region Delegates diff --git a/src/Shared/INodePacket.cs b/src/Shared/INodePacket.cs index 501402c8756..481a99bfce9 100644 --- a/src/Shared/INodePacket.cs +++ b/src/Shared/INodePacket.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.BackEnd { #region Enums diff --git a/src/Shared/INodePacketFactory.cs b/src/Shared/INodePacketFactory.cs index 6b94bf0ef1c..9449c2aa021 100644 --- a/src/Shared/INodePacketFactory.cs +++ b/src/Shared/INodePacketFactory.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/INodePacketHandler.cs b/src/Shared/INodePacketHandler.cs index 2b37942271e..c8e3a6c77c4 100644 --- a/src/Shared/INodePacketHandler.cs +++ b/src/Shared/INodePacketHandler.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/ITranslatable.cs b/src/Shared/ITranslatable.cs index a235e30aa2e..7492f801260 100644 --- a/src/Shared/ITranslatable.cs +++ b/src/Shared/ITranslatable.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/ITranslator.cs b/src/Shared/ITranslator.cs index c3360d19224..61dc02cc3a0 100644 --- a/src/Shared/ITranslator.cs +++ b/src/Shared/ITranslator.cs @@ -7,6 +7,8 @@ using System.IO; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/InprocTrackingNativeMethods.cs b/src/Shared/InprocTrackingNativeMethods.cs index 03d583703f6..80da8f6abff 100644 --- a/src/Shared/InprocTrackingNativeMethods.cs +++ b/src/Shared/InprocTrackingNativeMethods.cs @@ -18,6 +18,8 @@ using System.Runtime.Versioning; #endif +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/InterningBinaryReader.cs b/src/Shared/InterningBinaryReader.cs index 389450a2242..7f186597527 100644 --- a/src/Shared/InterningBinaryReader.cs +++ b/src/Shared/InterningBinaryReader.cs @@ -15,6 +15,8 @@ using Microsoft.NET.StringTools; +#nullable disable + namespace Microsoft.Build { /// diff --git a/src/Shared/LanguageParser/CSharptokenCharReader.cs b/src/Shared/LanguageParser/CSharptokenCharReader.cs index 38f35bfd895..e6daba8d38d 100644 --- a/src/Shared/LanguageParser/CSharptokenCharReader.cs +++ b/src/Shared/LanguageParser/CSharptokenCharReader.cs @@ -4,6 +4,8 @@ using System; using System.IO; +#nullable disable + namespace Microsoft.Build.Shared.LanguageParser { /* diff --git a/src/Shared/LanguageParser/CSharptokenEnumerator.cs b/src/Shared/LanguageParser/CSharptokenEnumerator.cs index d3d01f4c042..6cd1204c112 100644 --- a/src/Shared/LanguageParser/CSharptokenEnumerator.cs +++ b/src/Shared/LanguageParser/CSharptokenEnumerator.cs @@ -5,6 +5,8 @@ using System.IO; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Shared.LanguageParser { /* diff --git a/src/Shared/LanguageParser/CSharptokenizer.cs b/src/Shared/LanguageParser/CSharptokenizer.cs index 0f0ea0983b7..eedeedd05a8 100644 --- a/src/Shared/LanguageParser/CSharptokenizer.cs +++ b/src/Shared/LanguageParser/CSharptokenizer.cs @@ -4,6 +4,8 @@ using System.IO; using System.Collections; +#nullable disable + namespace Microsoft.Build.Shared.LanguageParser { /* diff --git a/src/Shared/LanguageParser/StreamMappedString.cs b/src/Shared/LanguageParser/StreamMappedString.cs index a5e11f905ad..f8fda805458 100644 --- a/src/Shared/LanguageParser/StreamMappedString.cs +++ b/src/Shared/LanguageParser/StreamMappedString.cs @@ -5,6 +5,8 @@ using System.IO; using System.Text; +#nullable disable + namespace Microsoft.Build.Shared.LanguageParser { /// diff --git a/src/Shared/LanguageParser/VisualBasictokenCharReader.cs b/src/Shared/LanguageParser/VisualBasictokenCharReader.cs index f409167ce25..696b113281c 100644 --- a/src/Shared/LanguageParser/VisualBasictokenCharReader.cs +++ b/src/Shared/LanguageParser/VisualBasictokenCharReader.cs @@ -4,6 +4,8 @@ using System; using System.IO; +#nullable disable + namespace Microsoft.Build.Shared.LanguageParser { /* diff --git a/src/Shared/LanguageParser/VisualBasictokenEnumerator.cs b/src/Shared/LanguageParser/VisualBasictokenEnumerator.cs index e0304216852..3fbc3b0ed4b 100644 --- a/src/Shared/LanguageParser/VisualBasictokenEnumerator.cs +++ b/src/Shared/LanguageParser/VisualBasictokenEnumerator.cs @@ -4,6 +4,8 @@ using System; using System.IO; +#nullable disable + namespace Microsoft.Build.Shared.LanguageParser { /* diff --git a/src/Shared/LanguageParser/VisualBasictokenizer.cs b/src/Shared/LanguageParser/VisualBasictokenizer.cs index ee2a0699596..3dfff889a24 100644 --- a/src/Shared/LanguageParser/VisualBasictokenizer.cs +++ b/src/Shared/LanguageParser/VisualBasictokenizer.cs @@ -4,6 +4,8 @@ using System.IO; using System.Collections; +#nullable disable + namespace Microsoft.Build.Shared.LanguageParser { /* diff --git a/src/Shared/LanguageParser/token.cs b/src/Shared/LanguageParser/token.cs index 495d648099d..2322048c796 100644 --- a/src/Shared/LanguageParser/token.cs +++ b/src/Shared/LanguageParser/token.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Shared.LanguageParser { /* diff --git a/src/Shared/LanguageParser/tokenChar.cs b/src/Shared/LanguageParser/tokenChar.cs index 98c179f63e1..11b2301838d 100644 --- a/src/Shared/LanguageParser/tokenChar.cs +++ b/src/Shared/LanguageParser/tokenChar.cs @@ -3,6 +3,8 @@ 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 3f326e75c3b..3c248272db8 100644 --- a/src/Shared/LanguageParser/tokenCharReader.cs +++ b/src/Shared/LanguageParser/tokenCharReader.cs @@ -4,6 +4,8 @@ using System; using System.IO; +#nullable disable + namespace Microsoft.Build.Shared.LanguageParser { /* diff --git a/src/Shared/LanguageParser/tokenEnumerator.cs b/src/Shared/LanguageParser/tokenEnumerator.cs index 8863c3529f7..8c691dcb8b8 100644 --- a/src/Shared/LanguageParser/tokenEnumerator.cs +++ b/src/Shared/LanguageParser/tokenEnumerator.cs @@ -3,6 +3,8 @@ using System.Collections; +#nullable disable + namespace Microsoft.Build.Shared.LanguageParser { /* diff --git a/src/Shared/LoadedType.cs b/src/Shared/LoadedType.cs index b1cdebf4649..eeae7eb79ab 100644 --- a/src/Shared/LoadedType.cs +++ b/src/Shared/LoadedType.cs @@ -5,6 +5,8 @@ using System.Reflection; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/LogMessagePacketBase.cs b/src/Shared/LogMessagePacketBase.cs index c398d3304a5..9a74af64e0d 100644 --- a/src/Shared/LogMessagePacketBase.cs +++ b/src/Shared/LogMessagePacketBase.cs @@ -22,6 +22,8 @@ using TaskEngineAssemblyResolver = Microsoft.Build.BackEnd.Logging.TaskEngineAssemblyResolver; #endif +#nullable disable + namespace Microsoft.Build.Shared { #region Enumerations diff --git a/src/Shared/MSBuildLoadContext.cs b/src/Shared/MSBuildLoadContext.cs index 7e3842bbbbd..37bf6eebc35 100644 --- a/src/Shared/MSBuildLoadContext.cs +++ b/src/Shared/MSBuildLoadContext.cs @@ -1,14 +1,12 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. - using Microsoft.Build.Shared.FileSystem; using System.Collections.Immutable; using System.IO; using System.Reflection; using System.Runtime.Loader; -#nullable enable namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/MSBuildNameIgnoreCaseComparer.cs b/src/Shared/MSBuildNameIgnoreCaseComparer.cs index d0930cc0e19..47beaffd08c 100644 --- a/src/Shared/MSBuildNameIgnoreCaseComparer.cs +++ b/src/Shared/MSBuildNameIgnoreCaseComparer.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Shared/MetadataConversionUtilities.cs b/src/Shared/MetadataConversionUtilities.cs index b815f2fba99..5a3a4e02017 100644 --- a/src/Shared/MetadataConversionUtilities.cs +++ b/src/Shared/MetadataConversionUtilities.cs @@ -4,6 +4,8 @@ using System; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/Modifiers.cs b/src/Shared/Modifiers.cs index bfb564d884b..6905d0838a2 100644 --- a/src/Shared/Modifiers.cs +++ b/src/Shared/Modifiers.cs @@ -7,6 +7,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/NGen.cs b/src/Shared/NGen.cs index cf3cb7a3ab6..31276fe5fdd 100644 --- a/src/Shared/NGen.cs +++ b/src/Shared/NGen.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/NamedPipeUtil.cs b/src/Shared/NamedPipeUtil.cs index e3b1341515f..4fbe37002a4 100644 --- a/src/Shared/NamedPipeUtil.cs +++ b/src/Shared/NamedPipeUtil.cs @@ -4,8 +4,6 @@ using System.Diagnostics; using System.IO; -#nullable enable - namespace Microsoft.Build.Shared { internal static class NamedPipeUtil diff --git a/src/Shared/NodeBuildComplete.cs b/src/Shared/NodeBuildComplete.cs index 5e9b03e32ce..f057cac41ef 100644 --- a/src/Shared/NodeBuildComplete.cs +++ b/src/Shared/NodeBuildComplete.cs @@ -3,6 +3,8 @@ using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/NodeEndpointOutOfProcBase.cs b/src/Shared/NodeEndpointOutOfProcBase.cs index 4562c4309d7..b6af33836ec 100644 --- a/src/Shared/NodeEndpointOutOfProcBase.cs +++ b/src/Shared/NodeEndpointOutOfProcBase.cs @@ -22,6 +22,8 @@ using System.Threading.Tasks; #endif +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/NodeEngineShutdownReason.cs b/src/Shared/NodeEngineShutdownReason.cs index 1d49af7082f..2eaa6e307b1 100644 --- a/src/Shared/NodeEngineShutdownReason.cs +++ b/src/Shared/NodeEngineShutdownReason.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Execution { #region Enums diff --git a/src/Shared/NodePacketFactory.cs b/src/Shared/NodePacketFactory.cs index 17b3e52c8f7..c35e728860f 100644 --- a/src/Shared/NodePacketFactory.cs +++ b/src/Shared/NodePacketFactory.cs @@ -4,6 +4,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/NodeShutdown.cs b/src/Shared/NodeShutdown.cs index 8bd7ce3da77..1c6af10afec 100644 --- a/src/Shared/NodeShutdown.cs +++ b/src/Shared/NodeShutdown.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/OutOfProcTaskHostTaskResult.cs b/src/Shared/OutOfProcTaskHostTaskResult.cs index f7c803c095e..c08d6bb0c34 100644 --- a/src/Shared/OutOfProcTaskHostTaskResult.cs +++ b/src/Shared/OutOfProcTaskHostTaskResult.cs @@ -6,6 +6,8 @@ using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/Pair.cs b/src/Shared/Pair.cs index 214cd891074..ce7e3f72830 100644 --- a/src/Shared/Pair.cs +++ b/src/Shared/Pair.cs @@ -3,6 +3,8 @@ using System.Diagnostics.CodeAnalysis; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/ProcessExtensions.cs b/src/Shared/ProcessExtensions.cs index e09db350365..67025e4d7b5 100644 --- a/src/Shared/ProcessExtensions.cs +++ b/src/Shared/ProcessExtensions.cs @@ -6,6 +6,8 @@ using System.Diagnostics; using System.IO; +#nullable disable + namespace Microsoft.Build.Shared { internal static class ProcessExtensions diff --git a/src/Shared/ProjectErrorUtilities.cs b/src/Shared/ProjectErrorUtilities.cs index b02ed0ef6c3..e44989600e0 100644 --- a/src/Shared/ProjectErrorUtilities.cs +++ b/src/Shared/ProjectErrorUtilities.cs @@ -14,6 +14,8 @@ ******************************************************************************/ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/ProjectFileErrorUtilities.cs b/src/Shared/ProjectFileErrorUtilities.cs index bcc433204d0..aa8bc142a3a 100644 --- a/src/Shared/ProjectFileErrorUtilities.cs +++ b/src/Shared/ProjectFileErrorUtilities.cs @@ -5,6 +5,8 @@ using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileException; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/ProjectWriter.cs b/src/Shared/ProjectWriter.cs index d925f19dea0..66f197081ec 100644 --- a/src/Shared/ProjectWriter.cs +++ b/src/Shared/ProjectWriter.cs @@ -7,6 +7,8 @@ using System.Text; using System.Text.RegularExpressions; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/PropertyParser.cs b/src/Shared/PropertyParser.cs index e10f51efc8f..607b92a1841 100644 --- a/src/Shared/PropertyParser.cs +++ b/src/Shared/PropertyParser.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using Microsoft.NET.StringTools; +#nullable disable + #if BUILD_ENGINE namespace Microsoft.Build.BackEnd #else diff --git a/src/Shared/QuotingUtilities.cs b/src/Shared/QuotingUtilities.cs index 1e63c841cf9..72eca743bf6 100644 --- a/src/Shared/QuotingUtilities.cs +++ b/src/Shared/QuotingUtilities.cs @@ -6,6 +6,8 @@ using System.Diagnostics; using System.Text; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/ReadOnlyCollection.cs b/src/Shared/ReadOnlyCollection.cs index 4837b457a32..69454ab1b1d 100644 --- a/src/Shared/ReadOnlyCollection.cs +++ b/src/Shared/ReadOnlyCollection.cs @@ -7,6 +7,8 @@ using System.Collections; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Shared/ReadOnlyEmptyCollection.cs b/src/Shared/ReadOnlyEmptyCollection.cs index 22caa31c707..76bbf5f5834 100644 --- a/src/Shared/ReadOnlyEmptyCollection.cs +++ b/src/Shared/ReadOnlyEmptyCollection.cs @@ -6,6 +6,8 @@ using System.Collections; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Shared/ReadOnlyEmptyDictionary.cs b/src/Shared/ReadOnlyEmptyDictionary.cs index 020dba0bb72..ced752ddd33 100644 --- a/src/Shared/ReadOnlyEmptyDictionary.cs +++ b/src/Shared/ReadOnlyEmptyDictionary.cs @@ -7,6 +7,8 @@ using System.Linq; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Collections { /// diff --git a/src/Shared/RegisteredTaskObjectCacheBase.cs b/src/Shared/RegisteredTaskObjectCacheBase.cs index 3e8cabaf744..db7ff5ddf4d 100644 --- a/src/Shared/RegisteredTaskObjectCacheBase.cs +++ b/src/Shared/RegisteredTaskObjectCacheBase.cs @@ -5,9 +5,10 @@ using System.Collections.Concurrent; using Microsoft.Build.Framework; +#nullable disable + #if BUILD_ENGINE using Microsoft.Build.Shared; - namespace Microsoft.Build.BackEnd.Components.Caching #else namespace Microsoft.Build.Shared diff --git a/src/Shared/RegistryDelegates.cs b/src/Shared/RegistryDelegates.cs index 7803068f0bd..45f28819e26 100644 --- a/src/Shared/RegistryDelegates.cs +++ b/src/Shared/RegistryDelegates.cs @@ -10,6 +10,8 @@ using System.Collections; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Shared { /// /// Given a registry hive and a request view open the base key for that registry location. diff --git a/src/Shared/RegistryHelper.cs b/src/Shared/RegistryHelper.cs index 53085889348..19cc6190041 100644 --- a/src/Shared/RegistryHelper.cs +++ b/src/Shared/RegistryHelper.cs @@ -8,6 +8,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/ResourceUtilities.cs b/src/Shared/ResourceUtilities.cs index 1cd325959fc..1146f026158 100644 --- a/src/Shared/ResourceUtilities.cs +++ b/src/Shared/ResourceUtilities.cs @@ -8,6 +8,8 @@ using System.Globalization; using System.ComponentModel; +#nullable disable + #if BUILDINGAPPXTASKS namespace Microsoft.Build.AppxPackage.Shared #else diff --git a/src/Shared/StringExtensions.cs b/src/Shared/StringExtensions.cs index ac22c933785..e6009bfd5ef 100644 --- a/src/Shared/StringExtensions.cs +++ b/src/Shared/StringExtensions.cs @@ -4,6 +4,8 @@ using System; using System.Text; +#nullable disable + namespace Microsoft.Build.Shared { internal static class StringExtensions diff --git a/src/Shared/StrongNameHelpers.cs b/src/Shared/StrongNameHelpers.cs index 8bc93fb0951..b1fe143476f 100644 --- a/src/Shared/StrongNameHelpers.cs +++ b/src/Shared/StrongNameHelpers.cs @@ -9,6 +9,8 @@ #if FEATURE_STRONG_NAMES +#nullable disable + namespace Microsoft.Runtime.Hosting { /// diff --git a/src/Shared/TaskEngineAssemblyResolver.cs b/src/Shared/TaskEngineAssemblyResolver.cs index ddbc6dcc62c..9a09e33310d 100644 --- a/src/Shared/TaskEngineAssemblyResolver.cs +++ b/src/Shared/TaskEngineAssemblyResolver.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.BackEnd.Logging { /// diff --git a/src/Shared/TaskHostConfiguration.cs b/src/Shared/TaskHostConfiguration.cs index 815eda222b3..7b0c1f9dbef 100644 --- a/src/Shared/TaskHostConfiguration.cs +++ b/src/Shared/TaskHostConfiguration.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/TaskHostTaskCancelled.cs b/src/Shared/TaskHostTaskCancelled.cs index 83a0389b7ba..597607cc4db 100644 --- a/src/Shared/TaskHostTaskCancelled.cs +++ b/src/Shared/TaskHostTaskCancelled.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/TaskHostTaskComplete.cs b/src/Shared/TaskHostTaskComplete.cs index 11194395c49..de13737cb1b 100644 --- a/src/Shared/TaskHostTaskComplete.cs +++ b/src/Shared/TaskHostTaskComplete.cs @@ -6,6 +6,8 @@ using System.Diagnostics; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/TaskLoader.cs b/src/Shared/TaskLoader.cs index 5388f15d8e6..c553d8e36ac 100644 --- a/src/Shared/TaskLoader.cs +++ b/src/Shared/TaskLoader.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/TaskLoggingHelper.cs b/src/Shared/TaskLoggingHelper.cs index 7de1b7c8ab1..5ac573ea245 100644 --- a/src/Shared/TaskLoggingHelper.cs +++ b/src/Shared/TaskLoggingHelper.cs @@ -16,6 +16,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + #if BUILD_ENGINE namespace Microsoft.Build.BackEnd #else diff --git a/src/Shared/TaskLoggingHelperExtension.cs b/src/Shared/TaskLoggingHelperExtension.cs index fbfe95f875c..9be33ca4af3 100644 --- a/src/Shared/TaskLoggingHelperExtension.cs +++ b/src/Shared/TaskLoggingHelperExtension.cs @@ -14,6 +14,8 @@ //This is in the Tasks namespace because that's where it was before and it is public. +#nullable disable + #if BUILD_ENGINE namespace Microsoft.Build.BackEnd #else diff --git a/src/Shared/TaskParameter.cs b/src/Shared/TaskParameter.cs index 9dbd4f83802..4f79f3ad053 100644 --- a/src/Shared/TaskParameter.cs +++ b/src/Shared/TaskParameter.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/TaskParameterTypeVerifier.cs b/src/Shared/TaskParameterTypeVerifier.cs index 0b0f0cac815..e745e75e4bd 100644 --- a/src/Shared/TaskParameterTypeVerifier.cs +++ b/src/Shared/TaskParameterTypeVerifier.cs @@ -6,6 +6,8 @@ using System.Reflection; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/TempFileUtilities.cs b/src/Shared/TempFileUtilities.cs index 6f560189522..f3bffb9d425 100644 --- a/src/Shared/TempFileUtilities.cs +++ b/src/Shared/TempFileUtilities.cs @@ -6,6 +6,8 @@ using System.Runtime.CompilerServices; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/ThreadPoolExtensions.cs b/src/Shared/ThreadPoolExtensions.cs index 82c01df36a6..08dda3d4b57 100644 --- a/src/Shared/ThreadPoolExtensions.cs +++ b/src/Shared/ThreadPoolExtensions.cs @@ -5,6 +5,8 @@ using System.Globalization; using System.Threading; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/ToolsetElement.cs b/src/Shared/ToolsetElement.cs index f3f240f8537..8f7951b2d77 100644 --- a/src/Shared/ToolsetElement.cs +++ b/src/Shared/ToolsetElement.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Evaluation { /// diff --git a/src/Shared/Tracing.cs b/src/Shared/Tracing.cs index 7cdc0392191..09184fe4666 100644 --- a/src/Shared/Tracing.cs +++ b/src/Shared/Tracing.cs @@ -7,6 +7,8 @@ using System.Diagnostics.CodeAnalysis; using System.Reflection; +#nullable disable + namespace Microsoft.Build.Internal { /// diff --git a/src/Shared/TranslatorHelpers.cs b/src/Shared/TranslatorHelpers.cs index c3e7d12b6ad..6850b11f1a2 100644 --- a/src/Shared/TranslatorHelpers.cs +++ b/src/Shared/TranslatorHelpers.cs @@ -8,6 +8,8 @@ using System.Reflection; using AssemblyHashAlgorithm = System.Configuration.Assemblies.AssemblyHashAlgorithm; +#nullable disable + namespace Microsoft.Build.BackEnd { /// diff --git a/src/Shared/TypeLoader.cs b/src/Shared/TypeLoader.cs index 7f879afa8aa..d296c8c7547 100644 --- a/src/Shared/TypeLoader.cs +++ b/src/Shared/TypeLoader.cs @@ -10,6 +10,8 @@ using System.Reflection; using System.Threading; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/UnitTests/AssemblyNameEx_Tests.cs b/src/Shared/UnitTests/AssemblyNameEx_Tests.cs index 120adbb9ed4..3c0bf360279 100644 --- a/src/Shared/UnitTests/AssemblyNameEx_Tests.cs +++ b/src/Shared/UnitTests/AssemblyNameEx_Tests.cs @@ -13,6 +13,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class AssemblyNameEx_Tests diff --git a/src/Shared/UnitTests/AssemblyResources.cs b/src/Shared/UnitTests/AssemblyResources.cs index 962b5b0342f..baa3ffd33ba 100644 --- a/src/Shared/UnitTests/AssemblyResources.cs +++ b/src/Shared/UnitTests/AssemblyResources.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/UnitTests/BuildEventArgsExtension.cs b/src/Shared/UnitTests/BuildEventArgsExtension.cs index c2e67c450c9..b41117fb094 100644 --- a/src/Shared/UnitTests/BuildEventArgsExtension.cs +++ b/src/Shared/UnitTests/BuildEventArgsExtension.cs @@ -6,6 +6,8 @@ using System.Collections.Generic; using TaskItem = Microsoft.Build.Execution.ProjectItemInstance.TaskItem; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Shared/UnitTests/CopyOnWriteDictionary_Tests.cs b/src/Shared/UnitTests/CopyOnWriteDictionary_Tests.cs index 73813296685..f609286317e 100644 --- a/src/Shared/UnitTests/CopyOnWriteDictionary_Tests.cs +++ b/src/Shared/UnitTests/CopyOnWriteDictionary_Tests.cs @@ -9,6 +9,8 @@ using Xunit; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests.OM.Collections { /// diff --git a/src/Shared/UnitTests/EngineTestEnvironment.cs b/src/Shared/UnitTests/EngineTestEnvironment.cs index 4641dc5e2b3..bc73e420dc1 100644 --- a/src/Shared/UnitTests/EngineTestEnvironment.cs +++ b/src/Shared/UnitTests/EngineTestEnvironment.cs @@ -15,6 +15,8 @@ using Microsoft.Build.Shared; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests { public partial class TestEnvironment diff --git a/src/Shared/UnitTests/ErrorUtilities_Tests.cs b/src/Shared/UnitTests/ErrorUtilities_Tests.cs index 6b3556f4a51..d8d83d96d9e 100644 --- a/src/Shared/UnitTests/ErrorUtilities_Tests.cs +++ b/src/Shared/UnitTests/ErrorUtilities_Tests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class ErrorUtilities_Tests diff --git a/src/Shared/UnitTests/EscapingUtilities_Tests.cs b/src/Shared/UnitTests/EscapingUtilities_Tests.cs index b02c378e2eb..180c18a2a5d 100644 --- a/src/Shared/UnitTests/EscapingUtilities_Tests.cs +++ b/src/Shared/UnitTests/EscapingUtilities_Tests.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class EscapingUtilities_Tests diff --git a/src/Shared/UnitTests/FileMatcher_Tests.cs b/src/Shared/UnitTests/FileMatcher_Tests.cs index b779aaa45ba..e1f0567d8e2 100644 --- a/src/Shared/UnitTests/FileMatcher_Tests.cs +++ b/src/Shared/UnitTests/FileMatcher_Tests.cs @@ -15,6 +15,8 @@ using Xunit.Abstractions; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.UnitTests { public class FileMatcherTest : IDisposable diff --git a/src/Shared/UnitTests/FileUtilities_Tests.cs b/src/Shared/UnitTests/FileUtilities_Tests.cs index a9754904854..629dcdf5d9b 100644 --- a/src/Shared/UnitTests/FileUtilities_Tests.cs +++ b/src/Shared/UnitTests/FileUtilities_Tests.cs @@ -10,6 +10,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class FileUtilities_Tests diff --git a/src/Shared/UnitTests/ImmutableDictionary_Tests.cs b/src/Shared/UnitTests/ImmutableDictionary_Tests.cs index e30a8cc75d1..f990142f1e7 100644 --- a/src/Shared/UnitTests/ImmutableDictionary_Tests.cs +++ b/src/Shared/UnitTests/ImmutableDictionary_Tests.cs @@ -21,6 +21,8 @@ using ImmutableDictionary = MSBuildTaskHost::System.Collections.Immutable.ImmutableDictionary; #endif +#nullable disable + namespace Microsoft.Build.UnitTests { public class ImmutableDictionary_Tests diff --git a/src/Shared/UnitTests/MockEngine.cs b/src/Shared/UnitTests/MockEngine.cs index 431e8948cb0..7d54b8e7217 100644 --- a/src/Shared/UnitTests/MockEngine.cs +++ b/src/Shared/UnitTests/MockEngine.cs @@ -14,6 +14,8 @@ using Shouldly; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { /*************************************************************************** diff --git a/src/Shared/UnitTests/MockLogger.cs b/src/Shared/UnitTests/MockLogger.cs index f8a094bb442..2f07fca6d10 100644 --- a/src/Shared/UnitTests/MockLogger.cs +++ b/src/Shared/UnitTests/MockLogger.cs @@ -15,6 +15,8 @@ using Xunit.Abstractions; using ProjectCollection = Microsoft.Build.Evaluation.ProjectCollection; +#nullable disable + namespace Microsoft.Build.UnitTests { /* diff --git a/src/Shared/UnitTests/NativeMethodsShared_Tests.cs b/src/Shared/UnitTests/NativeMethodsShared_Tests.cs index db838d518f1..dd69a5d980c 100644 --- a/src/Shared/UnitTests/NativeMethodsShared_Tests.cs +++ b/src/Shared/UnitTests/NativeMethodsShared_Tests.cs @@ -11,6 +11,8 @@ +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class NativeMethodsShared_Tests diff --git a/src/Shared/UnitTests/ObjectModelHelpers.cs b/src/Shared/UnitTests/ObjectModelHelpers.cs index e647fd709c0..f10c107310f 100644 --- a/src/Shared/UnitTests/ObjectModelHelpers.cs +++ b/src/Shared/UnitTests/ObjectModelHelpers.cs @@ -26,6 +26,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { /* diff --git a/src/Shared/UnitTests/PrintLineDebugger_Tests.cs b/src/Shared/UnitTests/PrintLineDebugger_Tests.cs index 2d0c1747e6c..6b7e21ac052 100644 --- a/src/Shared/UnitTests/PrintLineDebugger_Tests.cs +++ b/src/Shared/UnitTests/PrintLineDebugger_Tests.cs @@ -11,6 +11,8 @@ using Xunit; using CommonWriterType = System.Action>; +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class PrintLineDebugger_Tests diff --git a/src/Shared/UnitTests/ResourceUtilities_Tests.cs b/src/Shared/UnitTests/ResourceUtilities_Tests.cs index 7731a95e67d..c9cdaa5ff45 100644 --- a/src/Shared/UnitTests/ResourceUtilities_Tests.cs +++ b/src/Shared/UnitTests/ResourceUtilities_Tests.cs @@ -6,6 +6,8 @@ +#nullable disable + namespace Microsoft.Build.UnitTests { public class ResourceUtilitiesTests diff --git a/src/Shared/UnitTests/StreamHelpers.cs b/src/Shared/UnitTests/StreamHelpers.cs index af9c876d4b6..b2130e2458b 100644 --- a/src/Shared/UnitTests/StreamHelpers.cs +++ b/src/Shared/UnitTests/StreamHelpers.cs @@ -3,6 +3,8 @@ using System.IO; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed internal class StreamHelpers diff --git a/src/Shared/UnitTests/TaskParameter_Tests.cs b/src/Shared/UnitTests/TaskParameter_Tests.cs index 6aeaf69fcd4..d726a685700 100644 --- a/src/Shared/UnitTests/TaskParameter_Tests.cs +++ b/src/Shared/UnitTests/TaskParameter_Tests.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Shared/UnitTests/TestAssemblyInfo.cs b/src/Shared/UnitTests/TestAssemblyInfo.cs index 627aa0d465e..f0015647f64 100644 --- a/src/Shared/UnitTests/TestAssemblyInfo.cs +++ b/src/Shared/UnitTests/TestAssemblyInfo.cs @@ -1,5 +1,4 @@ - -using System; +using System; using System.IO; using System.Linq; using System.Runtime.InteropServices; @@ -8,6 +7,8 @@ using Microsoft.Build.UnitTests; using Xunit; +#nullable disable + [assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)] // Register test framework for assembly fixture diff --git a/src/Shared/UnitTests/TestData/GlobbingTestData.cs b/src/Shared/UnitTests/TestData/GlobbingTestData.cs index a0fe1f04247..58a898ebb5e 100644 --- a/src/Shared/UnitTests/TestData/GlobbingTestData.cs +++ b/src/Shared/UnitTests/TestData/GlobbingTestData.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Engine.UnitTests.Globbing { public static class GlobbingTestData diff --git a/src/Shared/UnitTests/TestEnvironment.cs b/src/Shared/UnitTests/TestEnvironment.cs index 306ff0b62ab..bbc969855dd 100644 --- a/src/Shared/UnitTests/TestEnvironment.cs +++ b/src/Shared/UnitTests/TestEnvironment.cs @@ -18,6 +18,8 @@ using TempPaths = System.Collections.Generic.Dictionary; using CommonWriterType = System.Action>; +#nullable disable + namespace Microsoft.Build.UnitTests { public partial class TestEnvironment : IDisposable diff --git a/src/Shared/UnitTests/TypeLoader_Dependencies_Tests.cs b/src/Shared/UnitTests/TypeLoader_Dependencies_Tests.cs index f8acd297b4e..e65440cfc16 100644 --- a/src/Shared/UnitTests/TypeLoader_Dependencies_Tests.cs +++ b/src/Shared/UnitTests/TypeLoader_Dependencies_Tests.cs @@ -8,6 +8,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class TypeLoader_Dependencies_Tests diff --git a/src/Shared/UnitTests/TypeLoader_Tests.cs b/src/Shared/UnitTests/TypeLoader_Tests.cs index a572f51576a..6ac549f871f 100644 --- a/src/Shared/UnitTests/TypeLoader_Tests.cs +++ b/src/Shared/UnitTests/TypeLoader_Tests.cs @@ -9,6 +9,8 @@ using Xunit; using Microsoft.Build.UnitTests.Shared; +#nullable disable + namespace Microsoft.Build.UnitTests { public class TypeLoader_Tests diff --git a/src/Shared/UnitTests/XmakeAttributes_Tests.cs b/src/Shared/UnitTests/XmakeAttributes_Tests.cs index 70cf960d823..1dff7e28c37 100644 --- a/src/Shared/UnitTests/XmakeAttributes_Tests.cs +++ b/src/Shared/UnitTests/XmakeAttributes_Tests.cs @@ -6,6 +6,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class XmakeAttributesTest diff --git a/src/Shared/UnitTests/XmlUtilities_Tests.cs b/src/Shared/UnitTests/XmlUtilities_Tests.cs index cc83d0fc441..244ceaaa532 100644 --- a/src/Shared/UnitTests/XmlUtilities_Tests.cs +++ b/src/Shared/UnitTests/XmlUtilities_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class XmlUtilities_Tests diff --git a/src/Shared/VersionUtilities.cs b/src/Shared/VersionUtilities.cs index fe113266894..0266205b1ce 100644 --- a/src/Shared/VersionUtilities.cs +++ b/src/Shared/VersionUtilities.cs @@ -5,6 +5,8 @@ using System.Collections; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/VisualStudioConstants.cs b/src/Shared/VisualStudioConstants.cs index 1df4e15a0e9..e654b86e24b 100644 --- a/src/Shared/VisualStudioConstants.cs +++ b/src/Shared/VisualStudioConstants.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/XMakeAttributes.cs b/src/Shared/XMakeAttributes.cs index d290eee6246..ecedbe2329f 100644 --- a/src/Shared/XMakeAttributes.cs +++ b/src/Shared/XMakeAttributes.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Runtime.CompilerServices; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/XMakeElements.cs b/src/Shared/XMakeElements.cs index 2a8775fe78f..26edc3345c2 100644 --- a/src/Shared/XMakeElements.cs +++ b/src/Shared/XMakeElements.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/XamlUtilities.cs b/src/Shared/XamlUtilities.cs index b45082802f0..aad30eaa8b7 100644 --- a/src/Shared/XamlUtilities.cs +++ b/src/Shared/XamlUtilities.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Construction; using Microsoft.Build.Framework.XamlTypes; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Shared/XmlUtilities.cs b/src/Shared/XmlUtilities.cs index 2695d35d4b0..941958a13fe 100644 --- a/src/Shared/XmlUtilities.cs +++ b/src/Shared/XmlUtilities.cs @@ -5,6 +5,8 @@ using System.Xml; using Microsoft.Build.Construction; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/StringTools.Benchmark/Program.cs b/src/StringTools.Benchmark/Program.cs index 7bdd21ed36a..cfda6e36d5f 100644 --- a/src/StringTools.Benchmark/Program.cs +++ b/src/StringTools.Benchmark/Program.cs @@ -3,6 +3,8 @@ using BenchmarkDotNet.Running; +#nullable disable + namespace Microsoft.NET.StringTools.Benchmark { public class Program diff --git a/src/StringTools.Benchmark/SpanBasedStringBuilder_Benchmark.cs b/src/StringTools.Benchmark/SpanBasedStringBuilder_Benchmark.cs index 03fa15ccfc5..d3e2dc5501d 100644 --- a/src/StringTools.Benchmark/SpanBasedStringBuilder_Benchmark.cs +++ b/src/StringTools.Benchmark/SpanBasedStringBuilder_Benchmark.cs @@ -4,6 +4,8 @@ using BenchmarkDotNet.Attributes; using System.Text; +#nullable disable + namespace Microsoft.NET.StringTools.Benchmark { [MemoryDiagnoser] diff --git a/src/StringTools.UnitTests/InterningTestData.cs b/src/StringTools.UnitTests/InterningTestData.cs index 857e9032850..e0ce99f19de 100644 --- a/src/StringTools.UnitTests/InterningTestData.cs +++ b/src/StringTools.UnitTests/InterningTestData.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.NET.StringTools.Tests { public static class InterningTestData diff --git a/src/StringTools.UnitTests/SpanBasedStringBuilder_Tests.cs b/src/StringTools.UnitTests/SpanBasedStringBuilder_Tests.cs index 086d684231b..4ce6f2c2cc2 100644 --- a/src/StringTools.UnitTests/SpanBasedStringBuilder_Tests.cs +++ b/src/StringTools.UnitTests/SpanBasedStringBuilder_Tests.cs @@ -14,6 +14,8 @@ using StringToolsNet35::Microsoft.NET.StringTools; #endif +#nullable disable + namespace Microsoft.NET.StringTools.Tests { public class SpanBasedStringBuilder_Tests diff --git a/src/StringTools.UnitTests/StringTools_Tests.cs b/src/StringTools.UnitTests/StringTools_Tests.cs index 7f396ab32b6..3ad975ca3a0 100644 --- a/src/StringTools.UnitTests/StringTools_Tests.cs +++ b/src/StringTools.UnitTests/StringTools_Tests.cs @@ -17,6 +17,8 @@ using Microsoft.NET.StringTools; #endif +#nullable disable + namespace Microsoft.NET.StringTools.Tests { public class StringTools_Tests diff --git a/src/StringTools.UnitTests/WeakStringCache_Tests.cs b/src/StringTools.UnitTests/WeakStringCache_Tests.cs index 41d4d931c95..b2e1da93006 100644 --- a/src/StringTools.UnitTests/WeakStringCache_Tests.cs +++ b/src/StringTools.UnitTests/WeakStringCache_Tests.cs @@ -17,6 +17,8 @@ using StringToolsNet35::Microsoft.NET.StringTools; #endif +#nullable disable + namespace Microsoft.NET.StringTools.Tests { public class WeakStringCache_Tests : IDisposable diff --git a/src/StringTools/StringTools.csproj b/src/StringTools/StringTools.csproj index f4108d5158b..15ac5335951 100644 --- a/src/StringTools/StringTools.csproj +++ b/src/StringTools/StringTools.csproj @@ -1,4 +1,4 @@ - + $(LibraryTargetFrameworks) $(LibraryTargetFrameworks);net35 @@ -9,7 +9,6 @@ 8.0 Microsoft.NET.StringTools true - enable 1.0.0 diff --git a/src/Tasks.UnitTests/Al_Tests.cs b/src/Tasks.UnitTests/Al_Tests.cs index 0f16023de2c..7e235176d99 100644 --- a/src/Tasks.UnitTests/Al_Tests.cs +++ b/src/Tasks.UnitTests/Al_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /* diff --git a/src/Tasks.UnitTests/AppConfig_Tests.cs b/src/Tasks.UnitTests/AppConfig_Tests.cs index 50c9ebe80aa..eb4762b3a62 100644 --- a/src/Tasks.UnitTests/AppConfig_Tests.cs +++ b/src/Tasks.UnitTests/AppConfig_Tests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Tasks; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/AspNetCompiler_Tests.cs b/src/Tasks.UnitTests/AspNetCompiler_Tests.cs index b5d321f21fe..2b49c25b8d6 100644 --- a/src/Tasks.UnitTests/AspNetCompiler_Tests.cs +++ b/src/Tasks.UnitTests/AspNetCompiler_Tests.cs @@ -6,6 +6,8 @@ using System.Globalization; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /* diff --git a/src/Tasks.UnitTests/AssemblyDependency/AssemblyFoldersFromConfig_Tests.cs b/src/Tasks.UnitTests/AssemblyDependency/AssemblyFoldersFromConfig_Tests.cs index 3ed117dcd2d..a3dec6636fb 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/AssemblyFoldersFromConfig_Tests.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/AssemblyFoldersFromConfig_Tests.cs @@ -8,6 +8,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests.AssemblyDependency { public class AssemblyFoldersFromConfig_Tests : ResolveAssemblyReferenceTestFixture diff --git a/src/Tasks.UnitTests/AssemblyDependency/FilePrimary.cs b/src/Tasks.UnitTests/AssemblyDependency/FilePrimary.cs index 3591abf5945..0ac855564b1 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/FilePrimary.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/FilePrimary.cs @@ -8,6 +8,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests.VersioningAndUnification.AppConfig { public sealed class FilePrimary : ResolveAssemblyReferenceTestFixture diff --git a/src/Tasks.UnitTests/AssemblyDependency/GlobalAssemblyCacheTests.cs b/src/Tasks.UnitTests/AssemblyDependency/GlobalAssemblyCacheTests.cs index d4b92d40fed..276cb4ed9f6 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/GlobalAssemblyCacheTests.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/GlobalAssemblyCacheTests.cs @@ -10,6 +10,8 @@ using Xunit.Abstractions; using SystemProcessorArchitecture = System.Reflection.ProcessorArchitecture; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { /// diff --git a/src/Tasks.UnitTests/AssemblyDependency/InstalledSDKResolverFixture.cs b/src/Tasks.UnitTests/AssemblyDependency/InstalledSDKResolverFixture.cs index 10b323e6b71..8f295e908d8 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/InstalledSDKResolverFixture.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/InstalledSDKResolverFixture.cs @@ -5,6 +5,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { /// diff --git a/src/Tasks.UnitTests/AssemblyDependency/Miscellaneous.cs b/src/Tasks.UnitTests/AssemblyDependency/Miscellaneous.cs index 2d0aaec17b3..43d5d72d66d 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/Miscellaneous.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/Miscellaneous.cs @@ -16,6 +16,8 @@ using Shouldly; using System.Text; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { /// diff --git a/src/Tasks.UnitTests/AssemblyDependency/NonSpecificVersionStrictPrimary.cs b/src/Tasks.UnitTests/AssemblyDependency/NonSpecificVersionStrictPrimary.cs index c8dd8814895..50da1846c76 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/NonSpecificVersionStrictPrimary.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/NonSpecificVersionStrictPrimary.cs @@ -6,6 +6,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests.VersioningAndUnification.AppConfig { public sealed class NonSpecificVersionStrictPrimary : ResolveAssemblyReferenceTestFixture diff --git a/src/Tasks.UnitTests/AssemblyDependency/Perf.cs b/src/Tasks.UnitTests/AssemblyDependency/Perf.cs index eef70e698bf..36e646d5526 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/Perf.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/Perf.cs @@ -8,6 +8,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { /// diff --git a/src/Tasks.UnitTests/AssemblyDependency/ReferenceTests.cs b/src/Tasks.UnitTests/AssemblyDependency/ReferenceTests.cs index 2ae4dd14e7d..c71984f0c87 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/ReferenceTests.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/ReferenceTests.cs @@ -4,6 +4,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { /// diff --git a/src/Tasks.UnitTests/AssemblyDependency/ResolveAssemblyReferenceCacheSerialization.cs b/src/Tasks.UnitTests/AssemblyDependency/ResolveAssemblyReferenceCacheSerialization.cs index 7f55c5bcbd1..7cf61ab2860 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/ResolveAssemblyReferenceCacheSerialization.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/ResolveAssemblyReferenceCacheSerialization.cs @@ -11,6 +11,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { public class ResolveAssemblyReferenceCacheSerialization : IDisposable diff --git a/src/Tasks.UnitTests/AssemblyDependency/ResolveAssemblyReferenceTestFixture.cs b/src/Tasks.UnitTests/AssemblyDependency/ResolveAssemblyReferenceTestFixture.cs index e64d7b07d8c..25af267106c 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/ResolveAssemblyReferenceTestFixture.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/ResolveAssemblyReferenceTestFixture.cs @@ -16,6 +16,8 @@ using NativeMethods = Microsoft.Build.Tasks.NativeMethods; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { public class ResolveAssemblyReferenceTestFixture : IDisposable diff --git a/src/Tasks.UnitTests/AssemblyDependency/SpecificVersionPrimary.cs b/src/Tasks.UnitTests/AssemblyDependency/SpecificVersionPrimary.cs index ad61691d2b4..87525b05834 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/SpecificVersionPrimary.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/SpecificVersionPrimary.cs @@ -7,6 +7,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests.VersioningAndUnification.AppConfig { public sealed class SpecificVersionPrimary : ResolveAssemblyReferenceTestFixture diff --git a/src/Tasks.UnitTests/AssemblyDependency/StronglyNamedDependency.cs b/src/Tasks.UnitTests/AssemblyDependency/StronglyNamedDependency.cs index d9daab826d4..e44eed3c3b8 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/StronglyNamedDependency.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/StronglyNamedDependency.cs @@ -9,6 +9,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests.VersioningAndUnification.Prerequisite { public sealed class StronglyNamedDependency : ResolveAssemblyReferenceTestFixture diff --git a/src/Tasks.UnitTests/AssemblyDependency/StronglyNamedDependencyAppConfig.cs b/src/Tasks.UnitTests/AssemblyDependency/StronglyNamedDependencyAppConfig.cs index d6ec7f8c1fb..f1005eb2de1 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/StronglyNamedDependencyAppConfig.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/StronglyNamedDependencyAppConfig.cs @@ -8,6 +8,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests.VersioningAndUnification.AppConfig { public sealed class StronglyNamedDependencyAppConfig : ResolveAssemblyReferenceTestFixture diff --git a/src/Tasks.UnitTests/AssemblyDependency/StronglyNamedDependencyAutoUnify.cs b/src/Tasks.UnitTests/AssemblyDependency/StronglyNamedDependencyAutoUnify.cs index 60d89c3c45d..10694971b29 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/StronglyNamedDependencyAutoUnify.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/StronglyNamedDependencyAutoUnify.cs @@ -8,6 +8,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests.VersioningAndUnification.AutoUnify { public sealed class StronglyNamedDependencyAutoUnify : ResolveAssemblyReferenceTestFixture diff --git a/src/Tasks.UnitTests/AssemblyDependency/SuggestedRedirects.cs b/src/Tasks.UnitTests/AssemblyDependency/SuggestedRedirects.cs index 218ff9b4494..932411bcf01 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/SuggestedRedirects.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/SuggestedRedirects.cs @@ -11,6 +11,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { /// diff --git a/src/Tasks.UnitTests/AssemblyDependency/TaskTranslatorHelpers.cs b/src/Tasks.UnitTests/AssemblyDependency/TaskTranslatorHelpers.cs index bfb9dd55cb6..dd423c774cb 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/TaskTranslatorHelpers.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/TaskTranslatorHelpers.cs @@ -7,6 +7,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { public class TaskTranslatorHelpers diff --git a/src/Tasks.UnitTests/AssemblyDependency/VerifyIgnoreVersionForFrameworkReference.cs b/src/Tasks.UnitTests/AssemblyDependency/VerifyIgnoreVersionForFrameworkReference.cs index 13d518f12d2..a71ac08e145 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/VerifyIgnoreVersionForFrameworkReference.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/VerifyIgnoreVersionForFrameworkReference.cs @@ -5,6 +5,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { /// diff --git a/src/Tasks.UnitTests/AssemblyDependency/VerifyTargetFrameworkAttribute.cs b/src/Tasks.UnitTests/AssemblyDependency/VerifyTargetFrameworkAttribute.cs index a97a93c7a50..deea5b3f0fe 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/VerifyTargetFrameworkAttribute.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/VerifyTargetFrameworkAttribute.cs @@ -5,6 +5,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { /// diff --git a/src/Tasks.UnitTests/AssemblyDependency/VerifyTargetFrameworkHigherThanRedist.cs b/src/Tasks.UnitTests/AssemblyDependency/VerifyTargetFrameworkHigherThanRedist.cs index e6dd07dfd1a..8c272d7a1be 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/VerifyTargetFrameworkHigherThanRedist.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/VerifyTargetFrameworkHigherThanRedist.cs @@ -6,6 +6,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { /// diff --git a/src/Tasks.UnitTests/AssemblyDependency/WinMDTests.cs b/src/Tasks.UnitTests/AssemblyDependency/WinMDTests.cs index 414f8d98bff..ab733088c21 100644 --- a/src/Tasks.UnitTests/AssemblyDependency/WinMDTests.cs +++ b/src/Tasks.UnitTests/AssemblyDependency/WinMDTests.cs @@ -8,6 +8,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveAssemblyReference_Tests { /// diff --git a/src/Tasks.UnitTests/AssemblyRegistrationCache_Tests.cs b/src/Tasks.UnitTests/AssemblyRegistrationCache_Tests.cs index fc94fbb510c..63991dcb033 100644 --- a/src/Tasks.UnitTests/AssemblyRegistrationCache_Tests.cs +++ b/src/Tasks.UnitTests/AssemblyRegistrationCache_Tests.cs @@ -5,6 +5,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class AssemblyRegistrationCache_Tests diff --git a/src/Tasks.UnitTests/AssignCulture_Tests.cs b/src/Tasks.UnitTests/AssignCulture_Tests.cs index 3ea98d3f3c1..3d35d7d478d 100644 --- a/src/Tasks.UnitTests/AssignCulture_Tests.cs +++ b/src/Tasks.UnitTests/AssignCulture_Tests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class AssignCulture_Tests diff --git a/src/Tasks.UnitTests/AssignLinkMetadata_Tests.cs b/src/Tasks.UnitTests/AssignLinkMetadata_Tests.cs index 84c9ae915dc..721e3c3b6a0 100644 --- a/src/Tasks.UnitTests/AssignLinkMetadata_Tests.cs +++ b/src/Tasks.UnitTests/AssignLinkMetadata_Tests.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class AssignLinkMetadata_Tests diff --git a/src/Tasks.UnitTests/AssignProjectConfiguration_Tests.cs b/src/Tasks.UnitTests/AssignProjectConfiguration_Tests.cs index 725b9e526e2..7cd55cfd289 100644 --- a/src/Tasks.UnitTests/AssignProjectConfiguration_Tests.cs +++ b/src/Tasks.UnitTests/AssignProjectConfiguration_Tests.cs @@ -11,6 +11,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/AssignTargetPath_Tests.cs b/src/Tasks.UnitTests/AssignTargetPath_Tests.cs index 3f9dc087274..76ceb607817 100644 --- a/src/Tasks.UnitTests/AssignTargetPath_Tests.cs +++ b/src/Tasks.UnitTests/AssignTargetPath_Tests.cs @@ -9,6 +9,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class AssignTargetPath_Tests diff --git a/src/Tasks.UnitTests/AxImp_Tests.cs b/src/Tasks.UnitTests/AxImp_Tests.cs index 7d55a4512bd..331347bcec0 100644 --- a/src/Tasks.UnitTests/AxImp_Tests.cs +++ b/src/Tasks.UnitTests/AxImp_Tests.cs @@ -6,6 +6,8 @@ using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.AxTlbImp_Tests { sealed public class AxImp_Tests diff --git a/src/Tasks.UnitTests/AxTlbBaseTask_Tests.cs b/src/Tasks.UnitTests/AxTlbBaseTask_Tests.cs index 71380bfebf1..0426e95f9d4 100644 --- a/src/Tasks.UnitTests/AxTlbBaseTask_Tests.cs +++ b/src/Tasks.UnitTests/AxTlbBaseTask_Tests.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.AxTlbImp_Tests { sealed public class AxTlbBaseTask_Tests diff --git a/src/Tasks.UnitTests/CSharpParserUtilitites_Tests.cs b/src/Tasks.UnitTests/CSharpParserUtilitites_Tests.cs index 7dbd018acc2..8d1d34cea06 100644 --- a/src/Tasks.UnitTests/CSharpParserUtilitites_Tests.cs +++ b/src/Tasks.UnitTests/CSharpParserUtilitites_Tests.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Tasks; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class CSharpParserUtilititesTests diff --git a/src/Tasks.UnitTests/CSharpTokenizer_Tests.cs b/src/Tasks.UnitTests/CSharpTokenizer_Tests.cs index de1f3b0bb61..9f6ae464d25 100644 --- a/src/Tasks.UnitTests/CSharpTokenizer_Tests.cs +++ b/src/Tasks.UnitTests/CSharpTokenizer_Tests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared.LanguageParser; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class CSharpTokenizerTests diff --git a/src/Tasks.UnitTests/CallTarget_Tests.cs b/src/Tasks.UnitTests/CallTarget_Tests.cs index 58c1b7a45f6..289347e1b69 100644 --- a/src/Tasks.UnitTests/CallTarget_Tests.cs +++ b/src/Tasks.UnitTests/CallTarget_Tests.cs @@ -10,6 +10,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class CallTarget_Tests : IDisposable diff --git a/src/Tasks.UnitTests/CodeTaskFactoryTests.cs b/src/Tasks.UnitTests/CodeTaskFactoryTests.cs index 48895b089c1..95fda75c8df 100644 --- a/src/Tasks.UnitTests/CodeTaskFactoryTests.cs +++ b/src/Tasks.UnitTests/CodeTaskFactoryTests.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { #if FEATURE_CODETASKFACTORY diff --git a/src/Tasks.UnitTests/ComReferenceWalker_Tests.cs b/src/Tasks.UnitTests/ComReferenceWalker_Tests.cs index b45459a0548..fa7909f7c4b 100644 --- a/src/Tasks.UnitTests/ComReferenceWalker_Tests.cs +++ b/src/Tasks.UnitTests/ComReferenceWalker_Tests.cs @@ -8,6 +8,8 @@ using COMException = System.Runtime.InteropServices.COMException; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class ComReferenceWalker_Tests diff --git a/src/Tasks.UnitTests/ComReference_Tests.cs b/src/Tasks.UnitTests/ComReference_Tests.cs index 7e9b308679d..855313c7070 100644 --- a/src/Tasks.UnitTests/ComReference_Tests.cs +++ b/src/Tasks.UnitTests/ComReference_Tests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class ComReference_Tests diff --git a/src/Tasks.UnitTests/CombinePath_Tests.cs b/src/Tasks.UnitTests/CombinePath_Tests.cs index 6d60979ae68..d77840df2a5 100644 --- a/src/Tasks.UnitTests/CombinePath_Tests.cs +++ b/src/Tasks.UnitTests/CombinePath_Tests.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class CombinePath_Tests diff --git a/src/Tasks.UnitTests/CommandLineBuilderExtension_Tests.cs b/src/Tasks.UnitTests/CommandLineBuilderExtension_Tests.cs index 888f7603f24..2652a9d8deb 100644 --- a/src/Tasks.UnitTests/CommandLineBuilderExtension_Tests.cs +++ b/src/Tasks.UnitTests/CommandLineBuilderExtension_Tests.cs @@ -9,6 +9,8 @@ using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class CommandLineBuilderExtensionTest diff --git a/src/Tasks.UnitTests/CommandLineGenerator_Tests.cs b/src/Tasks.UnitTests/CommandLineGenerator_Tests.cs index 68ff6dd4165..9a99b37b197 100644 --- a/src/Tasks.UnitTests/CommandLineGenerator_Tests.cs +++ b/src/Tasks.UnitTests/CommandLineGenerator_Tests.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Tasks.Xaml; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class CommandLineGenerator_Tests diff --git a/src/Tasks.UnitTests/CommandLine_Support.cs b/src/Tasks.UnitTests/CommandLine_Support.cs index 3698bc32d69..57d7bc48213 100644 --- a/src/Tasks.UnitTests/CommandLine_Support.cs +++ b/src/Tasks.UnitTests/CommandLine_Support.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /* diff --git a/src/Tasks.UnitTests/ConvertToAbsolutePath_Tests.cs b/src/Tasks.UnitTests/ConvertToAbsolutePath_Tests.cs index 185ec52cc69..e7f8b0ecf8f 100644 --- a/src/Tasks.UnitTests/ConvertToAbsolutePath_Tests.cs +++ b/src/Tasks.UnitTests/ConvertToAbsolutePath_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class ConvertToAbsolutePath_Tests diff --git a/src/Tasks.UnitTests/Copy_Tests.cs b/src/Tasks.UnitTests/Copy_Tests.cs index cb50ec8cf31..d1fee1c666a 100644 --- a/src/Tasks.UnitTests/Copy_Tests.cs +++ b/src/Tasks.UnitTests/Copy_Tests.cs @@ -21,6 +21,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { public class Copy_Tests : IDisposable diff --git a/src/Tasks.UnitTests/CreateCSharpManifestResourceName_Tests.cs b/src/Tasks.UnitTests/CreateCSharpManifestResourceName_Tests.cs index 83439b1d41f..d55cbe2087d 100644 --- a/src/Tasks.UnitTests/CreateCSharpManifestResourceName_Tests.cs +++ b/src/Tasks.UnitTests/CreateCSharpManifestResourceName_Tests.cs @@ -12,6 +12,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class CreateCSharpManifestResourceName_Tests diff --git a/src/Tasks.UnitTests/CreateItem_Tests.cs b/src/Tasks.UnitTests/CreateItem_Tests.cs index de694d88f7d..0c422b67892 100644 --- a/src/Tasks.UnitTests/CreateItem_Tests.cs +++ b/src/Tasks.UnitTests/CreateItem_Tests.cs @@ -11,6 +11,8 @@ using Xunit.Abstractions; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class CreateItem_Tests diff --git a/src/Tasks.UnitTests/CreateProperty_Tests.cs b/src/Tasks.UnitTests/CreateProperty_Tests.cs index 78b1676c1b2..0b05115ca4a 100644 --- a/src/Tasks.UnitTests/CreateProperty_Tests.cs +++ b/src/Tasks.UnitTests/CreateProperty_Tests.cs @@ -5,6 +5,8 @@ using System; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class CreateProperty_Tests : IDisposable diff --git a/src/Tasks.UnitTests/CreateVisualBasicManifestResourceName_Tests.cs b/src/Tasks.UnitTests/CreateVisualBasicManifestResourceName_Tests.cs index b1617749091..2d68f17cc3f 100644 --- a/src/Tasks.UnitTests/CreateVisualBasicManifestResourceName_Tests.cs +++ b/src/Tasks.UnitTests/CreateVisualBasicManifestResourceName_Tests.cs @@ -12,6 +12,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class CreateVisualBasicManifestResourceName_Tests diff --git a/src/Tasks.UnitTests/Culture_Tests.cs b/src/Tasks.UnitTests/Culture_Tests.cs index b4fdc551710..0a3863c1b9b 100644 --- a/src/Tasks.UnitTests/Culture_Tests.cs +++ b/src/Tasks.UnitTests/Culture_Tests.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Tasks; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class Culture_Tests diff --git a/src/Tasks.UnitTests/Delete_Tests.cs b/src/Tasks.UnitTests/Delete_Tests.cs index cf9ed630114..4a2365c5da7 100644 --- a/src/Tasks.UnitTests/Delete_Tests.cs +++ b/src/Tasks.UnitTests/Delete_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class Delete_Tests diff --git a/src/Tasks.UnitTests/DependentAssembly_Tests.cs b/src/Tasks.UnitTests/DependentAssembly_Tests.cs index 1e928ac2a91..20eb679c3c1 100644 --- a/src/Tasks.UnitTests/DependentAssembly_Tests.cs +++ b/src/Tasks.UnitTests/DependentAssembly_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Tasks; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class DependentAssembly_Tests diff --git a/src/Tasks.UnitTests/DirectoryBuildProjectImportTestBase.cs b/src/Tasks.UnitTests/DirectoryBuildProjectImportTestBase.cs index 487137a9812..87c624583fc 100644 --- a/src/Tasks.UnitTests/DirectoryBuildProjectImportTestBase.cs +++ b/src/Tasks.UnitTests/DirectoryBuildProjectImportTestBase.cs @@ -6,6 +6,8 @@ using System.IO; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/DirectoryBuildPropsImportTests.cs b/src/Tasks.UnitTests/DirectoryBuildPropsImportTests.cs index 04fba09a20c..01cff53802c 100644 --- a/src/Tasks.UnitTests/DirectoryBuildPropsImportTests.cs +++ b/src/Tasks.UnitTests/DirectoryBuildPropsImportTests.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/DirectoryBuildTargetsImportTests.cs b/src/Tasks.UnitTests/DirectoryBuildTargetsImportTests.cs index 5c37729db64..1b065e5da1d 100644 --- a/src/Tasks.UnitTests/DirectoryBuildTargetsImportTests.cs +++ b/src/Tasks.UnitTests/DirectoryBuildTargetsImportTests.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/DownloadFile_Tests.cs b/src/Tasks.UnitTests/DownloadFile_Tests.cs index 2d19fa29462..81a47c77412 100644 --- a/src/Tasks.UnitTests/DownloadFile_Tests.cs +++ b/src/Tasks.UnitTests/DownloadFile_Tests.cs @@ -14,6 +14,8 @@ using Task = System.Threading.Tasks.Task; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public class DownloadFile_Tests diff --git a/src/Tasks.UnitTests/ErrorWarningMessage_Tests.cs b/src/Tasks.UnitTests/ErrorWarningMessage_Tests.cs index d80ba5e5592..bc4cd625598 100644 --- a/src/Tasks.UnitTests/ErrorWarningMessage_Tests.cs +++ b/src/Tasks.UnitTests/ErrorWarningMessage_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Tasks; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class ErrorWarningMessage_Tests diff --git a/src/Tasks.UnitTests/Exec_Tests.cs b/src/Tasks.UnitTests/Exec_Tests.cs index 6bbcdb146cc..511eb67ef68 100644 --- a/src/Tasks.UnitTests/Exec_Tests.cs +++ b/src/Tasks.UnitTests/Exec_Tests.cs @@ -16,6 +16,8 @@ using System.Collections.Generic; using Microsoft.Build.Evaluation; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/FileStateTests.cs b/src/Tasks.UnitTests/FileStateTests.cs index 62f6eab495f..60f9d09e6d1 100644 --- a/src/Tasks.UnitTests/FileStateTests.cs +++ b/src/Tasks.UnitTests/FileStateTests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Tasks; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/FindAppConfigFile_Tests.cs b/src/Tasks.UnitTests/FindAppConfigFile_Tests.cs index c2bd134f11a..7ce5eb1a738 100644 --- a/src/Tasks.UnitTests/FindAppConfigFile_Tests.cs +++ b/src/Tasks.UnitTests/FindAppConfigFile_Tests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Tasks; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class FindAppConfigFile_Tests diff --git a/src/Tasks.UnitTests/FindInList_Tests.cs b/src/Tasks.UnitTests/FindInList_Tests.cs index a87a9cc5ffc..159e041f870 100644 --- a/src/Tasks.UnitTests/FindInList_Tests.cs +++ b/src/Tasks.UnitTests/FindInList_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Tasks; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class FindInList_Tests diff --git a/src/Tasks.UnitTests/FindInvalidProjectReferences_Tests.cs b/src/Tasks.UnitTests/FindInvalidProjectReferences_Tests.cs index 18a0cba61dd..a877437c79c 100644 --- a/src/Tasks.UnitTests/FindInvalidProjectReferences_Tests.cs +++ b/src/Tasks.UnitTests/FindInvalidProjectReferences_Tests.cs @@ -7,6 +7,8 @@ using System.Collections.Generic; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class FindInvalidProjectReferences_Tests diff --git a/src/Tasks.UnitTests/FindUnderPath_Tests.cs b/src/Tasks.UnitTests/FindUnderPath_Tests.cs index cc47b31adfd..cf599804d9a 100644 --- a/src/Tasks.UnitTests/FindUnderPath_Tests.cs +++ b/src/Tasks.UnitTests/FindUnderPath_Tests.cs @@ -11,6 +11,8 @@ +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class FindUnderPath_Tests diff --git a/src/Tasks.UnitTests/GenerateBindingRedirects_Tests.cs b/src/Tasks.UnitTests/GenerateBindingRedirects_Tests.cs index 22e3eb6a34c..84d23365a29 100644 --- a/src/Tasks.UnitTests/GenerateBindingRedirects_Tests.cs +++ b/src/Tasks.UnitTests/GenerateBindingRedirects_Tests.cs @@ -13,6 +13,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public class GenerateBindingRedirectsTests : IDisposable diff --git a/src/Tasks.UnitTests/GetCompatiblePlatform_Tests.cs b/src/Tasks.UnitTests/GetCompatiblePlatform_Tests.cs index 91bbc2269b3..7e33cb815c0 100644 --- a/src/Tasks.UnitTests/GetCompatiblePlatform_Tests.cs +++ b/src/Tasks.UnitTests/GetCompatiblePlatform_Tests.cs @@ -7,6 +7,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { sealed public class GetCompatiblePlatform_Tests diff --git a/src/Tasks.UnitTests/GetFileHash_Tests.cs b/src/Tasks.UnitTests/GetFileHash_Tests.cs index 44e542c40d0..0452a1f0b52 100644 --- a/src/Tasks.UnitTests/GetFileHash_Tests.cs +++ b/src/Tasks.UnitTests/GetFileHash_Tests.cs @@ -10,6 +10,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { public class GetFileHash_Tests diff --git a/src/Tasks.UnitTests/GetInstalledSDKLocations_Tests.cs b/src/Tasks.UnitTests/GetInstalledSDKLocations_Tests.cs index 3c7f54c0cff..a253692c77a 100644 --- a/src/Tasks.UnitTests/GetInstalledSDKLocations_Tests.cs +++ b/src/Tasks.UnitTests/GetInstalledSDKLocations_Tests.cs @@ -12,6 +12,8 @@ using Xunit; using Microsoft.Build.Tasks; +#nullable disable + namespace Microsoft.Build.UnitTests.GetInstalledSDKLocation_Tests { public class FakeSDKStructure : IDisposable diff --git a/src/Tasks.UnitTests/GetReferencePaths_Tests.cs b/src/Tasks.UnitTests/GetReferencePaths_Tests.cs index a88113e0319..3dc4eb161d2 100644 --- a/src/Tasks.UnitTests/GetReferencePaths_Tests.cs +++ b/src/Tasks.UnitTests/GetReferencePaths_Tests.cs @@ -10,6 +10,8 @@ using Xunit; #if !RUNTIME_TYPE_NETCORE +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/GetSDKReference_Tests.cs b/src/Tasks.UnitTests/GetSDKReference_Tests.cs index 6437663437c..691c7be48b6 100644 --- a/src/Tasks.UnitTests/GetSDKReference_Tests.cs +++ b/src/Tasks.UnitTests/GetSDKReference_Tests.cs @@ -15,6 +15,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.GetSDKReferenceFiles_Tests { public class FakeSdkStructure : IDisposable diff --git a/src/Tasks.UnitTests/Hash_Tests.cs b/src/Tasks.UnitTests/Hash_Tests.cs index e2b64378d47..95b826ad3ce 100644 --- a/src/Tasks.UnitTests/Hash_Tests.cs +++ b/src/Tasks.UnitTests/Hash_Tests.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public class Hash_Tests diff --git a/src/Tasks.UnitTests/HintPathResolver_Tests.cs b/src/Tasks.UnitTests/HintPathResolver_Tests.cs index 37f8f89445c..a3832398132 100644 --- a/src/Tasks.UnitTests/HintPathResolver_Tests.cs +++ b/src/Tasks.UnitTests/HintPathResolver_Tests.cs @@ -6,6 +6,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public class HintPathResolver_Tests : IDisposable diff --git a/src/Tasks.UnitTests/LC_Tests.cs b/src/Tasks.UnitTests/LC_Tests.cs index 0cbde2ca3a2..3898d2de871 100644 --- a/src/Tasks.UnitTests/LC_Tests.cs +++ b/src/Tasks.UnitTests/LC_Tests.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/MSBuild_Tests.cs b/src/Tasks.UnitTests/MSBuild_Tests.cs index 27e255ace0b..d2a6effe7d7 100644 --- a/src/Tasks.UnitTests/MSBuild_Tests.cs +++ b/src/Tasks.UnitTests/MSBuild_Tests.cs @@ -15,6 +15,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class MSBuildTask_Tests : IDisposable diff --git a/src/Tasks.UnitTests/MakeDir_Tests.cs b/src/Tasks.UnitTests/MakeDir_Tests.cs index d79835aa6c4..c6d8f5337b0 100644 --- a/src/Tasks.UnitTests/MakeDir_Tests.cs +++ b/src/Tasks.UnitTests/MakeDir_Tests.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class MakeDir_Tests diff --git a/src/Tasks.UnitTests/MockFaultInjectionHelper.cs b/src/Tasks.UnitTests/MockFaultInjectionHelper.cs index bb5b2b9401a..c56c2c69513 100644 --- a/src/Tasks.UnitTests/MockFaultInjectionHelper.cs +++ b/src/Tasks.UnitTests/MockFaultInjectionHelper.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.UnitTests { public class MockFaultInjectionHelper diff --git a/src/Tasks.UnitTests/MockTypeInfo.cs b/src/Tasks.UnitTests/MockTypeInfo.cs index 418edadd7fa..4b79f6cac53 100644 --- a/src/Tasks.UnitTests/MockTypeInfo.cs +++ b/src/Tasks.UnitTests/MockTypeInfo.cs @@ -10,6 +10,8 @@ using IFixedTypeInfo = Microsoft.Build.Tasks.IFixedTypeInfo; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/MockTypeLib.cs b/src/Tasks.UnitTests/MockTypeLib.cs index 51221e3e723..6bfe64ac79e 100644 --- a/src/Tasks.UnitTests/MockTypeLib.cs +++ b/src/Tasks.UnitTests/MockTypeLib.cs @@ -10,6 +10,8 @@ using Marshal = System.Runtime.InteropServices.Marshal; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/MockUnmanagedMemoryHelper.cs b/src/Tasks.UnitTests/MockUnmanagedMemoryHelper.cs index 7046cafa1e4..257eaff6403 100644 --- a/src/Tasks.UnitTests/MockUnmanagedMemoryHelper.cs +++ b/src/Tasks.UnitTests/MockUnmanagedMemoryHelper.cs @@ -7,6 +7,8 @@ using Marshal = System.Runtime.InteropServices.Marshal; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/Move_Tests.cs b/src/Tasks.UnitTests/Move_Tests.cs index c2c912bb0cf..ba89346895c 100644 --- a/src/Tasks.UnitTests/Move_Tests.cs +++ b/src/Tasks.UnitTests/Move_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class Move_Tests diff --git a/src/Tasks.UnitTests/NuGetPropsImportTests.cs b/src/Tasks.UnitTests/NuGetPropsImportTests.cs index d1ed2d2f7f6..41af54c3103 100644 --- a/src/Tasks.UnitTests/NuGetPropsImportTests.cs +++ b/src/Tasks.UnitTests/NuGetPropsImportTests.cs @@ -6,6 +6,8 @@ using System.IO; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/OutputPathTests.cs b/src/Tasks.UnitTests/OutputPathTests.cs index 6b4da05750a..0671c89356d 100644 --- a/src/Tasks.UnitTests/OutputPathTests.cs +++ b/src/Tasks.UnitTests/OutputPathTests.cs @@ -13,6 +13,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public sealed class OutputPathTests : IDisposable diff --git a/src/Tasks.UnitTests/PortableTasks_Tests.cs b/src/Tasks.UnitTests/PortableTasks_Tests.cs index 037fc932f31..0a42a0d4fe8 100644 --- a/src/Tasks.UnitTests/PortableTasks_Tests.cs +++ b/src/Tasks.UnitTests/PortableTasks_Tests.cs @@ -10,6 +10,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class PortableTasks_Tests diff --git a/src/Tasks.UnitTests/ProjectExtensionsImportTestBase.cs b/src/Tasks.UnitTests/ProjectExtensionsImportTestBase.cs index e72c228d93d..56e2fbf37de 100644 --- a/src/Tasks.UnitTests/ProjectExtensionsImportTestBase.cs +++ b/src/Tasks.UnitTests/ProjectExtensionsImportTestBase.cs @@ -7,6 +7,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public abstract class ProjectExtensionsImportTestBase : IDisposable diff --git a/src/Tasks.UnitTests/ProjectExtensionsPropsImportTest.cs b/src/Tasks.UnitTests/ProjectExtensionsPropsImportTest.cs index df22c20882a..b84648abced 100644 --- a/src/Tasks.UnitTests/ProjectExtensionsPropsImportTest.cs +++ b/src/Tasks.UnitTests/ProjectExtensionsPropsImportTest.cs @@ -2,6 +2,8 @@ using System.IO; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/ProjectExtensionsTargetsImportTest.cs b/src/Tasks.UnitTests/ProjectExtensionsTargetsImportTest.cs index 0bd9c8774a0..757d1a6c393 100644 --- a/src/Tasks.UnitTests/ProjectExtensionsTargetsImportTest.cs +++ b/src/Tasks.UnitTests/ProjectExtensionsTargetsImportTest.cs @@ -2,6 +2,8 @@ using System.IO; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/PropertyParser_Tests.cs b/src/Tasks.UnitTests/PropertyParser_Tests.cs index 5d269a00e2f..4d3a741f005 100644 --- a/src/Tasks.UnitTests/PropertyParser_Tests.cs +++ b/src/Tasks.UnitTests/PropertyParser_Tests.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Tasks; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class PropertyParser_Tests diff --git a/src/Tasks.UnitTests/RARPrecomputedCache_Tests.cs b/src/Tasks.UnitTests/RARPrecomputedCache_Tests.cs index 11c0a395500..221f07a2bc9 100644 --- a/src/Tasks.UnitTests/RARPrecomputedCache_Tests.cs +++ b/src/Tasks.UnitTests/RARPrecomputedCache_Tests.cs @@ -9,6 +9,8 @@ using System.IO; using Xunit; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public class RARPrecomputedCache_Tests diff --git a/src/Tasks.UnitTests/ReadLinesFromFile_Tests.cs b/src/Tasks.UnitTests/ReadLinesFromFile_Tests.cs index 5eab296f158..137b0d4164a 100644 --- a/src/Tasks.UnitTests/ReadLinesFromFile_Tests.cs +++ b/src/Tasks.UnitTests/ReadLinesFromFile_Tests.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class ReadLinesFromFile_Tests diff --git a/src/Tasks.UnitTests/RegressionTests.cs b/src/Tasks.UnitTests/RegressionTests.cs index f7f188dc6aa..1b0644ee629 100644 --- a/src/Tasks.UnitTests/RegressionTests.cs +++ b/src/Tasks.UnitTests/RegressionTests.cs @@ -9,6 +9,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public sealed class RegressionTests diff --git a/src/Tasks.UnitTests/RemoveDir_Tests.cs b/src/Tasks.UnitTests/RemoveDir_Tests.cs index 0dee182082b..2cff8ba1ca5 100644 --- a/src/Tasks.UnitTests/RemoveDir_Tests.cs +++ b/src/Tasks.UnitTests/RemoveDir_Tests.cs @@ -10,6 +10,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class RemoveDir_Tests diff --git a/src/Tasks.UnitTests/RemoveDuplicates_Tests.cs b/src/Tasks.UnitTests/RemoveDuplicates_Tests.cs index ad537c820c4..4e261b92771 100644 --- a/src/Tasks.UnitTests/RemoveDuplicates_Tests.cs +++ b/src/Tasks.UnitTests/RemoveDuplicates_Tests.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class RemoveDuplicates_Tests diff --git a/src/Tasks.UnitTests/ResolveCodeAnalysisRuleSet_Tests.cs b/src/Tasks.UnitTests/ResolveCodeAnalysisRuleSet_Tests.cs index ba48744b488..355e98dc8a8 100644 --- a/src/Tasks.UnitTests/ResolveCodeAnalysisRuleSet_Tests.cs +++ b/src/Tasks.UnitTests/ResolveCodeAnalysisRuleSet_Tests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class ResolveAnalyzerRuleSet_Tests diff --git a/src/Tasks.UnitTests/ResolveComReference_Tests.cs b/src/Tasks.UnitTests/ResolveComReference_Tests.cs index 4e695b86a73..a4fcf4dccb0 100644 --- a/src/Tasks.UnitTests/ResolveComReference_Tests.cs +++ b/src/Tasks.UnitTests/ResolveComReference_Tests.cs @@ -18,6 +18,8 @@ using Microsoft.Build.BackEnd; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class ResolveComReference_Tests diff --git a/src/Tasks.UnitTests/ResolveNonMSBuildProjectOutput_Tests.cs b/src/Tasks.UnitTests/ResolveNonMSBuildProjectOutput_Tests.cs index 2b846b46bd1..49bed4e7b44 100644 --- a/src/Tasks.UnitTests/ResolveNonMSBuildProjectOutput_Tests.cs +++ b/src/Tasks.UnitTests/ResolveNonMSBuildProjectOutput_Tests.cs @@ -10,6 +10,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class ResolveNonMSBuildProjectOutput_Tests diff --git a/src/Tasks.UnitTests/ResolveSDKReference_Tests.cs b/src/Tasks.UnitTests/ResolveSDKReference_Tests.cs index 74dfedd39d1..2a0468f4a45 100644 --- a/src/Tasks.UnitTests/ResolveSDKReference_Tests.cs +++ b/src/Tasks.UnitTests/ResolveSDKReference_Tests.cs @@ -16,6 +16,8 @@ using Microsoft.Build.Execution; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.ResolveSDKReference_Tests { public class ResolveSDKReferenceTestFixture diff --git a/src/Tasks.UnitTests/ResolveVCProjectOutput_Tests.cs b/src/Tasks.UnitTests/ResolveVCProjectOutput_Tests.cs index 0ca65b46408..bafba3d8fac 100644 --- a/src/Tasks.UnitTests/ResolveVCProjectOutput_Tests.cs +++ b/src/Tasks.UnitTests/ResolveVCProjectOutput_Tests.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Tasks; +#nullable disable + namespace Microsoft.Build.UnitTests { [TestFixture] diff --git a/src/Tasks.UnitTests/ResourceHandling/GenerateResourceOutOfProc_Tests.cs b/src/Tasks.UnitTests/ResourceHandling/GenerateResourceOutOfProc_Tests.cs index 47761efe7f3..ac9f6c92ce8 100644 --- a/src/Tasks.UnitTests/ResourceHandling/GenerateResourceOutOfProc_Tests.cs +++ b/src/Tasks.UnitTests/ResourceHandling/GenerateResourceOutOfProc_Tests.cs @@ -13,6 +13,8 @@ using System.Threading; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests.GenerateResource_Tests.OutOfProc { [Trait("Category", "mono-osx-failing")] diff --git a/src/Tasks.UnitTests/ResourceHandling/GenerateResource_Tests.cs b/src/Tasks.UnitTests/ResourceHandling/GenerateResource_Tests.cs index f902ab72933..b6aba681dcc 100644 --- a/src/Tasks.UnitTests/ResourceHandling/GenerateResource_Tests.cs +++ b/src/Tasks.UnitTests/ResourceHandling/GenerateResource_Tests.cs @@ -17,6 +17,8 @@ using System.Collections.Generic; using System.Text.RegularExpressions; +#nullable disable + namespace Microsoft.Build.UnitTests.GenerateResource_Tests.InProc { [Trait("Category", "mono-osx-failing")] diff --git a/src/Tasks.UnitTests/ResourceHandling/MSBuildResXReader_Tests.cs b/src/Tasks.UnitTests/ResourceHandling/MSBuildResXReader_Tests.cs index 4da317cd6e7..b7c228a2109 100644 --- a/src/Tasks.UnitTests/ResourceHandling/MSBuildResXReader_Tests.cs +++ b/src/Tasks.UnitTests/ResourceHandling/MSBuildResXReader_Tests.cs @@ -11,6 +11,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests.GenerateResource { public class MSBuildResXReader_Tests diff --git a/src/Tasks.UnitTests/ResourceHandling/ResGenDependencies_Tests.cs b/src/Tasks.UnitTests/ResourceHandling/ResGenDependencies_Tests.cs index fa4c5af5675..b4eed6f9a10 100644 --- a/src/Tasks.UnitTests/ResourceHandling/ResGenDependencies_Tests.cs +++ b/src/Tasks.UnitTests/ResourceHandling/ResGenDependencies_Tests.cs @@ -9,6 +9,8 @@ using Shouldly; using System; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class ResGenDependencies_Tests diff --git a/src/Tasks.UnitTests/ResourceHandling/ResGen_Tests.cs b/src/Tasks.UnitTests/ResourceHandling/ResGen_Tests.cs index 81a366f9489..1bd44f2bbd4 100644 --- a/src/Tasks.UnitTests/ResourceHandling/ResGen_Tests.cs +++ b/src/Tasks.UnitTests/ResourceHandling/ResGen_Tests.cs @@ -12,6 +12,8 @@ using ResGen = Microsoft.Build.Tasks.GenerateResource.ResGen; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class ResGen_Tests diff --git a/src/Tasks.UnitTests/ResourceHandling/ResXHelper.cs b/src/Tasks.UnitTests/ResourceHandling/ResXHelper.cs index d75034568e8..67636e61e25 100644 --- a/src/Tasks.UnitTests/ResourceHandling/ResXHelper.cs +++ b/src/Tasks.UnitTests/ResourceHandling/ResXHelper.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests.ResourceHandling { static class ResXHelper diff --git a/src/Tasks.UnitTests/ResourceManagement_Tests.cs b/src/Tasks.UnitTests/ResourceManagement_Tests.cs index d75cdd4e120..372d0665ac7 100644 --- a/src/Tasks.UnitTests/ResourceManagement_Tests.cs +++ b/src/Tasks.UnitTests/ResourceManagement_Tests.cs @@ -8,6 +8,8 @@ using Xunit; using Shouldly; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public class ResourceManagement_Tests diff --git a/src/Tasks.UnitTests/RoslynCodeTaskFactory_Tests.cs b/src/Tasks.UnitTests/RoslynCodeTaskFactory_Tests.cs index eb5225d098d..496e9cceb02 100644 --- a/src/Tasks.UnitTests/RoslynCodeTaskFactory_Tests.cs +++ b/src/Tasks.UnitTests/RoslynCodeTaskFactory_Tests.cs @@ -11,6 +11,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public class RoslynCodeTaskFactory_Tests diff --git a/src/Tasks.UnitTests/SGen_Tests.cs b/src/Tasks.UnitTests/SGen_Tests.cs index 0d8ed3160f0..980b3ba9c87 100644 --- a/src/Tasks.UnitTests/SGen_Tests.cs +++ b/src/Tasks.UnitTests/SGen_Tests.cs @@ -9,6 +9,8 @@ using Xunit; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests { public class SGen_Tests diff --git a/src/Tasks.UnitTests/SdkToolsPathUtility_Tests.cs b/src/Tasks.UnitTests/SdkToolsPathUtility_Tests.cs index 4c5356142f2..454e37ac408 100644 --- a/src/Tasks.UnitTests/SdkToolsPathUtility_Tests.cs +++ b/src/Tasks.UnitTests/SdkToolsPathUtility_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Tasks; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class SdkToolsPathUtility_Tests diff --git a/src/Tasks.UnitTests/StreamHelpers.cs b/src/Tasks.UnitTests/StreamHelpers.cs index e0469e16184..adcafcd19a7 100644 --- a/src/Tasks.UnitTests/StreamHelpers.cs +++ b/src/Tasks.UnitTests/StreamHelpers.cs @@ -3,6 +3,8 @@ using System.IO; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed internal class StreamHelpers diff --git a/src/Tasks.UnitTests/StreamMappedString_Tests.cs b/src/Tasks.UnitTests/StreamMappedString_Tests.cs index b0a3c35c662..90b8fcccfd7 100644 --- a/src/Tasks.UnitTests/StreamMappedString_Tests.cs +++ b/src/Tasks.UnitTests/StreamMappedString_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Shared.LanguageParser; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class StreamMappedString_Tests diff --git a/src/Tasks.UnitTests/TelemetryTaskTests.cs b/src/Tasks.UnitTests/TelemetryTaskTests.cs index c9d544d0e42..49acad1db73 100644 --- a/src/Tasks.UnitTests/TelemetryTaskTests.cs +++ b/src/Tasks.UnitTests/TelemetryTaskTests.cs @@ -4,6 +4,8 @@ using Microsoft.Build.UnitTests; using Xunit; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public sealed class TelemetryTaskTests diff --git a/src/Tasks.UnitTests/TestResources/TestBinary.cs b/src/Tasks.UnitTests/TestResources/TestBinary.cs index bd768f8e8ab..51a5008f431 100644 --- a/src/Tasks.UnitTests/TestResources/TestBinary.cs +++ b/src/Tasks.UnitTests/TestResources/TestBinary.cs @@ -6,6 +6,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests.TestResources { public class TestBinary : IXunitSerializable diff --git a/src/Tasks.UnitTests/TlbImp_Tests.cs b/src/Tasks.UnitTests/TlbImp_Tests.cs index 92ad2f58b80..83a624554c6 100644 --- a/src/Tasks.UnitTests/TlbImp_Tests.cs +++ b/src/Tasks.UnitTests/TlbImp_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Tasks; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.AxTlbImp_Tests { sealed public class TlbImp_Tests diff --git a/src/Tasks.UnitTests/ToolTaskExtension_Tests.cs b/src/Tasks.UnitTests/ToolTaskExtension_Tests.cs index 40644c9b2d9..569f290286d 100644 --- a/src/Tasks.UnitTests/ToolTaskExtension_Tests.cs +++ b/src/Tasks.UnitTests/ToolTaskExtension_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class ToolTaskExtensionTests diff --git a/src/Tasks.UnitTests/Touch_Tests.cs b/src/Tasks.UnitTests/Touch_Tests.cs index df6124e73f8..800a120a6db 100644 --- a/src/Tasks.UnitTests/Touch_Tests.cs +++ b/src/Tasks.UnitTests/Touch_Tests.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Utilities; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class Touch_Tests diff --git a/src/Tasks.UnitTests/Unzip_Tests.cs b/src/Tasks.UnitTests/Unzip_Tests.cs index 8b48e6ccaf8..c954e8d3415 100644 --- a/src/Tasks.UnitTests/Unzip_Tests.cs +++ b/src/Tasks.UnitTests/Unzip_Tests.cs @@ -11,6 +11,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public class Unzip_Tests diff --git a/src/Tasks.UnitTests/VerifyFileHash_Tests.cs b/src/Tasks.UnitTests/VerifyFileHash_Tests.cs index 69f7f2d5e87..7000862a422 100644 --- a/src/Tasks.UnitTests/VerifyFileHash_Tests.cs +++ b/src/Tasks.UnitTests/VerifyFileHash_Tests.cs @@ -9,6 +9,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class VerifyFileHash_Tests diff --git a/src/Tasks.UnitTests/VisualBasicParserUtilitites_Tests.cs b/src/Tasks.UnitTests/VisualBasicParserUtilitites_Tests.cs index 86b21f27b45..9769bba27fc 100644 --- a/src/Tasks.UnitTests/VisualBasicParserUtilitites_Tests.cs +++ b/src/Tasks.UnitTests/VisualBasicParserUtilitites_Tests.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Tasks; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class VisualBasicParserUtilititesTests diff --git a/src/Tasks.UnitTests/VisualBasicTokenizer_Tests.cs b/src/Tasks.UnitTests/VisualBasicTokenizer_Tests.cs index 238556c4cdb..2f45420e496 100644 --- a/src/Tasks.UnitTests/VisualBasicTokenizer_Tests.cs +++ b/src/Tasks.UnitTests/VisualBasicTokenizer_Tests.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Shared.LanguageParser; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class VisualBasicTokenizer_Tests diff --git a/src/Tasks.UnitTests/WinMDExp_Tests.cs b/src/Tasks.UnitTests/WinMDExp_Tests.cs index dbbe15cb777..55a5aae8bc9 100644 --- a/src/Tasks.UnitTests/WinMDExp_Tests.cs +++ b/src/Tasks.UnitTests/WinMDExp_Tests.cs @@ -8,6 +8,8 @@ using Xunit; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class WinMDExpTests diff --git a/src/Tasks.UnitTests/WriteCodeFragment_Tests.cs b/src/Tasks.UnitTests/WriteCodeFragment_Tests.cs index b389d8c784c..cd63fcd1a29 100644 --- a/src/Tasks.UnitTests/WriteCodeFragment_Tests.cs +++ b/src/Tasks.UnitTests/WriteCodeFragment_Tests.cs @@ -11,6 +11,8 @@ using System.Runtime.InteropServices; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Tasks.UnitTests/WriteLinesToFile_Tests.cs b/src/Tasks.UnitTests/WriteLinesToFile_Tests.cs index bb96a257fe6..1d2e9bdd942 100644 --- a/src/Tasks.UnitTests/WriteLinesToFile_Tests.cs +++ b/src/Tasks.UnitTests/WriteLinesToFile_Tests.cs @@ -8,6 +8,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public sealed class WriteLinesToFile_Tests diff --git a/src/Tasks.UnitTests/XamlDataDrivenToolTask_Tests.cs b/src/Tasks.UnitTests/XamlDataDrivenToolTask_Tests.cs index 3db0accefe3..fd4942c91d1 100644 --- a/src/Tasks.UnitTests/XamlDataDrivenToolTask_Tests.cs +++ b/src/Tasks.UnitTests/XamlDataDrivenToolTask_Tests.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.XamlDataDrivenToolTask_Tests { /// diff --git a/src/Tasks.UnitTests/XamlTaskFactory_Tests.cs b/src/Tasks.UnitTests/XamlTaskFactory_Tests.cs index 981b8fb02e3..d73842e0898 100644 --- a/src/Tasks.UnitTests/XamlTaskFactory_Tests.cs +++ b/src/Tasks.UnitTests/XamlTaskFactory_Tests.cs @@ -16,6 +16,8 @@ using Xunit; using Shouldly; +#nullable disable + namespace Microsoft.Build.UnitTests.XamlTaskFactory_Tests { #region Tests for Load and Parse methods diff --git a/src/Tasks.UnitTests/XamlTestHelpers.cs b/src/Tasks.UnitTests/XamlTestHelpers.cs index 0894fa94160..052fe764616 100644 --- a/src/Tasks.UnitTests/XamlTestHelpers.cs +++ b/src/Tasks.UnitTests/XamlTestHelpers.cs @@ -14,6 +14,8 @@ using Microsoft.Build.Evaluation; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { internal static class XamlTestHelpers diff --git a/src/Tasks.UnitTests/XmlPeek_Tests.cs b/src/Tasks.UnitTests/XmlPeek_Tests.cs index 1aec24c15b7..cd4fa3977c7 100644 --- a/src/Tasks.UnitTests/XmlPeek_Tests.cs +++ b/src/Tasks.UnitTests/XmlPeek_Tests.cs @@ -7,6 +7,8 @@ using System.IO; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class XmlPeek_Tests diff --git a/src/Tasks.UnitTests/XmlPoke_Tests.cs b/src/Tasks.UnitTests/XmlPoke_Tests.cs index 98b16aaacc0..b532acdc54f 100644 --- a/src/Tasks.UnitTests/XmlPoke_Tests.cs +++ b/src/Tasks.UnitTests/XmlPoke_Tests.cs @@ -11,6 +11,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { sealed public class XmlPoke_Tests diff --git a/src/Tasks.UnitTests/XslTransformation_Tests.cs b/src/Tasks.UnitTests/XslTransformation_Tests.cs index 785bab86be5..7f24c797792 100644 --- a/src/Tasks.UnitTests/XslTransformation_Tests.cs +++ b/src/Tasks.UnitTests/XslTransformation_Tests.cs @@ -16,6 +16,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { #if !MONO diff --git a/src/Tasks.UnitTests/ZipDirectory_Tests.cs b/src/Tasks.UnitTests/ZipDirectory_Tests.cs index 7f42799df38..31b4d547332 100644 --- a/src/Tasks.UnitTests/ZipDirectory_Tests.cs +++ b/src/Tasks.UnitTests/ZipDirectory_Tests.cs @@ -11,6 +11,8 @@ using System.Linq; using Xunit; +#nullable disable + namespace Microsoft.Build.Tasks.UnitTests { public class ZipDirectory_Tests diff --git a/src/Tasks/Al.cs b/src/Tasks/Al.cs index eaa1b3bfb89..9ff2c53b1a6 100644 --- a/src/Tasks/Al.cs +++ b/src/Tasks/Al.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AppConfig/AppConfig.cs b/src/Tasks/AppConfig/AppConfig.cs index c6e9ad4f98f..3fed4aab5cd 100644 --- a/src/Tasks/AppConfig/AppConfig.cs +++ b/src/Tasks/AppConfig/AppConfig.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AppConfig/AppConfigException.cs b/src/Tasks/AppConfig/AppConfigException.cs index 5d6b76ebf8c..c58ee3011ed 100644 --- a/src/Tasks/AppConfig/AppConfigException.cs +++ b/src/Tasks/AppConfig/AppConfigException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AppConfig/BindingRedirect.cs b/src/Tasks/AppConfig/BindingRedirect.cs index 8a226ede9c5..75b988c121b 100644 --- a/src/Tasks/AppConfig/BindingRedirect.cs +++ b/src/Tasks/AppConfig/BindingRedirect.cs @@ -5,6 +5,8 @@ using System.Xml; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AppConfig/DependentAssembly.cs b/src/Tasks/AppConfig/DependentAssembly.cs index 2bbbc37e39a..07a58ffc375 100644 --- a/src/Tasks/AppConfig/DependentAssembly.cs +++ b/src/Tasks/AppConfig/DependentAssembly.cs @@ -8,6 +8,8 @@ using System.Globalization; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AppConfig/RuntimeSection.cs b/src/Tasks/AppConfig/RuntimeSection.cs index 0d1e480300f..1ce5dda8ada 100644 --- a/src/Tasks/AppConfig/RuntimeSection.cs +++ b/src/Tasks/AppConfig/RuntimeSection.cs @@ -4,6 +4,8 @@ using System.Xml; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AppDomainIsolatedTaskExtension.cs b/src/Tasks/AppDomainIsolatedTaskExtension.cs index e3ec313363e..94382a8b002 100644 --- a/src/Tasks/AppDomainIsolatedTaskExtension.cs +++ b/src/Tasks/AppDomainIsolatedTaskExtension.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AspNetCompiler.cs b/src/Tasks/AspNetCompiler.cs index b054a5e7db6..855bd8b7790 100644 --- a/src/Tasks/AspNetCompiler.cs +++ b/src/Tasks/AspNetCompiler.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/AssemblyFoldersExResolver.cs b/src/Tasks/AssemblyDependency/AssemblyFoldersExResolver.cs index ab6b685ba91..af687d163b0 100644 --- a/src/Tasks/AssemblyDependency/AssemblyFoldersExResolver.cs +++ b/src/Tasks/AssemblyDependency/AssemblyFoldersExResolver.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Utilities; using ProcessorArchitecture = System.Reflection.ProcessorArchitecture; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/AssemblyFoldersFromConfig/AssemblyFoldersFromConfigCache.cs b/src/Tasks/AssemblyDependency/AssemblyFoldersFromConfig/AssemblyFoldersFromConfigCache.cs index 48ab0527f2a..2862fbcce01 100644 --- a/src/Tasks/AssemblyDependency/AssemblyFoldersFromConfig/AssemblyFoldersFromConfigCache.cs +++ b/src/Tasks/AssemblyDependency/AssemblyFoldersFromConfig/AssemblyFoldersFromConfigCache.cs @@ -4,6 +4,8 @@ using System.Linq; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks.AssemblyFoldersFromConfig { /// diff --git a/src/Tasks/AssemblyDependency/AssemblyFoldersFromConfig/AssemblyFoldersFromConfigResolver.cs b/src/Tasks/AssemblyDependency/AssemblyFoldersFromConfig/AssemblyFoldersFromConfigResolver.cs index e6e2a2bcb80..a5a8fe5a9f8 100644 --- a/src/Tasks/AssemblyDependency/AssemblyFoldersFromConfig/AssemblyFoldersFromConfigResolver.cs +++ b/src/Tasks/AssemblyDependency/AssemblyFoldersFromConfig/AssemblyFoldersFromConfigResolver.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Utilities; using ProcessorArchitecture = System.Reflection.ProcessorArchitecture; +#nullable disable + namespace Microsoft.Build.Tasks.AssemblyFoldersFromConfig { /// diff --git a/src/Tasks/AssemblyDependency/AssemblyFoldersResolver.cs b/src/Tasks/AssemblyDependency/AssemblyFoldersResolver.cs index 82fbcc95204..53f7f0cfcd5 100644 --- a/src/Tasks/AssemblyDependency/AssemblyFoldersResolver.cs +++ b/src/Tasks/AssemblyDependency/AssemblyFoldersResolver.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/AssemblyInformation.cs b/src/Tasks/AssemblyDependency/AssemblyInformation.cs index 171e223a5d7..3d499b4bc62 100644 --- a/src/Tasks/AssemblyDependency/AssemblyInformation.cs +++ b/src/Tasks/AssemblyDependency/AssemblyInformation.cs @@ -20,6 +20,8 @@ #endif using Microsoft.Build.Tasks.AssemblyDependency; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/AssemblyMetadata.cs b/src/Tasks/AssemblyDependency/AssemblyMetadata.cs index db0c43e73f2..7144c1d80d9 100644 --- a/src/Tasks/AssemblyDependency/AssemblyMetadata.cs +++ b/src/Tasks/AssemblyDependency/AssemblyMetadata.cs @@ -4,6 +4,8 @@ using System.Runtime.Versioning; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks.AssemblyDependency { /// diff --git a/src/Tasks/AssemblyDependency/AssemblyNameReference.cs b/src/Tasks/AssemblyDependency/AssemblyNameReference.cs index 40f179a5380..bbb0004ecd3 100644 --- a/src/Tasks/AssemblyDependency/AssemblyNameReference.cs +++ b/src/Tasks/AssemblyDependency/AssemblyNameReference.cs @@ -4,6 +4,8 @@ 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 7e5c2f2d01c..fd6fe842ce8 100644 --- a/src/Tasks/AssemblyDependency/AssemblyNameReferenceAscendingVersionComparer.cs +++ b/src/Tasks/AssemblyDependency/AssemblyNameReferenceAscendingVersionComparer.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/AssemblyResolution.cs b/src/Tasks/AssemblyDependency/AssemblyResolution.cs index f2fe396824f..178c57101a5 100644 --- a/src/Tasks/AssemblyDependency/AssemblyResolution.cs +++ b/src/Tasks/AssemblyDependency/AssemblyResolution.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Tasks.AssemblyFoldersFromConfig; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/AssemblyResolutionConstants.cs b/src/Tasks/AssemblyDependency/AssemblyResolutionConstants.cs index f59f6714724..2f38c3b83f6 100644 --- a/src/Tasks/AssemblyDependency/AssemblyResolutionConstants.cs +++ b/src/Tasks/AssemblyDependency/AssemblyResolutionConstants.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/BadImageReferenceException.cs b/src/Tasks/AssemblyDependency/BadImageReferenceException.cs index ab7ebd3a456..a93ae6fb390 100644 --- a/src/Tasks/AssemblyDependency/BadImageReferenceException.cs +++ b/src/Tasks/AssemblyDependency/BadImageReferenceException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/CandidateAssemblyFilesResolver.cs b/src/Tasks/AssemblyDependency/CandidateAssemblyFilesResolver.cs index 23ccac23cb2..35c170ed419 100644 --- a/src/Tasks/AssemblyDependency/CandidateAssemblyFilesResolver.cs +++ b/src/Tasks/AssemblyDependency/CandidateAssemblyFilesResolver.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/ConflictLossReason.cs b/src/Tasks/AssemblyDependency/ConflictLossReason.cs index 2a5f99c478e..4ef779f4554 100644 --- a/src/Tasks/AssemblyDependency/ConflictLossReason.cs +++ b/src/Tasks/AssemblyDependency/ConflictLossReason.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/CopyLocalState.cs b/src/Tasks/AssemblyDependency/CopyLocalState.cs index 882be85d3e8..e6f506668e7 100644 --- a/src/Tasks/AssemblyDependency/CopyLocalState.cs +++ b/src/Tasks/AssemblyDependency/CopyLocalState.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/DependencyResolutionException.cs b/src/Tasks/AssemblyDependency/DependencyResolutionException.cs index 26692718ced..1266dceb45f 100644 --- a/src/Tasks/AssemblyDependency/DependencyResolutionException.cs +++ b/src/Tasks/AssemblyDependency/DependencyResolutionException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/DirectoryResolver.cs b/src/Tasks/AssemblyDependency/DirectoryResolver.cs index 8f7be0e76ac..ccfcde1e11b 100644 --- a/src/Tasks/AssemblyDependency/DirectoryResolver.cs +++ b/src/Tasks/AssemblyDependency/DirectoryResolver.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/DisposableBase.cs b/src/Tasks/AssemblyDependency/DisposableBase.cs index f1e7a08dac7..1cdac14aec1 100644 --- a/src/Tasks/AssemblyDependency/DisposableBase.cs +++ b/src/Tasks/AssemblyDependency/DisposableBase.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Tasks { // diff --git a/src/Tasks/AssemblyDependency/FrameworkPathResolver.cs b/src/Tasks/AssemblyDependency/FrameworkPathResolver.cs index bfee4b6dc71..6312220d3f2 100644 --- a/src/Tasks/AssemblyDependency/FrameworkPathResolver.cs +++ b/src/Tasks/AssemblyDependency/FrameworkPathResolver.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/GacResolver.cs b/src/Tasks/AssemblyDependency/GacResolver.cs index 16342d58a31..40b3c26eadc 100644 --- a/src/Tasks/AssemblyDependency/GacResolver.cs +++ b/src/Tasks/AssemblyDependency/GacResolver.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/GenerateBindingRedirects.cs b/src/Tasks/AssemblyDependency/GenerateBindingRedirects.cs index f24bb0cff16..cbfb268bad9 100644 --- a/src/Tasks/AssemblyDependency/GenerateBindingRedirects.cs +++ b/src/Tasks/AssemblyDependency/GenerateBindingRedirects.cs @@ -11,6 +11,8 @@ using System.Reflection; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/GlobalAssemblyCache.cs b/src/Tasks/AssemblyDependency/GlobalAssemblyCache.cs index 147a65313eb..b7df962c76f 100644 --- a/src/Tasks/AssemblyDependency/GlobalAssemblyCache.cs +++ b/src/Tasks/AssemblyDependency/GlobalAssemblyCache.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Framework; using System.Collections.Concurrent; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/HintPathResolver.cs b/src/Tasks/AssemblyDependency/HintPathResolver.cs index ed94162e576..381e7d3d60e 100644 --- a/src/Tasks/AssemblyDependency/HintPathResolver.cs +++ b/src/Tasks/AssemblyDependency/HintPathResolver.cs @@ -6,6 +6,8 @@ using System.Reflection; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/InstalledAssemblies.cs b/src/Tasks/AssemblyDependency/InstalledAssemblies.cs index 83d49173b71..cf35873ca38 100644 --- a/src/Tasks/AssemblyDependency/InstalledAssemblies.cs +++ b/src/Tasks/AssemblyDependency/InstalledAssemblies.cs @@ -6,6 +6,8 @@ using System.Linq; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/InvalidReferenceAssemblyNameException.cs b/src/Tasks/AssemblyDependency/InvalidReferenceAssemblyNameException.cs index e4151f82e01..297d8b6a386 100644 --- a/src/Tasks/AssemblyDependency/InvalidReferenceAssemblyNameException.cs +++ b/src/Tasks/AssemblyDependency/InvalidReferenceAssemblyNameException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/NoMatchReason.cs b/src/Tasks/AssemblyDependency/NoMatchReason.cs index 27ad0d285ff..cf31797ebba 100644 --- a/src/Tasks/AssemblyDependency/NoMatchReason.cs +++ b/src/Tasks/AssemblyDependency/NoMatchReason.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/RawFilenameResolver.cs b/src/Tasks/AssemblyDependency/RawFilenameResolver.cs index b75ef96a73b..8b7a26432e2 100644 --- a/src/Tasks/AssemblyDependency/RawFilenameResolver.cs +++ b/src/Tasks/AssemblyDependency/RawFilenameResolver.cs @@ -6,6 +6,8 @@ using System.Reflection; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/Reference.cs b/src/Tasks/AssemblyDependency/Reference.cs index c6b179e69ad..015ff467546 100644 --- a/src/Tasks/AssemblyDependency/Reference.cs +++ b/src/Tasks/AssemblyDependency/Reference.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/ReferenceResolutionException.cs b/src/Tasks/AssemblyDependency/ReferenceResolutionException.cs index 13c8424b7fe..2b9a6d24ce9 100644 --- a/src/Tasks/AssemblyDependency/ReferenceResolutionException.cs +++ b/src/Tasks/AssemblyDependency/ReferenceResolutionException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/ReferenceTable.cs b/src/Tasks/AssemblyDependency/ReferenceTable.cs index 3b214c55a9f..71e703a6b88 100644 --- a/src/Tasks/AssemblyDependency/ReferenceTable.cs +++ b/src/Tasks/AssemblyDependency/ReferenceTable.cs @@ -17,6 +17,8 @@ using FrameworkNameVersioning = System.Runtime.Versioning.FrameworkName; using SystemProcessorArchitecture = System.Reflection.ProcessorArchitecture; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/ResolutionSearchLocation.cs b/src/Tasks/AssemblyDependency/ResolutionSearchLocation.cs index 591ddee0c3e..31a62ba6e88 100644 --- a/src/Tasks/AssemblyDependency/ResolutionSearchLocation.cs +++ b/src/Tasks/AssemblyDependency/ResolutionSearchLocation.cs @@ -3,6 +3,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs b/src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs index 5cb27a7ab28..470d064f9ce 100644 --- a/src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs +++ b/src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs @@ -21,6 +21,8 @@ using FrameworkNameVersioning = System.Runtime.Versioning.FrameworkName; using SystemProcessorArchitecture = System.Reflection.ProcessorArchitecture; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/Resolver.cs b/src/Tasks/AssemblyDependency/Resolver.cs index 7a30ee1d703..66fddca12ab 100644 --- a/src/Tasks/AssemblyDependency/Resolver.cs +++ b/src/Tasks/AssemblyDependency/Resolver.cs @@ -7,6 +7,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/TaskItemSpecFilenameComparer.cs b/src/Tasks/AssemblyDependency/TaskItemSpecFilenameComparer.cs index 02a288bdf6e..ad9ffac0441 100644 --- a/src/Tasks/AssemblyDependency/TaskItemSpecFilenameComparer.cs +++ b/src/Tasks/AssemblyDependency/TaskItemSpecFilenameComparer.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/UnificationReason.cs b/src/Tasks/AssemblyDependency/UnificationReason.cs index c439d571e50..8223183a0ad 100644 --- a/src/Tasks/AssemblyDependency/UnificationReason.cs +++ b/src/Tasks/AssemblyDependency/UnificationReason.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/UnificationVersion.cs b/src/Tasks/AssemblyDependency/UnificationVersion.cs index 79eb947430f..bcd31a39ef8 100644 --- a/src/Tasks/AssemblyDependency/UnificationVersion.cs +++ b/src/Tasks/AssemblyDependency/UnificationVersion.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyDependency/UnifiedAssemblyName.cs b/src/Tasks/AssemblyDependency/UnifiedAssemblyName.cs index 1f91306f771..34b0ff9143c 100644 --- a/src/Tasks/AssemblyDependency/UnifiedAssemblyName.cs +++ b/src/Tasks/AssemblyDependency/UnifiedAssemblyName.cs @@ -3,6 +3,8 @@ 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 e1aeb1d9f34..13ef6555e76 100644 --- a/src/Tasks/AssemblyDependency/WarnOrErrorOnTargetArchitectureMismatchBehavior.cs +++ b/src/Tasks/AssemblyDependency/WarnOrErrorOnTargetArchitectureMismatchBehavior.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyFolder.cs b/src/Tasks/AssemblyFolder.cs index dfc0c4632c7..6f5da7d008f 100644 --- a/src/Tasks/AssemblyFolder.cs +++ b/src/Tasks/AssemblyFolder.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Win32; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyRegistrationCache.cs b/src/Tasks/AssemblyRegistrationCache.cs index 3877f422450..ba5beaa4b82 100644 --- a/src/Tasks/AssemblyRegistrationCache.cs +++ b/src/Tasks/AssemblyRegistrationCache.cs @@ -6,6 +6,8 @@ using Microsoft.Build.BackEnd; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyRemapping.cs b/src/Tasks/AssemblyRemapping.cs index 13273a92491..ac09c0fcb63 100644 --- a/src/Tasks/AssemblyRemapping.cs +++ b/src/Tasks/AssemblyRemapping.cs @@ -4,6 +4,8 @@ using System; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssemblyResources.cs b/src/Tasks/AssemblyResources.cs index 49f192ddca3..2d8cfcdf7f3 100644 --- a/src/Tasks/AssemblyResources.cs +++ b/src/Tasks/AssemblyResources.cs @@ -5,6 +5,8 @@ using System.Reflection; using System.Globalization; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Tasks/AssignCulture.cs b/src/Tasks/AssignCulture.cs index ee5446c50e8..bf29ead3d01 100644 --- a/src/Tasks/AssignCulture.cs +++ b/src/Tasks/AssignCulture.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssignLinkMetadata.cs b/src/Tasks/AssignLinkMetadata.cs index 16d1175f11c..3e4c0c62633 100644 --- a/src/Tasks/AssignLinkMetadata.cs +++ b/src/Tasks/AssignLinkMetadata.cs @@ -7,6 +7,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AssignProjectConfiguration.cs b/src/Tasks/AssignProjectConfiguration.cs index d69c23af424..1f93054af17 100644 --- a/src/Tasks/AssignProjectConfiguration.cs +++ b/src/Tasks/AssignProjectConfiguration.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { public class AssignProjectConfiguration : ResolveProjectBase diff --git a/src/Tasks/AssignTargetPath.cs b/src/Tasks/AssignTargetPath.cs index 6b033ae1fb0..10ede5e6a1a 100644 --- a/src/Tasks/AssignTargetPath.cs +++ b/src/Tasks/AssignTargetPath.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Utilities; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AxImp.cs b/src/Tasks/AxImp.cs index 59e3f4fcd55..643a4029724 100644 --- a/src/Tasks/AxImp.cs +++ b/src/Tasks/AxImp.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AxReference.cs b/src/Tasks/AxReference.cs index 2b7b15cd61a..3b0c87d1229 100644 --- a/src/Tasks/AxReference.cs +++ b/src/Tasks/AxReference.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /* diff --git a/src/Tasks/AxTlbBaseReference.cs b/src/Tasks/AxTlbBaseReference.cs index d0aa26be0fd..6f5ac03fb55 100644 --- a/src/Tasks/AxTlbBaseReference.cs +++ b/src/Tasks/AxTlbBaseReference.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/AxTlbBaseTask.cs b/src/Tasks/AxTlbBaseTask.cs index 5a0b3d0b54c..a6bde0f4930 100644 --- a/src/Tasks/AxTlbBaseTask.cs +++ b/src/Tasks/AxTlbBaseTask.cs @@ -5,6 +5,8 @@ using System.Reflection; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/BootstrapperUtil/BootstrapperBuilder.cs b/src/Tasks/BootstrapperUtil/BootstrapperBuilder.cs index 3e7da8c94cd..eaf60460bd7 100644 --- a/src/Tasks/BootstrapperUtil/BootstrapperBuilder.cs +++ b/src/Tasks/BootstrapperUtil/BootstrapperBuilder.cs @@ -18,6 +18,8 @@ using System.Xml.Xsl; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { /// diff --git a/src/Tasks/BootstrapperUtil/BuildMessage.cs b/src/Tasks/BootstrapperUtil/BuildMessage.cs index 0f1647a64a3..be2c4585e76 100644 --- a/src/Tasks/BootstrapperUtil/BuildMessage.cs +++ b/src/Tasks/BootstrapperUtil/BuildMessage.cs @@ -6,6 +6,8 @@ using System.Text.RegularExpressions; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { /// diff --git a/src/Tasks/BootstrapperUtil/BuildResults.cs b/src/Tasks/BootstrapperUtil/BuildResults.cs index ef5b37fb35b..046c5eb77bd 100644 --- a/src/Tasks/BootstrapperUtil/BuildResults.cs +++ b/src/Tasks/BootstrapperUtil/BuildResults.cs @@ -4,6 +4,8 @@ using System.Collections.Generic; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { /// diff --git a/src/Tasks/BootstrapperUtil/BuildSettings.cs b/src/Tasks/BootstrapperUtil/BuildSettings.cs index d9d37baef45..1bbc9f6185a 100644 --- a/src/Tasks/BootstrapperUtil/BuildSettings.cs +++ b/src/Tasks/BootstrapperUtil/BuildSettings.cs @@ -3,6 +3,8 @@ using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { /// diff --git a/src/Tasks/BootstrapperUtil/Interfaces.cs b/src/Tasks/BootstrapperUtil/Interfaces.cs index 8858e85b242..16989c3fe15 100644 --- a/src/Tasks/BootstrapperUtil/Interfaces.cs +++ b/src/Tasks/BootstrapperUtil/Interfaces.cs @@ -3,6 +3,8 @@ using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { /// diff --git a/src/Tasks/BootstrapperUtil/NativeMethods.cs b/src/Tasks/BootstrapperUtil/NativeMethods.cs index 08907f653c6..c79333daae6 100644 --- a/src/Tasks/BootstrapperUtil/NativeMethods.cs +++ b/src/Tasks/BootstrapperUtil/NativeMethods.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { internal static class NativeMethods diff --git a/src/Tasks/BootstrapperUtil/Package.cs b/src/Tasks/BootstrapperUtil/Package.cs index d05c8171b61..a7cf775dff5 100644 --- a/src/Tasks/BootstrapperUtil/Package.cs +++ b/src/Tasks/BootstrapperUtil/Package.cs @@ -4,6 +4,8 @@ using System.Xml; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { [ComVisible(false)] diff --git a/src/Tasks/BootstrapperUtil/PackageCollection.cs b/src/Tasks/BootstrapperUtil/PackageCollection.cs index 0fe53b2c185..5b7a169a826 100644 --- a/src/Tasks/BootstrapperUtil/PackageCollection.cs +++ b/src/Tasks/BootstrapperUtil/PackageCollection.cs @@ -6,6 +6,8 @@ using System.Collections.Generic; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { internal class PackageCollection : IEnumerable diff --git a/src/Tasks/BootstrapperUtil/Product.cs b/src/Tasks/BootstrapperUtil/Product.cs index 56338f5ca04..e148fa22bc7 100644 --- a/src/Tasks/BootstrapperUtil/Product.cs +++ b/src/Tasks/BootstrapperUtil/Product.cs @@ -8,6 +8,8 @@ using System.Xml; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { internal enum CopyAllFilesType diff --git a/src/Tasks/BootstrapperUtil/ProductBuilder.cs b/src/Tasks/BootstrapperUtil/ProductBuilder.cs index 55224e4b575..ef3841e7386 100644 --- a/src/Tasks/BootstrapperUtil/ProductBuilder.cs +++ b/src/Tasks/BootstrapperUtil/ProductBuilder.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { /// diff --git a/src/Tasks/BootstrapperUtil/ProductBuilderCollection.cs b/src/Tasks/BootstrapperUtil/ProductBuilderCollection.cs index e4f74614f8e..f8a6d8d9c75 100644 --- a/src/Tasks/BootstrapperUtil/ProductBuilderCollection.cs +++ b/src/Tasks/BootstrapperUtil/ProductBuilderCollection.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { /// diff --git a/src/Tasks/BootstrapperUtil/ProductCollection.cs b/src/Tasks/BootstrapperUtil/ProductCollection.cs index 71ae246ab13..652b4163c85 100644 --- a/src/Tasks/BootstrapperUtil/ProductCollection.cs +++ b/src/Tasks/BootstrapperUtil/ProductCollection.cs @@ -6,6 +6,8 @@ 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 d28a9eb8178..0a3fade1c5d 100644 --- a/src/Tasks/BootstrapperUtil/ResourceUpdater.cs +++ b/src/Tasks/BootstrapperUtil/ResourceUpdater.cs @@ -8,6 +8,8 @@ using System.Runtime.InteropServices; using System.Threading; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { internal class ResourceUpdater diff --git a/src/Tasks/BootstrapperUtil/Util.cs b/src/Tasks/BootstrapperUtil/Util.cs index 5afd9397329..0ed5be1dea0 100644 --- a/src/Tasks/BootstrapperUtil/Util.cs +++ b/src/Tasks/BootstrapperUtil/Util.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Microsoft.Win32; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { internal static class Util diff --git a/src/Tasks/BootstrapperUtil/productvalidationresults.cs b/src/Tasks/BootstrapperUtil/productvalidationresults.cs index e82e338a107..c882d9916c3 100644 --- a/src/Tasks/BootstrapperUtil/productvalidationresults.cs +++ b/src/Tasks/BootstrapperUtil/productvalidationresults.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { /// diff --git a/src/Tasks/BootstrapperUtil/xmlvalidationresults.cs b/src/Tasks/BootstrapperUtil/xmlvalidationresults.cs index a9c3142b154..c41406a7c10 100644 --- a/src/Tasks/BootstrapperUtil/xmlvalidationresults.cs +++ b/src/Tasks/BootstrapperUtil/xmlvalidationresults.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.Bootstrapper { /// diff --git a/src/Tasks/BuildCacheDisposeWrapper.cs b/src/Tasks/BuildCacheDisposeWrapper.cs index 1341fb0b9dc..2667f33b55f 100644 --- a/src/Tasks/BuildCacheDisposeWrapper.cs +++ b/src/Tasks/BuildCacheDisposeWrapper.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CSharpParserUtilities.cs b/src/Tasks/CSharpParserUtilities.cs index facac7734c6..2f433522f74 100644 --- a/src/Tasks/CSharpParserUtilities.cs +++ b/src/Tasks/CSharpParserUtilities.cs @@ -5,6 +5,8 @@ using System.Text; using Microsoft.Build.Shared.LanguageParser; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CallTarget.cs b/src/Tasks/CallTarget.cs index d67f4c61cb0..3ce6ae1b3b0 100644 --- a/src/Tasks/CallTarget.cs +++ b/src/Tasks/CallTarget.cs @@ -4,6 +4,8 @@ using System.Collections.Generic; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CodeTaskFactory.cs b/src/Tasks/CodeTaskFactory.cs index 2e2bb8b2ab9..d0b07157320 100644 --- a/src/Tasks/CodeTaskFactory.cs +++ b/src/Tasks/CodeTaskFactory.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { #if FEATURE_CODETASKFACTORY diff --git a/src/Tasks/ComDependencyWalker.cs b/src/Tasks/ComDependencyWalker.cs index ca621fc1598..cb76273bb16 100644 --- a/src/Tasks/ComDependencyWalker.cs +++ b/src/Tasks/ComDependencyWalker.cs @@ -10,6 +10,8 @@ using COMException = System.Runtime.InteropServices.COMException; using VarEnum = System.Runtime.InteropServices.VarEnum; +#nullable disable + namespace Microsoft.Build.Tasks { // Abstract the method for releasing COM objects for unit testing. diff --git a/src/Tasks/ComReference.cs b/src/Tasks/ComReference.cs index ffa0fb88171..cea831d5798 100644 --- a/src/Tasks/ComReference.cs +++ b/src/Tasks/ComReference.cs @@ -11,6 +11,8 @@ using Marshal = System.Runtime.InteropServices.Marshal; using COMException = System.Runtime.InteropServices.COMException; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ComReferenceInfo.cs b/src/Tasks/ComReferenceInfo.cs index 9e433200cdd..6c3be701bf6 100644 --- a/src/Tasks/ComReferenceInfo.cs +++ b/src/Tasks/ComReferenceInfo.cs @@ -13,6 +13,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ComReferenceItemAttributes.cs b/src/Tasks/ComReferenceItemAttributes.cs index e484d706082..1dfed67cd12 100644 --- a/src/Tasks/ComReferenceItemAttributes.cs +++ b/src/Tasks/ComReferenceItemAttributes.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ComReferenceResolutionException.cs b/src/Tasks/ComReferenceResolutionException.cs index 48f2f0f0231..7b5760fedd7 100644 --- a/src/Tasks/ComReferenceResolutionException.cs +++ b/src/Tasks/ComReferenceResolutionException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ComReferenceTypes.cs b/src/Tasks/ComReferenceTypes.cs index ecb520e3a25..1b0eb4f3c02 100644 --- a/src/Tasks/ComReferenceTypes.cs +++ b/src/Tasks/ComReferenceTypes.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ComReferenceWrapperInfo.cs b/src/Tasks/ComReferenceWrapperInfo.cs index 3ef7a280a7d..0007cc0e64d 100644 --- a/src/Tasks/ComReferenceWrapperInfo.cs +++ b/src/Tasks/ComReferenceWrapperInfo.cs @@ -4,6 +4,8 @@ using System.Reflection; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CombinePath.cs b/src/Tasks/CombinePath.cs index 4d132eca4af..b6e759aaeb3 100644 --- a/src/Tasks/CombinePath.cs +++ b/src/Tasks/CombinePath.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Utilities; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CombineTargetFrameworkInfoProperties.cs b/src/Tasks/CombineTargetFrameworkInfoProperties.cs index bfd7caae236..4108feb5246 100644 --- a/src/Tasks/CombineTargetFrameworkInfoProperties.cs +++ b/src/Tasks/CombineTargetFrameworkInfoProperties.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Shared; using System.Xml.Linq; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CombineXmlElements.cs b/src/Tasks/CombineXmlElements.cs index 214207b1b6e..96fa638314d 100644 --- a/src/Tasks/CombineXmlElements.cs +++ b/src/Tasks/CombineXmlElements.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using System.Xml.Linq; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CommandLineBuilderExtension.cs b/src/Tasks/CommandLineBuilderExtension.cs index eebdbc4f11a..c07634ce739 100644 --- a/src/Tasks/CommandLineBuilderExtension.cs +++ b/src/Tasks/CommandLineBuilderExtension.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ConvertToAbsolutePath.cs b/src/Tasks/ConvertToAbsolutePath.cs index b5df8f2ef20..a8985aefcdc 100644 --- a/src/Tasks/ConvertToAbsolutePath.cs +++ b/src/Tasks/ConvertToAbsolutePath.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/Copy.cs b/src/Tasks/Copy.cs index 1575b55d11b..d4523d337a0 100644 --- a/src/Tasks/Copy.cs +++ b/src/Tasks/Copy.cs @@ -14,6 +14,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Eventing; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CreateCSharpManifestResourceName.cs b/src/Tasks/CreateCSharpManifestResourceName.cs index bb939b9174a..3ba09011657 100644 --- a/src/Tasks/CreateCSharpManifestResourceName.cs +++ b/src/Tasks/CreateCSharpManifestResourceName.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CreateItem.cs b/src/Tasks/CreateItem.cs index 7b4bfa75764..f386549f525 100644 --- a/src/Tasks/CreateItem.cs +++ b/src/Tasks/CreateItem.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Utilities; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CreateManifestResourceName.cs b/src/Tasks/CreateManifestResourceName.cs index b8b0d2fbf57..49d1b38bd52 100644 --- a/src/Tasks/CreateManifestResourceName.cs +++ b/src/Tasks/CreateManifestResourceName.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Utilities; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CreateProperty.cs b/src/Tasks/CreateProperty.cs index 9631f5cb80e..5f9b2c7090b 100644 --- a/src/Tasks/CreateProperty.cs +++ b/src/Tasks/CreateProperty.cs @@ -4,6 +4,8 @@ using System; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CreateVisualBasicManifestResourceName.cs b/src/Tasks/CreateVisualBasicManifestResourceName.cs index fe02c57753f..6b0a1f18a25 100644 --- a/src/Tasks/CreateVisualBasicManifestResourceName.cs +++ b/src/Tasks/CreateVisualBasicManifestResourceName.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/Culture.cs b/src/Tasks/Culture.cs index f2635dac38c..f138332472b 100644 --- a/src/Tasks/Culture.cs +++ b/src/Tasks/Culture.cs @@ -4,6 +4,8 @@ using System; using System.IO; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/CultureInfoCache.cs b/src/Tasks/CultureInfoCache.cs index 853c512dcf9..4955e8a766e 100644 --- a/src/Tasks/CultureInfoCache.cs +++ b/src/Tasks/CultureInfoCache.cs @@ -6,6 +6,8 @@ using System.Globalization; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/DataDriven/DataDrivenToolTask.cs b/src/Tasks/DataDriven/DataDrivenToolTask.cs index 3cee5394793..49e1f88988a 100644 --- a/src/Tasks/DataDriven/DataDrivenToolTask.cs +++ b/src/Tasks/DataDriven/DataDrivenToolTask.cs @@ -13,6 +13,8 @@ using System.Reflection; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Tasks.DataDriven { /// diff --git a/src/Tasks/Delegate.cs b/src/Tasks/Delegate.cs index 563f6c39e0e..d8baa8ef059 100644 --- a/src/Tasks/Delegate.cs +++ b/src/Tasks/Delegate.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Tasks.AssemblyDependency; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/Delete.cs b/src/Tasks/Delete.cs index 0e14335050c..92dd730eca9 100644 --- a/src/Tasks/Delete.cs +++ b/src/Tasks/Delete.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/DependencyFile.cs b/src/Tasks/DependencyFile.cs index d517f39a296..c3d4ab2f05a 100644 --- a/src/Tasks/DependencyFile.cs +++ b/src/Tasks/DependencyFile.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/DownloadFile.cs b/src/Tasks/DownloadFile.cs index 1f9181ec72e..c55eedb3974 100644 --- a/src/Tasks/DownloadFile.cs +++ b/src/Tasks/DownloadFile.cs @@ -11,6 +11,8 @@ using System.Threading.Tasks; using Task = System.Threading.Tasks.Task; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/Error.cs b/src/Tasks/Error.cs index 8cec712ea53..cbcfe08df2a 100644 --- a/src/Tasks/Error.cs +++ b/src/Tasks/Error.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ErrorFromResources.cs b/src/Tasks/ErrorFromResources.cs index 83c5f106d6a..2c357b1c74a 100644 --- a/src/Tasks/ErrorFromResources.cs +++ b/src/Tasks/ErrorFromResources.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/Exec.cs b/src/Tasks/Exec.cs index 47e3075087f..90ef4257092 100644 --- a/src/Tasks/Exec.cs +++ b/src/Tasks/Exec.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ExtractedClassName.cs b/src/Tasks/ExtractedClassName.cs index 914b98eb8d7..d5288eddbe8 100644 --- a/src/Tasks/ExtractedClassName.cs +++ b/src/Tasks/ExtractedClassName.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/FileIO/GetFileHash.cs b/src/Tasks/FileIO/GetFileHash.cs index 0a6095e5d58..ab35b01b7b5 100644 --- a/src/Tasks/FileIO/GetFileHash.cs +++ b/src/Tasks/FileIO/GetFileHash.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/FileIO/HashEncoding.cs b/src/Tasks/FileIO/HashEncoding.cs index ce5eb6be480..bf7939b93ed 100644 --- a/src/Tasks/FileIO/HashEncoding.cs +++ b/src/Tasks/FileIO/HashEncoding.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks { internal enum HashEncoding diff --git a/src/Tasks/FileIO/ReadLinesFromFile.cs b/src/Tasks/FileIO/ReadLinesFromFile.cs index 7b01578a1e0..80690b87af2 100644 --- a/src/Tasks/FileIO/ReadLinesFromFile.cs +++ b/src/Tasks/FileIO/ReadLinesFromFile.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/FileIO/VerifyFileHash.cs b/src/Tasks/FileIO/VerifyFileHash.cs index 7bc2370e688..5d3739da436 100644 --- a/src/Tasks/FileIO/VerifyFileHash.cs +++ b/src/Tasks/FileIO/VerifyFileHash.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/FileIO/WriteLinesToFile.cs b/src/Tasks/FileIO/WriteLinesToFile.cs index 776e48bbddb..1d8df91c6be 100644 --- a/src/Tasks/FileIO/WriteLinesToFile.cs +++ b/src/Tasks/FileIO/WriteLinesToFile.cs @@ -8,6 +8,8 @@ using System.IO; using System.Text; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/FileState.cs b/src/Tasks/FileState.cs index af2e2f29897..6d59494bb8d 100644 --- a/src/Tasks/FileState.cs +++ b/src/Tasks/FileState.cs @@ -6,6 +6,8 @@ using System.Runtime.InteropServices; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/FindAppConfigFile.cs b/src/Tasks/FindAppConfigFile.cs index 5899e06f77f..29107b7a10d 100644 --- a/src/Tasks/FindAppConfigFile.cs +++ b/src/Tasks/FindAppConfigFile.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/FindInList.cs b/src/Tasks/FindInList.cs index ba1e34b3ea6..1c3dac664af 100644 --- a/src/Tasks/FindInList.cs +++ b/src/Tasks/FindInList.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/FindInvalidProjectReferences.cs b/src/Tasks/FindInvalidProjectReferences.cs index 54c84eaacdf..965bf6d2633 100644 --- a/src/Tasks/FindInvalidProjectReferences.cs +++ b/src/Tasks/FindInvalidProjectReferences.cs @@ -6,6 +6,8 @@ using System.Collections.Generic; using System.Text.RegularExpressions; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/FormatUrl.cs b/src/Tasks/FormatUrl.cs index 4942b3d2bed..f742f4d238b 100644 --- a/src/Tasks/FormatUrl.cs +++ b/src/Tasks/FormatUrl.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Tasks.Deployment.ManifestUtilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/FormatVersion.cs b/src/Tasks/FormatVersion.cs index c3a156d6a9a..edb58000777 100644 --- a/src/Tasks/FormatVersion.cs +++ b/src/Tasks/FormatVersion.cs @@ -5,6 +5,8 @@ using System.Globalization; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GenerateApplicationManifest.cs b/src/Tasks/GenerateApplicationManifest.cs index c69fe1a7155..8c601cda4fa 100644 --- a/src/Tasks/GenerateApplicationManifest.cs +++ b/src/Tasks/GenerateApplicationManifest.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Tasks.Deployment.ManifestUtilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GenerateBootstrapper.cs b/src/Tasks/GenerateBootstrapper.cs index ff94ae73668..85b3cdf2fde 100644 --- a/src/Tasks/GenerateBootstrapper.cs +++ b/src/Tasks/GenerateBootstrapper.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Tasks.Deployment.Bootstrapper; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GenerateDeploymentManifest.cs b/src/Tasks/GenerateDeploymentManifest.cs index dceeb90b0ed..d4ff40421a4 100644 --- a/src/Tasks/GenerateDeploymentManifest.cs +++ b/src/Tasks/GenerateDeploymentManifest.cs @@ -6,6 +6,8 @@ using System.IO; using Microsoft.Build.Tasks.Deployment.ManifestUtilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GenerateLauncher.cs b/src/Tasks/GenerateLauncher.cs index 12d90d87a3d..6bedd918410 100644 --- a/src/Tasks/GenerateLauncher.cs +++ b/src/Tasks/GenerateLauncher.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Tasks.Deployment.ManifestUtilities; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GenerateManifestBase.cs b/src/Tasks/GenerateManifestBase.cs index 3ad0bf8c681..026cdfb8da1 100644 --- a/src/Tasks/GenerateManifestBase.cs +++ b/src/Tasks/GenerateManifestBase.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Tasks.Deployment.ManifestUtilities; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GenerateResource.cs b/src/Tasks/GenerateResource.cs index a5f9c7646b3..a47cdc11910 100644 --- a/src/Tasks/GenerateResource.cs +++ b/src/Tasks/GenerateResource.cs @@ -40,6 +40,8 @@ using Microsoft.Win32; #endif +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GenerateTrustInfo.cs b/src/Tasks/GenerateTrustInfo.cs index 9dbd8e79e4d..e6a070ee089 100644 --- a/src/Tasks/GenerateTrustInfo.cs +++ b/src/Tasks/GenerateTrustInfo.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Tasks.Deployment.ManifestUtilities; using FrameworkNameVersioning = System.Runtime.Versioning.FrameworkName; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GetAssemblyIdentity.cs b/src/Tasks/GetAssemblyIdentity.cs index a59a980cc30..92edc4a81af 100644 --- a/src/Tasks/GetAssemblyIdentity.cs +++ b/src/Tasks/GetAssemblyIdentity.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GetCompatiblePlatform.cs b/src/Tasks/GetCompatiblePlatform.cs index c86c88199d7..5f2ccedeb5f 100644 --- a/src/Tasks/GetCompatiblePlatform.cs +++ b/src/Tasks/GetCompatiblePlatform.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#nullable enable using Microsoft.Build.Framework; using Microsoft.Build.Shared; using Microsoft.Build.Utilities; diff --git a/src/Tasks/GetFrameworkPath.cs b/src/Tasks/GetFrameworkPath.cs index ee7e87ec6b6..999bd44f434 100644 --- a/src/Tasks/GetFrameworkPath.cs +++ b/src/Tasks/GetFrameworkPath.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GetFrameworkSDKPath.cs b/src/Tasks/GetFrameworkSDKPath.cs index bff7ee77f87..8a9a26b1701 100644 --- a/src/Tasks/GetFrameworkSDKPath.cs +++ b/src/Tasks/GetFrameworkSDKPath.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Utilities; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GetInstalledSDKLocations.cs b/src/Tasks/GetInstalledSDKLocations.cs index e5e8195e1f8..b5cd18cf750 100644 --- a/src/Tasks/GetInstalledSDKLocations.cs +++ b/src/Tasks/GetInstalledSDKLocations.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GetReferenceAssemblyPaths.cs b/src/Tasks/GetReferenceAssemblyPaths.cs index f3b9f3e2467..ccb55fcb851 100644 --- a/src/Tasks/GetReferenceAssemblyPaths.cs +++ b/src/Tasks/GetReferenceAssemblyPaths.cs @@ -9,6 +9,8 @@ using FrameworkNameVersioning = System.Runtime.Versioning.FrameworkName; using SystemProcessorArchitecture = System.Reflection.ProcessorArchitecture; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/GetSDKReferenceFiles.cs b/src/Tasks/GetSDKReferenceFiles.cs index dfc8d0050ac..59f3cb155ae 100644 --- a/src/Tasks/GetSDKReferenceFiles.cs +++ b/src/Tasks/GetSDKReferenceFiles.cs @@ -17,6 +17,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/Hash.cs b/src/Tasks/Hash.cs index 81699764e51..61371372e77 100644 --- a/src/Tasks/Hash.cs +++ b/src/Tasks/Hash.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/IAnalyzerHostObject.cs b/src/Tasks/IAnalyzerHostObject.cs index 4bd45dcc42d..31a9ee6a777 100644 --- a/src/Tasks/IAnalyzerHostObject.cs +++ b/src/Tasks/IAnalyzerHostObject.cs @@ -4,6 +4,8 @@ using System.Runtime.InteropServices; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Tasks.Hosting { /// diff --git a/src/Tasks/IComReferenceResolver.cs b/src/Tasks/IComReferenceResolver.cs index af69306d2c1..d6c14afc2df 100644 --- a/src/Tasks/IComReferenceResolver.cs +++ b/src/Tasks/IComReferenceResolver.cs @@ -4,6 +4,8 @@ // TYPELIBATTR clashes with the one in InteropServices. using TYPELIBATTR = System.Runtime.InteropServices.ComTypes.TYPELIBATTR; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ICscHostObject.cs b/src/Tasks/ICscHostObject.cs index b7a64be43ae..ffb8654611c 100644 --- a/src/Tasks/ICscHostObject.cs +++ b/src/Tasks/ICscHostObject.cs @@ -4,6 +4,8 @@ using System.Runtime.InteropServices; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Tasks.Hosting { /// diff --git a/src/Tasks/ICscHostObject2.cs b/src/Tasks/ICscHostObject2.cs index fe8373dc102..b34b294351c 100644 --- a/src/Tasks/ICscHostObject2.cs +++ b/src/Tasks/ICscHostObject2.cs @@ -3,6 +3,8 @@ using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Hosting { /// diff --git a/src/Tasks/ICscHostObject3.cs b/src/Tasks/ICscHostObject3.cs index 3c6f41be6b2..7ade210735a 100644 --- a/src/Tasks/ICscHostObject3.cs +++ b/src/Tasks/ICscHostObject3.cs @@ -3,6 +3,8 @@ using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Hosting { /// diff --git a/src/Tasks/ICscHostObject4.cs b/src/Tasks/ICscHostObject4.cs index 61a0746ccab..7ce014ed29f 100644 --- a/src/Tasks/ICscHostObject4.cs +++ b/src/Tasks/ICscHostObject4.cs @@ -3,6 +3,8 @@ using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Hosting { /// diff --git a/src/Tasks/IVbcHostObject.cs b/src/Tasks/IVbcHostObject.cs index 9a1873d6442..5c28314e04f 100644 --- a/src/Tasks/IVbcHostObject.cs +++ b/src/Tasks/IVbcHostObject.cs @@ -4,6 +4,8 @@ using System.Runtime.InteropServices; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Tasks.Hosting { /// diff --git a/src/Tasks/IVbcHostObject2.cs b/src/Tasks/IVbcHostObject2.cs index 2c255ad86a8..8d8faf1211a 100644 --- a/src/Tasks/IVbcHostObject2.cs +++ b/src/Tasks/IVbcHostObject2.cs @@ -3,6 +3,8 @@ using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Hosting { /// diff --git a/src/Tasks/IVbcHostObject3.cs b/src/Tasks/IVbcHostObject3.cs index a76134d0746..ea4f5434f6c 100644 --- a/src/Tasks/IVbcHostObject3.cs +++ b/src/Tasks/IVbcHostObject3.cs @@ -3,6 +3,8 @@ using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Hosting { /// diff --git a/src/Tasks/IVbcHostObject4.cs b/src/Tasks/IVbcHostObject4.cs index eff3f3777f7..9e73dd5581b 100644 --- a/src/Tasks/IVbcHostObject4.cs +++ b/src/Tasks/IVbcHostObject4.cs @@ -3,6 +3,8 @@ using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Hosting { /// diff --git a/src/Tasks/IVbcHostObject5.cs b/src/Tasks/IVbcHostObject5.cs index 4c2efaab1fb..bbf959e4f68 100644 --- a/src/Tasks/IVbcHostObject5.cs +++ b/src/Tasks/IVbcHostObject5.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Hosting { /// diff --git a/src/Tasks/IVbcHostObjectFreeThreaded.cs b/src/Tasks/IVbcHostObjectFreeThreaded.cs index bf1b5cf5c69..21a0e1f0a80 100644 --- a/src/Tasks/IVbcHostObjectFreeThreaded.cs +++ b/src/Tasks/IVbcHostObjectFreeThreaded.cs @@ -3,6 +3,8 @@ using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Hosting { /// diff --git a/src/Tasks/InstalledSDKResolver.cs b/src/Tasks/InstalledSDKResolver.cs index ac0ff362d0b..16d4332828c 100644 --- a/src/Tasks/InstalledSDKResolver.cs +++ b/src/Tasks/InstalledSDKResolver.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/InvalidParameterValueException.cs b/src/Tasks/InvalidParameterValueException.cs index de281e01cf6..7b9f650b554 100644 --- a/src/Tasks/InvalidParameterValueException.cs +++ b/src/Tasks/InvalidParameterValueException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/LC.cs b/src/Tasks/LC.cs index 9939247ea13..c12aa042a2c 100644 --- a/src/Tasks/LC.cs +++ b/src/Tasks/LC.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Utilities; using Microsoft.Build.Tasks.Deployment.ManifestUtilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ListOperators/FindUnderPath.cs b/src/Tasks/ListOperators/FindUnderPath.cs index 46acb04aad8..9168bc44376 100644 --- a/src/Tasks/ListOperators/FindUnderPath.cs +++ b/src/Tasks/ListOperators/FindUnderPath.cs @@ -8,6 +8,8 @@ using Microsoft.NET.StringTools; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ListOperators/RemoveDuplicates.cs b/src/Tasks/ListOperators/RemoveDuplicates.cs index 85562f5183f..f1a806b7a77 100644 --- a/src/Tasks/ListOperators/RemoveDuplicates.cs +++ b/src/Tasks/ListOperators/RemoveDuplicates.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/LockCheck.cs b/src/Tasks/LockCheck.cs index 6624a318f53..566553eff41 100644 --- a/src/Tasks/LockCheck.cs +++ b/src/Tasks/LockCheck.cs @@ -10,6 +10,8 @@ using System.Runtime.InteropServices; using System.Text; +#nullable disable + namespace Microsoft.Build.Tasks { internal class LockCheck diff --git a/src/Tasks/MSBuild.cs b/src/Tasks/MSBuild.cs index 6bbc68964b3..868d9811bfa 100644 --- a/src/Tasks/MSBuild.cs +++ b/src/Tasks/MSBuild.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/MakeDir.cs b/src/Tasks/MakeDir.cs index e08133fe6ae..131fdb2a47f 100644 --- a/src/Tasks/MakeDir.cs +++ b/src/Tasks/MakeDir.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ManifestUtil/ApplicationIdentity.cs b/src/Tasks/ManifestUtil/ApplicationIdentity.cs index 6f818452bdc..8b7aec3900b 100644 --- a/src/Tasks/ManifestUtil/ApplicationIdentity.cs +++ b/src/Tasks/ManifestUtil/ApplicationIdentity.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/ApplicationManifest.cs b/src/Tasks/ManifestUtil/ApplicationManifest.cs index 55ca4152e4e..33cf1d87613 100644 --- a/src/Tasks/ManifestUtil/ApplicationManifest.cs +++ b/src/Tasks/ManifestUtil/ApplicationManifest.cs @@ -11,6 +11,8 @@ using System.Xml.Serialization; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/AssemblyIdentity.cs b/src/Tasks/ManifestUtil/AssemblyIdentity.cs index 772c790c23e..756d0e9c06b 100644 --- a/src/Tasks/ManifestUtil/AssemblyIdentity.cs +++ b/src/Tasks/ManifestUtil/AssemblyIdentity.cs @@ -16,6 +16,8 @@ using Microsoft.Build.Shared.FileSystem; using FrameworkNameVersioning = System.Runtime.Versioning.FrameworkName; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/AssemblyManifest.cs b/src/Tasks/ManifestUtil/AssemblyManifest.cs index 59a331a30a1..e55a2ede807 100644 --- a/src/Tasks/ManifestUtil/AssemblyManifest.cs +++ b/src/Tasks/ManifestUtil/AssemblyManifest.cs @@ -5,6 +5,8 @@ using System.Runtime.InteropServices; using System.Xml.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/AssemblyReference.cs b/src/Tasks/ManifestUtil/AssemblyReference.cs index 81c741db55d..702790b55d4 100644 --- a/src/Tasks/ManifestUtil/AssemblyReference.cs +++ b/src/Tasks/ManifestUtil/AssemblyReference.cs @@ -7,6 +7,8 @@ using System.Runtime.InteropServices; using System.Xml.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/AssemblyReferenceCollection.cs b/src/Tasks/ManifestUtil/AssemblyReferenceCollection.cs index 2b81f70979d..09028f530cc 100644 --- a/src/Tasks/ManifestUtil/AssemblyReferenceCollection.cs +++ b/src/Tasks/ManifestUtil/AssemblyReferenceCollection.cs @@ -6,6 +6,8 @@ using System.Collections; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/BaseReference.cs b/src/Tasks/ManifestUtil/BaseReference.cs index c75dae4bc1a..559f1d12c05 100644 --- a/src/Tasks/ManifestUtil/BaseReference.cs +++ b/src/Tasks/ManifestUtil/BaseReference.cs @@ -8,6 +8,8 @@ using System.Runtime.InteropServices; using System.Xml.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/CngLightup.cs b/src/Tasks/ManifestUtil/CngLightup.cs index bdc2bc26723..54c02703f4f 100644 --- a/src/Tasks/ManifestUtil/CngLightup.cs +++ b/src/Tasks/ManifestUtil/CngLightup.cs @@ -23,6 +23,8 @@ using System.Reflection; using System.Security.Cryptography.X509Certificates; +#nullable disable + namespace System.Security.Cryptography { internal static partial class CngLightup diff --git a/src/Tasks/ManifestUtil/ComImporter.cs b/src/Tasks/ManifestUtil/ComImporter.cs index 107adb290e2..498222d091a 100644 --- a/src/Tasks/ManifestUtil/ComImporter.cs +++ b/src/Tasks/ManifestUtil/ComImporter.cs @@ -11,6 +11,8 @@ using System.Runtime.InteropServices.ComTypes; #endif +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { internal class ComImporter diff --git a/src/Tasks/ManifestUtil/CompatibleFramework.cs b/src/Tasks/ManifestUtil/CompatibleFramework.cs index 2105db6e2db..8d94458c72d 100644 --- a/src/Tasks/ManifestUtil/CompatibleFramework.cs +++ b/src/Tasks/ManifestUtil/CompatibleFramework.cs @@ -5,6 +5,8 @@ using System.Runtime.InteropServices; using System.Xml.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/CompatibleFrameworkCollection.cs b/src/Tasks/ManifestUtil/CompatibleFrameworkCollection.cs index 0bb36f483e6..4ae85e83195 100644 --- a/src/Tasks/ManifestUtil/CompatibleFrameworkCollection.cs +++ b/src/Tasks/ManifestUtil/CompatibleFrameworkCollection.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { [ComVisible(false)] diff --git a/src/Tasks/ManifestUtil/Constants.cs b/src/Tasks/ManifestUtil/Constants.cs index 601e8dfc9f5..e68a9f0b404 100644 --- a/src/Tasks/ManifestUtil/Constants.cs +++ b/src/Tasks/ManifestUtil/Constants.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { internal static class Constants diff --git a/src/Tasks/ManifestUtil/ConvertUtil.cs b/src/Tasks/ManifestUtil/ConvertUtil.cs index ffd1a913d5f..a666c7bbbdc 100644 --- a/src/Tasks/ManifestUtil/ConvertUtil.cs +++ b/src/Tasks/ManifestUtil/ConvertUtil.cs @@ -5,6 +5,8 @@ using System.Diagnostics; using System.Globalization; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { internal static class ConvertUtil diff --git a/src/Tasks/ManifestUtil/DeployManifest.cs b/src/Tasks/ManifestUtil/DeployManifest.cs index 0e726a88a57..e518fe1ae4d 100644 --- a/src/Tasks/ManifestUtil/DeployManifest.cs +++ b/src/Tasks/ManifestUtil/DeployManifest.cs @@ -13,6 +13,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/EmbeddedManifestReader.cs b/src/Tasks/ManifestUtil/EmbeddedManifestReader.cs index 8865e1f97ff..be6b845d311 100644 --- a/src/Tasks/ManifestUtil/EmbeddedManifestReader.cs +++ b/src/Tasks/ManifestUtil/EmbeddedManifestReader.cs @@ -6,6 +6,8 @@ using System.IO; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { internal class EmbeddedManifestReader diff --git a/src/Tasks/ManifestUtil/FileAssociation.cs b/src/Tasks/ManifestUtil/FileAssociation.cs index c9fd7f82053..7993cacb561 100644 --- a/src/Tasks/ManifestUtil/FileAssociation.cs +++ b/src/Tasks/ManifestUtil/FileAssociation.cs @@ -5,6 +5,8 @@ using System.Runtime.InteropServices; using System.Xml.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/FileAssociationCollection.cs b/src/Tasks/ManifestUtil/FileAssociationCollection.cs index e187f0824b4..0b879fe09bc 100644 --- a/src/Tasks/ManifestUtil/FileAssociationCollection.cs +++ b/src/Tasks/ManifestUtil/FileAssociationCollection.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { [ComVisible(false)] diff --git a/src/Tasks/ManifestUtil/FileReference.cs b/src/Tasks/ManifestUtil/FileReference.cs index 69c418bb40a..e2e0f6b75d8 100644 --- a/src/Tasks/ManifestUtil/FileReference.cs +++ b/src/Tasks/ManifestUtil/FileReference.cs @@ -8,6 +8,8 @@ using System.Text; using System.Xml.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/FileReferenceCollection.cs b/src/Tasks/ManifestUtil/FileReferenceCollection.cs index 25be81c3805..1c12a7f904e 100644 --- a/src/Tasks/ManifestUtil/FileReferenceCollection.cs +++ b/src/Tasks/ManifestUtil/FileReferenceCollection.cs @@ -6,6 +6,8 @@ using System.Collections.Generic; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/LauncherBuilder.cs b/src/Tasks/ManifestUtil/LauncherBuilder.cs index 13fd92fb899..068568a6815 100644 --- a/src/Tasks/ManifestUtil/LauncherBuilder.cs +++ b/src/Tasks/ManifestUtil/LauncherBuilder.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Tasks.Deployment.Bootstrapper; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/Manifest.cs b/src/Tasks/ManifestUtil/Manifest.cs index 762e09e226d..c60cbd61a32 100644 --- a/src/Tasks/ManifestUtil/Manifest.cs +++ b/src/Tasks/ManifestUtil/Manifest.cs @@ -13,6 +13,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/ManifestFormatter.cs b/src/Tasks/ManifestUtil/ManifestFormatter.cs index 8a2a8fa0ddb..f2bada597f7 100644 --- a/src/Tasks/ManifestUtil/ManifestFormatter.cs +++ b/src/Tasks/ManifestUtil/ManifestFormatter.cs @@ -7,6 +7,8 @@ using System.Text; using System.Xml; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { internal static class ManifestFormatter diff --git a/src/Tasks/ManifestUtil/ManifestReader.cs b/src/Tasks/ManifestUtil/ManifestReader.cs index 88b5f8d4cc5..28879b378ab 100644 --- a/src/Tasks/ManifestUtil/ManifestReader.cs +++ b/src/Tasks/ManifestUtil/ManifestReader.cs @@ -10,6 +10,8 @@ using System.Xml; using System.Xml.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/ManifestWriter.cs b/src/Tasks/ManifestUtil/ManifestWriter.cs index dfc220233fd..1c85fae10f0 100644 --- a/src/Tasks/ManifestUtil/ManifestWriter.cs +++ b/src/Tasks/ManifestUtil/ManifestWriter.cs @@ -9,6 +9,8 @@ using System.Xml.Serialization; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/MetadataReader.cs b/src/Tasks/ManifestUtil/MetadataReader.cs index c7238f82e74..dc7fc6529d4 100644 --- a/src/Tasks/ManifestUtil/MetadataReader.cs +++ b/src/Tasks/ManifestUtil/MetadataReader.cs @@ -13,6 +13,8 @@ using System.Reflection.PortableExecutable; #endif +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { #if RUNTIME_TYPE_NETCORE diff --git a/src/Tasks/ManifestUtil/NativeMethods.cs b/src/Tasks/ManifestUtil/NativeMethods.cs index e18eef1ebeb..ac61c9eac01 100644 --- a/src/Tasks/ManifestUtil/NativeMethods.cs +++ b/src/Tasks/ManifestUtil/NativeMethods.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { internal static class NativeMethods diff --git a/src/Tasks/ManifestUtil/OutputMessage.cs b/src/Tasks/ManifestUtil/OutputMessage.cs index ff860109fdd..c1c28bce018 100644 --- a/src/Tasks/ManifestUtil/OutputMessage.cs +++ b/src/Tasks/ManifestUtil/OutputMessage.cs @@ -8,6 +8,8 @@ using System.Globalization; using System.Runtime.InteropServices; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/PathUtil.cs b/src/Tasks/ManifestUtil/PathUtil.cs index 6d6e0a57085..70f835b620c 100644 --- a/src/Tasks/ManifestUtil/PathUtil.cs +++ b/src/Tasks/ManifestUtil/PathUtil.cs @@ -5,6 +5,8 @@ using System; using System.IO; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { internal static class PathUtil diff --git a/src/Tasks/ManifestUtil/RSAPKCS1SHA256SignatureDescription.cs b/src/Tasks/ManifestUtil/RSAPKCS1SHA256SignatureDescription.cs index 6fde99029e6..e78f825dcaa 100644 --- a/src/Tasks/ManifestUtil/RSAPKCS1SHA256SignatureDescription.cs +++ b/src/Tasks/ManifestUtil/RSAPKCS1SHA256SignatureDescription.cs @@ -4,6 +4,8 @@ using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; +#nullable disable + namespace System.Deployment.Internal.CodeSigning { [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "RSAPKCS", Justification = "This casing is to match the existing RSAPKCS1SHA1SignatureDescription type")] diff --git a/src/Tasks/ManifestUtil/SecurityUtil.cs b/src/Tasks/ManifestUtil/SecurityUtil.cs index d74182f6ec8..abdcce405f9 100644 --- a/src/Tasks/ManifestUtil/SecurityUtil.cs +++ b/src/Tasks/ManifestUtil/SecurityUtil.cs @@ -24,6 +24,8 @@ using Microsoft.Build.Shared.FileSystem; using FrameworkNameVersioning = System.Runtime.Versioning.FrameworkName; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/TrustInfo.cs b/src/Tasks/ManifestUtil/TrustInfo.cs index c4d0460087f..1652655417d 100644 --- a/src/Tasks/ManifestUtil/TrustInfo.cs +++ b/src/Tasks/ManifestUtil/TrustInfo.cs @@ -13,6 +13,8 @@ using System.Xml; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { /// diff --git a/src/Tasks/ManifestUtil/Util.cs b/src/Tasks/ManifestUtil/Util.cs index ad3315a7604..ebc38e86e2b 100644 --- a/src/Tasks/ManifestUtil/Util.cs +++ b/src/Tasks/ManifestUtil/Util.cs @@ -18,6 +18,8 @@ using System.Text; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { internal static class Util diff --git a/src/Tasks/ManifestUtil/XPaths.cs b/src/Tasks/ManifestUtil/XPaths.cs index 5d6bb20b786..573fb85df4b 100644 --- a/src/Tasks/ManifestUtil/XPaths.cs +++ b/src/Tasks/ManifestUtil/XPaths.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { internal static class XPaths diff --git a/src/Tasks/ManifestUtil/XmlNamespaces.cs b/src/Tasks/ManifestUtil/XmlNamespaces.cs index eeafcb757aa..3edb86d6bd4 100644 --- a/src/Tasks/ManifestUtil/XmlNamespaces.cs +++ b/src/Tasks/ManifestUtil/XmlNamespaces.cs @@ -3,6 +3,8 @@ using System.Xml; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { internal static class XmlNamespaces diff --git a/src/Tasks/ManifestUtil/XmlUtil.cs b/src/Tasks/ManifestUtil/XmlUtil.cs index 9f9c37c532b..744e74775eb 100644 --- a/src/Tasks/ManifestUtil/XmlUtil.cs +++ b/src/Tasks/ManifestUtil/XmlUtil.cs @@ -13,6 +13,8 @@ using System.Xml.XPath; using System.Xml.Xsl; +#nullable disable + namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities { internal static class XmlUtil diff --git a/src/Tasks/ManifestUtil/mansign2.cs b/src/Tasks/ManifestUtil/mansign2.cs index 43c5c7e61d4..2923d63cddb 100644 --- a/src/Tasks/ManifestUtil/mansign2.cs +++ b/src/Tasks/ManifestUtil/mansign2.cs @@ -15,6 +15,8 @@ using _FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME; +#nullable disable + namespace System.Deployment.Internal.CodeSigning { internal static class Win32 diff --git a/src/Tasks/Message.cs b/src/Tasks/Message.cs index 88b6dca9f84..52b85a04103 100644 --- a/src/Tasks/Message.cs +++ b/src/Tasks/Message.cs @@ -4,6 +4,8 @@ using System; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/Move.cs b/src/Tasks/Move.cs index 8e64b2f7038..1e0b1da9200 100644 --- a/src/Tasks/Move.cs +++ b/src/Tasks/Move.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/NativeMethods.cs b/src/Tasks/NativeMethods.cs index 174dfe25f83..f2308684706 100644 --- a/src/Tasks/NativeMethods.cs +++ b/src/Tasks/NativeMethods.cs @@ -15,6 +15,8 @@ using System.Text.RegularExpressions; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks { #if FEATURE_COM_INTEROP diff --git a/src/Tasks/ParserState.cs b/src/Tasks/ParserState.cs index 618da02cd24..d6a64cd042f 100644 --- a/src/Tasks/ParserState.cs +++ b/src/Tasks/ParserState.cs @@ -5,6 +5,8 @@ using System.Text; using System.Collections; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/PiaReference.cs b/src/Tasks/PiaReference.cs index 2b7f06b86ca..01157e389f6 100644 --- a/src/Tasks/PiaReference.cs +++ b/src/Tasks/PiaReference.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/RCWForCurrentContext.cs b/src/Tasks/RCWForCurrentContext.cs index 0511c385cb1..774129649f2 100644 --- a/src/Tasks/RCWForCurrentContext.cs +++ b/src/Tasks/RCWForCurrentContext.cs @@ -5,6 +5,8 @@ using System.Runtime.InteropServices; using System.Diagnostics; +#nullable disable + namespace Microsoft.Build.Tasks.InteropUtilities { /// diff --git a/src/Tasks/RedistList.cs b/src/Tasks/RedistList.cs index 9da5c32a396..a096bf62c37 100644 --- a/src/Tasks/RedistList.cs +++ b/src/Tasks/RedistList.cs @@ -16,6 +16,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/RegisterAssembly.cs b/src/Tasks/RegisterAssembly.cs index 3fdf14ffd43..0416f291811 100644 --- a/src/Tasks/RegisterAssembly.cs +++ b/src/Tasks/RegisterAssembly.cs @@ -16,6 +16,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/RemoveDir.cs b/src/Tasks/RemoveDir.cs index c19be8486f6..a88b74eb659 100644 --- a/src/Tasks/RemoveDir.cs +++ b/src/Tasks/RemoveDir.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/RequiresFramework35SP1Assembly.cs b/src/Tasks/RequiresFramework35SP1Assembly.cs index 663a4fbbd71..a7c10c1a9dd 100644 --- a/src/Tasks/RequiresFramework35SP1Assembly.cs +++ b/src/Tasks/RequiresFramework35SP1Assembly.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Tasks.Deployment.ManifestUtilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ResGen.cs b/src/Tasks/ResGen.cs index 49ba98efc05..8c45e0a33c1 100644 --- a/src/Tasks/ResGen.cs +++ b/src/Tasks/ResGen.cs @@ -14,6 +14,8 @@ using CodeDomProvider = System.CodeDom.Compiler.CodeDomProvider; using MSBuildProcessorArchitecture = Microsoft.Build.Utilities.ProcessorArchitecture; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ResGenDependencies.cs b/src/Tasks/ResGenDependencies.cs index 35b26a5e72f..143d69af4c5 100644 --- a/src/Tasks/ResGenDependencies.cs +++ b/src/Tasks/ResGenDependencies.cs @@ -14,6 +14,8 @@ using Microsoft.Build.Tasks.ResourceHandling; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ResolveCodeAnalysisRuleSet.cs b/src/Tasks/ResolveCodeAnalysisRuleSet.cs index 35b4c7f6f2b..474e6b46795 100644 --- a/src/Tasks/ResolveCodeAnalysisRuleSet.cs +++ b/src/Tasks/ResolveCodeAnalysisRuleSet.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ResolveComReference.cs b/src/Tasks/ResolveComReference.cs index e64e155ca4b..f624c4c3dd0 100644 --- a/src/Tasks/ResolveComReference.cs +++ b/src/Tasks/ResolveComReference.cs @@ -18,6 +18,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { internal interface IResolveComReferenceTaskContract diff --git a/src/Tasks/ResolveComReferenceCache.cs b/src/Tasks/ResolveComReferenceCache.cs index 133acb02f6f..1d6d7f2f006 100644 --- a/src/Tasks/ResolveComReferenceCache.cs +++ b/src/Tasks/ResolveComReferenceCache.cs @@ -6,6 +6,8 @@ using Microsoft.Build.BackEnd; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ResolveKeySource.cs b/src/Tasks/ResolveKeySource.cs index f6741aa36d2..676d5a4d249 100644 --- a/src/Tasks/ResolveKeySource.cs +++ b/src/Tasks/ResolveKeySource.cs @@ -14,6 +14,8 @@ using Microsoft.Runtime.Hosting; #endif +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ResolveManifestFiles.cs b/src/Tasks/ResolveManifestFiles.cs index 48877a31c2f..62bd9251366 100644 --- a/src/Tasks/ResolveManifestFiles.cs +++ b/src/Tasks/ResolveManifestFiles.cs @@ -13,6 +13,8 @@ using Microsoft.Build.Tasks.Deployment.ManifestUtilities; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ResolveNativeReference.cs b/src/Tasks/ResolveNativeReference.cs index e6e3958fbed..6bbd44a1e4e 100644 --- a/src/Tasks/ResolveNativeReference.cs +++ b/src/Tasks/ResolveNativeReference.cs @@ -13,6 +13,8 @@ using Microsoft.Build.Tasks.Deployment.ManifestUtilities; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ResolveNonMSBuildProjectOutput.cs b/src/Tasks/ResolveNonMSBuildProjectOutput.cs index 790fe7fab92..dbba3804418 100644 --- a/src/Tasks/ResolveNonMSBuildProjectOutput.cs +++ b/src/Tasks/ResolveNonMSBuildProjectOutput.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ResolveProjectBase.cs b/src/Tasks/ResolveProjectBase.cs index e3c7c7770be..0a8f2b085d3 100644 --- a/src/Tasks/ResolveProjectBase.cs +++ b/src/Tasks/ResolveProjectBase.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ResolveSDKReference.cs b/src/Tasks/ResolveSDKReference.cs index 74d9ab45c2c..1a489c2c402 100644 --- a/src/Tasks/ResolveSDKReference.cs +++ b/src/Tasks/ResolveSDKReference.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ResourceHandling/BinaryFormatterByteArrayResource.cs b/src/Tasks/ResourceHandling/BinaryFormatterByteArrayResource.cs index fc4d2ad8d24..42dcdf53794 100644 --- a/src/Tasks/ResourceHandling/BinaryFormatterByteArrayResource.cs +++ b/src/Tasks/ResourceHandling/BinaryFormatterByteArrayResource.cs @@ -4,6 +4,8 @@ using System.Resources; using System.Resources.Extensions; +#nullable disable + namespace Microsoft.Build.Tasks.ResourceHandling { internal class BinaryFormatterByteArrayResource : IResource diff --git a/src/Tasks/ResourceHandling/FileStreamResource.cs b/src/Tasks/ResourceHandling/FileStreamResource.cs index b689f14d2f4..6c93f0464c5 100644 --- a/src/Tasks/ResourceHandling/FileStreamResource.cs +++ b/src/Tasks/ResourceHandling/FileStreamResource.cs @@ -5,6 +5,8 @@ using System.Resources; using System.Resources.Extensions; +#nullable disable + namespace Microsoft.Build.Tasks.ResourceHandling { internal class FileStreamResource : IResource diff --git a/src/Tasks/ResourceHandling/IResource.cs b/src/Tasks/ResourceHandling/IResource.cs index 3189ad7c3f2..891d9e8f8c5 100644 --- a/src/Tasks/ResourceHandling/IResource.cs +++ b/src/Tasks/ResourceHandling/IResource.cs @@ -3,6 +3,8 @@ using System.Resources; +#nullable disable + namespace Microsoft.Build.Tasks.ResourceHandling { internal interface IResource diff --git a/src/Tasks/ResourceHandling/InputFormatNotSupportedException.cs b/src/Tasks/ResourceHandling/InputFormatNotSupportedException.cs index 10eded9046f..b756eb62bd9 100644 --- a/src/Tasks/ResourceHandling/InputFormatNotSupportedException.cs +++ b/src/Tasks/ResourceHandling/InputFormatNotSupportedException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks.ResourceHandling { [Serializable] diff --git a/src/Tasks/ResourceHandling/LiveObjectResource.cs b/src/Tasks/ResourceHandling/LiveObjectResource.cs index deeb2488287..4bc3f884d30 100644 --- a/src/Tasks/ResourceHandling/LiveObjectResource.cs +++ b/src/Tasks/ResourceHandling/LiveObjectResource.cs @@ -3,6 +3,8 @@ using System.Resources; +#nullable disable + namespace Microsoft.Build.Tasks.ResourceHandling { /// diff --git a/src/Tasks/ResourceHandling/MSBuildResXException.cs b/src/Tasks/ResourceHandling/MSBuildResXException.cs index 7da880c9e3b..7eac7ce9a2a 100644 --- a/src/Tasks/ResourceHandling/MSBuildResXException.cs +++ b/src/Tasks/ResourceHandling/MSBuildResXException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks.ResourceHandling { [Serializable] diff --git a/src/Tasks/ResourceHandling/MSBuildResXReader.cs b/src/Tasks/ResourceHandling/MSBuildResXReader.cs index 58c4a455c2c..f3f3d5db1ff 100644 --- a/src/Tasks/ResourceHandling/MSBuildResXReader.cs +++ b/src/Tasks/ResourceHandling/MSBuildResXReader.cs @@ -10,6 +10,8 @@ using System.Xml; using System.Xml.Linq; +#nullable disable + namespace Microsoft.Build.Tasks.ResourceHandling { internal class MSBuildResXReader diff --git a/src/Tasks/ResourceHandling/NameUtilities.cs b/src/Tasks/ResourceHandling/NameUtilities.cs index 1045093b5ee..6b07b11c0c4 100644 --- a/src/Tasks/ResourceHandling/NameUtilities.cs +++ b/src/Tasks/ResourceHandling/NameUtilities.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Tasks.ResourceHandling { static class NameUtilities diff --git a/src/Tasks/ResourceHandling/PreserializedResourceWriterRequiredException.cs b/src/Tasks/ResourceHandling/PreserializedResourceWriterRequiredException.cs index 3b5970d6a77..ef532e02a0c 100644 --- a/src/Tasks/ResourceHandling/PreserializedResourceWriterRequiredException.cs +++ b/src/Tasks/ResourceHandling/PreserializedResourceWriterRequiredException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks.ResourceHandling { [Serializable] diff --git a/src/Tasks/ResourceHandling/StringResource.cs b/src/Tasks/ResourceHandling/StringResource.cs index ece4e87deb5..9e2ca1c6ff7 100644 --- a/src/Tasks/ResourceHandling/StringResource.cs +++ b/src/Tasks/ResourceHandling/StringResource.cs @@ -3,6 +3,8 @@ using System.Resources; +#nullable disable + namespace Microsoft.Build.Tasks.ResourceHandling { internal class StringResource : LiveObjectResource diff --git a/src/Tasks/ResourceHandling/TypeConverterByteArrayResource.cs b/src/Tasks/ResourceHandling/TypeConverterByteArrayResource.cs index c8f391f8735..6b65b7e72a7 100644 --- a/src/Tasks/ResourceHandling/TypeConverterByteArrayResource.cs +++ b/src/Tasks/ResourceHandling/TypeConverterByteArrayResource.cs @@ -4,6 +4,8 @@ using System.Resources; using System.Resources.Extensions; +#nullable disable + namespace Microsoft.Build.Tasks.ResourceHandling { internal class TypeConverterByteArrayResource : IResource diff --git a/src/Tasks/ResourceHandling/TypeConverterStringResource.cs b/src/Tasks/ResourceHandling/TypeConverterStringResource.cs index f0b9ed23c5e..09035c4e3fb 100644 --- a/src/Tasks/ResourceHandling/TypeConverterStringResource.cs +++ b/src/Tasks/ResourceHandling/TypeConverterStringResource.cs @@ -4,6 +4,8 @@ using System.Resources; using System.Resources.Extensions; +#nullable disable + namespace Microsoft.Build.Tasks.ResourceHandling { internal class TypeConverterStringResource : IResource diff --git a/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactory.cs b/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactory.cs index 069d4272c99..d48f5ac697a 100644 --- a/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactory.cs +++ b/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactory.cs @@ -18,6 +18,8 @@ using System.Xml.Linq; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks { public sealed class RoslynCodeTaskFactory : ITaskFactory diff --git a/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryCodeType.cs b/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryCodeType.cs index 623b10b45d0..d8dc633f91f 100644 --- a/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryCodeType.cs +++ b/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryCodeType.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryCompilers.cs b/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryCompilers.cs index 9f96f3c2c0a..4606d244cd7 100644 --- a/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryCompilers.cs +++ b/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryCompilers.cs @@ -7,6 +7,8 @@ using System.IO; using System.Linq; +#nullable disable + namespace Microsoft.Build.Tasks { internal abstract class RoslynCodeTaskFactoryCompilerBase : ToolTaskExtension diff --git a/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryTaskInfo.cs b/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryTaskInfo.cs index dcc9f893f81..9cf70c2535d 100644 --- a/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryTaskInfo.cs +++ b/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactoryTaskInfo.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Tasks { internal sealed class RoslynCodeTaskFactoryTaskInfo : IEquatable diff --git a/src/Tasks/SGen.cs b/src/Tasks/SGen.cs index facee3ddc15..2409cd9c0ff 100644 --- a/src/Tasks/SGen.cs +++ b/src/Tasks/SGen.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/SdkToolsPathUtility.cs b/src/Tasks/SdkToolsPathUtility.cs index 3eb78e24429..79e6ce9defe 100644 --- a/src/Tasks/SdkToolsPathUtility.cs +++ b/src/Tasks/SdkToolsPathUtility.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/SignFile.cs b/src/Tasks/SignFile.cs index c3600305e9d..e5d83dc48bc 100644 --- a/src/Tasks/SignFile.cs +++ b/src/Tasks/SignFile.cs @@ -10,6 +10,8 @@ using Microsoft.Build.Tasks.Deployment.ManifestUtilities; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/StateFileBase.cs b/src/Tasks/StateFileBase.cs index 20f98be86e0..4d8d2de3422 100644 --- a/src/Tasks/StateFileBase.cs +++ b/src/Tasks/StateFileBase.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/StrongNameException.cs b/src/Tasks/StrongNameException.cs index 2a533772616..2ea63bf9491 100644 --- a/src/Tasks/StrongNameException.cs +++ b/src/Tasks/StrongNameException.cs @@ -4,6 +4,8 @@ using System; using System.Runtime.Serialization; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/StrongNameUtils.cs b/src/Tasks/StrongNameUtils.cs index 4abdc57311a..52500031791 100644 --- a/src/Tasks/StrongNameUtils.cs +++ b/src/Tasks/StrongNameUtils.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/System.Design.cs b/src/Tasks/System.Design.cs index 047c0c5000a..0ab4947d7b6 100644 --- a/src/Tasks/System.Design.cs +++ b/src/Tasks/System.Design.cs @@ -9,6 +9,8 @@ using System.ComponentModel; +#nullable disable + namespace Microsoft.Build.Tasks { [AttributeUsage(AttributeTargets.All)] diff --git a/src/Tasks/SystemState.cs b/src/Tasks/SystemState.cs index b7496cb643f..da98c85bd10 100644 --- a/src/Tasks/SystemState.cs +++ b/src/Tasks/SystemState.cs @@ -15,6 +15,8 @@ using Microsoft.Build.Tasks.AssemblyDependency; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/TaskExtension.cs b/src/Tasks/TaskExtension.cs index b1a7c7fc4fc..2e87720584a 100644 --- a/src/Tasks/TaskExtension.cs +++ b/src/Tasks/TaskExtension.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/TaskTranslatorHelpers.cs b/src/Tasks/TaskTranslatorHelpers.cs index 7db48cf61ae..6e43de0c3a4 100644 --- a/src/Tasks/TaskTranslatorHelpers.cs +++ b/src/Tasks/TaskTranslatorHelpers.cs @@ -5,6 +5,8 @@ using System.Runtime.Versioning; using Microsoft.Build.BackEnd; +#nullable disable + namespace Microsoft.Build.Tasks { internal static class TaskTranslatorHelpers diff --git a/src/Tasks/Telemetry.cs b/src/Tasks/Telemetry.cs index c2c5d69245d..5e550be948a 100644 --- a/src/Tasks/Telemetry.cs +++ b/src/Tasks/Telemetry.cs @@ -6,6 +6,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/TlbImp.cs b/src/Tasks/TlbImp.cs index 6269f060134..2debd69fa9b 100644 --- a/src/Tasks/TlbImp.cs +++ b/src/Tasks/TlbImp.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/TlbReference.cs b/src/Tasks/TlbReference.cs index c6cc0e606b9..7350cee5080 100644 --- a/src/Tasks/TlbReference.cs +++ b/src/Tasks/TlbReference.cs @@ -19,6 +19,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /* diff --git a/src/Tasks/ToolTaskExtension.cs b/src/Tasks/ToolTaskExtension.cs index 8969d15bb55..8a5b14510f4 100644 --- a/src/Tasks/ToolTaskExtension.cs +++ b/src/Tasks/ToolTaskExtension.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/Touch.cs b/src/Tasks/Touch.cs index be53de8a405..77a2060bdd3 100644 --- a/src/Tasks/Touch.cs +++ b/src/Tasks/Touch.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/UnregisterAssembly.cs b/src/Tasks/UnregisterAssembly.cs index cbcde5d8ef8..2ee63116123 100644 --- a/src/Tasks/UnregisterAssembly.cs +++ b/src/Tasks/UnregisterAssembly.cs @@ -16,6 +16,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/Unzip.cs b/src/Tasks/Unzip.cs index 01544039194..88258f3d713 100644 --- a/src/Tasks/Unzip.cs +++ b/src/Tasks/Unzip.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/UpdateManifest.cs b/src/Tasks/UpdateManifest.cs index 682ca6be833..ebefc10a2d1 100644 --- a/src/Tasks/UpdateManifest.cs +++ b/src/Tasks/UpdateManifest.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Tasks.Deployment.ManifestUtilities; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/VisualBasicParserUtilities.cs b/src/Tasks/VisualBasicParserUtilities.cs index b44e5eb462d..b92543818a5 100644 --- a/src/Tasks/VisualBasicParserUtilities.cs +++ b/src/Tasks/VisualBasicParserUtilities.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Shared.LanguageParser; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/Warning.cs b/src/Tasks/Warning.cs index 06db03f94ce..60b7ca674f3 100644 --- a/src/Tasks/Warning.cs +++ b/src/Tasks/Warning.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/WinMDExp.cs b/src/Tasks/WinMDExp.cs index 4de486c4e5b..a77dfbef18c 100644 --- a/src/Tasks/WinMDExp.cs +++ b/src/Tasks/WinMDExp.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/WriteCodeFragment.cs b/src/Tasks/WriteCodeFragment.cs index e3b038412d7..62ce4f4e2d4 100644 --- a/src/Tasks/WriteCodeFragment.cs +++ b/src/Tasks/WriteCodeFragment.cs @@ -17,6 +17,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/XamlTaskFactory/CommandLineGenerator.cs b/src/Tasks/XamlTaskFactory/CommandLineGenerator.cs index 96fc22b7388..554e77cb6b7 100644 --- a/src/Tasks/XamlTaskFactory/CommandLineGenerator.cs +++ b/src/Tasks/XamlTaskFactory/CommandLineGenerator.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks.Xaml { /// diff --git a/src/Tasks/XamlTaskFactory/CommandLineToolSwitch.cs b/src/Tasks/XamlTaskFactory/CommandLineToolSwitch.cs index 8cc3e36c853..a74a8143b66 100644 --- a/src/Tasks/XamlTaskFactory/CommandLineToolSwitch.cs +++ b/src/Tasks/XamlTaskFactory/CommandLineToolSwitch.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks.Xaml { /// diff --git a/src/Tasks/XamlTaskFactory/Property.cs b/src/Tasks/XamlTaskFactory/Property.cs index b039fdb7e2e..10a3579e486 100644 --- a/src/Tasks/XamlTaskFactory/Property.cs +++ b/src/Tasks/XamlTaskFactory/Property.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Tasks.Xaml { /// diff --git a/src/Tasks/XamlTaskFactory/RelationsParser.cs b/src/Tasks/XamlTaskFactory/RelationsParser.cs index 4ce861ca530..400f364cb99 100644 --- a/src/Tasks/XamlTaskFactory/RelationsParser.cs +++ b/src/Tasks/XamlTaskFactory/RelationsParser.cs @@ -7,6 +7,8 @@ using System.IO; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks.Xaml { /// diff --git a/src/Tasks/XamlTaskFactory/TaskGenerator.cs b/src/Tasks/XamlTaskFactory/TaskGenerator.cs index 76547bf0e52..28a24d722ea 100644 --- a/src/Tasks/XamlTaskFactory/TaskGenerator.cs +++ b/src/Tasks/XamlTaskFactory/TaskGenerator.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks.Xaml { /// diff --git a/src/Tasks/XamlTaskFactory/TaskParser.cs b/src/Tasks/XamlTaskFactory/TaskParser.cs index ad7d411177f..e3b6b67a3de 100644 --- a/src/Tasks/XamlTaskFactory/TaskParser.cs +++ b/src/Tasks/XamlTaskFactory/TaskParser.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared.FileSystem; using XamlTypes = Microsoft.Build.Framework.XamlTypes; +#nullable disable + namespace Microsoft.Build.Tasks.Xaml { /// diff --git a/src/Tasks/XamlTaskFactory/XamlDataDrivenToolTask.cs b/src/Tasks/XamlTaskFactory/XamlDataDrivenToolTask.cs index b0f61b5746d..def8c175df6 100644 --- a/src/Tasks/XamlTaskFactory/XamlDataDrivenToolTask.cs +++ b/src/Tasks/XamlTaskFactory/XamlDataDrivenToolTask.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks.Xaml { /// diff --git a/src/Tasks/XamlTaskFactory/XamlTaskFactory.cs b/src/Tasks/XamlTaskFactory/XamlTaskFactory.cs index 679d22d00a1..a9195d3f89d 100644 --- a/src/Tasks/XamlTaskFactory/XamlTaskFactory.cs +++ b/src/Tasks/XamlTaskFactory/XamlTaskFactory.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { #if FEATURE_XAMLTASKFACTORY diff --git a/src/Tasks/XmlPeek.cs b/src/Tasks/XmlPeek.cs index 4b16bbbb33b..3c8cd37a8f3 100644 --- a/src/Tasks/XmlPeek.cs +++ b/src/Tasks/XmlPeek.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/XmlPoke.cs b/src/Tasks/XmlPoke.cs index 8f42cfe910c..3d22cb00fe8 100644 --- a/src/Tasks/XmlPoke.cs +++ b/src/Tasks/XmlPoke.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/XslTransformation.cs b/src/Tasks/XslTransformation.cs index 0f47a2edfe2..45fe50d60b0 100644 --- a/src/Tasks/XslTransformation.cs +++ b/src/Tasks/XslTransformation.cs @@ -12,6 +12,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.Tasks { /// diff --git a/src/Tasks/ZipDirectory.cs b/src/Tasks/ZipDirectory.cs index d2bc38113f3..8b9c83ad762 100644 --- a/src/Tasks/ZipDirectory.cs +++ b/src/Tasks/ZipDirectory.cs @@ -6,6 +6,8 @@ using System.IO; using System.IO.Compression; +#nullable disable + namespace Microsoft.Build.Tasks { public sealed class ZipDirectory : TaskExtension diff --git a/src/Tasks/system.design/stronglytypedresourcebuilder.cs b/src/Tasks/system.design/stronglytypedresourcebuilder.cs index aada0049113..7fffdebcf51 100644 --- a/src/Tasks/system.design/stronglytypedresourcebuilder.cs +++ b/src/Tasks/system.design/stronglytypedresourcebuilder.cs @@ -54,6 +54,8 @@ interesting idea. */ +#nullable disable + namespace Microsoft.Build.Tasks { internal static class StronglyTypedResourceBuilder diff --git a/src/UnitTests.Shared/AssemblyResources.cs b/src/UnitTests.Shared/AssemblyResources.cs index 962b5b0342f..baa3ffd33ba 100644 --- a/src/UnitTests.Shared/AssemblyResources.cs +++ b/src/UnitTests.Shared/AssemblyResources.cs @@ -3,6 +3,8 @@ using System; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/UnitTests.Shared/RunnerUtilities.cs b/src/UnitTests.Shared/RunnerUtilities.cs index f5984764cce..1a11cedfea0 100644 --- a/src/UnitTests.Shared/RunnerUtilities.cs +++ b/src/UnitTests.Shared/RunnerUtilities.cs @@ -4,6 +4,8 @@ using System.Diagnostics; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests.Shared { public static class RunnerUtilities diff --git a/src/Utilities.UnitTests/CanonicalError_Tests.cs b/src/Utilities.UnitTests/CanonicalError_Tests.cs index b1dc1bab9fa..02dd4b68740 100644 --- a/src/Utilities.UnitTests/CanonicalError_Tests.cs +++ b/src/Utilities.UnitTests/CanonicalError_Tests.cs @@ -5,6 +5,8 @@ using Xunit; using CanonicalError = Microsoft.Build.Shared.CanonicalError; +#nullable disable + namespace Microsoft.Build.UnitTests { public class CanonicalErrorTest diff --git a/src/Utilities.UnitTests/CommandLineBuilder_Tests.cs b/src/Utilities.UnitTests/CommandLineBuilder_Tests.cs index 16a31027654..241757645df 100644 --- a/src/Utilities.UnitTests/CommandLineBuilder_Tests.cs +++ b/src/Utilities.UnitTests/CommandLineBuilder_Tests.cs @@ -8,6 +8,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class CommandLineBuilderTest diff --git a/src/Utilities.UnitTests/EventArgsFormatting_Tests.cs b/src/Utilities.UnitTests/EventArgsFormatting_Tests.cs index 83a88b00e65..ba5c3dd5467 100644 --- a/src/Utilities.UnitTests/EventArgsFormatting_Tests.cs +++ b/src/Utilities.UnitTests/EventArgsFormatting_Tests.cs @@ -10,6 +10,8 @@ #pragma warning disable 0219 +#nullable disable + namespace Microsoft.Build.UnitTests { public class EventArgsFormattingTests diff --git a/src/Utilities.UnitTests/Logger_Tests.cs b/src/Utilities.UnitTests/Logger_Tests.cs index fbfa8766d1c..c1c2b3bd79a 100644 --- a/src/Utilities.UnitTests/Logger_Tests.cs +++ b/src/Utilities.UnitTests/Logger_Tests.cs @@ -8,6 +8,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { internal class EmptyLogger : Logger diff --git a/src/Utilities.UnitTests/MockEngine.cs b/src/Utilities.UnitTests/MockEngine.cs index 1538d27a0ae..90cc814a137 100644 --- a/src/Utilities.UnitTests/MockEngine.cs +++ b/src/Utilities.UnitTests/MockEngine.cs @@ -9,6 +9,8 @@ using Microsoft.Build.Shared; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /*************************************************************************** diff --git a/src/Utilities.UnitTests/MockTask.cs b/src/Utilities.UnitTests/MockTask.cs index 76c96f38135..52b8160a3f1 100644 --- a/src/Utilities.UnitTests/MockTask.cs +++ b/src/Utilities.UnitTests/MockTask.cs @@ -5,6 +5,8 @@ using System.Resources; using Microsoft.Build.Utilities; +#nullable disable + namespace Microsoft.Build.UnitTests { internal sealed class MockTask : Task diff --git a/src/Utilities.UnitTests/MuxLogger_Tests.cs b/src/Utilities.UnitTests/MuxLogger_Tests.cs index 21fcfb9f78c..7e9f26fc2a4 100644 --- a/src/Utilities.UnitTests/MuxLogger_Tests.cs +++ b/src/Utilities.UnitTests/MuxLogger_Tests.cs @@ -13,6 +13,8 @@ using Xunit; using MuxLogger = Microsoft.Build.Utilities.MuxLogger; +#nullable disable + namespace Microsoft.VisualStudio.Build.UnitTest { /// diff --git a/src/Utilities.UnitTests/PlatformManifest_Tests.cs b/src/Utilities.UnitTests/PlatformManifest_Tests.cs index 79522881a6c..85b4ba832db 100644 --- a/src/Utilities.UnitTests/PlatformManifest_Tests.cs +++ b/src/Utilities.UnitTests/PlatformManifest_Tests.cs @@ -11,6 +11,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { /// diff --git a/src/Utilities.UnitTests/ProcessExtensions_Tests.cs b/src/Utilities.UnitTests/ProcessExtensions_Tests.cs index edc892a75a9..6699bf2f0e4 100644 --- a/src/Utilities.UnitTests/ProcessExtensions_Tests.cs +++ b/src/Utilities.UnitTests/ProcessExtensions_Tests.cs @@ -8,6 +8,8 @@ using System.Diagnostics; using System.Threading.Tasks; +#nullable disable + namespace Microsoft.Build.UnitTests { public class ProcessExtensions_Tests diff --git a/src/Utilities.UnitTests/ProcessorArchitecture_Tests.cs b/src/Utilities.UnitTests/ProcessorArchitecture_Tests.cs index 7691488053e..fc99719c10f 100644 --- a/src/Utilities.UnitTests/ProcessorArchitecture_Tests.cs +++ b/src/Utilities.UnitTests/ProcessorArchitecture_Tests.cs @@ -7,6 +7,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class ProcessorArchitectureTests diff --git a/src/Utilities.UnitTests/StringExtensions_Tests.cs b/src/Utilities.UnitTests/StringExtensions_Tests.cs index f8361c3e8e3..1b115cb0f7f 100644 --- a/src/Utilities.UnitTests/StringExtensions_Tests.cs +++ b/src/Utilities.UnitTests/StringExtensions_Tests.cs @@ -7,6 +7,8 @@ using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.UnitTests { public class StringExtensions_Tests diff --git a/src/Utilities.UnitTests/TaskItem_Tests.cs b/src/Utilities.UnitTests/TaskItem_Tests.cs index 04e90914861..a4e0f73e445 100644 --- a/src/Utilities.UnitTests/TaskItem_Tests.cs +++ b/src/Utilities.UnitTests/TaskItem_Tests.cs @@ -14,6 +14,8 @@ #pragma warning disable 0219 +#nullable disable + namespace Microsoft.Build.UnitTests { public class TaskItemTests diff --git a/src/Utilities.UnitTests/TaskLoggingHelper_Tests.cs b/src/Utilities.UnitTests/TaskLoggingHelper_Tests.cs index bf5eeb2a250..a66d88e48dc 100644 --- a/src/Utilities.UnitTests/TaskLoggingHelper_Tests.cs +++ b/src/Utilities.UnitTests/TaskLoggingHelper_Tests.cs @@ -9,6 +9,8 @@ using Shouldly; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests { public class TaskLoggingHelperTests diff --git a/src/Utilities.UnitTests/ToolLocationHelper_Tests.cs b/src/Utilities.UnitTests/ToolLocationHelper_Tests.cs index 4578651a935..845959692ef 100644 --- a/src/Utilities.UnitTests/ToolLocationHelper_Tests.cs +++ b/src/Utilities.UnitTests/ToolLocationHelper_Tests.cs @@ -24,6 +24,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class ToolLocationHelper_Tests diff --git a/src/Utilities.UnitTests/ToolTask_Tests.cs b/src/Utilities.UnitTests/ToolTask_Tests.cs index 3b5d3eb6085..1ced49c9b63 100644 --- a/src/Utilities.UnitTests/ToolTask_Tests.cs +++ b/src/Utilities.UnitTests/ToolTask_Tests.cs @@ -12,6 +12,8 @@ using Xunit; using Xunit.Abstractions; +#nullable disable + namespace Microsoft.Build.UnitTests { public sealed class ToolTask_Tests diff --git a/src/Utilities.UnitTests/TrackedDependencies/FileTrackerTests.cs b/src/Utilities.UnitTests/TrackedDependencies/FileTrackerTests.cs index bcdf316d500..c5dd50492ca 100644 --- a/src/Utilities.UnitTests/TrackedDependencies/FileTrackerTests.cs +++ b/src/Utilities.UnitTests/TrackedDependencies/FileTrackerTests.cs @@ -20,6 +20,8 @@ // PLEASE NOTE: This is a UNICODE file as it contains UNICODE characters! +#nullable disable + namespace Microsoft.Build.UnitTests.FileTracking { public sealed class FileTrackerTests : IDisposable diff --git a/src/Utilities.UnitTests/TrackedDependencies/MockEngine.cs b/src/Utilities.UnitTests/TrackedDependencies/MockEngine.cs index 801d669e44a..8da0dfbfc00 100644 --- a/src/Utilities.UnitTests/TrackedDependencies/MockEngine.cs +++ b/src/Utilities.UnitTests/TrackedDependencies/MockEngine.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Xunit; +#nullable disable + namespace Microsoft.Build.UnitTests.TrackedDependencies { /*************************************************************************** diff --git a/src/Utilities.UnitTests/TrackedDependencies/TrackedDependenciesTests.cs b/src/Utilities.UnitTests/TrackedDependencies/TrackedDependenciesTests.cs index 5c80c03cc29..4f09f9bbc15 100644 --- a/src/Utilities.UnitTests/TrackedDependencies/TrackedDependenciesTests.cs +++ b/src/Utilities.UnitTests/TrackedDependencies/TrackedDependenciesTests.cs @@ -16,6 +16,8 @@ #if FEATURE_FILE_TRACKER +#nullable disable + namespace Microsoft.Build.UnitTests.TrackedDependencies { public sealed class TrackedDependenciesTests diff --git a/src/Utilities/ApiContract.cs b/src/Utilities/ApiContract.cs index 05d91cc9a06..4023e0adb6b 100644 --- a/src/Utilities/ApiContract.cs +++ b/src/Utilities/ApiContract.cs @@ -5,6 +5,8 @@ using System.Xml; using System.Collections.Generic; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/AppDomainIsolatedTask.cs b/src/Utilities/AppDomainIsolatedTask.cs index 00fba18be0e..76042abcf5c 100644 --- a/src/Utilities/AppDomainIsolatedTask.cs +++ b/src/Utilities/AppDomainIsolatedTask.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/AssemblyFolders/AssemblyFoldersExInfo.cs b/src/Utilities/AssemblyFolders/AssemblyFoldersExInfo.cs index f3c19ab89aa..beee420663d 100644 --- a/src/Utilities/AssemblyFolders/AssemblyFoldersExInfo.cs +++ b/src/Utilities/AssemblyFolders/AssemblyFoldersExInfo.cs @@ -9,6 +9,8 @@ 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 0f8c18dae1d..b75ed219352 100644 --- a/src/Utilities/AssemblyFolders/AssemblyFoldersFromConfigInfo.cs +++ b/src/Utilities/AssemblyFolders/AssemblyFoldersFromConfigInfo.cs @@ -6,6 +6,8 @@ using System.Text.RegularExpressions; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/AssemblyResources.cs b/src/Utilities/AssemblyResources.cs index 12f9500c00b..2ef95f94b72 100644 --- a/src/Utilities/AssemblyResources.cs +++ b/src/Utilities/AssemblyResources.cs @@ -5,6 +5,8 @@ using System.Reflection; using System.Globalization; +#nullable disable + namespace Microsoft.Build.Shared { /// diff --git a/src/Utilities/CommandLineBuilder.cs b/src/Utilities/CommandLineBuilder.cs index 8e7953b699f..52f30d7510c 100644 --- a/src/Utilities/CommandLineBuilder.cs +++ b/src/Utilities/CommandLineBuilder.cs @@ -10,6 +10,8 @@ using System.Text.RegularExpressions; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/ExtensionSDK.cs b/src/Utilities/ExtensionSDK.cs index 8034658dba2..3c04e05dbfd 100644 --- a/src/Utilities/ExtensionSDK.cs +++ b/src/Utilities/ExtensionSDK.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/Logger.cs b/src/Utilities/Logger.cs index bc61691c9f6..a2b8ad05f35 100644 --- a/src/Utilities/Logger.cs +++ b/src/Utilities/Logger.cs @@ -4,6 +4,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/MuxLogger.cs b/src/Utilities/MuxLogger.cs index fdb9263ac2e..bc94bb2e7f4 100644 --- a/src/Utilities/MuxLogger.cs +++ b/src/Utilities/MuxLogger.cs @@ -6,6 +6,8 @@ using Microsoft.Build.Framework; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/PlatformManifest.cs b/src/Utilities/PlatformManifest.cs index 0be3579553d..79467edfc4b 100644 --- a/src/Utilities/PlatformManifest.cs +++ b/src/Utilities/PlatformManifest.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/ProcessorArchitecture.cs b/src/Utilities/ProcessorArchitecture.cs index 0b12a2ceb81..6c846b7f094 100644 --- a/src/Utilities/ProcessorArchitecture.cs +++ b/src/Utilities/ProcessorArchitecture.cs @@ -4,6 +4,8 @@ using System.Diagnostics.CodeAnalysis; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/SDKManifest.cs b/src/Utilities/SDKManifest.cs index da9c9085073..456be5f3d9f 100644 --- a/src/Utilities/SDKManifest.cs +++ b/src/Utilities/SDKManifest.cs @@ -11,6 +11,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/SDKType.cs b/src/Utilities/SDKType.cs index 9ada0e526c5..3161e05231a 100644 --- a/src/Utilities/SDKType.cs +++ b/src/Utilities/SDKType.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/TargetPlatformSDK.cs b/src/Utilities/TargetPlatformSDK.cs index e991bb53a1b..97d0b1aa3ec 100644 --- a/src/Utilities/TargetPlatformSDK.cs +++ b/src/Utilities/TargetPlatformSDK.cs @@ -7,6 +7,8 @@ using System.Globalization; using Microsoft.Build.Shared; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/Task.cs b/src/Utilities/Task.cs index 2ca6e4a10d9..b8430809703 100644 --- a/src/Utilities/Task.cs +++ b/src/Utilities/Task.cs @@ -5,6 +5,8 @@ using Microsoft.Build.Framework; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/TaskItem.cs b/src/Utilities/TaskItem.cs index e54b2f6b9c3..3df50ef974a 100644 --- a/src/Utilities/TaskItem.cs +++ b/src/Utilities/TaskItem.cs @@ -14,6 +14,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Collections; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/ToolLocationHelper.cs b/src/Utilities/ToolLocationHelper.cs index 6237b17f4c7..28d03e97be8 100644 --- a/src/Utilities/ToolLocationHelper.cs +++ b/src/Utilities/ToolLocationHelper.cs @@ -20,6 +20,8 @@ using Microsoft.Build.Shared.FileSystem; using Microsoft.Build.Tasks.AssemblyFoldersFromConfig; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/ToolTask.cs b/src/Utilities/ToolTask.cs index 6f58e9e66f0..6eb42bff3ff 100644 --- a/src/Utilities/ToolTask.cs +++ b/src/Utilities/ToolTask.cs @@ -16,6 +16,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/TrackedDependencies/CanonicalTrackedFilesHelper.cs b/src/Utilities/TrackedDependencies/CanonicalTrackedFilesHelper.cs index c9a38c060cc..1d59803aa05 100644 --- a/src/Utilities/TrackedDependencies/CanonicalTrackedFilesHelper.cs +++ b/src/Utilities/TrackedDependencies/CanonicalTrackedFilesHelper.cs @@ -8,6 +8,8 @@ #if FEATURE_FILE_TRACKER +#nullable disable + namespace Microsoft.Build.Utilities { internal static class CanonicalTrackedFilesHelper diff --git a/src/Utilities/TrackedDependencies/CanonicalTrackedInputFiles.cs b/src/Utilities/TrackedDependencies/CanonicalTrackedInputFiles.cs index 1784b4d751a..99c1745f803 100644 --- a/src/Utilities/TrackedDependencies/CanonicalTrackedInputFiles.cs +++ b/src/Utilities/TrackedDependencies/CanonicalTrackedInputFiles.cs @@ -13,6 +13,8 @@ #if FEATURE_FILE_TRACKER +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/TrackedDependencies/CanonicalTrackedOutputFiles.cs b/src/Utilities/TrackedDependencies/CanonicalTrackedOutputFiles.cs index 2dd952fa1ec..2ccbbce8f3b 100644 --- a/src/Utilities/TrackedDependencies/CanonicalTrackedOutputFiles.cs +++ b/src/Utilities/TrackedDependencies/CanonicalTrackedOutputFiles.cs @@ -11,6 +11,8 @@ #if FEATURE_FILE_TRACKER +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/TrackedDependencies/DependencyTableCache.cs b/src/Utilities/TrackedDependencies/DependencyTableCache.cs index c87fcaf16fd..ac4d674e0a8 100644 --- a/src/Utilities/TrackedDependencies/DependencyTableCache.cs +++ b/src/Utilities/TrackedDependencies/DependencyTableCache.cs @@ -11,6 +11,8 @@ #if FEATURE_FILE_TRACKER +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/TrackedDependencies/FileTracker.cs b/src/Utilities/TrackedDependencies/FileTracker.cs index 423083dbd1b..6e59887bd4b 100644 --- a/src/Utilities/TrackedDependencies/FileTracker.cs +++ b/src/Utilities/TrackedDependencies/FileTracker.cs @@ -15,6 +15,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/TrackedDependencies/FlatTrackingData.cs b/src/Utilities/TrackedDependencies/FlatTrackingData.cs index 49d2531a2b4..1c6529ac55d 100644 --- a/src/Utilities/TrackedDependencies/FlatTrackingData.cs +++ b/src/Utilities/TrackedDependencies/FlatTrackingData.cs @@ -14,6 +14,8 @@ #if FEATURE_FILE_TRACKER +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Utilities/TrackedDependencies/TrackedDependencies.cs b/src/Utilities/TrackedDependencies/TrackedDependencies.cs index 414a572d4d5..de261ee538e 100644 --- a/src/Utilities/TrackedDependencies/TrackedDependencies.cs +++ b/src/Utilities/TrackedDependencies/TrackedDependencies.cs @@ -8,6 +8,8 @@ using Microsoft.Build.Shared; using Microsoft.Build.Shared.FileSystem; +#nullable disable + namespace Microsoft.Build.Utilities { /// diff --git a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/AssemblyFixtureAttribute.cs b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/AssemblyFixtureAttribute.cs index a8b28069581..ab44a3e90c3 100644 --- a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/AssemblyFixtureAttribute.cs +++ b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/AssemblyFixtureAttribute.cs @@ -1,5 +1,7 @@ using System; +#nullable disable + namespace Xunit { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] diff --git a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestAssemblyRunnerWithAssemblyFixture.cs b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestAssemblyRunnerWithAssemblyFixture.cs index a3af7a6547d..85ccedf6f8b 100644 --- a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestAssemblyRunnerWithAssemblyFixture.cs +++ b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestAssemblyRunnerWithAssemblyFixture.cs @@ -6,6 +6,8 @@ using Xunit.Abstractions; using Xunit.Sdk; +#nullable disable + namespace Xunit.NetCore.Extensions { public class XunitTestAssemblyRunnerWithAssemblyFixture : XunitTestAssemblyRunner diff --git a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestClassRunnerWithAssemblyFixture.cs b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestClassRunnerWithAssemblyFixture.cs index 035c80be769..6b64d7f4e42 100644 --- a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestClassRunnerWithAssemblyFixture.cs +++ b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestClassRunnerWithAssemblyFixture.cs @@ -6,6 +6,8 @@ using Xunit.Abstractions; using Xunit.Sdk; +#nullable disable + namespace Xunit.NetCore.Extensions { public class XunitTestClassRunnerWithAssemblyFixture : XunitTestClassRunner diff --git a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestCollectionRunnerWithAssemblyFixture.cs b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestCollectionRunnerWithAssemblyFixture.cs index 0d1f5b5c31d..6ccda839570 100644 --- a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestCollectionRunnerWithAssemblyFixture.cs +++ b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestCollectionRunnerWithAssemblyFixture.cs @@ -5,6 +5,8 @@ using Xunit.Abstractions; using Xunit.Sdk; +#nullable disable + namespace Xunit.NetCore.Extensions { public class XunitTestCollectionRunnerWithAssemblyFixture : XunitTestCollectionRunner diff --git a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestFrameworkExecutorWithAssemblyFixture.cs b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestFrameworkExecutorWithAssemblyFixture.cs index 62af5873266..42d906d9e97 100644 --- a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestFrameworkExecutorWithAssemblyFixture.cs +++ b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestFrameworkExecutorWithAssemblyFixture.cs @@ -3,6 +3,8 @@ using Xunit.Abstractions; using Xunit.Sdk; +#nullable disable + namespace Xunit.NetCore.Extensions { public class XunitTestFrameworkExecutorWithAssemblyFixture : XunitTestFrameworkExecutor diff --git a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestFrameworkWithAssemblyFixture.cs b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestFrameworkWithAssemblyFixture.cs index 9690a25dffb..aa1fcae63de 100644 --- a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestFrameworkWithAssemblyFixture.cs +++ b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestFrameworkWithAssemblyFixture.cs @@ -2,6 +2,8 @@ using Xunit.Abstractions; using Xunit.Sdk; +#nullable disable + namespace Xunit.NetCore.Extensions { public class XunitTestFrameworkWithAssemblyFixture : XunitTestFramework diff --git a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestMethodRunnerWithAssemblyFixture.cs b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestMethodRunnerWithAssemblyFixture.cs index 76223e24a1e..29765c69e2b 100644 --- a/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestMethodRunnerWithAssemblyFixture.cs +++ b/src/Xunit.NetCore.Extensions/AssemblyFixtureSupport/XunitTestMethodRunnerWithAssemblyFixture.cs @@ -5,6 +5,8 @@ using Xunit.Abstractions; using Xunit.Sdk; +#nullable disable + namespace Xunit.NetCore.Extensions { public class XunitTestMethodRunnerWithAssemblyFixture : XunitTestMethodRunner From 1d7f189de5e83930964443a4653fbc731f43e000 Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Tue, 7 Dec 2021 10:04:05 +1100 Subject: [PATCH 2/4] Fix nullability warnings in CopyOnWriteDictionary --- src/Shared/CopyOnWriteDictionary.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Shared/CopyOnWriteDictionary.cs b/src/Shared/CopyOnWriteDictionary.cs index 8764cfcdc89..ec869150afb 100644 --- a/src/Shared/CopyOnWriteDictionary.cs +++ b/src/Shared/CopyOnWriteDictionary.cs @@ -185,21 +185,20 @@ public V this[string key] } } -#nullable disable /// /// IDictionary implementation /// - object IDictionary.this[object key] + object? IDictionary.this[object key] { get { - TryGetValue((string) key, out V val); + TryGetValue((string) key, out V? val); return val; } - +#nullable disable set => this[(string)key] = (V)value; +#nullable enable } -#nullable restore /// /// Adds a value to the dictionary. @@ -241,6 +240,7 @@ public bool Remove(string key) return initial != _backing; // whether the removal occured } +#nullable disable /// /// Attempts to find the value for the specified key in the dictionary. /// @@ -248,6 +248,7 @@ public bool TryGetValue(string key, out V value) { return _backing.TryGetValue(key, out value); } +#nullable restore /// /// Adds an item to the collection. @@ -309,6 +310,7 @@ IEnumerator IEnumerable.GetEnumerator() return ((IEnumerable>)this).GetEnumerator(); } +#nullable disable /// /// IDictionary implementation. /// @@ -316,6 +318,7 @@ void IDictionary.Add(object key, object value) { Add((string)key, (V)value); } +#nullable enable /// /// IDictionary implementation. From d7724ddea287eaacdff9298d81ed9a14d347318c Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Tue, 7 Dec 2021 10:13:06 +1100 Subject: [PATCH 3/4] Fix nullability warnings in CopyOnWritePropertyDictionary_Tests --- .../Collections/CopyOnWritePropertyDictionary_Tests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Build.UnitTests/Collections/CopyOnWritePropertyDictionary_Tests.cs b/src/Build.UnitTests/Collections/CopyOnWritePropertyDictionary_Tests.cs index bdc7a99e972..6e287228194 100644 --- a/src/Build.UnitTests/Collections/CopyOnWritePropertyDictionary_Tests.cs +++ b/src/Build.UnitTests/Collections/CopyOnWritePropertyDictionary_Tests.cs @@ -61,7 +61,7 @@ public void Indexer() dic["b"].ShouldBeSameAs(b); // Cannot set a null value - Assert.ThrowsAny(() => dic["a"] = null); + Assert.ThrowsAny(() => dic["a"] = null!); // Value's key must match the specified key Assert.ThrowsAny(() => dic["a"] = b); @@ -206,7 +206,7 @@ private sealed class MockValue : IKeyed, IValued, IEquatable, IImmuta public string EscapedValue => Key; - public bool Equals(MockValue other) + public bool Equals(MockValue? other) { return other != null && Key == other.Key; } From 446aeb0480655192f567af0875978877696a2b85 Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Fri, 17 Dec 2021 23:08:47 +1100 Subject: [PATCH 4/4] Move #nullable directive outside of #if --- src/Shared/ExceptionHandling.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Shared/ExceptionHandling.cs b/src/Shared/ExceptionHandling.cs index d1eaf67c730..4426afebf01 100644 --- a/src/Shared/ExceptionHandling.cs +++ b/src/Shared/ExceptionHandling.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -#if BUILDINGAPPXTASKS #nullable disable +#if BUILDINGAPPXTASKS namespace Microsoft.Build.AppxPackage.Shared #else using System; @@ -26,8 +26,6 @@ namespace Microsoft.Build.AppxPackage.Shared #endif using Microsoft.Build.Framework; -#nullable disable - namespace Microsoft.Build.Shared #endif {