diff --git a/build/Shared/EncodingUtility.cs b/build/Shared/EncodingUtility.cs index e14bd9aad40..8033275f347 100644 --- a/build/Shared/EncodingUtility.cs +++ b/build/Shared/EncodingUtility.cs @@ -3,8 +3,6 @@ #nullable enable -using System; - namespace NuGet.Shared { internal static class EncodingUtility diff --git a/build/Shared/SharedExtensions.cs b/build/Shared/SharedExtensions.cs index 30115b08604..79b7e13a144 100644 --- a/build/Shared/SharedExtensions.cs +++ b/build/Shared/SharedExtensions.cs @@ -5,7 +5,6 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Text; namespace NuGet.Shared diff --git a/build/TestShared/CommonAssemblyInfo.cs b/build/TestShared/CommonAssemblyInfo.cs index 1309513fe18..618082bc4a8 100644 --- a/build/TestShared/CommonAssemblyInfo.cs +++ b/build/TestShared/CommonAssemblyInfo.cs @@ -1,6 +1,3 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Reflection; -using System.Resources; -using System.Runtime.InteropServices; diff --git a/src/NuGet.Clients/NuGet.CommandLine/CommandLineParser.cs b/src/NuGet.Clients/NuGet.CommandLine/CommandLineParser.cs index 5d68d7be204..f822b0c6e75 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/CommandLineParser.cs +++ b/src/NuGet.Clients/NuGet.CommandLine/CommandLineParser.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Reflection; diff --git a/src/NuGet.Clients/NuGet.CommandLine/Commands/ListCommand.cs b/src/NuGet.Clients/NuGet.CommandLine/Commands/ListCommand.cs index ca4a87b54bd..a6a29ee4b61 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/Commands/ListCommand.cs +++ b/src/NuGet.Clients/NuGet.CommandLine/Commands/ListCommand.cs @@ -5,9 +5,7 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using NuGet.CommandLine; using NuGet.Commands; -using NuGet.Protocol.Core.Types; namespace NuGet.CommandLine { diff --git a/src/NuGet.Clients/NuGet.CommandLine/Commands/PushCommand.cs b/src/NuGet.Clients/NuGet.CommandLine/Commands/PushCommand.cs index 1ce493590a6..081ab6f889b 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/Commands/PushCommand.cs +++ b/src/NuGet.Clients/NuGet.CommandLine/Commands/PushCommand.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; diff --git a/src/NuGet.Clients/NuGet.CommandLine/Commands/UpdateCommand.cs b/src/NuGet.Clients/NuGet.CommandLine/Commands/UpdateCommand.cs index 1cdfc56b432..19e09ab5bbd 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/Commands/UpdateCommand.cs +++ b/src/NuGet.Clients/NuGet.CommandLine/Commands/UpdateCommand.cs @@ -18,7 +18,6 @@ using NuGet.Packaging.PackageExtraction; using NuGet.Packaging.Signing; using NuGet.ProjectManagement; -using NuGet.Protocol; using NuGet.Protocol.Core.Types; using NuGet.Resolver; using NuGet.Versioning; diff --git a/src/NuGet.Clients/NuGet.CommandLine/Common/CommandLineUtility.cs b/src/NuGet.Clients/NuGet.CommandLine/Common/CommandLineUtility.cs index 21f6f5c4d26..4a4c031b497 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/Common/CommandLineUtility.cs +++ b/src/NuGet.Clients/NuGet.CommandLine/Common/CommandLineUtility.cs @@ -2,9 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.Globalization; -using System.IO; using System.Linq; using NuGet.Commands; using NuGet.Common; diff --git a/src/NuGet.Clients/NuGet.CommandLine/Common/ConsoleCredentialProvider.cs b/src/NuGet.Clients/NuGet.CommandLine/Common/ConsoleCredentialProvider.cs index 0a5a780ffb7..3886adc02b7 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/Common/ConsoleCredentialProvider.cs +++ b/src/NuGet.Clients/NuGet.CommandLine/Common/ConsoleCredentialProvider.cs @@ -3,7 +3,6 @@ using System.Security; using System.Threading; using System.Threading.Tasks; -using NuGet.Common; using NuGet.Configuration; using NuGet.Credentials; diff --git a/src/NuGet.Clients/NuGet.CommandLine/Common/ProjectInSolution.cs b/src/NuGet.Clients/NuGet.CommandLine/Common/ProjectInSolution.cs index 500dac87b78..6a621877569 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/Common/ProjectInSolution.cs +++ b/src/NuGet.Clients/NuGet.CommandLine/Common/ProjectInSolution.cs @@ -1,7 +1,3 @@ -using System; -using System.Globalization; -using System.Reflection; - namespace NuGet.Common { /// diff --git a/src/NuGet.Clients/NuGet.CommandLine/ConsoleExtensions.cs b/src/NuGet.Clients/NuGet.CommandLine/ConsoleExtensions.cs index ffc2a14868a..927ea0f57a0 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/ConsoleExtensions.cs +++ b/src/NuGet.Clients/NuGet.CommandLine/ConsoleExtensions.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using NuGet.Common; namespace NuGet.CommandLine { diff --git a/src/NuGet.Clients/NuGet.CommandLine/SettingsCredentialProvider.cs b/src/NuGet.Clients/NuGet.CommandLine/SettingsCredentialProvider.cs index 98d4a1a347a..b46d21ebe95 100644 --- a/src/NuGet.Clients/NuGet.CommandLine/SettingsCredentialProvider.cs +++ b/src/NuGet.Clients/NuGet.CommandLine/SettingsCredentialProvider.cs @@ -4,7 +4,6 @@ using System.Globalization; using System.Linq; using System.Net; -using NuGet.Common; namespace NuGet.CommandLine { diff --git a/src/NuGet.Clients/NuGet.Console/Console/TextFormatClassifier.cs b/src/NuGet.Clients/NuGet.Console/Console/TextFormatClassifier.cs index 01c2bf22c66..56001a07afa 100644 --- a/src/NuGet.Clients/NuGet.Console/Console/TextFormatClassifier.cs +++ b/src/NuGet.Clients/NuGet.Console/Console/TextFormatClassifier.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.ComponentModel.Composition; -using System.Diagnostics.CodeAnalysis; using System.Text; using System.Windows.Media; using Microsoft.VisualStudio.Language.StandardClassification; diff --git a/src/NuGet.Clients/NuGet.Console/OutputConsole/ChannelOutputConsole.cs b/src/NuGet.Clients/NuGet.Console/OutputConsole/ChannelOutputConsole.cs index 47305024ee1..370241c5911 100644 --- a/src/NuGet.Clients/NuGet.Console/OutputConsole/ChannelOutputConsole.cs +++ b/src/NuGet.Clients/NuGet.Console/OutputConsole/ChannelOutputConsole.cs @@ -6,7 +6,6 @@ using System.IO.Pipelines; using System.Text; using System.Threading; -using System.Xml; using Microsoft; using Microsoft.ServiceHub.Framework; using Microsoft.VisualStudio; diff --git a/src/NuGet.Clients/NuGet.Console/OutputConsole/OutputConsoleProvider.cs b/src/NuGet.Clients/NuGet.Console/OutputConsole/OutputConsoleProvider.cs index 6b5070340b6..22de25bf50d 100644 --- a/src/NuGet.Clients/NuGet.Console/OutputConsole/OutputConsoleProvider.cs +++ b/src/NuGet.Clients/NuGet.Console/OutputConsole/OutputConsoleProvider.cs @@ -7,7 +7,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; using Microsoft.VisualStudio.Threading; diff --git a/src/NuGet.Clients/NuGet.Console/PowerConsole/ClassifierProvider.cs b/src/NuGet.Clients/NuGet.Console/PowerConsole/ClassifierProvider.cs index c45a979b8f1..6b263157fe9 100644 --- a/src/NuGet.Clients/NuGet.Console/PowerConsole/ClassifierProvider.cs +++ b/src/NuGet.Clients/NuGet.Console/PowerConsole/ClassifierProvider.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.ComponentModel.Composition; -using System.Diagnostics.CodeAnalysis; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Classification; using Microsoft.VisualStudio.Utilities; diff --git a/src/NuGet.Clients/NuGet.Console/PowerConsole/CompletionSourceProvider.cs b/src/NuGet.Clients/NuGet.Console/PowerConsole/CompletionSourceProvider.cs index 66b3e3e0c02..cfab2fe6e17 100644 --- a/src/NuGet.Clients/NuGet.Console/PowerConsole/CompletionSourceProvider.cs +++ b/src/NuGet.Clients/NuGet.Console/PowerConsole/CompletionSourceProvider.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.ComponentModel.Composition; -using System.Diagnostics.CodeAnalysis; using Microsoft.VisualStudio.Language.Intellisense; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Utilities; diff --git a/src/NuGet.Clients/NuGet.Console/PowerConsoleToolWindow.cs b/src/NuGet.Clients/NuGet.Console/PowerConsoleToolWindow.cs index 047adb78d35..634e9379c7f 100644 --- a/src/NuGet.Clients/NuGet.Console/PowerConsoleToolWindow.cs +++ b/src/NuGet.Clients/NuGet.Console/PowerConsoleToolWindow.cs @@ -6,7 +6,6 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; -using System.Threading.Tasks; using System.Windows; using System.Windows.Forms; using System.Windows.Input; @@ -19,7 +18,6 @@ using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.TextManager.Interop; using Microsoft.VisualStudio.Threading; -using NuGet.PackageManagement; using NuGet.PackageManagement.VisualStudio; using NuGet.VisualStudio; using NuGet.VisualStudio.Telemetry; diff --git a/src/NuGet.Clients/NuGet.Console/Properties/AssemblyInfo.cs b/src/NuGet.Clients/NuGet.Console/Properties/AssemblyInfo.cs index 9779879447c..014385255aa 100644 --- a/src/NuGet.Clients/NuGet.Console/Properties/AssemblyInfo.cs +++ b/src/NuGet.Clients/NuGet.Console/Properties/AssemblyInfo.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Reflection; using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM diff --git a/src/NuGet.Clients/NuGet.Console/Utils/CommonExtensionMethods.cs b/src/NuGet.Clients/NuGet.Console/Utils/CommonExtensionMethods.cs index 1aaa00facb2..d069554cf33 100644 --- a/src/NuGet.Clients/NuGet.Console/Utils/CommonExtensionMethods.cs +++ b/src/NuGet.Clients/NuGet.Console/Utils/CommonExtensionMethods.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Diagnostics.CodeAnalysis; namespace NuGetConsole { diff --git a/src/NuGet.Clients/NuGet.Console/Utils/UtilityMethods.cs b/src/NuGet.Clients/NuGet.Console/Utils/UtilityMethods.cs index 7b7ce947c7e..aa9448865c0 100644 --- a/src/NuGet.Clients/NuGet.Console/Utils/UtilityMethods.cs +++ b/src/NuGet.Clients/NuGet.Console/Utils/UtilityMethods.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Diagnostics.CodeAnalysis; namespace NuGetConsole { diff --git a/src/NuGet.Clients/NuGet.Indexing/CamelCaseFilter.cs b/src/NuGet.Clients/NuGet.Indexing/CamelCaseFilter.cs index 166d4f2f6f6..12d2b7f0ac4 100644 --- a/src/NuGet.Clients/NuGet.Indexing/CamelCaseFilter.cs +++ b/src/NuGet.Clients/NuGet.Indexing/CamelCaseFilter.cs @@ -1,6 +1,5 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Globalization; using Lucene.Net.Analysis; diff --git a/src/NuGet.Clients/NuGet.Indexing/DescriptionAnalyzer.cs b/src/NuGet.Clients/NuGet.Indexing/DescriptionAnalyzer.cs index 58a2c73f87c..5cc8856a58a 100644 --- a/src/NuGet.Clients/NuGet.Indexing/DescriptionAnalyzer.cs +++ b/src/NuGet.Clients/NuGet.Indexing/DescriptionAnalyzer.cs @@ -1,6 +1,5 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Collections.Generic; using System.IO; using Lucene.Net.Analysis; diff --git a/src/NuGet.Clients/NuGet.Indexing/NuGetQuery.cs b/src/NuGet.Clients/NuGet.Indexing/NuGetQuery.cs index e85f6f8f33c..b26f0b120b2 100644 --- a/src/NuGet.Clients/NuGet.Indexing/NuGetQuery.cs +++ b/src/NuGet.Clients/NuGet.Indexing/NuGetQuery.cs @@ -1,6 +1,5 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/src/NuGet.Clients/NuGet.Indexing/OwnerAnalyzer.cs b/src/NuGet.Clients/NuGet.Indexing/OwnerAnalyzer.cs index 2ca73888414..d2567baadd5 100644 --- a/src/NuGet.Clients/NuGet.Indexing/OwnerAnalyzer.cs +++ b/src/NuGet.Clients/NuGet.Indexing/OwnerAnalyzer.cs @@ -1,6 +1,5 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Collections.Generic; using System.IO; using Lucene.Net.Analysis; diff --git a/src/NuGet.Clients/NuGet.Indexing/TagsAnalyzer.cs b/src/NuGet.Clients/NuGet.Indexing/TagsAnalyzer.cs index f3f3925929c..d68cabbccab 100644 --- a/src/NuGet.Clients/NuGet.Indexing/TagsAnalyzer.cs +++ b/src/NuGet.Clients/NuGet.Indexing/TagsAnalyzer.cs @@ -1,6 +1,5 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Collections.Generic; using System.IO; using Lucene.Net.Analysis; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/NuGetPowerShellBaseCommand.cs b/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/NuGetPowerShellBaseCommand.cs index c259cbc4a1d..6b7fe93cd31 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/NuGetPowerShellBaseCommand.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/NuGetPowerShellBaseCommand.cs @@ -16,7 +16,6 @@ using System.Threading.Tasks; using System.Xml.Linq; using EnvDTE; -using Microsoft.VisualStudio.ComponentModelHost; using Microsoft.VisualStudio.Shell.Interop; using Microsoft.VisualStudio.Threading; using NuGet.Commands; @@ -32,7 +31,6 @@ using NuGet.Versioning; using NuGet.VisualStudio; using NuGet.VisualStudio.Common.Telemetry.PowerShell; -using NuGetConsole.Host.PowerShell; using ExecutionContext = NuGet.ProjectManagement.ExecutionContext; namespace NuGet.PackageManagement.PowerShellCmdlets diff --git a/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/PackageActionBaseCommand.cs b/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/PackageActionBaseCommand.cs index 5667d4e46e4..aa183c2f97d 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/PackageActionBaseCommand.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/PackageActionBaseCommand.cs @@ -18,7 +18,6 @@ using NuGet.ProjectManagement.Projects; using NuGet.Resolver; using NuGet.VisualStudio; -using NuGetConsole.Host.PowerShell; using Task = System.Threading.Tasks.Task; namespace NuGet.PackageManagement.PowerShellCmdlets diff --git a/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/PowerShellHost.cs b/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/PowerShellHost.cs index 2cff6d0dc3f..891ddb37b1b 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/PowerShellHost.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/PowerShellHost.cs @@ -31,8 +31,8 @@ using NuGet.VisualStudio; using NuGet.VisualStudio.Common.Telemetry.PowerShell; using NuGet.VisualStudio.Telemetry; -using Task = System.Threading.Tasks.Task; using LocalResources = NuGet.PackageManagement.PowerShellCmdlets.Resources; +using Task = System.Threading.Tasks.Task; namespace NuGetConsole.Host.PowerShell.Implementation { diff --git a/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/Properties/AssemblyInfo.cs b/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/Properties/AssemblyInfo.cs index c7de9018798..80fd51dfa3d 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/Properties/AssemblyInfo.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/Properties/AssemblyInfo.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Reflection; using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Actions/PackagesConfigToPackageReferenceMigrator.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Actions/PackagesConfigToPackageReferenceMigrator.cs index f30d1998d4e..713d7020892 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Actions/PackagesConfigToPackageReferenceMigrator.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Actions/PackagesConfigToPackageReferenceMigrator.cs @@ -11,7 +11,6 @@ using Microsoft.ServiceHub.Framework; using NuGet.Common; using NuGet.PackageManagement.Telemetry; -using NuGet.PackageManagement.VisualStudio; using NuGet.Packaging.Core; using NuGet.ProjectManagement; using NuGet.VisualStudio.Internal.Contracts; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Automation/ListBoxToggleableItemsAutomationPeer.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Automation/ListBoxToggleableItemsAutomationPeer.cs index 76688a5af1c..b81d134feef 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Automation/ListBoxToggleableItemsAutomationPeer.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Automation/ListBoxToggleableItemsAutomationPeer.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; using System.Windows.Automation.Peers; using System.Windows.Controls; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/BooleanToFontWeightConverter.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/BooleanToFontWeightConverter.cs index a1991456328..b811ce20e51 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/BooleanToFontWeightConverter.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/BooleanToFontWeightConverter.cs @@ -2,11 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Windows; using System.Windows.Data; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/NullToBooleanConverter.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/NullToBooleanConverter.cs index 05893b3827a..6218c5b4404 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/NullToBooleanConverter.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/NullToBooleanConverter.cs @@ -4,7 +4,6 @@ using System; using System.Diagnostics; using System.Globalization; -using System.Windows; using System.Windows.Data; namespace NuGet.PackageManagement.UI diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/ProjectAndSolutionViewMinHeightConverter.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/ProjectAndSolutionViewMinHeightConverter.cs index e45f9de436b..6496a22844a 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/ProjectAndSolutionViewMinHeightConverter.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/ProjectAndSolutionViewMinHeightConverter.cs @@ -4,7 +4,6 @@ using System; using System.Diagnostics; using System.Globalization; -using System.Windows; using System.Windows.Data; namespace NuGet.PackageManagement.UI diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/RadioBoolToIntConverter.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/RadioBoolToIntConverter.cs index 296b51d69da..c9bf411f67f 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/RadioBoolToIntConverter.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/RadioBoolToIntConverter.cs @@ -1,9 +1,5 @@ using System; -using System.Collections.Generic; using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Windows.Data; namespace NuGet.PackageManagement.UI diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/StringFormatConverter.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/StringFormatConverter.cs index 5bfb71ee0d0..9190336adbb 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/StringFormatConverter.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/StringFormatConverter.cs @@ -2,11 +2,9 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; -using System.Windows; using System.Windows.Data; namespace NuGet.PackageManagement.UI diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Models/PackageManagerModel.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Models/PackageManagerModel.cs index 588e45cd606..3eeb9cc6496 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Models/PackageManagerModel.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Models/PackageManagerModel.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.ComponentModel; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell.Interop; using NuGet.PackageManagement.VisualStudio; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/PackageItemLoader.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/PackageItemLoader.cs index 20f483d8cd6..d19e5889315 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/PackageItemLoader.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/PackageItemLoader.cs @@ -6,7 +6,6 @@ using System.Collections.Immutable; using System.Globalization; using System.Linq; -using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Microsoft; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/PackageManagerWindowPane.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/PackageManagerWindowPane.cs index d81286a1b66..9dd9a3d081c 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/PackageManagerWindowPane.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/PackageManagerWindowPane.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Properties/AssemblyInfo.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Properties/AssemblyInfo.cs index bf999aaf3d0..2e4d74bea92 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Properties/AssemblyInfo.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Properties/AssemblyInfo.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Runtime.CompilerServices; using System.Windows; using System.Windows.Markup; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Resources/Resources.xaml.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Resources/Resources.xaml.cs index 65af164175a..53a7708f5f5 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Resources/Resources.xaml.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Resources/Resources.xaml.cs @@ -1,10 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Linq; using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; namespace NuGet.PackageManagement.UI { diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/NuGetSettings.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/NuGetSettings.cs index 89c2678e6f3..7c234fd4886 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/NuGetSettings.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/NuGetSettings.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using NuGet.PackageManagement.UI; namespace NuGet.PackageManagement.UI { diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/NuGetUIFactory.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/NuGetUIFactory.cs index f770fb663f8..990e8f8c39b 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/NuGetUIFactory.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/NuGetUIFactory.cs @@ -2,12 +2,10 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.ComponentModel.Composition; using System.Threading; using System.Threading.Tasks; using Microsoft.ServiceHub.Framework; -using Microsoft.VisualStudio.Utilities; using NuGet.Commands; using NuGet.Configuration; using NuGet.PackageManagement.VisualStudio; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/NuGetUIProjectContext.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/NuGetUIProjectContext.cs index 4777fc83215..7ff13277e1b 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/NuGetUIProjectContext.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/NuGetUIProjectContext.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Globalization; using System.Xml.Linq; using NuGet.Common; using NuGet.PackageManagement.VisualStudio; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/SolutionUserOptions.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/SolutionUserOptions.cs index c911740be89..ec63b1933ff 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/SolutionUserOptions.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/UserInterfaceService/SolutionUserOptions.cs @@ -6,7 +6,6 @@ using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; -using NuGet.VisualStudio; using IStream = Microsoft.VisualStudio.OLE.Interop.IStream; namespace NuGet.PackageManagement.UI diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Utility/IconBitmapStatusUtility.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Utility/IconBitmapStatusUtility.cs index 525d57cd4e5..151e83e1bc2 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Utility/IconBitmapStatusUtility.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Utility/IconBitmapStatusUtility.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; - namespace NuGet.PackageManagement.UI { internal static class IconBitmapStatusUtility diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/LicenseFileWindow.xaml.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/LicenseFileWindow.xaml.cs index 92e167ee59e..6f789eb43c0 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/LicenseFileWindow.xaml.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/LicenseFileWindow.xaml.cs @@ -1,21 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; using Microsoft.VisualStudio.PlatformUI; namespace NuGet.PackageManagement.UI diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/PRMigratorBar.xaml.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/PRMigratorBar.xaml.cs index befc677847c..9c8e1963e89 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/PRMigratorBar.xaml.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/PRMigratorBar.xaml.cs @@ -3,7 +3,6 @@ using System; using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Threading; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/PreviewWindow.xaml.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/PreviewWindow.xaml.cs index 0adbff28a55..7411014c1f5 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/PreviewWindow.xaml.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/PreviewWindow.xaml.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Linq; -using System.Text; using System.Windows; using System.Windows.Input; using Microsoft.VisualStudio.PlatformUI; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/ProductUpdateBar.xaml.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/ProductUpdateBar.xaml.cs index 8470c413c8a..cb5f9842f36 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/ProductUpdateBar.xaml.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/ProductUpdateBar.xaml.cs @@ -2,10 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Diagnostics.CodeAnalysis; using System.Windows; using System.Windows.Controls; -using System.Windows.Threading; using Microsoft.VisualStudio.Shell; using NuGet.VisualStudio; using NuGet.VisualStudio.Telemetry; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/SolutionView.xaml.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/SolutionView.xaml.cs index 73915669a8c..c98d000a1c0 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/SolutionView.xaml.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/SolutionView.xaml.cs @@ -6,7 +6,6 @@ using System.Collections.Specialized; using System.ComponentModel; using System.Linq; -using System.Threading; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Common/IProjectContextInfoExtensions.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Common/IProjectContextInfoExtensions.cs index 14d802d2d46..732fc5b7223 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Common/IProjectContextInfoExtensions.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Common/IProjectContextInfoExtensions.cs @@ -12,8 +12,6 @@ using NuGet.Frameworks; using NuGet.Packaging.Core; using NuGet.VisualStudio.Internal.Contracts; -using NuGet.ProjectManagement.Projects; -using System.Linq; namespace NuGet.PackageManagement.VisualStudio { diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Handlers/ProjectUpgradeHandler.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Handlers/ProjectUpgradeHandler.cs index 79db3421b15..1cc978c8bf7 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Handlers/ProjectUpgradeHandler.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Handlers/ProjectUpgradeHandler.cs @@ -2,16 +2,12 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; -using EnvDTE; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; -using NuGet.Packaging.Core; using NuGet.VisualStudio; using NuGet.VisualStudio.Telemetry; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/PackageFeeds/SourceRepositoryExtensions.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/PackageFeeds/SourceRepositoryExtensions.cs index ced56eff082..697f9b5225f 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/PackageFeeds/SourceRepositoryExtensions.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/PackageFeeds/SourceRepositoryExtensions.cs @@ -11,7 +11,6 @@ using NuGet.Protocol; using NuGet.Protocol.Core.Types; using NuGet.Protocol.Model; -using NuGet.Protocol.Resources; using NuGet.Versioning; using NuGet.VisualStudio.Internal.Contracts; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/ProjectSystems/FSharpProjectSystem.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/ProjectSystems/FSharpProjectSystem.cs index 614942c0ddf..9acca2b06b1 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/ProjectSystems/FSharpProjectSystem.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/ProjectSystems/FSharpProjectSystem.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/ProjectSystems/MSBuildNuGetProjectSystemFactory.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/ProjectSystems/MSBuildNuGetProjectSystemFactory.cs index dc7d2d5b3f9..8f54f60a798 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/ProjectSystems/MSBuildNuGetProjectSystemFactory.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/ProjectSystems/MSBuildNuGetProjectSystemFactory.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using System.Threading.Tasks; using NuGet.ProjectManagement; using NuGet.VisualStudio; using VsMSBuildNuGetProjectSystemThunk = System.Func< diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/ProjectSystems/VsCoreProjectSystem.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/ProjectSystems/VsCoreProjectSystem.cs index d711c91f6bf..5023c3157d1 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/ProjectSystems/VsCoreProjectSystem.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/ProjectSystems/VsCoreProjectSystem.cs @@ -2,9 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading; using System.Threading.Tasks; using Microsoft; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/CpsPackageReferenceProjectProvider.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/CpsPackageReferenceProjectProvider.cs index fba526730c2..de5ff38d0eb 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/CpsPackageReferenceProjectProvider.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/CpsPackageReferenceProjectProvider.cs @@ -11,7 +11,6 @@ using NuGet.ProjectManagement; using NuGet.ProjectModel; using NuGet.VisualStudio; -using IAsyncServiceProvider = Microsoft.VisualStudio.Shell.IAsyncServiceProvider; namespace NuGet.PackageManagement.VisualStudio { diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/MSBuildNuGetProjectProvider.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/MSBuildNuGetProjectProvider.cs index 1c2e2ed2602..d6747dba471 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/MSBuildNuGetProjectProvider.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/MSBuildNuGetProjectProvider.cs @@ -3,7 +3,6 @@ using System; using System.ComponentModel.Composition; -using System.Threading.Tasks; using Microsoft; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Utilities; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/ProjectJsonProjectProvider.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/ProjectJsonProjectProvider.cs index 70d33bff30f..23b6578b1a5 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/ProjectJsonProjectProvider.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/ProjectJsonProjectProvider.cs @@ -5,7 +5,6 @@ using System.ComponentModel.Composition; using System.IO; using System.Linq; -using System.Threading.Tasks; using Microsoft; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Utilities; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/ProjectProviderContext.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/ProjectProviderContext.cs index 96345baa862..164d7fb3952 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/ProjectProviderContext.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/ProjectProviderContext.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using NuGet.ProjectManagement; namespace NuGet.PackageManagement.VisualStudio diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Services/NuGetPackageFileService.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Services/NuGetPackageFileService.cs index 797c84e8040..fba36a0cd5f 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Services/NuGetPackageFileService.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Services/NuGetPackageFileService.cs @@ -5,7 +5,6 @@ using System; using System.Collections.Specialized; -using System.Diagnostics; using System.IO; using System.Net.Http; using System.Runtime.Caching; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Services/NuGetSolutionManagerService.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Services/NuGetSolutionManagerService.cs index e43c80e90f1..6e83d7ea38c 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Services/NuGetSolutionManagerService.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Services/NuGetSolutionManagerService.cs @@ -5,7 +5,6 @@ using System; using System.ComponentModel.Composition; -using System.Globalization; using System.Threading; using System.Threading.Tasks; using Microsoft; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Setting/SettingsStoreWrapper.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Setting/SettingsStoreWrapper.cs index 1a06391cee9..8332cb92a81 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Setting/SettingsStoreWrapper.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Setting/SettingsStoreWrapper.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.VisualStudio; -using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; using NuGet.VisualStudio; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/SourceControl/VsSourceControlTracker.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/SourceControl/VsSourceControlTracker.cs index 22064b35138..1921f013b9a 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/SourceControl/VsSourceControlTracker.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/SourceControl/VsSourceControlTracker.cs @@ -2,9 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.ComponentModel.Composition; -using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using Microsoft.VisualStudio; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Telemetry/ProjectTelemetryEvent.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Telemetry/ProjectTelemetryEvent.cs index 631038ed559..c2303b82ba0 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Telemetry/ProjectTelemetryEvent.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Telemetry/ProjectTelemetryEvent.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; using NuGet.Common; namespace NuGet.PackageManagement.Telemetry diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Utility/NuGetProjectUpgradeUtility.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Utility/NuGetProjectUpgradeUtility.cs index 92523b7ab48..38b1a90e30e 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Utility/NuGetProjectUpgradeUtility.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Utility/NuGetProjectUpgradeUtility.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Runtime.InteropServices; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Utility/VSRestoreSettingsUtilities.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Utility/VSRestoreSettingsUtilities.cs index 74b6efcc022..49c6fbce790 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Utility/VSRestoreSettingsUtilities.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Utility/VSRestoreSettingsUtilities.cs @@ -4,8 +4,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using NuGet.Commands; using NuGet.Common; using NuGet.Configuration; diff --git a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/VSMachineWideSettings.cs b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/VSMachineWideSettings.cs index df27eac42c5..bd7afc90afc 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/VSMachineWideSettings.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/VSMachineWideSettings.cs @@ -3,7 +3,6 @@ using System; using System.ComponentModel.Composition; -using System.Globalization; using System.Threading.Tasks; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Threading; diff --git a/src/NuGet.Clients/NuGet.SolutionRestoreManager/NuGetSolutionService.cs b/src/NuGet.Clients/NuGet.SolutionRestoreManager/NuGetSolutionService.cs index b5761644ef3..6f8440723ae 100644 --- a/src/NuGet.Clients/NuGet.SolutionRestoreManager/NuGetSolutionService.cs +++ b/src/NuGet.Clients/NuGet.SolutionRestoreManager/NuGetSolutionService.cs @@ -5,12 +5,10 @@ using System.ComponentModel.Composition; using System.Threading; using System.Threading.Tasks; -using Microsoft.VisualStudio.ComponentModelHost; using Microsoft.VisualStudio.Threading; using NuGet.VisualStudio; using NuGet.VisualStudio.Common; using NuGet.VisualStudio.Internal.Contracts; -using NuGet.VisualStudio.Telemetry; namespace NuGet.SolutionRestoreManager { diff --git a/src/NuGet.Clients/NuGet.SolutionRestoreManager/Properties/AssemblyInfo.cs b/src/NuGet.Clients/NuGet.SolutionRestoreManager/Properties/AssemblyInfo.cs index 452bf877067..1c8864f5f54 100644 --- a/src/NuGet.Clients/NuGet.SolutionRestoreManager/Properties/AssemblyInfo.cs +++ b/src/NuGet.Clients/NuGet.SolutionRestoreManager/Properties/AssemblyInfo.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Reflection; using System.Runtime.InteropServices; using Microsoft.VisualStudio.Shell; diff --git a/src/NuGet.Clients/NuGet.SolutionRestoreManager/RestoreManagerPackage.cs b/src/NuGet.Clients/NuGet.SolutionRestoreManager/RestoreManagerPackage.cs index 99615c99ffa..babc7990a85 100644 --- a/src/NuGet.Clients/NuGet.SolutionRestoreManager/RestoreManagerPackage.cs +++ b/src/NuGet.Clients/NuGet.SolutionRestoreManager/RestoreManagerPackage.cs @@ -7,7 +7,6 @@ using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell; using NuGet.VisualStudio; -using NuGet.VisualStudio.Internal.Contracts; using IBrokeredServiceContainer = Microsoft.VisualStudio.Shell.ServiceBroker.IBrokeredServiceContainer; // Duplicate type declarations due to Microsoft.Internal.VisualStudio.Shell.Embeddable. using ProvideBrokeredServiceAttribute = Microsoft.VisualStudio.Shell.ServiceBroker.ProvideBrokeredServiceAttribute; diff --git a/src/NuGet.Clients/NuGet.SolutionRestoreManager/SolutionRestoreCommand.cs b/src/NuGet.Clients/NuGet.SolutionRestoreManager/SolutionRestoreCommand.cs index c7a0a47b89f..650c1113da8 100644 --- a/src/NuGet.Clients/NuGet.SolutionRestoreManager/SolutionRestoreCommand.cs +++ b/src/NuGet.Clients/NuGet.SolutionRestoreManager/SolutionRestoreCommand.cs @@ -4,7 +4,6 @@ using System; using System.ComponentModel.Composition; using System.ComponentModel.Design; -using System.Linq; using System.Threading; using Microsoft; using Microsoft.VisualStudio; @@ -13,7 +12,6 @@ using NuGet.PackageManagement; using NuGet.VisualStudio; using NuGet.VisualStudio.Common; -using NuGet.VisualStudio.Telemetry; using Task = System.Threading.Tasks.Task; namespace NuGet.SolutionRestoreManager diff --git a/src/NuGet.Clients/NuGet.Tools/Commands/ShowErrorsCommand.cs b/src/NuGet.Clients/NuGet.Tools/Commands/ShowErrorsCommand.cs index c7c76fdb122..204fe23edcc 100644 --- a/src/NuGet.Clients/NuGet.Tools/Commands/ShowErrorsCommand.cs +++ b/src/NuGet.Clients/NuGet.Tools/Commands/ShowErrorsCommand.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Diagnostics.CodeAnalysis; using System.Windows.Input; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell; diff --git a/src/NuGet.Clients/NuGet.Tools/Properties/AssemblyInfo.cs b/src/NuGet.Clients/NuGet.Tools/Properties/AssemblyInfo.cs index e75887d9467..9d0f6a45c7d 100644 --- a/src/NuGet.Clients/NuGet.Tools/Properties/AssemblyInfo.cs +++ b/src/NuGet.Clients/NuGet.Tools/Properties/AssemblyInfo.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Reflection; -using System.Runtime.InteropServices; using Microsoft.VisualStudio.Shell; [assembly: ProvideCodeBase(CodeBase = @"$PackageFolder$\Lucene.Net.dll")] diff --git a/src/NuGet.Clients/NuGet.VisualStudio.Common/ErrorListTableEntry.cs b/src/NuGet.Clients/NuGet.VisualStudio.Common/ErrorListTableEntry.cs index 2e719ebeea5..ab06114e536 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio.Common/ErrorListTableEntry.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio.Common/ErrorListTableEntry.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Globalization; using System.IO; using Microsoft.VisualStudio.Shell.Interop; diff --git a/src/NuGet.Clients/NuGet.VisualStudio.Common/IDE/EnvDteExtensions.cs b/src/NuGet.Clients/NuGet.VisualStudio.Common/IDE/EnvDteExtensions.cs index 9cac9dbbe22..8afd24c1b14 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio.Common/IDE/EnvDteExtensions.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio.Common/IDE/EnvDteExtensions.cs @@ -3,7 +3,6 @@ using System; using Microsoft.VisualStudio.Shell; -using NuGet.VisualStudio.Common; #pragma warning disable CA1062 // Validate arguments of public methods diff --git a/src/NuGet.Clients/NuGet.VisualStudio.Common/IDE/IVsSolutionManager.cs b/src/NuGet.Clients/NuGet.VisualStudio.Common/IDE/IVsSolutionManager.cs index 6c6fc91f539..f771e9f4212 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio.Common/IDE/IVsSolutionManager.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio.Common/IDE/IVsSolutionManager.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; diff --git a/src/NuGet.Clients/NuGet.VisualStudio.Common/IDE/VsHierarchyUtility.cs b/src/NuGet.Clients/NuGet.VisualStudio.Common/IDE/VsHierarchyUtility.cs index 9c56ec631b2..d8806d542c9 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio.Common/IDE/VsHierarchyUtility.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio.Common/IDE/VsHierarchyUtility.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.Globalization; using System.Linq; using System.Threading.Tasks; using EnvDTE; diff --git a/src/NuGet.Clients/NuGet.VisualStudio.Common/MessageHelper.cs b/src/NuGet.Clients/NuGet.VisualStudio.Common/MessageHelper.cs index 0c37a0c9c68..a663b838b1e 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio.Common/MessageHelper.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio.Common/MessageHelper.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Diagnostics.CodeAnalysis; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; using NuGet.Common; diff --git a/src/NuGet.Clients/NuGet.VisualStudio.Common/NuGetUIThreadHelper.cs b/src/NuGet.Clients/NuGet.VisualStudio.Common/NuGetUIThreadHelper.cs index 60a54c52723..d231de6367b 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio.Common/NuGetUIThreadHelper.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio.Common/NuGetUIThreadHelper.cs @@ -2,9 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Threading; using Microsoft; -using Microsoft.VisualStudio.ProjectSystem; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Threading; diff --git a/src/NuGet.Clients/NuGet.VisualStudio.Common/SolutionRestore/SolutionRestoreRequest.cs b/src/NuGet.Clients/NuGet.VisualStudio.Common/SolutionRestore/SolutionRestoreRequest.cs index 34b008494b1..3eb1258fda7 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio.Common/SolutionRestore/SolutionRestoreRequest.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio.Common/SolutionRestore/SolutionRestoreRequest.cs @@ -2,10 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using NuGet.Common; using NuGet.VisualStudio.Common; -using NuGet.VisualStudio.Telemetry; namespace NuGet.VisualStudio { diff --git a/src/NuGet.Clients/NuGet.VisualStudio.Contracts/NuGetServices.cs b/src/NuGet.Clients/NuGet.VisualStudio.Contracts/NuGetServices.cs index fb9c483ce36..f05e031e7a3 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio.Contracts/NuGetServices.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio.Contracts/NuGetServices.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.ServiceHub.Framework; -using StreamJsonRpc; namespace NuGet.VisualStudio.Contracts { diff --git a/src/NuGet.Clients/NuGet.VisualStudio.Implementation/Exceptions/ProjectNotRestoredException.cs b/src/NuGet.Clients/NuGet.VisualStudio.Implementation/Exceptions/ProjectNotRestoredException.cs index 456da7fdeb0..6f01408b8a7 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio.Implementation/Exceptions/ProjectNotRestoredException.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio.Implementation/Exceptions/ProjectNotRestoredException.cs @@ -2,10 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace NuGet.VisualStudio.Implementation.Exceptions { diff --git a/src/NuGet.Clients/NuGet.VisualStudio.Internal.Contracts/Formatters/PackageDeprecationMetadataContextInfoFormatter.cs b/src/NuGet.Clients/NuGet.VisualStudio.Internal.Contracts/Formatters/PackageDeprecationMetadataContextInfoFormatter.cs index d8d1d9298b9..ede0fec55b0 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio.Internal.Contracts/Formatters/PackageDeprecationMetadataContextInfoFormatter.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio.Internal.Contracts/Formatters/PackageDeprecationMetadataContextInfoFormatter.cs @@ -4,7 +4,6 @@ using System.Collections.Generic; using MessagePack; using MessagePack.Formatters; -using Microsoft; namespace NuGet.VisualStudio.Internal.Contracts { diff --git a/src/NuGet.Clients/NuGet.VisualStudio.OnlineEnvironment.Client/NuGetClientPackage.cs b/src/NuGet.Clients/NuGet.VisualStudio.OnlineEnvironment.Client/NuGetClientPackage.cs index 685ccb0e352..12cfc0f54cd 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio.OnlineEnvironment.Client/NuGetClientPackage.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio.OnlineEnvironment.Client/NuGetClientPackage.cs @@ -2,7 +2,6 @@ using System.Runtime.InteropServices; using System.Threading; using Microsoft.VisualStudio.Shell; -using NuGet.Common; using NuGet.PackageManagement.UI; using Task = System.Threading.Tasks.Task; diff --git a/src/NuGet.Clients/NuGet.VisualStudio.OnlineEnvironment.Client/Properties/AssemblyInfo.cs b/src/NuGet.Clients/NuGet.VisualStudio.OnlineEnvironment.Client/Properties/AssemblyInfo.cs index 96caa85db40..ea136b5fe29 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio.OnlineEnvironment.Client/Properties/AssemblyInfo.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio.OnlineEnvironment.Client/Properties/AssemblyInfo.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Reflection; -using System.Runtime.InteropServices; using Microsoft.VisualStudio.Shell; [assembly: ProvideCodeBase(CodeBase = @"$PackageFolder$\Lucene.Net.dll")] diff --git a/src/NuGet.Clients/NuGet.VisualStudio/AssemblyInfo.cs b/src/NuGet.Clients/NuGet.VisualStudio/AssemblyInfo.cs index d6f702333ac..e8aed0ba11a 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio/AssemblyInfo.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio/AssemblyInfo.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Reflection; using System.Runtime.InteropServices; // We're not really importing anything from a type library. This is just to make VS happy so we can embed interop types when diff --git a/src/NuGet.Clients/NuGet.VisualStudio/Extensibility/IVsPathContextProvider2.cs b/src/NuGet.Clients/NuGet.VisualStudio/Extensibility/IVsPathContextProvider2.cs index 971d02fa111..76df3a3ff9a 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio/Extensibility/IVsPathContextProvider2.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio/Extensibility/IVsPathContextProvider2.cs @@ -3,7 +3,6 @@ using System; using System.Runtime.InteropServices; -using System.Threading.Tasks; namespace NuGet.VisualStudio { diff --git a/src/NuGet.Clients/NuGet.VisualStudio/SolutionRestoreManager/IVsSolutionRestoreService5.cs b/src/NuGet.Clients/NuGet.VisualStudio/SolutionRestoreManager/IVsSolutionRestoreService5.cs index 95818ee9352..88b077fb1e0 100644 --- a/src/NuGet.Clients/NuGet.VisualStudio/SolutionRestoreManager/IVsSolutionRestoreService5.cs +++ b/src/NuGet.Clients/NuGet.VisualStudio/SolutionRestoreManager/IVsSolutionRestoreService5.cs @@ -3,8 +3,8 @@ #nullable enable -using System.Threading.Tasks; using System.Threading; +using System.Threading.Tasks; namespace NuGet.SolutionRestoreManager { diff --git a/src/NuGet.Core/NuGet.Build.Tasks.Pack/GetProjectReferencesFromAssetsFileTask.cs b/src/NuGet.Core/NuGet.Build.Tasks.Pack/GetProjectReferencesFromAssetsFileTask.cs index 80ad89f961c..41531ca9c90 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks.Pack/GetProjectReferencesFromAssetsFileTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks.Pack/GetProjectReferencesFromAssetsFileTask.cs @@ -2,13 +2,11 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using NuGet.Commands; using NuGet.Common; using NuGet.ProjectModel; diff --git a/src/NuGet.Core/NuGet.Build.Tasks.Pack/IsPackableFalseWarningTask.cs b/src/NuGet.Core/NuGet.Build.Tasks.Pack/IsPackableFalseWarningTask.cs index 96825afc1a8..86ee0434485 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks.Pack/IsPackableFalseWarningTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks.Pack/IsPackableFalseWarningTask.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Globalization; -using Microsoft.Build.Utilities; using NuGet.Common; namespace NuGet.Build.Tasks.Pack diff --git a/src/NuGet.Core/NuGet.Build.Tasks.Pack/PackTask.cs b/src/NuGet.Core/NuGet.Build.Tasks.Pack/PackTask.cs index 20ce17bda13..ed7eb95b61f 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks.Pack/PackTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks.Pack/PackTask.cs @@ -8,7 +8,6 @@ using NuGet.Common; using NuGet.Packaging; using ILogger = NuGet.Common.ILogger; -using PackageSpecificWarningProperties = NuGet.Commands.PackCommand.PackageSpecificWarningProperties; namespace NuGet.Build.Tasks.Pack { diff --git a/src/NuGet.Core/NuGet.Build.Tasks.Pack/PackTaskRequest.cs b/src/NuGet.Core/NuGet.Build.Tasks.Pack/PackTaskRequest.cs index 9c49deba970..2c9296520bc 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks.Pack/PackTaskRequest.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks.Pack/PackTaskRequest.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using NuGet.Commands; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Build.Tasks/Common/MSBuildUtility.cs b/src/NuGet.Core/NuGet.Build.Tasks/Common/MSBuildUtility.cs index ea5df2bc2a2..c8372655a7d 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/Common/MSBuildUtility.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/Common/MSBuildUtility.cs @@ -5,7 +5,6 @@ using System.Linq; using Microsoft.Build.Framework; using NuGet.Commands; -using NuGet.Common; namespace NuGet.Build { diff --git a/src/NuGet.Core/NuGet.Build.Tasks/GetCentralPackageVersionsTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/GetCentralPackageVersionsTask.cs index 2092d1cca75..a809581e497 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/GetCentralPackageVersionsTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/GetCentralPackageVersionsTask.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Newtonsoft.Json; diff --git a/src/NuGet.Core/NuGet.Build.Tasks/GetProjectTargetFrameworksTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/GetProjectTargetFrameworksTask.cs index 6f2ef4799e8..2720d640874 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/GetProjectTargetFrameworksTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/GetProjectTargetFrameworksTask.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using Newtonsoft.Json; using NuGet.Commands; diff --git a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreDotnetCliToolsTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreDotnetCliToolsTask.cs index b124a8e826e..877aa0bdb74 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreDotnetCliToolsTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreDotnetCliToolsTask.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Newtonsoft.Json; diff --git a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreFrameworkReferencesTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreFrameworkReferencesTask.cs index 94d372f8088..d2bf568fe44 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreFrameworkReferencesTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreFrameworkReferencesTask.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Newtonsoft.Json; diff --git a/src/NuGet.Core/NuGet.Build.Tasks/GetRestorePackageDownloadsTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/GetRestorePackageDownloadsTask.cs index 034a450d577..c9f99bde4b4 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/GetRestorePackageDownloadsTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/GetRestorePackageDownloadsTask.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Newtonsoft.Json; diff --git a/src/NuGet.Core/NuGet.Build.Tasks/GetRestorePackageReferencesTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/GetRestorePackageReferencesTask.cs index 03231204251..4da1e85bd88 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/GetRestorePackageReferencesTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/GetRestorePackageReferencesTask.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Newtonsoft.Json; diff --git a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreProjectJsonPathTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreProjectJsonPathTask.cs index f7fa258dbc9..fe8cd1f2de7 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreProjectJsonPathTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreProjectJsonPathTask.cs @@ -3,7 +3,6 @@ using System.IO; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using Newtonsoft.Json; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreProjectReferencesTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreProjectReferencesTask.cs index a66944954e0..929e97ea1db 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreProjectReferencesTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreProjectReferencesTask.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Newtonsoft.Json; diff --git a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreProjectStyleTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreProjectStyleTask.cs index 1fadd3654d7..22c5fe14588 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreProjectStyleTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreProjectStyleTask.cs @@ -1,9 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Globalization; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using NuGet.ProjectModel; namespace NuGet.Build.Tasks diff --git a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreSettingsTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreSettingsTask.cs index e19bf25e9b8..9bb1ba264ef 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreSettingsTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreSettingsTask.cs @@ -6,7 +6,6 @@ using System.IO; using System.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using Newtonsoft.Json; using NuGet.Commands; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreSolutionProjectsTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreSolutionProjectsTask.cs index 0159ebf5f53..805c804501b 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreSolutionProjectsTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/GetRestoreSolutionProjectsTask.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/NuGet.Core/NuGet.Build.Tasks/WarnForInvalidProjectsTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/WarnForInvalidProjectsTask.cs index 7e8ad5ec6f3..84be93b377b 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/WarnForInvalidProjectsTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/WarnForInvalidProjectsTask.cs @@ -4,7 +4,6 @@ using System; using System.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using NuGet.Commands; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Build.Tasks/WriteRestoreGraphTask.cs b/src/NuGet.Core/NuGet.Build.Tasks/WriteRestoreGraphTask.cs index 2862f2fda07..551a8aab270 100644 --- a/src/NuGet.Core/NuGet.Build.Tasks/WriteRestoreGraphTask.cs +++ b/src/NuGet.Core/NuGet.Build.Tasks/WriteRestoreGraphTask.cs @@ -6,7 +6,6 @@ using System.IO; using System.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using Newtonsoft.Json; using NuGet.Commands; diff --git a/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/DeleteCommand.cs b/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/DeleteCommand.cs index 40fe3355564..14f703f9e7d 100644 --- a/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/DeleteCommand.cs +++ b/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/DeleteCommand.cs @@ -3,7 +3,6 @@ using System; using System.Globalization; -using System.IO; using Microsoft.Extensions.CommandLineUtils; using NuGet.Commands; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/LocalsCommand.cs b/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/LocalsCommand.cs index 57d30f4dce2..0ad54d117e7 100644 --- a/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/LocalsCommand.cs +++ b/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/LocalsCommand.cs @@ -3,11 +3,9 @@ using System; using System.Globalization; -using System.IO; using Microsoft.Extensions.CommandLineUtils; using NuGet.Commands; using NuGet.Common; -using NuGet.Configuration; namespace NuGet.CommandLine.XPlat { diff --git a/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/PackageSearch/PackageSearchRunner.cs b/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/PackageSearch/PackageSearchRunner.cs index 7aec2574a38..31788283bf0 100644 --- a/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/PackageSearch/PackageSearchRunner.cs +++ b/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/PackageSearch/PackageSearchRunner.cs @@ -7,11 +7,11 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; +using NuGet.Commands; using NuGet.Common; using NuGet.Configuration; -using NuGet.Protocol.Core.Types; using NuGet.Protocol; -using NuGet.Commands; +using NuGet.Protocol.Core.Types; namespace NuGet.CommandLine.XPlat { diff --git a/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/Signing/VerifyCommand.cs b/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/Signing/VerifyCommand.cs index 917c0fe0bf5..faf7632a752 100644 --- a/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/Signing/VerifyCommand.cs +++ b/src/NuGet.Core/NuGet.CommandLine.XPlat/Commands/Signing/VerifyCommand.cs @@ -8,7 +8,6 @@ using Microsoft.Extensions.CommandLineUtils; using NuGet.Commands; using NuGet.Common; -using NuGet.Configuration; using NuGet.Packaging.Signing; using static NuGet.Commands.VerifyArgs; diff --git a/src/NuGet.Core/NuGet.CommandLine.XPlat/ListPackage/ListPackageReportFrameworkPackage.cs b/src/NuGet.Core/NuGet.CommandLine.XPlat/ListPackage/ListPackageReportFrameworkPackage.cs index 1f0f4fb00c5..9b481033e64 100644 --- a/src/NuGet.Core/NuGet.CommandLine.XPlat/ListPackage/ListPackageReportFrameworkPackage.cs +++ b/src/NuGet.Core/NuGet.CommandLine.XPlat/ListPackage/ListPackageReportFrameworkPackage.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using NuGet.Protocol; namespace NuGet.CommandLine.XPlat.ListPackage { diff --git a/src/NuGet.Core/NuGet.CommandLine.XPlat/Program.cs b/src/NuGet.Core/NuGet.CommandLine.XPlat/Program.cs index 24077ebee5b..e1c0dabc43e 100644 --- a/src/NuGet.Core/NuGet.CommandLine.XPlat/Program.cs +++ b/src/NuGet.Core/NuGet.CommandLine.XPlat/Program.cs @@ -3,15 +3,15 @@ using System; using System.Collections.Generic; +using System.CommandLine; +using System.CommandLine.Parsing; using System.Diagnostics; using System.Globalization; using System.Linq; +using System.Threading; using Microsoft.Extensions.CommandLineUtils; using NuGet.Commands; using NuGet.Common; -using System.CommandLine; -using System.Threading; -using System.CommandLine.Parsing; namespace NuGet.CommandLine.XPlat { diff --git a/src/NuGet.Core/NuGet.CommandLine.XPlat/Utility/XPlatUtility.cs b/src/NuGet.Core/NuGet.CommandLine.XPlat/Utility/XPlatUtility.cs index ac3c69a7bfd..3727fba8fc4 100644 --- a/src/NuGet.Core/NuGet.CommandLine.XPlat/Utility/XPlatUtility.cs +++ b/src/NuGet.Core/NuGet.CommandLine.XPlat/Utility/XPlatUtility.cs @@ -3,8 +3,8 @@ #nullable enable -using System.Globalization; using System; +using System.Globalization; using System.IO; using NuGet.Common; using NuGet.Configuration; diff --git a/src/NuGet.Core/NuGet.Commands/IProjectFactory.cs b/src/NuGet.Core/NuGet.Commands/IProjectFactory.cs index 4928ee62b3e..589a7606cc7 100644 --- a/src/NuGet.Core/NuGet.Commands/IProjectFactory.cs +++ b/src/NuGet.Core/NuGet.Commands/IProjectFactory.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using NuGet.Common; using NuGet.Packaging; diff --git a/src/NuGet.Core/NuGet.Commands/MSBuildPackTargetArgs.cs b/src/NuGet.Core/NuGet.Commands/MSBuildPackTargetArgs.cs index 3f53a876e17..3447c095306 100644 --- a/src/NuGet.Core/NuGet.Commands/MSBuildPackTargetArgs.cs +++ b/src/NuGet.Core/NuGet.Commands/MSBuildPackTargetArgs.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using NuGet.Frameworks; diff --git a/src/NuGet.Core/NuGet.Commands/RestoreCommand/CompatibilityChecker.cs b/src/NuGet.Core/NuGet.Commands/RestoreCommand/CompatibilityChecker.cs index bd3bd3929bc..9f3d861148f 100644 --- a/src/NuGet.Core/NuGet.Commands/RestoreCommand/CompatibilityChecker.cs +++ b/src/NuGet.Core/NuGet.Commands/RestoreCommand/CompatibilityChecker.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.Linq; using System.Threading.Tasks; @@ -13,7 +12,6 @@ using NuGet.DependencyResolver; using NuGet.Frameworks; using NuGet.LibraryModel; -using NuGet.Packaging; using NuGet.Packaging.Core; using NuGet.ProjectModel; using NuGet.Repositories; diff --git a/src/NuGet.Core/NuGet.Commands/RestoreCommand/ContentFiles/VirtualFileInfo.cs b/src/NuGet.Core/NuGet.Commands/RestoreCommand/ContentFiles/VirtualFileInfo.cs index 4da8cc362ac..99688646f57 100644 --- a/src/NuGet.Core/NuGet.Commands/RestoreCommand/ContentFiles/VirtualFileInfo.cs +++ b/src/NuGet.Core/NuGet.Commands/RestoreCommand/ContentFiles/VirtualFileInfo.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.Linq; using Microsoft.Extensions.FileProviders; namespace NuGet.Commands diff --git a/src/NuGet.Core/NuGet.Commands/RestoreCommand/DependencyGraphResolver.cs b/src/NuGet.Core/NuGet.Commands/RestoreCommand/DependencyGraphResolver.cs index 09a803fb2d2..0fff6587992 100644 --- a/src/NuGet.Core/NuGet.Commands/RestoreCommand/DependencyGraphResolver.cs +++ b/src/NuGet.Core/NuGet.Commands/RestoreCommand/DependencyGraphResolver.cs @@ -5,23 +5,22 @@ using System; using System.Collections.Generic; -using System.Threading.Tasks; +using System.Diagnostics; +using System.Globalization; +using System.Linq; using System.Threading; +using System.Threading.Tasks; using NuGet.Common; -using NuGet.Repositories; using NuGet.DependencyResolver; -using NuGet.ProjectModel; -using NuGet.Packaging; -using System.Globalization; -using System.Linq; -using NuGet.LibraryModel; using NuGet.Frameworks; +using NuGet.LibraryModel; +using NuGet.Packaging; +using NuGet.ProjectModel; +using NuGet.Repositories; using NuGet.RuntimeModel; using NuGet.Versioning; - using LibraryDependencyIndex = NuGet.Commands.DependencyGraphResolver.LibraryDependencyInterningTable.LibraryDependencyIndex; using LibraryRangeIndex = NuGet.Commands.DependencyGraphResolver.LibraryRangeInterningTable.LibraryRangeIndex; -using System.Diagnostics; namespace NuGet.Commands { diff --git a/src/NuGet.Core/NuGet.Commands/RestoreCommand/RequestFactory/NoOpRestoreResult.cs b/src/NuGet.Core/NuGet.Commands/RestoreCommand/RequestFactory/NoOpRestoreResult.cs index 84f92e6fdca..8b268867beb 100644 --- a/src/NuGet.Core/NuGet.Commands/RestoreCommand/RequestFactory/NoOpRestoreResult.cs +++ b/src/NuGet.Core/NuGet.Commands/RestoreCommand/RequestFactory/NoOpRestoreResult.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Commands/RestoreCommand/RequestFactory/RestoreSpecException.cs b/src/NuGet.Core/NuGet.Commands/RestoreCommand/RequestFactory/RestoreSpecException.cs index 55f954b8c1a..0e572f9a43e 100644 --- a/src/NuGet.Core/NuGet.Commands/RestoreCommand/RequestFactory/RestoreSpecException.cs +++ b/src/NuGet.Core/NuGet.Commands/RestoreCommand/RequestFactory/RestoreSpecException.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using System.Threading.Tasks; namespace NuGet.Commands { diff --git a/src/NuGet.Core/NuGet.Commands/RestoreCommand/ResolverConflict.cs b/src/NuGet.Core/NuGet.Commands/RestoreCommand/ResolverConflict.cs index 4f035e6fd4e..65cc521a6d2 100644 --- a/src/NuGet.Core/NuGet.Commands/RestoreCommand/ResolverConflict.cs +++ b/src/NuGet.Core/NuGet.Commands/RestoreCommand/ResolverConflict.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; -using NuGet.LibraryModel; namespace NuGet.Commands { diff --git a/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreCommandProviders.cs b/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreCommandProviders.cs index c05aab3c9a2..df7070eee49 100644 --- a/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreCommandProviders.cs +++ b/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreCommandProviders.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; using NuGet.Common; using NuGet.DependencyResolver; using NuGet.Protocol; diff --git a/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreResultPair.cs b/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreResultPair.cs index c77d409b9c8..100fee68778 100644 --- a/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreResultPair.cs +++ b/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreResultPair.cs @@ -1,11 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - namespace NuGet.Commands { public class RestoreResultPair diff --git a/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreSummaryRequest.cs b/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreSummaryRequest.cs index a04ce54d005..4fb9cdbd9bd 100644 --- a/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreSummaryRequest.cs +++ b/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreSummaryRequest.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using NuGet.Common; -using NuGet.Configuration; using NuGet.Protocol.Core.Types; namespace NuGet.Commands diff --git a/src/NuGet.Core/NuGet.Commands/SignCommand/CertificateFindOptions.cs b/src/NuGet.Core/NuGet.Commands/SignCommand/CertificateFindOptions.cs index 74a34cf04a5..0fa9649add0 100644 --- a/src/NuGet.Core/NuGet.Commands/SignCommand/CertificateFindOptions.cs +++ b/src/NuGet.Core/NuGet.Commands/SignCommand/CertificateFindOptions.cs @@ -1,12 +1,9 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Security; using System.Security.Cryptography.X509Certificates; using System.Threading; using NuGet.Commands.SignCommand; -using NuGet.Common; namespace NuGet.Commands { diff --git a/src/NuGet.Core/NuGet.Commands/SignCommand/IPasswordProvider.cs b/src/NuGet.Core/NuGet.Commands/SignCommand/IPasswordProvider.cs index 093f285f7bd..6e21a35baa9 100644 --- a/src/NuGet.Core/NuGet.Commands/SignCommand/IPasswordProvider.cs +++ b/src/NuGet.Core/NuGet.Commands/SignCommand/IPasswordProvider.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Security; using System.Threading; using System.Threading.Tasks; diff --git a/src/NuGet.Core/NuGet.Commands/SignCommand/ISignCommandRunner.cs b/src/NuGet.Core/NuGet.Commands/SignCommand/ISignCommandRunner.cs index 7429f8feee4..6df27bc6755 100644 --- a/src/NuGet.Core/NuGet.Commands/SignCommand/ISignCommandRunner.cs +++ b/src/NuGet.Core/NuGet.Commands/SignCommand/ISignCommandRunner.cs @@ -1,9 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; -using System.Text; using System.Threading.Tasks; namespace NuGet.Commands diff --git a/src/NuGet.Core/NuGet.Commands/Utility/AssetTargetFallbackUtility.cs b/src/NuGet.Core/NuGet.Commands/Utility/AssetTargetFallbackUtility.cs index d2b270f911e..bd1a5e98dcf 100644 --- a/src/NuGet.Core/NuGet.Commands/Utility/AssetTargetFallbackUtility.cs +++ b/src/NuGet.Core/NuGet.Commands/Utility/AssetTargetFallbackUtility.cs @@ -1,10 +1,8 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Linq; -using System.Text; using NuGet.Common; using NuGet.Frameworks; using NuGet.ProjectModel; diff --git a/src/NuGet.Core/NuGet.Commands/Utility/Extensions.cs b/src/NuGet.Core/NuGet.Commands/Utility/Extensions.cs index 5527894011a..663074ec5a6 100644 --- a/src/NuGet.Core/NuGet.Commands/Utility/Extensions.cs +++ b/src/NuGet.Core/NuGet.Commands/Utility/Extensions.cs @@ -1,15 +1,12 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using NuGet.Common; -using NuGet.DependencyResolver; using NuGet.Frameworks; using NuGet.LibraryModel; -using NuGet.Packaging.Signing; using NuGet.ProjectModel; namespace NuGet.Commands diff --git a/src/NuGet.Core/NuGet.Common/AsyncEnumerable/AggregateEnumerableAsync.cs b/src/NuGet.Core/NuGet.Common/AsyncEnumerable/AggregateEnumerableAsync.cs index d3089a51d27..749e2028024 100644 --- a/src/NuGet.Core/NuGet.Common/AsyncEnumerable/AggregateEnumerableAsync.cs +++ b/src/NuGet.Core/NuGet.Common/AsyncEnumerable/AggregateEnumerableAsync.cs @@ -1,9 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; -using System.Threading.Tasks; namespace NuGet.Common { diff --git a/src/NuGet.Core/NuGet.Common/CryptoHashUtility.cs b/src/NuGet.Core/NuGet.Common/CryptoHashUtility.cs index 11e9b1a0f51..67c4e481eac 100644 --- a/src/NuGet.Core/NuGet.Common/CryptoHashUtility.cs +++ b/src/NuGet.Core/NuGet.Common/CryptoHashUtility.cs @@ -6,7 +6,6 @@ using System.IO; using System.Reflection; using System.Security.Cryptography; -using System.Text; namespace NuGet.Common { diff --git a/src/NuGet.Core/NuGet.Common/Logging/NullLogger.cs b/src/NuGet.Core/NuGet.Common/Logging/NullLogger.cs index fee1aa66290..b77e932cd16 100644 --- a/src/NuGet.Core/NuGet.Common/Logging/NullLogger.cs +++ b/src/NuGet.Core/NuGet.Common/Logging/NullLogger.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Threading.Tasks; namespace NuGet.Common diff --git a/src/NuGet.Core/NuGet.Common/Telemetry/TelemetryEvent.cs b/src/NuGet.Core/NuGet.Common/Telemetry/TelemetryEvent.cs index 5e3e395313c..cace77f6fde 100644 --- a/src/NuGet.Core/NuGet.Common/Telemetry/TelemetryEvent.cs +++ b/src/NuGet.Core/NuGet.Common/Telemetry/TelemetryEvent.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; namespace NuGet.Common diff --git a/src/NuGet.Core/NuGet.Configuration/Exceptions/NuGetConfigurationException.cs b/src/NuGet.Core/NuGet.Configuration/Exceptions/NuGetConfigurationException.cs index 1887ba494b4..10d45888444 100644 --- a/src/NuGet.Core/NuGet.Configuration/Exceptions/NuGetConfigurationException.cs +++ b/src/NuGet.Core/NuGet.Configuration/Exceptions/NuGetConfigurationException.cs @@ -2,10 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.Serialization; -using System.Threading.Tasks; namespace NuGet.Configuration { diff --git a/src/NuGet.Core/NuGet.Configuration/Settings/Items/ClearItem.cs b/src/NuGet.Core/NuGet.Configuration/Settings/Items/ClearItem.cs index f3242f0e2ac..e5ae4b8e4df 100644 --- a/src/NuGet.Core/NuGet.Configuration/Settings/Items/ClearItem.cs +++ b/src/NuGet.Core/NuGet.Configuration/Settings/Items/ClearItem.cs @@ -1,7 +1,6 @@ // Copyright(c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Xml.Linq; namespace NuGet.Configuration diff --git a/src/NuGet.Core/NuGet.Configuration/Settings/SettingElement.cs b/src/NuGet.Core/NuGet.Configuration/Settings/SettingElement.cs index 76b8057056d..7da764d1c00 100644 --- a/src/NuGet.Core/NuGet.Configuration/Settings/SettingElement.cs +++ b/src/NuGet.Core/NuGet.Configuration/Settings/SettingElement.cs @@ -6,7 +6,6 @@ using System.Globalization; using System.Linq; using System.Xml.Linq; -using NuGet.Shared; namespace NuGet.Configuration { diff --git a/src/NuGet.Core/NuGet.Configuration/Utility/XElementUtility.cs b/src/NuGet.Core/NuGet.Configuration/Utility/XElementUtility.cs index d93dae81215..e3efa9dcc25 100644 --- a/src/NuGet.Core/NuGet.Configuration/Utility/XElementUtility.cs +++ b/src/NuGet.Core/NuGet.Configuration/Utility/XElementUtility.cs @@ -2,9 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.IO; using System.Linq; -using System.Xml; using System.Xml.Linq; namespace NuGet.Configuration diff --git a/src/NuGet.Core/NuGet.Credentials/DefaultNetworkCredentialsCredentialProvider.cs b/src/NuGet.Core/NuGet.Credentials/DefaultNetworkCredentialsCredentialProvider.cs index 24e85c33f5a..2ffb7d3160f 100644 --- a/src/NuGet.Core/NuGet.Credentials/DefaultNetworkCredentialsCredentialProvider.cs +++ b/src/NuGet.Core/NuGet.Credentials/DefaultNetworkCredentialsCredentialProvider.cs @@ -5,7 +5,6 @@ using System.Net; using System.Threading; using System.Threading.Tasks; -using NuGet.Common; using NuGet.Configuration; namespace NuGet.Credentials diff --git a/src/NuGet.Core/NuGet.Credentials/PluginException.cs b/src/NuGet.Core/NuGet.Credentials/PluginException.cs index dc8c800fb69..bfdb4198128 100644 --- a/src/NuGet.Core/NuGet.Credentials/PluginException.cs +++ b/src/NuGet.Core/NuGet.Credentials/PluginException.cs @@ -3,8 +3,6 @@ using System; using System.Globalization; -using System.Linq; -using NuGet.Credentials; namespace NuGet.Credentials { diff --git a/src/NuGet.Core/NuGet.DependencyResolver.Core/GraphModel/AnalyzeResult.cs b/src/NuGet.Core/NuGet.DependencyResolver.Core/GraphModel/AnalyzeResult.cs index 17f3ebbb15c..bd335fbd5ca 100644 --- a/src/NuGet.Core/NuGet.DependencyResolver.Core/GraphModel/AnalyzeResult.cs +++ b/src/NuGet.Core/NuGet.DependencyResolver.Core/GraphModel/AnalyzeResult.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; namespace NuGet.DependencyResolver diff --git a/src/NuGet.Core/NuGet.LibraryModel/FrameworkDependency.cs b/src/NuGet.Core/NuGet.LibraryModel/FrameworkDependency.cs index 2ca6d59fd24..963697c8aa0 100644 --- a/src/NuGet.Core/NuGet.LibraryModel/FrameworkDependency.cs +++ b/src/NuGet.Core/NuGet.LibraryModel/FrameworkDependency.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using NuGet.Common; using NuGet.Shared; diff --git a/src/NuGet.Core/NuGet.LibraryModel/LibraryDependency.cs b/src/NuGet.Core/NuGet.LibraryModel/LibraryDependency.cs index 9cc7b0cb3fd..d9bd69ded0a 100644 --- a/src/NuGet.Core/NuGet.LibraryModel/LibraryDependency.cs +++ b/src/NuGet.Core/NuGet.LibraryModel/LibraryDependency.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.PackageManagement/Audit/AuditChecker.cs b/src/NuGet.Core/NuGet.PackageManagement/Audit/AuditChecker.cs index d1ac781b7ea..97685ddae77 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/Audit/AuditChecker.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/Audit/AuditChecker.cs @@ -5,19 +5,19 @@ using System; using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Common; using NuGet.Packaging.Core; +using NuGet.ProjectModel; using NuGet.Protocol; -using NuGet.Protocol.Model; -using NuGet.Versioning; using NuGet.Protocol.Core.Types; -using System.Diagnostics; -using NuGet.ProjectModel; +using NuGet.Protocol.Model; using NuGet.Shared; -using System.Globalization; +using NuGet.Versioning; namespace NuGet.PackageManagement { diff --git a/src/NuGet.Core/NuGet.PackageManagement/BuildIntegratedPackageReference.cs b/src/NuGet.Core/NuGet.PackageManagement/BuildIntegratedPackageReference.cs index ebd25707fe1..89b839c1b1a 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/BuildIntegratedPackageReference.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/BuildIntegratedPackageReference.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Linq; using NuGet.Frameworks; using NuGet.LibraryModel; using NuGet.Packaging; diff --git a/src/NuGet.Core/NuGet.PackageManagement/BuildIntegration/BuildIntegratedRestoreUtility.cs b/src/NuGet.Core/NuGet.PackageManagement/BuildIntegration/BuildIntegratedRestoreUtility.cs index 5c50b201171..2e8f5935f4c 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/BuildIntegration/BuildIntegratedRestoreUtility.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/BuildIntegration/BuildIntegratedRestoreUtility.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -15,7 +14,6 @@ using NuGet.ProjectManagement.Projects; using NuGet.ProjectModel; using NuGet.Shared; -using NuGet.Versioning; namespace NuGet.PackageManagement { diff --git a/src/NuGet.Core/NuGet.PackageManagement/Context/IDEExecutionContext.cs b/src/NuGet.Core/NuGet.PackageManagement/Context/IDEExecutionContext.cs index 560280d31e0..9976f7f955a 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/Context/IDEExecutionContext.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/Context/IDEExecutionContext.cs @@ -4,7 +4,6 @@ using System; using System.Threading.Tasks; using NuGet.Packaging.Core; -using NuGet.ProjectManagement; namespace NuGet.PackageManagement { diff --git a/src/NuGet.Core/NuGet.PackageManagement/Context/PackageManagementContext.cs b/src/NuGet.Core/NuGet.PackageManagement/Context/PackageManagementContext.cs index 605659c69d6..b5da6bf2ced 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/Context/PackageManagementContext.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/Context/PackageManagementContext.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using NuGet.Configuration; using NuGet.ProjectManagement; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.PackageManagement/EmptyNuGetProjectContext.cs b/src/NuGet.Core/NuGet.PackageManagement/EmptyNuGetProjectContext.cs index 00cc4c08187..b0796055e19 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/EmptyNuGetProjectContext.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/EmptyNuGetProjectContext.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.Xml.Linq; using NuGet.Common; using NuGet.Packaging; diff --git a/src/NuGet.Core/NuGet.PackageManagement/ProjectContextLogger.cs b/src/NuGet.Core/NuGet.PackageManagement/ProjectContextLogger.cs index 3d21176fa4f..a5cf1b87db3 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/ProjectContextLogger.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/ProjectContextLogger.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Threading.Tasks; using NuGet.Common; using NuGet.ProjectManagement; diff --git a/src/NuGet.Core/NuGet.PackageManagement/Projects/BuildIntegratedNuGetProject.cs b/src/NuGet.Core/NuGet.PackageManagement/Projects/BuildIntegratedNuGetProject.cs index e4d8894b300..79328d84da1 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/Projects/BuildIntegratedNuGetProject.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/Projects/BuildIntegratedNuGetProject.cs @@ -4,12 +4,8 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using NuGet.LibraryModel; -using NuGet.Packaging; using NuGet.Packaging.Core; using NuGet.ProjectModel; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.PackageManagement/Projects/FolderNuGetProject.cs b/src/NuGet.Core/NuGet.PackageManagement/Projects/FolderNuGetProject.cs index 0cb6541a797..eea974336ac 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/Projects/FolderNuGetProject.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/Projects/FolderNuGetProject.cs @@ -12,8 +12,6 @@ using NuGet.PackageManagement; using NuGet.Packaging; using NuGet.Packaging.Core; -using NuGet.Packaging.PackageExtraction; -using NuGet.Packaging.Signing; using NuGet.Protocol; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.PackageManagement/Resolution/GatherCache.cs b/src/NuGet.Core/NuGet.PackageManagement/Resolution/GatherCache.cs index 223b076dcaa..a73dd8a7cdb 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/Resolution/GatherCache.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/Resolution/GatherCache.cs @@ -7,7 +7,6 @@ using System.Linq; using NuGet.Frameworks; using NuGet.Packaging.Core; -using NuGet.ProjectManagement; using NuGet.Protocol.Core.Types; using NuGet.Shared; diff --git a/src/NuGet.Core/NuGet.PackageManagement/Resolution/GatherContext.cs b/src/NuGet.Core/NuGet.PackageManagement/Resolution/GatherContext.cs index 53588636510..6fb92b97333 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/Resolution/GatherContext.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/Resolution/GatherContext.cs @@ -1,14 +1,12 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using NuGet.Configuration; using NuGet.Frameworks; using NuGet.Packaging.Core; using NuGet.ProjectManagement; using NuGet.Protocol.Core.Types; -using NuGet.Resolver; namespace NuGet.PackageManagement { diff --git a/src/NuGet.Core/NuGet.PackageManagement/Utility/BuildIntegratedProjectUtility.cs b/src/NuGet.Core/NuGet.PackageManagement/Utility/BuildIntegratedProjectUtility.cs index 0b0e1c1acd0..3261914eaed 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/Utility/BuildIntegratedProjectUtility.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/Utility/BuildIntegratedProjectUtility.cs @@ -5,7 +5,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using NuGet.Common; using NuGet.LibraryModel; using NuGet.Packaging; using NuGet.Packaging.Core; diff --git a/src/NuGet.Core/NuGet.PackageManagement/Utility/Constants.cs b/src/NuGet.Core/NuGet.PackageManagement/Utility/Constants.cs index c46c105ffeb..5cfbaf429f0 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/Utility/Constants.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/Utility/Constants.cs @@ -5,8 +5,6 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; -using NuGet.Packaging.Core; -using NuGet.Versioning; namespace NuGet.ProjectManagement { diff --git a/src/NuGet.Core/NuGet.PackageManagement/Utility/XmlUtility.cs b/src/NuGet.Core/NuGet.PackageManagement/Utility/XmlUtility.cs index bf774799bd7..8c165246264 100644 --- a/src/NuGet.Core/NuGet.PackageManagement/Utility/XmlUtility.cs +++ b/src/NuGet.Core/NuGet.PackageManagement/Utility/XmlUtility.cs @@ -5,7 +5,6 @@ using System.IO; using System.Xml; using System.Xml.Linq; -using XmlUtility = NuGet.Shared.XmlUtility; namespace NuGet.ProjectManagement { diff --git a/src/NuGet.Core/NuGet.Packaging/Core/FrameworkNameValidatorUtility.cs b/src/NuGet.Core/NuGet.Packaging/Core/FrameworkNameValidatorUtility.cs index a177563d9fd..cff7067c292 100644 --- a/src/NuGet.Core/NuGet.Packaging/Core/FrameworkNameValidatorUtility.cs +++ b/src/NuGet.Core/NuGet.Packaging/Core/FrameworkNameValidatorUtility.cs @@ -1,10 +1,5 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Runtime.Versioning; -using System.Text; -using System.Threading.Tasks; using NuGet.Frameworks; namespace NuGet.Packaging.Rules diff --git a/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/LicenseMetadata.cs b/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/LicenseMetadata.cs index 2de1346b671..b3e307decb8 100644 --- a/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/LicenseMetadata.cs +++ b/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/LicenseMetadata.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.Net; using NuGet.Packaging.Licenses; using NuGet.Shared; diff --git a/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/ManifestFile.cs b/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/ManifestFile.cs index 696cd701593..7b2495cfacc 100644 --- a/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/ManifestFile.cs +++ b/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/ManifestFile.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.IO; using System.Linq; using NuGet.Common; using NuGet.Packaging.PackageCreation.Resources; diff --git a/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/PackageReferenceSet.cs b/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/PackageReferenceSet.cs index a6aaf1356e7..2df3aa865e3 100644 --- a/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/PackageReferenceSet.cs +++ b/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/PackageReferenceSet.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.IO; using System.Linq; using NuGet.Frameworks; using NuGet.Packaging.PackageCreation.Resources; diff --git a/src/NuGet.Core/NuGet.Packaging/PackageCreation/Utility/XmlUtility.cs b/src/NuGet.Core/NuGet.Packaging/PackageCreation/Utility/XmlUtility.cs index 23675a7cf69..410ba5c96e3 100644 --- a/src/NuGet.Core/NuGet.Packaging/PackageCreation/Utility/XmlUtility.cs +++ b/src/NuGet.Core/NuGet.Packaging/PackageCreation/Utility/XmlUtility.cs @@ -4,7 +4,6 @@ using System; using System.IO; using System.Xml.Linq; -using XmlUtility = NuGet.Shared.XmlUtility; namespace NuGet.Packaging { diff --git a/src/NuGet.Core/NuGet.Packaging/PackageReaderBase.cs b/src/NuGet.Core/NuGet.Packaging/PackageReaderBase.cs index 8346bb71b4a..a4b1bb7e959 100644 --- a/src/NuGet.Core/NuGet.Packaging/PackageReaderBase.cs +++ b/src/NuGet.Core/NuGet.Packaging/PackageReaderBase.cs @@ -9,7 +9,6 @@ using System.Threading; using System.Threading.Tasks; using NuGet.Common; -using NuGet.Configuration; using NuGet.Frameworks; using NuGet.Packaging.Core; using NuGet.Packaging.Signing; diff --git a/src/NuGet.Core/NuGet.Packaging/Rules/BestPractice/MissingReadmeRule.cs b/src/NuGet.Core/NuGet.Packaging/Rules/BestPractice/MissingReadmeRule.cs index 352dc739b6c..a5b7c4930fe 100644 --- a/src/NuGet.Core/NuGet.Packaging/Rules/BestPractice/MissingReadmeRule.cs +++ b/src/NuGet.Core/NuGet.Packaging/Rules/BestPractice/MissingReadmeRule.cs @@ -4,9 +4,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Packaging/Rules/DependenciesGroupsForEachTFMRule.cs b/src/NuGet.Core/NuGet.Packaging/Rules/DependenciesGroupsForEachTFMRule.cs index 09866a090ee..a6f9d7aa91a 100644 --- a/src/NuGet.Core/NuGet.Packaging/Rules/DependenciesGroupsForEachTFMRule.cs +++ b/src/NuGet.Core/NuGet.Packaging/Rules/DependenciesGroupsForEachTFMRule.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/src/NuGet.Core/NuGet.Packaging/Rules/IPackageRule.cs b/src/NuGet.Core/NuGet.Packaging/Rules/IPackageRule.cs index a9b94f8ada8..4c3ef53b47b 100644 --- a/src/NuGet.Core/NuGet.Packaging/Rules/IPackageRule.cs +++ b/src/NuGet.Core/NuGet.Packaging/Rules/IPackageRule.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Packaging/Rules/InvalidPrereleaseDependencyRule.cs b/src/NuGet.Core/NuGet.Packaging/Rules/InvalidPrereleaseDependencyRule.cs index f3c284ed431..22e9b9f8de2 100644 --- a/src/NuGet.Core/NuGet.Packaging/Rules/InvalidPrereleaseDependencyRule.cs +++ b/src/NuGet.Core/NuGet.Packaging/Rules/InvalidPrereleaseDependencyRule.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Globalization; using System.Linq; diff --git a/src/NuGet.Core/NuGet.Packaging/Rules/MisplacedAssemblyUnderLibRule.cs b/src/NuGet.Core/NuGet.Packaging/Rules/MisplacedAssemblyUnderLibRule.cs index e863a9bd071..02d7203bf62 100644 --- a/src/NuGet.Core/NuGet.Packaging/Rules/MisplacedAssemblyUnderLibRule.cs +++ b/src/NuGet.Core/NuGet.Packaging/Rules/MisplacedAssemblyUnderLibRule.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.Globalization; using System.IO; -using System.Linq; using NuGet.Common; namespace NuGet.Packaging.Rules diff --git a/src/NuGet.Core/NuGet.Packaging/Rules/XdtTransformsInPackageReferenceProjectRule.cs b/src/NuGet.Core/NuGet.Packaging/Rules/XdtTransformsInPackageReferenceProjectRule.cs index 78e6171107b..a1979b67af3 100644 --- a/src/NuGet.Core/NuGet.Packaging/Rules/XdtTransformsInPackageReferenceProjectRule.cs +++ b/src/NuGet.Core/NuGet.Packaging/Rules/XdtTransformsInPackageReferenceProjectRule.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.IO; using System.Linq; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/Cms/CmsFactory.cs b/src/NuGet.Core/NuGet.Packaging/Signing/Cms/CmsFactory.cs index 88d698f80be..66348fcf49d 100644 --- a/src/NuGet.Core/NuGet.Packaging/Signing/Cms/CmsFactory.cs +++ b/src/NuGet.Core/NuGet.Packaging/Signing/Cms/CmsFactory.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Security.Cryptography; using System.Security.Cryptography.Pkcs; namespace NuGet.Packaging.Signing diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/DerEncoding/DerEncoder.cs b/src/NuGet.Core/NuGet.Packaging/Signing/DerEncoding/DerEncoder.cs index 744b8b9cfcc..65bd6623d72 100644 --- a/src/NuGet.Core/NuGet.Packaging/Signing/DerEncoding/DerEncoder.cs +++ b/src/NuGet.Core/NuGet.Packaging/Signing/DerEncoding/DerEncoder.cs @@ -8,7 +8,6 @@ using System.Diagnostics; using System.Numerics; using System.Security.Cryptography; -using System.Text; namespace NuGet.Packaging.Signing.DerEncoding { diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/Package/ISignedPackage.cs b/src/NuGet.Core/NuGet.Packaging/Signing/Package/ISignedPackage.cs index bf46bef61a0..2b0f57f3c00 100644 --- a/src/NuGet.Core/NuGet.Packaging/Signing/Package/ISignedPackage.cs +++ b/src/NuGet.Core/NuGet.Packaging/Signing/Package/ISignedPackage.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using NuGet.Packaging.Core; - namespace NuGet.Packaging.Signing { /// diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/Package/ISignedPackageWriter.cs b/src/NuGet.Core/NuGet.Packaging/Signing/Package/ISignedPackageWriter.cs index d8fcaf2cd43..515d22f35c9 100644 --- a/src/NuGet.Core/NuGet.Packaging/Signing/Package/ISignedPackageWriter.cs +++ b/src/NuGet.Core/NuGet.Packaging/Signing/Package/ISignedPackageWriter.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.Security.Cryptography; using System.Threading; using System.Threading.Tasks; diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/SignatureException.cs b/src/NuGet.Core/NuGet.Packaging/Signing/SignatureException.cs index b219f30ed57..0aff07c3a2c 100644 --- a/src/NuGet.Core/NuGet.Packaging/Signing/SignatureException.cs +++ b/src/NuGet.Core/NuGet.Packaging/Signing/SignatureException.cs @@ -3,10 +3,8 @@ using System; using System.Collections.Generic; -using System.Linq; using NuGet.Common; using NuGet.Packaging.Core; -using NuGet.Shared; namespace NuGet.Packaging.Signing { diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/Timestamp/Rfc3161TimestampWin32.cs b/src/NuGet.Core/NuGet.Packaging/Signing/Timestamp/Rfc3161TimestampWin32.cs index bb511f84d87..9614d068325 100644 --- a/src/NuGet.Core/NuGet.Packaging/Signing/Timestamp/Rfc3161TimestampWin32.cs +++ b/src/NuGet.Core/NuGet.Packaging/Signing/Timestamp/Rfc3161TimestampWin32.cs @@ -3,9 +3,7 @@ // See the LICENSE file in the project root for more information. using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Text; namespace NuGet.Packaging.Signing { diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/Timestamp/Timestamp.cs b/src/NuGet.Core/NuGet.Packaging/Signing/Timestamp/Timestamp.cs index 4c9acd42df4..025bba06dd5 100644 --- a/src/NuGet.Core/NuGet.Packaging/Signing/Timestamp/Timestamp.cs +++ b/src/NuGet.Core/NuGet.Packaging/Signing/Timestamp/Timestamp.cs @@ -2,11 +2,11 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using NuGet.Common; using System.Collections.Generic; using System.Globalization; -using System.Security.Cryptography.X509Certificates; using System.Linq; +using System.Security.Cryptography.X509Certificates; +using NuGet.Common; #if IS_SIGNING_SUPPORTED using System.Security.Cryptography.Pkcs; diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/Utility/RepositorySignatureInfoUtility.cs b/src/NuGet.Core/NuGet.Packaging/Signing/Utility/RepositorySignatureInfoUtility.cs index bf63f852c12..ac6b6245903 100644 --- a/src/NuGet.Core/NuGet.Packaging/Signing/Utility/RepositorySignatureInfoUtility.cs +++ b/src/NuGet.Core/NuGet.Packaging/Signing/Utility/RepositorySignatureInfoUtility.cs @@ -3,10 +3,8 @@ using System; using System.Collections.Generic; -using System.Collections.ObjectModel; using NuGet.Common; using NuGet.Packaging.Core; -using NuGet.Shared; namespace NuGet.Packaging.Signing { diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/Utility/SigningUtility.cs b/src/NuGet.Core/NuGet.Packaging/Signing/Utility/SigningUtility.cs index e3321789bbf..e3f3564c88b 100644 --- a/src/NuGet.Core/NuGet.Packaging/Signing/Utility/SigningUtility.cs +++ b/src/NuGet.Core/NuGet.Packaging/Signing/Utility/SigningUtility.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.Security.Cryptography; #if IS_SIGNING_SUPPORTED diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/Verification/ISignatureVerificationProvider.cs b/src/NuGet.Core/NuGet.Packaging/Signing/Verification/ISignatureVerificationProvider.cs index 4ee64bd0ac0..7773a48c036 100644 --- a/src/NuGet.Core/NuGet.Packaging/Signing/Verification/ISignatureVerificationProvider.cs +++ b/src/NuGet.Core/NuGet.Packaging/Signing/Verification/ISignatureVerificationProvider.cs @@ -3,7 +3,6 @@ using System.Threading; using System.Threading.Tasks; -using NuGet.Common; namespace NuGet.Packaging.Signing { diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/Verification/InvalidSignaturePackageVerificationResult.cs b/src/NuGet.Core/NuGet.Packaging/Signing/Verification/InvalidSignaturePackageVerificationResult.cs index a86b1dbeeac..dec79c4c1ff 100644 --- a/src/NuGet.Core/NuGet.Packaging/Signing/Verification/InvalidSignaturePackageVerificationResult.cs +++ b/src/NuGet.Core/NuGet.Packaging/Signing/Verification/InvalidSignaturePackageVerificationResult.cs @@ -1,9 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; -using System.Text; namespace NuGet.Packaging.Signing { diff --git a/src/NuGet.Core/NuGet.Packaging/Signing/Verification/UnsignedPackageVerificationResult.cs b/src/NuGet.Core/NuGet.Packaging/Signing/Verification/UnsignedPackageVerificationResult.cs index 6c012645204..c9ed4b21410 100644 --- a/src/NuGet.Core/NuGet.Packaging/Signing/Verification/UnsignedPackageVerificationResult.cs +++ b/src/NuGet.Core/NuGet.Packaging/Signing/Verification/UnsignedPackageVerificationResult.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using NuGet.Packaging.Core; namespace NuGet.Packaging.Signing { diff --git a/src/NuGet.Core/NuGet.Packaging/Telemetry/PackageExtractionTelemetryEvent.cs b/src/NuGet.Core/NuGet.Packaging/Telemetry/PackageExtractionTelemetryEvent.cs index 3376904015d..9cf6a367edf 100644 --- a/src/NuGet.Core/NuGet.Packaging/Telemetry/PackageExtractionTelemetryEvent.cs +++ b/src/NuGet.Core/NuGet.Packaging/Telemetry/PackageExtractionTelemetryEvent.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.ProjectModel/IExternalProjectReferenceProvider.cs b/src/NuGet.Core/NuGet.ProjectModel/IExternalProjectReferenceProvider.cs index 89de998eb9e..73e09af98bd 100644 --- a/src/NuGet.Core/NuGet.ProjectModel/IExternalProjectReferenceProvider.cs +++ b/src/NuGet.Core/NuGet.ProjectModel/IExternalProjectReferenceProvider.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using NuGet.ProjectModel; namespace NuGet.ProjectModel { diff --git a/src/NuGet.Core/NuGet.ProjectModel/LockFile/BuildAction.cs b/src/NuGet.Core/NuGet.ProjectModel/LockFile/BuildAction.cs index 88ac019bff1..c5c76395b5c 100644 --- a/src/NuGet.Core/NuGet.ProjectModel/LockFile/BuildAction.cs +++ b/src/NuGet.Core/NuGet.ProjectModel/LockFile/BuildAction.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Concurrent; -using System.Collections.Generic; namespace NuGet.ProjectModel { diff --git a/src/NuGet.Core/NuGet.ProjectModel/LockFile/LockFileRuntimeTarget.cs b/src/NuGet.Core/NuGet.ProjectModel/LockFile/LockFileRuntimeTarget.cs index 77994cc1126..a02ea36fe81 100644 --- a/src/NuGet.Core/NuGet.ProjectModel/LockFile/LockFileRuntimeTarget.cs +++ b/src/NuGet.Core/NuGet.ProjectModel/LockFile/LockFileRuntimeTarget.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -using System; - namespace NuGet.ProjectModel { public class LockFileRuntimeTarget : LockFileItem diff --git a/src/NuGet.Core/NuGet.ProjectModel/PackageSpecExtensions.cs b/src/NuGet.Core/NuGet.ProjectModel/PackageSpecExtensions.cs index b22de76fe4d..44343f7b9a9 100644 --- a/src/NuGet.Core/NuGet.ProjectModel/PackageSpecExtensions.cs +++ b/src/NuGet.Core/NuGet.ProjectModel/PackageSpecExtensions.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Linq; using NuGet.Frameworks; diff --git a/src/NuGet.Core/NuGet.ProjectModel/ProjectLockFile/PackagesLockFile.cs b/src/NuGet.Core/NuGet.ProjectModel/ProjectLockFile/PackagesLockFile.cs index 8ea577f5b39..a5f3afb7754 100644 --- a/src/NuGet.Core/NuGet.ProjectModel/ProjectLockFile/PackagesLockFile.cs +++ b/src/NuGet.Core/NuGet.ProjectModel/ProjectLockFile/PackagesLockFile.cs @@ -3,8 +3,6 @@ using System; using System.Collections.Generic; -using System.Text; -using NuGet.Common; using NuGet.Shared; namespace NuGet.ProjectModel diff --git a/src/NuGet.Core/NuGet.ProjectModel/ProjectLockFile/PackagesLockFileFormat.cs b/src/NuGet.Core/NuGet.ProjectModel/ProjectLockFile/PackagesLockFileFormat.cs index bafeb89f9df..a7a6fa61215 100644 --- a/src/NuGet.Core/NuGet.ProjectModel/ProjectLockFile/PackagesLockFileFormat.cs +++ b/src/NuGet.Core/NuGet.ProjectModel/ProjectLockFile/PackagesLockFileFormat.cs @@ -4,7 +4,6 @@ using System; using System.Globalization; using System.IO; -using System.IO.Pipes; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; diff --git a/src/NuGet.Core/NuGet.ProjectModel/ProjectRestoreReference.cs b/src/NuGet.Core/NuGet.ProjectModel/ProjectRestoreReference.cs index c4e8bd987dd..c810e43f9a8 100644 --- a/src/NuGet.Core/NuGet.ProjectModel/ProjectRestoreReference.cs +++ b/src/NuGet.Core/NuGet.ProjectModel/ProjectRestoreReference.cs @@ -2,9 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; -using NuGet.Frameworks; using NuGet.LibraryModel; using NuGet.Shared; diff --git a/src/NuGet.Core/NuGet.ProjectModel/ProjectRestoreSettings.cs b/src/NuGet.Core/NuGet.ProjectModel/ProjectRestoreSettings.cs index ae1d8e9c65e..a5e666058d7 100644 --- a/src/NuGet.Core/NuGet.ProjectModel/ProjectRestoreSettings.cs +++ b/src/NuGet.Core/NuGet.ProjectModel/ProjectRestoreSettings.cs @@ -1,9 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; -using System.Text; using NuGet.Shared; namespace NuGet.ProjectModel diff --git a/src/NuGet.Core/NuGet.Protocol/DependencyInfo/ResolverMetadataClient.cs b/src/NuGet.Core/NuGet.Protocol/DependencyInfo/ResolverMetadataClient.cs index 6e16e31ff74..64b34332fa9 100644 --- a/src/NuGet.Core/NuGet.Protocol/DependencyInfo/ResolverMetadataClient.cs +++ b/src/NuGet.Core/NuGet.Protocol/DependencyInfo/ResolverMetadataClient.cs @@ -2,12 +2,9 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; -using System.Net; -using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Newtonsoft.Json.Linq; diff --git a/src/NuGet.Core/NuGet.Protocol/Exceptions/FatalProtocolException.cs b/src/NuGet.Core/NuGet.Protocol/Exceptions/FatalProtocolException.cs index fcb1e9dac1d..017b9f594ae 100644 --- a/src/NuGet.Core/NuGet.Protocol/Exceptions/FatalProtocolException.cs +++ b/src/NuGet.Core/NuGet.Protocol/Exceptions/FatalProtocolException.cs @@ -3,7 +3,6 @@ using System; using System.Runtime.Serialization; -using NuGet.Common; namespace NuGet.Protocol.Core.Types { diff --git a/src/NuGet.Core/NuGet.Protocol/Exceptions/PackageNotFoundProtocolException.cs b/src/NuGet.Core/NuGet.Protocol/Exceptions/PackageNotFoundProtocolException.cs index d8013512cd2..d48f1ba0c8b 100644 --- a/src/NuGet.Core/NuGet.Protocol/Exceptions/PackageNotFoundProtocolException.cs +++ b/src/NuGet.Core/NuGet.Protocol/Exceptions/PackageNotFoundProtocolException.cs @@ -4,7 +4,6 @@ using System; using System.Globalization; using NuGet.Packaging.Core; -using NuGet.Protocol.Core.Types; namespace NuGet.Protocol { diff --git a/src/NuGet.Core/NuGet.Protocol/Extensions/FactoryExtensionsVS.cs b/src/NuGet.Core/NuGet.Protocol/Extensions/FactoryExtensionsVS.cs index d7371d7816a..a09e8260719 100644 --- a/src/NuGet.Core/NuGet.Protocol/Extensions/FactoryExtensionsVS.cs +++ b/src/NuGet.Core/NuGet.Protocol/Extensions/FactoryExtensionsVS.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using NuGet.Protocol; using NuGet.Protocol.Core.Types; namespace NuGet.Protocol.VisualStudio diff --git a/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpCacheUtility.cs b/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpCacheUtility.cs index e6fbed59425..2fcef9d2e77 100644 --- a/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpCacheUtility.cs +++ b/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpCacheUtility.cs @@ -6,7 +6,6 @@ using System.Net.Http; using System.Threading; using System.Threading.Tasks; -using NuGet.Common; using NuGet.Protocol.Core.Types; namespace NuGet.Protocol diff --git a/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpRetryHandlerRequest.cs b/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpRetryHandlerRequest.cs index afcb6a1cac1..908c990a4b2 100644 --- a/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpRetryHandlerRequest.cs +++ b/src/NuGet.Core/NuGet.Protocol/HttpSource/HttpRetryHandlerRequest.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Net.Http; -using NuGet.Common; namespace NuGet.Protocol { diff --git a/src/NuGet.Core/NuGet.Protocol/LegacyFeed/AutoCompleteResourceV2FeedProvider.cs b/src/NuGet.Core/NuGet.Protocol/LegacyFeed/AutoCompleteResourceV2FeedProvider.cs index 29a9eee71e1..1465074e86c 100644 --- a/src/NuGet.Core/NuGet.Protocol/LegacyFeed/AutoCompleteResourceV2FeedProvider.cs +++ b/src/NuGet.Core/NuGet.Protocol/LegacyFeed/AutoCompleteResourceV2FeedProvider.cs @@ -4,7 +4,6 @@ using System; using System.Threading; using System.Threading.Tasks; -using NuGet.Protocol; using NuGet.Protocol.Core.Types; namespace NuGet.Protocol diff --git a/src/NuGet.Core/NuGet.Protocol/LegacyFeed/DependencyInfoResourceV2FeedProvider.cs b/src/NuGet.Core/NuGet.Protocol/LegacyFeed/DependencyInfoResourceV2FeedProvider.cs index 2c6573e341a..db1c952d43c 100644 --- a/src/NuGet.Core/NuGet.Protocol/LegacyFeed/DependencyInfoResourceV2FeedProvider.cs +++ b/src/NuGet.Core/NuGet.Protocol/LegacyFeed/DependencyInfoResourceV2FeedProvider.cs @@ -4,7 +4,6 @@ using System; using System.Threading; using System.Threading.Tasks; -using NuGet.Protocol; using NuGet.Protocol.Core.Types; namespace NuGet.Protocol diff --git a/src/NuGet.Core/NuGet.Protocol/LegacyFeed/DownloadResourceV2FeedProvider.cs b/src/NuGet.Core/NuGet.Protocol/LegacyFeed/DownloadResourceV2FeedProvider.cs index ff6b85c6c84..687eb68506e 100644 --- a/src/NuGet.Core/NuGet.Protocol/LegacyFeed/DownloadResourceV2FeedProvider.cs +++ b/src/NuGet.Core/NuGet.Protocol/LegacyFeed/DownloadResourceV2FeedProvider.cs @@ -4,7 +4,6 @@ using System; using System.Threading; using System.Threading.Tasks; -using NuGet.Protocol; using NuGet.Protocol.Core.Types; namespace NuGet.Protocol diff --git a/src/NuGet.Core/NuGet.Protocol/LegacyFeed/MetadataResourceV2FeedProvider.cs b/src/NuGet.Core/NuGet.Protocol/LegacyFeed/MetadataResourceV2FeedProvider.cs index 2b8c0a4ced6..c9fd368f9e6 100644 --- a/src/NuGet.Core/NuGet.Protocol/LegacyFeed/MetadataResourceV2FeedProvider.cs +++ b/src/NuGet.Core/NuGet.Protocol/LegacyFeed/MetadataResourceV2FeedProvider.cs @@ -4,7 +4,6 @@ using System; using System.Threading; using System.Threading.Tasks; -using NuGet.Protocol; using NuGet.Protocol.Core.Types; namespace NuGet.Protocol diff --git a/src/NuGet.Core/NuGet.Protocol/LegacyFeed/ODataServiceDocumentResourceV2Provider.cs b/src/NuGet.Core/NuGet.Protocol/LegacyFeed/ODataServiceDocumentResourceV2Provider.cs index 267821bb0a0..ec94fce03a8 100644 --- a/src/NuGet.Core/NuGet.Protocol/LegacyFeed/ODataServiceDocumentResourceV2Provider.cs +++ b/src/NuGet.Core/NuGet.Protocol/LegacyFeed/ODataServiceDocumentResourceV2Provider.cs @@ -3,8 +3,6 @@ using System; using System.Collections.Concurrent; -using System.Globalization; -using System.Net.Http; using System.Threading; using System.Threading.Tasks; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Protocol/LegacyFeed/V2FeedListResource.cs b/src/NuGet.Core/NuGet.Protocol/LegacyFeed/V2FeedListResource.cs index 2f28ef5e2e4..84ccbe27041 100644 --- a/src/NuGet.Core/NuGet.Protocol/LegacyFeed/V2FeedListResource.cs +++ b/src/NuGet.Core/NuGet.Protocol/LegacyFeed/V2FeedListResource.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Linq; using System.Threading; diff --git a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/FindLocalPackagesResource.cs b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/FindLocalPackagesResource.cs index 45b18279041..5620ea2ec37 100644 --- a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/FindLocalPackagesResource.cs +++ b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/FindLocalPackagesResource.cs @@ -5,11 +5,9 @@ using System.Collections.Generic; using System.Linq; using System.Threading; -using System.Threading.Tasks; using NuGet.Common; using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; -using NuGet.Versioning; namespace NuGet.Protocol { diff --git a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalAutoCompleteResourceProvider.cs b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalAutoCompleteResourceProvider.cs index 2f0db8eeb41..a1cfcf12171 100644 --- a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalAutoCompleteResourceProvider.cs +++ b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalAutoCompleteResourceProvider.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalDependencyInfoResourceProvider.cs b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalDependencyInfoResourceProvider.cs index 0aa3826c6d8..68d93fab3c0 100644 --- a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalDependencyInfoResourceProvider.cs +++ b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalDependencyInfoResourceProvider.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalMetadataResourceProvider.cs b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalMetadataResourceProvider.cs index 19df993654c..5c7ba396d0d 100644 --- a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalMetadataResourceProvider.cs +++ b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalMetadataResourceProvider.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalPackageListResource.cs b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalPackageListResource.cs index 381f5ebadbd..49bc6d65f4a 100644 --- a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalPackageListResource.cs +++ b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalPackageListResource.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Linq; using System.Threading; diff --git a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalPackageMetadataResourceProvider.cs b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalPackageMetadataResourceProvider.cs index e8e64f0a32c..420b928f9fc 100644 --- a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalPackageMetadataResourceProvider.cs +++ b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalPackageMetadataResourceProvider.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalPackageSearchResourceProvider.cs b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalPackageSearchResourceProvider.cs index b2d4023f0d9..dcae5affeb1 100644 --- a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalPackageSearchResourceProvider.cs +++ b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalPackageSearchResourceProvider.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalV2FindPackageByIdResourceProvider.cs b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalV2FindPackageByIdResourceProvider.cs index c45340230c8..e02221a2dc3 100644 --- a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalV2FindPackageByIdResourceProvider.cs +++ b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalV2FindPackageByIdResourceProvider.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Concurrent; -using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalV3FindPackageByIdResource.cs b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalV3FindPackageByIdResource.cs index b3753f34085..55c067e14d7 100644 --- a/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalV3FindPackageByIdResource.cs +++ b/src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalV3FindPackageByIdResource.cs @@ -7,7 +7,6 @@ using System.Diagnostics; using System.Globalization; using System.IO; -using System.Security.Cryptography; using System.Threading; using System.Threading.Tasks; using System.Xml; diff --git a/src/NuGet.Core/NuGet.Protocol/NullSourceCacheContext.cs b/src/NuGet.Core/NuGet.Protocol/NullSourceCacheContext.cs index a02d082c6df..99c65fecf2b 100644 --- a/src/NuGet.Core/NuGet.Protocol/NullSourceCacheContext.cs +++ b/src/NuGet.Core/NuGet.Protocol/NullSourceCacheContext.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; - namespace NuGet.Protocol.Core.Types { public class NullSourceCacheContext : SourceCacheContext diff --git a/src/NuGet.Core/NuGet.Protocol/PackagesFolder/LocalPackageFileCache.cs b/src/NuGet.Core/NuGet.Protocol/PackagesFolder/LocalPackageFileCache.cs index ff56d601312..7b32322b7db 100644 --- a/src/NuGet.Core/NuGet.Protocol/PackagesFolder/LocalPackageFileCache.cs +++ b/src/NuGet.Core/NuGet.Protocol/PackagesFolder/LocalPackageFileCache.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.Linq; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Protocol/PackagesFolder/LocalPackageSourceInfo.cs b/src/NuGet.Core/NuGet.Protocol/PackagesFolder/LocalPackageSourceInfo.cs index 413267820ba..35ef76d192b 100644 --- a/src/NuGet.Core/NuGet.Protocol/PackagesFolder/LocalPackageSourceInfo.cs +++ b/src/NuGet.Core/NuGet.Protocol/PackagesFolder/LocalPackageSourceInfo.cs @@ -2,9 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace NuGet.Repositories { diff --git a/src/NuGet.Core/NuGet.Protocol/PackagesFolder/NuGetv3LocalRepository.cs b/src/NuGet.Core/NuGet.Protocol/PackagesFolder/NuGetv3LocalRepository.cs index 06b106d74ae..09bad9b6985 100644 --- a/src/NuGet.Core/NuGet.Protocol/PackagesFolder/NuGetv3LocalRepository.cs +++ b/src/NuGet.Core/NuGet.Protocol/PackagesFolder/NuGetv3LocalRepository.cs @@ -5,7 +5,6 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; -using System.Threading; using NuGet.Common; using NuGet.Packaging; using NuGet.Protocol; diff --git a/src/NuGet.Core/NuGet.Protocol/Plugins/IPluginProcess.cs b/src/NuGet.Core/NuGet.Protocol/Plugins/IPluginProcess.cs index f976048f3e6..902da24f6bb 100644 --- a/src/NuGet.Core/NuGet.Protocol/Plugins/IPluginProcess.cs +++ b/src/NuGet.Core/NuGet.Protocol/Plugins/IPluginProcess.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Threading; namespace NuGet.Protocol.Plugins { diff --git a/src/NuGet.Core/NuGet.Protocol/Plugins/Messages/GetOperationClaimsRequest.cs b/src/NuGet.Core/NuGet.Protocol/Plugins/Messages/GetOperationClaimsRequest.cs index afe819b09f3..19367cf25c1 100644 --- a/src/NuGet.Core/NuGet.Protocol/Plugins/Messages/GetOperationClaimsRequest.cs +++ b/src/NuGet.Core/NuGet.Protocol/Plugins/Messages/GetOperationClaimsRequest.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; diff --git a/src/NuGet.Core/NuGet.Protocol/Plugins/Plugin.cs b/src/NuGet.Core/NuGet.Protocol/Plugins/Plugin.cs index 42cbe5b47c4..398bcc5d81a 100644 --- a/src/NuGet.Core/NuGet.Protocol/Plugins/Plugin.cs +++ b/src/NuGet.Core/NuGet.Protocol/Plugins/Plugin.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Globalization; using System.IO; using System.Threading; diff --git a/src/NuGet.Core/NuGet.Protocol/Plugins/PluginCacheEntry.cs b/src/NuGet.Core/NuGet.Protocol/Plugins/PluginCacheEntry.cs index cd7ad29334f..e0ca5585e60 100644 --- a/src/NuGet.Core/NuGet.Protocol/Plugins/PluginCacheEntry.cs +++ b/src/NuGet.Core/NuGet.Protocol/Plugins/PluginCacheEntry.cs @@ -7,7 +7,6 @@ using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; -using NuGet.Common; namespace NuGet.Protocol.Plugins { diff --git a/src/NuGet.Core/NuGet.Protocol/Plugins/PluginDiscoverer.cs b/src/NuGet.Core/NuGet.Protocol/Plugins/PluginDiscoverer.cs index 78120afa74d..1a9eb98db69 100644 --- a/src/NuGet.Core/NuGet.Protocol/Plugins/PluginDiscoverer.cs +++ b/src/NuGet.Core/NuGet.Protocol/Plugins/PluginDiscoverer.cs @@ -3,9 +3,7 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Protocol/Plugins/PluginDiscoveryUtility.cs b/src/NuGet.Core/NuGet.Protocol/Plugins/PluginDiscoveryUtility.cs index 63be997a917..ef48f1fbd05 100644 --- a/src/NuGet.Core/NuGet.Protocol/Plugins/PluginDiscoveryUtility.cs +++ b/src/NuGet.Core/NuGet.Protocol/Plugins/PluginDiscoveryUtility.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Reflection; using NuGet.Common; namespace NuGet.Protocol.Plugins diff --git a/src/NuGet.Core/NuGet.Protocol/Plugins/Receiver.cs b/src/NuGet.Core/NuGet.Protocol/Plugins/Receiver.cs index 5f74e16956f..865d9b201ec 100644 --- a/src/NuGet.Core/NuGet.Protocol/Plugins/Receiver.cs +++ b/src/NuGet.Core/NuGet.Protocol/Plugins/Receiver.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Threading; -using System.Threading.Tasks; namespace NuGet.Protocol.Plugins { diff --git a/src/NuGet.Core/NuGet.Protocol/Plugins/StandardOutputReceiver.cs b/src/NuGet.Core/NuGet.Protocol/Plugins/StandardOutputReceiver.cs index 0ca4be0bd56..bb6fafe8fac 100644 --- a/src/NuGet.Core/NuGet.Protocol/Plugins/StandardOutputReceiver.cs +++ b/src/NuGet.Core/NuGet.Protocol/Plugins/StandardOutputReceiver.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Threading; -using System.Threading.Tasks; namespace NuGet.Protocol.Plugins { diff --git a/src/NuGet.Core/NuGet.Protocol/Providers/AutoCompleteResourceV3Provider.cs b/src/NuGet.Core/NuGet.Protocol/Providers/AutoCompleteResourceV3Provider.cs index 37636b3213c..868e049fe42 100644 --- a/src/NuGet.Core/NuGet.Protocol/Providers/AutoCompleteResourceV3Provider.cs +++ b/src/NuGet.Core/NuGet.Protocol/Providers/AutoCompleteResourceV3Provider.cs @@ -4,7 +4,6 @@ using System; using System.Threading; using System.Threading.Tasks; -using NuGet.Protocol; using NuGet.Protocol.Core.Types; namespace NuGet.Protocol diff --git a/src/NuGet.Core/NuGet.Protocol/Providers/DownloadResourceV3Provider.cs b/src/NuGet.Core/NuGet.Protocol/Providers/DownloadResourceV3Provider.cs index d6b34464650..cab6fed6d14 100644 --- a/src/NuGet.Core/NuGet.Protocol/Providers/DownloadResourceV3Provider.cs +++ b/src/NuGet.Core/NuGet.Protocol/Providers/DownloadResourceV3Provider.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.Protocol/Providers/PackageMetadataResourceV3Provider.cs b/src/NuGet.Core/NuGet.Protocol/Providers/PackageMetadataResourceV3Provider.cs index f42dc110497..0916f2db6d5 100644 --- a/src/NuGet.Core/NuGet.Protocol/Providers/PackageMetadataResourceV3Provider.cs +++ b/src/NuGet.Core/NuGet.Protocol/Providers/PackageMetadataResourceV3Provider.cs @@ -4,7 +4,6 @@ using System; using System.Threading; using System.Threading.Tasks; -using NuGet.Protocol; using NuGet.Protocol.Core.Types; namespace NuGet.Protocol diff --git a/src/NuGet.Core/NuGet.Protocol/Providers/PackageUpdateResourceV2Provider.cs b/src/NuGet.Core/NuGet.Protocol/Providers/PackageUpdateResourceV2Provider.cs index aad763278c4..573c348487c 100644 --- a/src/NuGet.Core/NuGet.Protocol/Providers/PackageUpdateResourceV2Provider.cs +++ b/src/NuGet.Core/NuGet.Protocol/Providers/PackageUpdateResourceV2Provider.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Net; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.Protocol/Providers/PackageUpdateResourceV3Provider.cs b/src/NuGet.Core/NuGet.Protocol/Providers/PackageUpdateResourceV3Provider.cs index 74d5c2a13b8..783731b7367 100644 --- a/src/NuGet.Core/NuGet.Protocol/Providers/PackageUpdateResourceV3Provider.cs +++ b/src/NuGet.Core/NuGet.Protocol/Providers/PackageUpdateResourceV3Provider.cs @@ -3,7 +3,6 @@ using System; using System.Globalization; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.Protocol/Providers/RegistrationResourceV3Provider.cs b/src/NuGet.Core/NuGet.Protocol/Providers/RegistrationResourceV3Provider.cs index d761b5d5f4e..0509fefbeda 100644 --- a/src/NuGet.Core/NuGet.Protocol/Providers/RegistrationResourceV3Provider.cs +++ b/src/NuGet.Core/NuGet.Protocol/Providers/RegistrationResourceV3Provider.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.Protocol/Providers/ReportAbuseResourceV3Provider.cs b/src/NuGet.Core/NuGet.Protocol/Providers/ReportAbuseResourceV3Provider.cs index 213ced91cc4..cc2dfd7386f 100644 --- a/src/NuGet.Core/NuGet.Protocol/Providers/ReportAbuseResourceV3Provider.cs +++ b/src/NuGet.Core/NuGet.Protocol/Providers/ReportAbuseResourceV3Provider.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.Protocol/Providers/SymbolPackageUpdateResourceV3Provider.cs b/src/NuGet.Core/NuGet.Protocol/Providers/SymbolPackageUpdateResourceV3Provider.cs index 3affc6d7559..b76613b293a 100644 --- a/src/NuGet.Core/NuGet.Protocol/Providers/SymbolPackageUpdateResourceV3Provider.cs +++ b/src/NuGet.Core/NuGet.Protocol/Providers/SymbolPackageUpdateResourceV3Provider.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Globalization; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/src/NuGet.Core/NuGet.Protocol/Providers/V3FeedListResourceProvider.cs b/src/NuGet.Core/NuGet.Protocol/Providers/V3FeedListResourceProvider.cs index 07e8c290fe4..1754259a09d 100644 --- a/src/NuGet.Core/NuGet.Protocol/Providers/V3FeedListResourceProvider.cs +++ b/src/NuGet.Core/NuGet.Protocol/Providers/V3FeedListResourceProvider.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Protocol/Resources/DownloadResource.cs b/src/NuGet.Core/NuGet.Protocol/Resources/DownloadResource.cs index cd01014d2ab..0433a9c8522 100644 --- a/src/NuGet.Core/NuGet.Protocol/Resources/DownloadResource.cs +++ b/src/NuGet.Core/NuGet.Protocol/Resources/DownloadResource.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Threading; using System.Threading.Tasks; using NuGet.Common; diff --git a/src/NuGet.Core/NuGet.Protocol/SourcePackageDependencyInfo.cs b/src/NuGet.Core/NuGet.Protocol/SourcePackageDependencyInfo.cs index b61ea23fa0f..089da53376b 100644 --- a/src/NuGet.Core/NuGet.Protocol/SourcePackageDependencyInfo.cs +++ b/src/NuGet.Core/NuGet.Protocol/SourcePackageDependencyInfo.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; using NuGet.Packaging.Core; using NuGet.Versioning; diff --git a/src/NuGet.Core/NuGet.Protocol/Utility/OfflineFeedUtility.cs b/src/NuGet.Core/NuGet.Protocol/Utility/OfflineFeedUtility.cs index 528a8a3d5b2..1602b765daa 100644 --- a/src/NuGet.Core/NuGet.Protocol/Utility/OfflineFeedUtility.cs +++ b/src/NuGet.Core/NuGet.Protocol/Utility/OfflineFeedUtility.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; @@ -12,8 +11,6 @@ using NuGet.Common; using NuGet.Packaging; using NuGet.Packaging.Core; -using NuGet.Packaging.PackageExtraction; -using NuGet.Packaging.Signing; namespace NuGet.Protocol.Core.Types { diff --git a/src/NuGet.Core/NuGet.Protocol/Utility/StreamExtensions.cs b/src/NuGet.Core/NuGet.Protocol/Utility/StreamExtensions.cs index bd9f7846c86..7b722f3a6fd 100644 --- a/src/NuGet.Core/NuGet.Protocol/Utility/StreamExtensions.cs +++ b/src/NuGet.Core/NuGet.Protocol/Utility/StreamExtensions.cs @@ -4,7 +4,6 @@ using System.IO; using System.Threading; using System.Threading.Tasks; -using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace NuGet.Protocol diff --git a/src/NuGet.Core/NuGet.Resolver/ResolverInputSort.cs b/src/NuGet.Core/NuGet.Resolver/ResolverInputSort.cs index 37b0ba9621d..80594d01512 100644 --- a/src/NuGet.Core/NuGet.Resolver/ResolverInputSort.cs +++ b/src/NuGet.Core/NuGet.Resolver/ResolverInputSort.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; namespace NuGet.Resolver { diff --git a/test/NuGet.Clients.FuncTests/NuGet.CommandLine.FuncTest/Caching/NuGetExe/INuGetExe.cs b/test/NuGet.Clients.FuncTests/NuGet.CommandLine.FuncTest/Caching/NuGetExe/INuGetExe.cs index def9a47a136..d144899d352 100644 --- a/test/NuGet.Clients.FuncTests/NuGet.CommandLine.FuncTest/Caching/NuGetExe/INuGetExe.cs +++ b/test/NuGet.Clients.FuncTests/NuGet.CommandLine.FuncTest/Caching/NuGetExe/INuGetExe.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using NuGet.Test.Utility; namespace NuGet.CommandLine.Test.Caching diff --git a/test/NuGet.Clients.FuncTests/NuGet.CommandLine.FuncTest/RetryRunnerTest.cs b/test/NuGet.Clients.FuncTests/NuGet.CommandLine.FuncTest/RetryRunnerTest.cs index cfbab678c1f..1c76f47ae80 100644 --- a/test/NuGet.Clients.FuncTests/NuGet.CommandLine.FuncTest/RetryRunnerTest.cs +++ b/test/NuGet.Clients.FuncTests/NuGet.CommandLine.FuncTest/RetryRunnerTest.cs @@ -2,10 +2,10 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using Xunit; -using Xunit.Abstractions; using FluentAssertions; using NuGet.Test.Utility; +using Xunit; +using Xunit.Abstractions; namespace NuGet.CommandLine.FuncTest { diff --git a/test/NuGet.Clients.FuncTests/NuGet.MSSigning.Extensions.FuncTest/CommonAssemblyInfo.cs b/test/NuGet.Clients.FuncTests/NuGet.MSSigning.Extensions.FuncTest/CommonAssemblyInfo.cs index 1309513fe18..618082bc4a8 100644 --- a/test/NuGet.Clients.FuncTests/NuGet.MSSigning.Extensions.FuncTest/CommonAssemblyInfo.cs +++ b/test/NuGet.Clients.FuncTests/NuGet.MSSigning.Extensions.FuncTest/CommonAssemblyInfo.cs @@ -1,6 +1,3 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Reflection; -using System.Resources; -using System.Runtime.InteropServices; diff --git a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/CommandLineParserTests.cs b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/CommandLineParserTests.cs index 3f32cb7cb2a..74d9e0e9cf2 100644 --- a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/CommandLineParserTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/CommandLineParserTests.cs @@ -1,12 +1,12 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Collections.Generic; -using Xunit; -using NuGet.Commands; using System; -using Moq; +using System.Collections.Generic; using System.Reflection; +using Moq; +using NuGet.Commands; +using Xunit; namespace NuGet.CommandLine.Test { diff --git a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/ConsoleTest.cs b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/ConsoleTest.cs index fe5fbea0531..bf38e48f2d9 100644 --- a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/ConsoleTest.cs +++ b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/ConsoleTest.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using NuGet.Test.Utility; using Xunit; namespace NuGet.CommandLine.Test diff --git a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/MSBuildProjectSystemTests.cs b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/MSBuildProjectSystemTests.cs index 5f465d80eff..2d50bc6596f 100644 --- a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/MSBuildProjectSystemTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/MSBuildProjectSystemTests.cs @@ -3,9 +3,7 @@ using System; using System.IO; -using System.Security; using System.Text; -using System.Threading.Tasks; using System.Xml.Linq; using Moq; using NuGet.Common; diff --git a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/MsBuildToolsetTest.cs b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/MsBuildToolsetTest.cs index 88694587ba9..f9a79692373 100644 --- a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/MsBuildToolsetTest.cs +++ b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/MsBuildToolsetTest.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using NuGet.Common; using NuGet.Test.Utility; using Xunit; diff --git a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreMessageTest.cs b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreMessageTest.cs index 02d7de1a7e3..a5d942c7a51 100644 --- a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreMessageTest.cs +++ b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreMessageTest.cs @@ -4,11 +4,9 @@ using System; using System.Linq; using System.Threading.Tasks; -using NuGet.Common; using NuGet.Frameworks; using NuGet.ProjectModel; using NuGet.Test.Utility; -using Test.Utility; using Xunit; namespace NuGet.CommandLine.Test diff --git a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreTransitiveLoggingTests.cs b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreTransitiveLoggingTests.cs index 934bba5fa17..5a9c7982cfe 100644 --- a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreTransitiveLoggingTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreTransitiveLoggingTests.cs @@ -3,14 +3,12 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using FluentAssertions; using NuGet.Frameworks; using NuGet.Packaging.Core; using NuGet.Test.Utility; -using Test.Utility; using Xunit; namespace NuGet.CommandLine.Test diff --git a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreUAPPackageReferenceTests.cs b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreUAPPackageReferenceTests.cs index db47247b1e7..79af9651b52 100644 --- a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreUAPPackageReferenceTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/RestoreUAPPackageReferenceTests.cs @@ -1,17 +1,10 @@ -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.IO; using System.Linq; using System.Threading.Tasks; using System.Xml.Linq; -using Newtonsoft.Json.Linq; using NuGet.Frameworks; using NuGet.Packaging; -using NuGet.Packaging.Core; using NuGet.ProjectModel; using NuGet.Test.Utility; -using NuGet.Versioning; using Xunit; namespace NuGet.CommandLine.Test diff --git a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/Util.cs b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/Util.cs index cc0534e6b4e..0f1154b8c3f 100644 --- a/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/Util.cs +++ b/test/NuGet.Clients.Tests/NuGet.CommandLine.Test/Util.cs @@ -7,7 +7,6 @@ using System.IO; using System.Linq; using System.Net; -using System.Reflection; using System.Text; using System.Xml.Linq; using FluentAssertions; diff --git a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/ConverterTests.cs b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/ConverterTests.cs index a0bf0b18ccc..d750239b0f0 100644 --- a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/ConverterTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/ConverterTests.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Globalization; -using NuGet.PackageManagement.UI; using Xunit; namespace NuGet.PackageManagement.UI.Test diff --git a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Converters/VersionToStringConverterTests.cs b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Converters/VersionToStringConverterTests.cs index ef904cfa860..5ff9f8cebdd 100644 --- a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Converters/VersionToStringConverterTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Converters/VersionToStringConverterTests.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Threading; using NuGet.Versioning; using Xunit; diff --git a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Models/LocalDetailControlModelTests.cs b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Models/LocalDetailControlModelTests.cs index a744cbec6f2..d7e972f4ea2 100644 --- a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Models/LocalDetailControlModelTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Models/LocalDetailControlModelTests.cs @@ -9,7 +9,6 @@ using Microsoft.VisualStudio.Sdk.TestFramework; using Microsoft.VisualStudio.Threading; using Moq; -using NuGet.PackageManagement.UI.Utility; using NuGet.Test.Utility; using NuGet.Versioning; using NuGet.VisualStudio; diff --git a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/PackageLicenseUtilitiesTests.cs b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/PackageLicenseUtilitiesTests.cs index 67e6eb1277f..4240b9fe841 100644 --- a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/PackageLicenseUtilitiesTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/PackageLicenseUtilitiesTests.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Net.Http; using System.Threading; using System.Threading.Tasks; using System.Windows.Documents; diff --git a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/PackageManagerListItemsTest.cs b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/PackageManagerListItemsTest.cs index d1d0e758249..91131cb71b5 100644 --- a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/PackageManagerListItemsTest.cs +++ b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/PackageManagerListItemsTest.cs @@ -9,7 +9,6 @@ using Microsoft.VisualStudio.Sdk.TestFramework; using Microsoft.VisualStudio.Threading; using Moq; -using NuGet.PackageManagement.UI.Utility; using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; using NuGet.Versioning; diff --git a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/UserInterfaceService/NuGetUIContextTests.cs b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/UserInterfaceService/NuGetUIContextTests.cs index 42dfa3d904c..1275020d129 100644 --- a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/UserInterfaceService/NuGetUIContextTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/UserInterfaceService/NuGetUIContextTests.cs @@ -9,7 +9,6 @@ using Microsoft.ServiceHub.Framework; using Moq; using NuGet.Configuration; -using NuGet.PackageManagement.UI.Utility; using NuGet.PackageManagement.VisualStudio; using NuGet.Packaging; using NuGet.Packaging.Core; diff --git a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Utility/PackageSourceMappingUtilityTests.cs b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Utility/PackageSourceMappingUtilityTests.cs index 983c5e8dd42..c7dc77c1dbc 100644 --- a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Utility/PackageSourceMappingUtilityTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Utility/PackageSourceMappingUtilityTests.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading.Tasks; diff --git a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Utility/ProjectUtilityTests.cs b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Utility/ProjectUtilityTests.cs index 00bce91c405..42d4350ec31 100644 --- a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Utility/ProjectUtilityTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Utility/ProjectUtilityTests.cs @@ -8,7 +8,6 @@ using System.Threading.Tasks; using Microsoft.ServiceHub.Framework; using Moq; -using NuGet.PackageManagement.VisualStudio; using NuGet.VisualStudio.Internal.Contracts; using Xunit; diff --git a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Xamls/InfiniteScrollListTests.cs b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Xamls/InfiniteScrollListTests.cs index cfb5d9a6106..e453399e7c0 100644 --- a/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Xamls/InfiniteScrollListTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.PackageManagement.UI.Test/Xamls/InfiniteScrollListTests.cs @@ -10,7 +10,6 @@ using Microsoft.VisualStudio.Threading; using Moq; using NuGet.Common; -using NuGet.PackageManagement.UI.Utility; using NuGet.PackageManagement.VisualStudio; using NuGet.VisualStudio; using NuGet.VisualStudio.Internal.Contracts; diff --git a/test/NuGet.Clients.Tests/NuGet.PackageManagement.VisualStudio.Test/Feeds/FeedTestUtils.cs b/test/NuGet.Clients.Tests/NuGet.PackageManagement.VisualStudio.Test/Feeds/FeedTestUtils.cs index d9011619e27..64dcda4a289 100644 --- a/test/NuGet.Clients.Tests/NuGet.PackageManagement.VisualStudio.Test/Feeds/FeedTestUtils.cs +++ b/test/NuGet.Clients.Tests/NuGet.PackageManagement.VisualStudio.Test/Feeds/FeedTestUtils.cs @@ -2,9 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading; using System.Threading.Tasks; using Moq; diff --git a/test/NuGet.Clients.Tests/NuGet.PackageManagement.VisualStudio.Test/Feeds/SourceRepositoryExtensionsTests.cs b/test/NuGet.Clients.Tests/NuGet.PackageManagement.VisualStudio.Test/Feeds/SourceRepositoryExtensionsTests.cs index 0ce8c219f6c..3b7b38cf0a8 100644 --- a/test/NuGet.Clients.Tests/NuGet.PackageManagement.VisualStudio.Test/Feeds/SourceRepositoryExtensionsTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.PackageManagement.VisualStudio.Test/Feeds/SourceRepositoryExtensionsTests.cs @@ -2,20 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Linq; -using System.Security.RightsManagement; using System.Threading; using System.Threading.Tasks; -using Moq; -using NuGet.Common; -using NuGet.Frameworks; -using NuGet.Packaging; -using NuGet.Packaging.Core; -using NuGet.ProjectManagement; -using NuGet.Protocol; -using NuGet.Protocol.Core.Types; -using NuGet.Test.Utility; using NuGet.Versioning; using Xunit; diff --git a/test/NuGet.Clients.Tests/NuGet.PackageManagement.VisualStudio.Test/VSRestoreSettingsUtilityTests.cs b/test/NuGet.Clients.Tests/NuGet.PackageManagement.VisualStudio.Test/VSRestoreSettingsUtilityTests.cs index 4fdfc532825..c7c42e5a30d 100644 --- a/test/NuGet.Clients.Tests/NuGet.PackageManagement.VisualStudio.Test/VSRestoreSettingsUtilityTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.PackageManagement.VisualStudio.Test/VSRestoreSettingsUtilityTests.cs @@ -3,12 +3,10 @@ using System.Collections.Generic; using System.Linq; -using NuGet.Commands; using NuGet.Configuration; using NuGet.ProjectModel; using NuGet.Test.Utility; using Xunit; -using Xunit.Extensions; namespace NuGet.PackageManagement.VisualStudio.Test { diff --git a/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VSNominationUtilitiesTests.cs b/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VSNominationUtilitiesTests.cs index c2b6fc0af6e..72455c11da7 100644 --- a/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VSNominationUtilitiesTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VSNominationUtilitiesTests.cs @@ -1,13 +1,13 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using NuGet.ProjectManagement; -using System.Collections.Generic; using System; -using Xunit; -using FluentAssertions; +using System.Collections.Generic; using System.Collections.Immutable; +using FluentAssertions; +using NuGet.ProjectManagement; using NuGet.Versioning; +using Xunit; namespace NuGet.SolutionRestoreManager.Test { diff --git a/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VsProjectProperties.cs b/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VsProjectProperties.cs index 270f311cb8c..0b5cc40eb43 100644 --- a/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VsProjectProperties.cs +++ b/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VsProjectProperties.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; namespace NuGet.SolutionRestoreManager.Test diff --git a/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VsSolutionRestoreStatusProviderTests.cs b/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VsSolutionRestoreStatusProviderTests.cs index 88ece34409b..85528d2bacd 100644 --- a/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VsSolutionRestoreStatusProviderTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VsSolutionRestoreStatusProviderTests.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; diff --git a/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VsTargetFrameworks2.cs b/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VsTargetFrameworks2.cs index 6ab7c86ffeb..12d6fd5efad 100644 --- a/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VsTargetFrameworks2.cs +++ b/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VsTargetFrameworks2.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; namespace NuGet.SolutionRestoreManager.Test diff --git a/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VulnerablePackagesInfoBarTests.cs b/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VulnerablePackagesInfoBarTests.cs index faf88096b57..f0ac8bd6ea5 100644 --- a/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VulnerablePackagesInfoBarTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.SolutionRestoreManager.Test/VulnerablePackagesInfoBarTests.cs @@ -6,14 +6,14 @@ using System.Threading; using System.Threading.Tasks; using FluentAssertions; +using Microsoft.VisualStudio.Sdk.TestFramework; using Microsoft.VisualStudio.Shell; +using Microsoft.VisualStudio.Shell.Interop; using Microsoft.VisualStudio.Threading; +using Moq; using NuGet.VisualStudio; using Test.Utility; using Xunit; -using Microsoft.VisualStudio.Sdk.TestFramework; -using Microsoft.VisualStudio.Shell.Interop; -using Moq; namespace NuGet.SolutionRestoreManager.Test { diff --git a/test/NuGet.Clients.Tests/NuGet.VisualStudio.Common.Test/ErrorListTableDataSourceTests.cs b/test/NuGet.Clients.Tests/NuGet.VisualStudio.Common.Test/ErrorListTableDataSourceTests.cs index 81b8337da61..2c6cf171234 100644 --- a/test/NuGet.Clients.Tests/NuGet.VisualStudio.Common.Test/ErrorListTableDataSourceTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.VisualStudio.Common.Test/ErrorListTableDataSourceTests.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; -using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.TableControl; using Microsoft.VisualStudio.Shell.TableManager; using Moq; diff --git a/test/NuGet.Clients.Tests/NuGet.VisualStudio.Implementation.Test/Extensibility/VsPathContextProviderTests.cs b/test/NuGet.Clients.Tests/NuGet.VisualStudio.Implementation.Test/Extensibility/VsPathContextProviderTests.cs index d55dd262129..73451439943 100644 --- a/test/NuGet.Clients.Tests/NuGet.VisualStudio.Implementation.Test/Extensibility/VsPathContextProviderTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.VisualStudio.Implementation.Test/Extensibility/VsPathContextProviderTests.cs @@ -3,10 +3,8 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.Linq; -using System.Runtime.Remoting.Contexts; using System.Threading; using System.Threading.Tasks; using Microsoft.VisualStudio.Threading; diff --git a/test/NuGet.Clients.Tests/NuGet.VisualStudio.Implementation.Test/Utility/PathLookupTrieTests.cs b/test/NuGet.Clients.Tests/NuGet.VisualStudio.Implementation.Test/Utility/PathLookupTrieTests.cs index ebddeaa10ac..74f57952129 100644 --- a/test/NuGet.Clients.Tests/NuGet.VisualStudio.Implementation.Test/Utility/PathLookupTrieTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.VisualStudio.Implementation.Test/Utility/PathLookupTrieTests.cs @@ -2,9 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using System.IO; -using NuGet.Packaging.Core; -using NuGet.Versioning; using Xunit; namespace NuGet.VisualStudio.Implementation.Test diff --git a/test/NuGet.Clients.Tests/NuGet.VisualStudio.Internal.Contracts.Test/Formatters/LicenseMetadataFormatterTests.cs b/test/NuGet.Clients.Tests/NuGet.VisualStudio.Internal.Contracts.Test/Formatters/LicenseMetadataFormatterTests.cs index 9e29169b454..d6682766b73 100644 --- a/test/NuGet.Clients.Tests/NuGet.VisualStudio.Internal.Contracts.Test/Formatters/LicenseMetadataFormatterTests.cs +++ b/test/NuGet.Clients.Tests/NuGet.VisualStudio.Internal.Contracts.Test/Formatters/LicenseMetadataFormatterTests.cs @@ -2,17 +2,11 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using MessagePack; using MessagePack.Formatters; using MessagePack.Resolvers; -using NuGet.Frameworks; using NuGet.Packaging; -using NuGet.Packaging.Core; using NuGet.Packaging.Licenses; -using NuGet.Protocol; -using NuGet.Protocol.Core.Types; -using NuGet.Versioning; using Xunit; namespace NuGet.VisualStudio.Internal.Contracts.Test diff --git a/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetPackageSearchTests.cs b/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetPackageSearchTests.cs index 6b4ca0fa8e5..4d458b10391 100644 --- a/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetPackageSearchTests.cs +++ b/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetPackageSearchTests.cs @@ -5,7 +5,6 @@ using NuGet.Test.Utility; using Xunit; using Xunit.Abstractions; -using Xunit.Sdk; namespace Dotnet.Integration.Test { diff --git a/test/NuGet.Core.FuncTests/NuGet.Commands.FuncTest/RestoreCommandTests.cs b/test/NuGet.Core.FuncTests/NuGet.Commands.FuncTest/RestoreCommandTests.cs index 77a9ebf6099..32b58e5b4b4 100644 --- a/test/NuGet.Core.FuncTests/NuGet.Commands.FuncTest/RestoreCommandTests.cs +++ b/test/NuGet.Core.FuncTests/NuGet.Commands.FuncTest/RestoreCommandTests.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.Linq; using System.Threading; diff --git a/test/NuGet.Core.FuncTests/NuGet.Packaging.FuncTest/SigningTests/TrustStore/CertificateBundleX509ChainFactoryTests.cs b/test/NuGet.Core.FuncTests/NuGet.Packaging.FuncTest/SigningTests/TrustStore/CertificateBundleX509ChainFactoryTests.cs index ad1ad227dd4..b8e208c6ce2 100644 --- a/test/NuGet.Core.FuncTests/NuGet.Packaging.FuncTest/SigningTests/TrustStore/CertificateBundleX509ChainFactoryTests.cs +++ b/test/NuGet.Core.FuncTests/NuGet.Packaging.FuncTest/SigningTests/TrustStore/CertificateBundleX509ChainFactoryTests.cs @@ -4,9 +4,9 @@ #if NET5_0_OR_GREATER using System; -using System.Security.Cryptography.X509Certificates; -using System.Security.Cryptography; using System.IO; +using System.Security.Cryptography; +using System.Security.Cryptography.X509Certificates; using NuGet.Test.Utility; using Test.Utility.Signing; diff --git a/test/NuGet.Core.FuncTests/NuGet.Protocol.FuncTest/ODataServiceDocumentResourceV2Tests.cs b/test/NuGet.Core.FuncTests/NuGet.Protocol.FuncTest/ODataServiceDocumentResourceV2Tests.cs index bb5f86f508b..f498437fadf 100644 --- a/test/NuGet.Core.FuncTests/NuGet.Protocol.FuncTest/ODataServiceDocumentResourceV2Tests.cs +++ b/test/NuGet.Core.FuncTests/NuGet.Protocol.FuncTest/ODataServiceDocumentResourceV2Tests.cs @@ -2,17 +2,11 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Linq; using System.Net.Http; using System.Threading; using System.Threading.Tasks; -using NuGet.Common; -using NuGet.Configuration; -using NuGet.Packaging.Core; -using NuGet.Protocol; using NuGet.Protocol.Core.Types; using NuGet.Test.Utility; -using NuGet.Versioning; using Xunit; namespace NuGet.Protocol.FuncTest diff --git a/test/NuGet.Core.FuncTests/NuGet.XPlat.FuncTest/XPlatHelpOutputTests.cs b/test/NuGet.Core.FuncTests/NuGet.XPlat.FuncTest/XPlatHelpOutputTests.cs index 4ee518905cf..f16cb33a7c0 100644 --- a/test/NuGet.Core.FuncTests/NuGet.XPlat.FuncTest/XPlatHelpOutputTests.cs +++ b/test/NuGet.Core.FuncTests/NuGet.XPlat.FuncTest/XPlatHelpOutputTests.cs @@ -5,10 +5,10 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Text.RegularExpressions; using NuGet.CommandLine.XPlat; using Xunit; using Xunit.Abstractions; -using System.Text.RegularExpressions; namespace NuGet.XPlat.FuncTest { diff --git a/test/NuGet.Core.Tests/NuGet.Build.Tasks.Pack.Test/PackTaskLogicTests.cs b/test/NuGet.Core.Tests/NuGet.Build.Tasks.Pack.Test/PackTaskLogicTests.cs index d3b64be70fc..10c0a3094e6 100644 --- a/test/NuGet.Core.Tests/NuGet.Build.Tasks.Pack.Test/PackTaskLogicTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Build.Tasks.Pack.Test/PackTaskLogicTests.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Reflection; using NuGet.Commands; using NuGet.Frameworks; using NuGet.Packaging; diff --git a/test/NuGet.Core.Tests/NuGet.Build.Tasks.Pack.Test/PackTaskTests.cs b/test/NuGet.Core.Tests/NuGet.Build.Tasks.Pack.Test/PackTaskTests.cs index 76de2bfebf2..ceda3d10fc6 100644 --- a/test/NuGet.Core.Tests/NuGet.Build.Tasks.Pack.Test/PackTaskTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Build.Tasks.Pack.Test/PackTaskTests.cs @@ -14,7 +14,6 @@ using NuGet.Common; using NuGet.Packaging; using NuGet.Test.Utility; -using NuGet.Versioning; using Xunit; namespace NuGet.Build.Tasks.Pack.Test diff --git a/test/NuGet.Core.Tests/NuGet.Build.Tasks.Test/GetRestorePackageDownloadsTaskTests.cs b/test/NuGet.Core.Tests/NuGet.Build.Tasks.Test/GetRestorePackageDownloadsTaskTests.cs index 67c6af6c55e..7b7ef17d4e2 100644 --- a/test/NuGet.Core.Tests/NuGet.Build.Tasks.Test/GetRestorePackageDownloadsTaskTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Build.Tasks.Test/GetRestorePackageDownloadsTaskTests.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Collections.Generic; using System.Linq; using Microsoft.Build.Framework; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.CommandLine.Xplat.Tests/PackageSearchRunnerTests.cs b/test/NuGet.Core.Tests/NuGet.CommandLine.Xplat.Tests/PackageSearchRunnerTests.cs index 3ec6d42c2e0..1cc88e679d4 100644 --- a/test/NuGet.Core.Tests/NuGet.CommandLine.Xplat.Tests/PackageSearchRunnerTests.cs +++ b/test/NuGet.Core.Tests/NuGet.CommandLine.Xplat.Tests/PackageSearchRunnerTests.cs @@ -1,15 +1,15 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Collections.Generic; -using System.Threading.Tasks; -using Xunit; -using System.IO; -using NuGet.Configuration; -using NuGet.CommandLine.XPlat; using System; +using System.Collections.Generic; using System.Globalization; +using System.IO; using System.Threading; +using System.Threading.Tasks; +using NuGet.CommandLine.XPlat; +using NuGet.Configuration; +using Xunit; namespace NuGet.CommandLine.Xplat.Tests { diff --git a/test/NuGet.Core.Tests/NuGet.Commands.Test/CommandsTestUtility.cs b/test/NuGet.Core.Tests/NuGet.Commands.Test/CommandsTestUtility.cs index d31e6a2a46e..ca2e245462b 100644 --- a/test/NuGet.Core.Tests/NuGet.Commands.Test/CommandsTestUtility.cs +++ b/test/NuGet.Core.Tests/NuGet.Commands.Test/CommandsTestUtility.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/test/NuGet.Core.Tests/NuGet.Commands.Test/CycleTests.cs b/test/NuGet.Core.Tests/NuGet.Commands.Test/CycleTests.cs index 383a01af8f8..0a38f66aa99 100644 --- a/test/NuGet.Core.Tests/NuGet.Commands.Test/CycleTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Commands.Test/CycleTests.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; using System.Threading.Tasks; using NuGet.Configuration; using NuGet.LibraryModel; diff --git a/test/NuGet.Core.Tests/NuGet.Commands.Test/InstallPackagesTests.cs b/test/NuGet.Core.Tests/NuGet.Commands.Test/InstallPackagesTests.cs index abf937cd223..18ba49f2c19 100644 --- a/test/NuGet.Core.Tests/NuGet.Commands.Test/InstallPackagesTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Commands.Test/InstallPackagesTests.cs @@ -1,14 +1,11 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; using System.Threading; using System.Threading.Tasks; -using System.Xml.Linq; using FluentAssertions; using NuGet.Configuration; using NuGet.Frameworks; diff --git a/test/NuGet.Core.Tests/NuGet.Commands.Test/MSBuildProjectFactoryTests.cs b/test/NuGet.Core.Tests/NuGet.Commands.Test/MSBuildProjectFactoryTests.cs index 16f821faaa2..f0cc1bc0fd6 100644 --- a/test/NuGet.Core.Tests/NuGet.Commands.Test/MSBuildProjectFactoryTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Commands.Test/MSBuildProjectFactoryTests.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.IO; -using NuGet.Commands; using NuGet.Test.Utility; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Commands.Test/RequestFactoryTests.cs b/test/NuGet.Core.Tests/NuGet.Commands.Test/RequestFactoryTests.cs index 41aa27a7999..d4b34e4982e 100644 --- a/test/NuGet.Core.Tests/NuGet.Commands.Test/RequestFactoryTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Commands.Test/RequestFactoryTests.cs @@ -1,10 +1,8 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Diagnostics; using System.IO; using System.Threading.Tasks; -using NuGet.Configuration; using NuGet.Protocol.Core.Types; using NuGet.Test.Utility; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Commands.Test/RuntimeTargetsTests.cs b/test/NuGet.Core.Tests/NuGet.Commands.Test/RuntimeTargetsTests.cs index 83883964b64..d03fe9ac75e 100644 --- a/test/NuGet.Core.Tests/NuGet.Commands.Test/RuntimeTargetsTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Commands.Test/RuntimeTargetsTests.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/test/NuGet.Core.Tests/NuGet.Commands.Test/StandaloneProjectTests.cs b/test/NuGet.Core.Tests/NuGet.Commands.Test/StandaloneProjectTests.cs index 177551dee9c..12a40f2a1b5 100644 --- a/test/NuGet.Core.Tests/NuGet.Commands.Test/StandaloneProjectTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Commands.Test/StandaloneProjectTests.cs @@ -2,17 +2,12 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; -using NuGet.Common; -using NuGet.Configuration; using NuGet.Frameworks; using NuGet.Packaging.Core; using NuGet.ProjectModel; -using NuGet.Protocol; -using NuGet.Protocol.Core.Types; using NuGet.Test.Utility; using NuGet.Versioning; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Commands.Test/TestUtilityTests.cs b/test/NuGet.Core.Tests/NuGet.Commands.Test/TestUtilityTests.cs index 499fec18787..02a60d5bbfe 100644 --- a/test/NuGet.Core.Tests/NuGet.Commands.Test/TestUtilityTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Commands.Test/TestUtilityTests.cs @@ -1,10 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json.Linq; using NuGet.Frameworks; diff --git a/test/NuGet.Core.Tests/NuGet.Commands.Test/TrustedSignerActionsProviderTests.cs b/test/NuGet.Core.Tests/NuGet.Commands.Test/TrustedSignerActionsProviderTests.cs index b9ba82e5377..e22e4f1ae3f 100644 --- a/test/NuGet.Core.Tests/NuGet.Commands.Test/TrustedSignerActionsProviderTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Commands.Test/TrustedSignerActionsProviderTests.cs @@ -17,7 +17,6 @@ using NuGet.Configuration.Test; using NuGet.Packaging; using NuGet.Packaging.Signing; -using NuGet.Protocol; using NuGet.Protocol.Core.Types; using NuGet.Test.Utility; using Test.Utility; diff --git a/test/NuGet.Core.Tests/NuGet.Common.Test/ActivityCorrelationIdFuncTests.cs b/test/NuGet.Core.Tests/NuGet.Common.Test/ActivityCorrelationIdFuncTests.cs index 7ea03ece516..6a5c055e0f1 100644 --- a/test/NuGet.Core.Tests/NuGet.Common.Test/ActivityCorrelationIdFuncTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Common.Test/ActivityCorrelationIdFuncTests.cs @@ -2,9 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.Linq; -using System.Text; using System.Threading.Tasks; using NuGet.Common; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Common.Test/ActivityCorrelationIdTests.cs b/test/NuGet.Core.Tests/NuGet.Common.Test/ActivityCorrelationIdTests.cs index 48d98af7912..cbebb26ccef 100644 --- a/test/NuGet.Core.Tests/NuGet.Common.Test/ActivityCorrelationIdTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Common.Test/ActivityCorrelationIdTests.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Linq; using System.Threading.Tasks; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Common.Test/FileUtilityTests.cs b/test/NuGet.Core.Tests/NuGet.Common.Test/FileUtilityTests.cs index ab0e154c75f..c3e046bc049 100644 --- a/test/NuGet.Core.Tests/NuGet.Common.Test/FileUtilityTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Common.Test/FileUtilityTests.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.Text; using System.Threading.Tasks; using NuGet.Test.Utility; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Common.Test/NoAllocEnumerateExtensionsTests.cs b/test/NuGet.Core.Tests/NuGet.Common.Test/NoAllocEnumerateExtensionsTests.cs index 45022a3563b..299501f3b03 100644 --- a/test/NuGet.Core.Tests/NuGet.Common.Test/NoAllocEnumerateExtensionsTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Common.Test/NoAllocEnumerateExtensionsTests.cs @@ -1,9 +1,9 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Moq; using System.Collections.Generic; using System.Collections.Immutable; +using Moq; using Xunit; namespace NuGet.Common.Test; diff --git a/test/NuGet.Core.Tests/NuGet.Common.Test/NuGetEnvironmentTests.cs b/test/NuGet.Core.Tests/NuGet.Common.Test/NuGetEnvironmentTests.cs index 8cb572a16a3..aa8112c1875 100644 --- a/test/NuGet.Core.Tests/NuGet.Common.Test/NuGetEnvironmentTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Common.Test/NuGetEnvironmentTests.cs @@ -1,11 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using NuGet.Common.Migrations; using NuGet.Test.Utility; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Common.Test/PackageSpecificWanringPropertiesTests.cs b/test/NuGet.Core.Tests/NuGet.Common.Test/PackageSpecificWanringPropertiesTests.cs index ee1fa1048b3..a11f7d0890e 100644 --- a/test/NuGet.Core.Tests/NuGet.Common.Test/PackageSpecificWanringPropertiesTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Common.Test/PackageSpecificWanringPropertiesTests.cs @@ -1,14 +1,12 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; using NuGet.Commands; using NuGet.Frameworks; using NuGet.LibraryModel; using NuGet.ProjectModel; using NuGet.Versioning; -using Test.Utility; using Xunit; namespace NuGet.Common.Test diff --git a/test/NuGet.Core.Tests/NuGet.Common.Test/RestoreLogMessageTests.cs b/test/NuGet.Core.Tests/NuGet.Common.Test/RestoreLogMessageTests.cs index 1d43ff597de..f4e40269d37 100644 --- a/test/NuGet.Core.Tests/NuGet.Common.Test/RestoreLogMessageTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Common.Test/RestoreLogMessageTests.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using Moq; using Xunit; namespace NuGet.Common.Test diff --git a/test/NuGet.Core.Tests/NuGet.Common.Test/SynchronizationTest.cs b/test/NuGet.Core.Tests/NuGet.Common.Test/SynchronizationTest.cs index 62d4209237c..6527a6fd0a7 100644 --- a/test/NuGet.Core.Tests/NuGet.Common.Test/SynchronizationTest.cs +++ b/test/NuGet.Core.Tests/NuGet.Common.Test/SynchronizationTest.cs @@ -2,12 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.IO; -using System.Net; -using System.Net.Sockets; using System.Threading; using System.Threading.Tasks; -using NuGet.Test.Utility; using Xunit; namespace NuGet.Common.Test diff --git a/test/NuGet.Core.Tests/NuGet.Configuration.Test/FallbackFolderTests.cs b/test/NuGet.Core.Tests/NuGet.Configuration.Test/FallbackFolderTests.cs index ed85b5e4c03..8a2dac45ba8 100644 --- a/test/NuGet.Core.Tests/NuGet.Configuration.Test/FallbackFolderTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Configuration.Test/FallbackFolderTests.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.IO; using System.Linq; using NuGet.Test.Utility; diff --git a/test/NuGet.Core.Tests/NuGet.Configuration.Test/TestMachineWideSettings.cs b/test/NuGet.Core.Tests/NuGet.Configuration.Test/TestMachineWideSettings.cs index 04a367c7412..5702976ce8f 100644 --- a/test/NuGet.Core.Tests/NuGet.Configuration.Test/TestMachineWideSettings.cs +++ b/test/NuGet.Core.Tests/NuGet.Configuration.Test/TestMachineWideSettings.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Collections.Generic; - namespace NuGet.Configuration.Test { public class TestMachineWideSettings : IMachineWideSettings diff --git a/test/NuGet.Core.Tests/NuGet.DependencyResolver.Core.Tests/GraphItemKeyComparerTests.cs b/test/NuGet.Core.Tests/NuGet.DependencyResolver.Core.Tests/GraphItemKeyComparerTests.cs index fccf6783de5..f3e1294a0d8 100644 --- a/test/NuGet.Core.Tests/NuGet.DependencyResolver.Core.Tests/GraphItemKeyComparerTests.cs +++ b/test/NuGet.Core.Tests/NuGet.DependencyResolver.Core.Tests/GraphItemKeyComparerTests.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using System.Linq; using NuGet.LibraryModel; using NuGet.Versioning; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.DependencyResolver.Core.Tests/GraphOperationsTests.cs b/test/NuGet.Core.Tests/NuGet.DependencyResolver.Core.Tests/GraphOperationsTests.cs index d8f42b4e110..f715c6831c3 100644 --- a/test/NuGet.Core.Tests/NuGet.DependencyResolver.Core.Tests/GraphOperationsTests.cs +++ b/test/NuGet.Core.Tests/NuGet.DependencyResolver.Core.Tests/GraphOperationsTests.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using FluentAssertions; -using NuGet.ContentModel; using NuGet.LibraryModel; using NuGet.Versioning; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Frameworks.Test/FrameworkReducerTests.cs b/test/NuGet.Core.Tests/NuGet.Frameworks.Test/FrameworkReducerTests.cs index b03bc53165f..52e77f3fbb9 100644 --- a/test/NuGet.Core.Tests/NuGet.Frameworks.Test/FrameworkReducerTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Frameworks.Test/FrameworkReducerTests.cs @@ -1,9 +1,9 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +using System; using System.Collections.Generic; using System.Linq; -using System; using Xunit; namespace NuGet.Frameworks.Test diff --git a/test/NuGet.Core.Tests/NuGet.Frameworks.Test/NuGetFrameworkParseTests.cs b/test/NuGet.Core.Tests/NuGet.Frameworks.Test/NuGetFrameworkParseTests.cs index 4e3d6e6d38b..f7a746f867d 100644 --- a/test/NuGet.Core.Tests/NuGet.Frameworks.Test/NuGetFrameworkParseTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Frameworks.Test/NuGetFrameworkParseTests.cs @@ -1,8 +1,8 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Collections.Generic; using System; +using System.Collections.Generic; using Xunit; namespace NuGet.Frameworks.Test diff --git a/test/NuGet.Core.Tests/NuGet.LibraryModel.Tests/LibraryIdentityTests.cs b/test/NuGet.Core.Tests/NuGet.LibraryModel.Tests/LibraryIdentityTests.cs index 0765d1926c7..28c3c7ef187 100644 --- a/test/NuGet.Core.Tests/NuGet.LibraryModel.Tests/LibraryIdentityTests.cs +++ b/test/NuGet.Core.Tests/NuGet.LibraryModel.Tests/LibraryIdentityTests.cs @@ -1,8 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Diagnostics; -using System.Threading; using NuGet.Versioning; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/BuildIntegration/BuildIntegratedNuGetProjectTests.cs b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/BuildIntegration/BuildIntegratedNuGetProjectTests.cs index c82a167cfc3..ba066e952de 100644 --- a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/BuildIntegration/BuildIntegratedNuGetProjectTests.cs +++ b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/BuildIntegration/BuildIntegratedNuGetProjectTests.cs @@ -8,7 +8,6 @@ using System.Threading.Tasks; using Newtonsoft.Json.Linq; using NuGet.Commands; -using NuGet.Common; using NuGet.Configuration; using NuGet.Frameworks; using NuGet.Packaging; diff --git a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/BuildIntegration/TestBuildIntegratedNuGetProject.cs b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/BuildIntegration/TestBuildIntegratedNuGetProject.cs index 8c20361bfe3..071ceb29451 100644 --- a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/BuildIntegration/TestBuildIntegratedNuGetProject.cs +++ b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/BuildIntegration/TestBuildIntegratedNuGetProject.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.IO; -using System.Threading.Tasks; using NuGet.ProjectManagement; using NuGet.ProjectManagement.Projects; using NuGet.ProjectModel; diff --git a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/BuildIntegration/TestMSBuildNuGetProject.cs b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/BuildIntegration/TestMSBuildNuGetProject.cs index b22550df803..7cc3f7d3939 100644 --- a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/BuildIntegration/TestMSBuildNuGetProject.cs +++ b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/BuildIntegration/TestMSBuildNuGetProject.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using System.Threading.Tasks; using NuGet.ProjectManagement; using NuGet.ProjectModel; diff --git a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/InstallationCompatibilityTests.cs b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/InstallationCompatibilityTests.cs index 4a335817c1e..1498ab85d34 100644 --- a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/InstallationCompatibilityTests.cs +++ b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/InstallationCompatibilityTests.cs @@ -21,7 +21,6 @@ using NuGet.ProjectModel; using NuGet.Protocol.Core.Types; using NuGet.Test; -using NuGet.Test.Utility; using NuGet.Versioning; using Test.Utility; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/PackageDownloaderTests.cs b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/PackageDownloaderTests.cs index c7ccbfa6c0f..0afe67520a5 100644 --- a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/PackageDownloaderTests.cs +++ b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/PackageDownloaderTests.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; diff --git a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/ResolverGatherTests.cs b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/ResolverGatherTests.cs index 5da4eb01223..7ef341bebdb 100644 --- a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/ResolverGatherTests.cs +++ b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/ResolverGatherTests.cs @@ -10,7 +10,6 @@ using NuGet.Frameworks; using NuGet.PackageManagement; using NuGet.Packaging.Core; -using NuGet.ProjectManagement; using NuGet.Protocol.Core.Types; using NuGet.Resolver; using NuGet.Versioning; diff --git a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/Utility/PackageReferenceComparerTests.cs b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/Utility/PackageReferenceComparerTests.cs index 2ef06659ca2..9c8338bbbd2 100644 --- a/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/Utility/PackageReferenceComparerTests.cs +++ b/test/NuGet.Core.Tests/NuGet.PackageManagement.Test/Utility/PackageReferenceComparerTests.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using NuGet.Frameworks; using NuGet.Packaging; using NuGet.Packaging.Core; diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/LicensesTests/LicenseExpressionTokenizerTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/LicensesTests/LicenseExpressionTokenizerTests.cs index b529b8d41a5..c8c2f2a50f9 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/LicensesTests/LicenseExpressionTokenizerTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/LicensesTests/LicenseExpressionTokenizerTests.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text.RegularExpressions; using Xunit; namespace NuGet.Packaging.Licenses.Test diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/MissingReadmeRuleTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/MissingReadmeRuleTests.cs index 53b43908cbc..8d50a56a3eb 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/MissingReadmeRuleTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/MissingReadmeRuleTests.cs @@ -7,7 +7,6 @@ using System.IO.Compression; using System.Linq; using System.Text; -using NuGet.Commands; using NuGet.Common; using NuGet.Packaging.Rules; using NuGet.Test.Utility; diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/NoRefOrLibFolderInPackageRuleTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/NoRefOrLibFolderInPackageRuleTests.cs index ff405a611be..76f6ee48d75 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/NoRefOrLibFolderInPackageRuleTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/NoRefOrLibFolderInPackageRuleTests.cs @@ -1,19 +1,6 @@ -using System; -using System.Collections; using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices.ComTypes; -using System.Text; -using System.Threading.Tasks; -using System.Xml.Linq; -using Moq; -using NuGet.Commands; using NuGet.Common; using NuGet.Packaging.Rules; -using NuGet.Test.Utility; using Xunit; namespace NuGet.Packaging.Test diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/NupkgMetadataFileFormatTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/NupkgMetadataFileFormatTests.cs index 9c1918944cf..d291c7f74f9 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/NupkgMetadataFileFormatTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/NupkgMetadataFileFormatTests.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.IO; -using Moq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NuGet.Common; diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/PackageFolderReaderTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/PackageFolderReaderTests.cs index 1d24143650e..d5c1e7b49fc 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/PackageFolderReaderTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/PackageFolderReaderTests.cs @@ -9,7 +9,6 @@ using System.Threading.Tasks; using NuGet.Common; using NuGet.Packaging.Core; -using NuGet.Repositories; using NuGet.Test.Utility; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/ReferencesInNuspecMatchRefAssetsRuleTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/ReferencesInNuspecMatchRefAssetsRuleTests.cs index 937f3a912e0..08a68cd8019 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/ReferencesInNuspecMatchRefAssetsRuleTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/ReferencesInNuspecMatchRefAssetsRuleTests.cs @@ -2,14 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections; using System.Collections.Generic; -using System.IO; using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading.Tasks; -using Castle.DynamicProxy.Generators.Emitters.SimpleAST; using NuGet.Common; using NuGet.Packaging.Rules; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/AttributeUtilityTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/AttributeUtilityTests.cs index 22d3d7cf6c0..96aeb3e70d3 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/AttributeUtilityTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/AttributeUtilityTests.cs @@ -13,8 +13,8 @@ using NuGet.Packaging.Signing; using Test.Utility.Signing; using Xunit; -using SigningCertificateV2 = NuGet.Packaging.Signing.SigningCertificateV2; using EssCertIdV2 = NuGet.Packaging.Signing.EssCertIdV2; +using SigningCertificateV2 = NuGet.Packaging.Signing.SigningCertificateV2; namespace NuGet.Packaging.Test { diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/AuthorSignPackageRequestTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/AuthorSignPackageRequestTests.cs index 591fff34f65..69d8e50847e 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/AuthorSignPackageRequestTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/AuthorSignPackageRequestTests.cs @@ -4,7 +4,6 @@ using System; using NuGet.Common; using NuGet.Packaging.Signing; -using NuGet.Test.Utility; using Xunit; namespace NuGet.Packaging.Test diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/ClientPolicyContextTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/ClientPolicyContextTests.cs index 83601c319bf..05faf3a61cb 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/ClientPolicyContextTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/ClientPolicyContextTests.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using System.Linq; using FluentAssertions; using NuGet.Common; using NuGet.Configuration; diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/RepositorySignPackageRequestTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/RepositorySignPackageRequestTests.cs index 876ba1ad1a4..576eb021188 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/RepositorySignPackageRequestTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/RepositorySignPackageRequestTests.cs @@ -6,7 +6,6 @@ using System.Security.Cryptography.X509Certificates; using NuGet.Common; using NuGet.Packaging.Signing; -using NuGet.Test.Utility; using Xunit; namespace NuGet.Packaging.Test diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningCertificateTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningCertificateTests.cs index 99e12cec450..43886ee84f4 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningCertificateTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningCertificateTests.cs @@ -6,8 +6,8 @@ using NuGet.Packaging.Signing; using Test.Utility.Signing; using Xunit; -using SigningCertificate = NuGet.Packaging.Signing.SigningCertificate; using PolicyInformation = NuGet.Packaging.Signing.PolicyInformation; +using SigningCertificate = NuGet.Packaging.Signing.SigningCertificate; using TestEssCertId = Test.Utility.Signing.EssCertId; using TestPolicyInformation = Test.Utility.Signing.PolicyInformation; using TestSigningCertificate = Test.Utility.Signing.SigningCertificate; diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningCertificateV2Tests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningCertificateV2Tests.cs index ecb0715e2f0..8189780f13f 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningCertificateV2Tests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningCertificateV2Tests.cs @@ -9,8 +9,8 @@ using NuGet.Packaging.Signing; using Test.Utility.Signing; using Xunit; -using Oid = System.Security.Cryptography.Oid; using EssCertIdV2 = NuGet.Packaging.Signing.EssCertIdV2; +using Oid = System.Security.Cryptography.Oid; using SigningCertificateV2 = NuGet.Packaging.Signing.SigningCertificateV2; using TestAlgorithmIdentifier = Test.Utility.Signing.AlgorithmIdentifier; using TestEssCertIdV2 = Test.Utility.Signing.EssCertIdV2; diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/TstInfoTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/TstInfoTests.cs index 56d0d482879..e078f473108 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/TstInfoTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/TstInfoTests.cs @@ -12,12 +12,12 @@ using NuGet.Common; using Test.Utility.Signing; using Xunit; -using TstInfo = NuGet.Packaging.Signing.TstInfo; using TestAccuracy = Test.Utility.Signing.Accuracy; using TestAlgorithmIdentifier = Test.Utility.Signing.AlgorithmIdentifier; using TestGeneralName = Test.Utility.Signing.GeneralName; using TestMessageImprint = Test.Utility.Signing.MessageImprint; using TestTstInfo = Test.Utility.Signing.TstInfo; +using TstInfo = NuGet.Packaging.Signing.TstInfo; namespace NuGet.Packaging.Test { diff --git a/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/JsonPackageSpecReaderTests.cs b/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/JsonPackageSpecReaderTests.cs index 199e8643aed..872a3048214 100644 --- a/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/JsonPackageSpecReaderTests.cs +++ b/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/JsonPackageSpecReaderTests.cs @@ -6,6 +6,7 @@ using System.IO; using System.Linq; using System.Text; +using System.Text.Json; using FluentAssertions; using Newtonsoft.Json; using NuGet.Common; @@ -17,7 +18,6 @@ using NuGet.Versioning; using Test.Utility; using Xunit; -using System.Text.Json; namespace NuGet.ProjectModel.Test { diff --git a/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/LazyStringSplitTests.cs b/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/LazyStringSplitTests.cs index e314c4f7226..5bfb6675e1e 100644 --- a/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/LazyStringSplitTests.cs +++ b/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/LazyStringSplitTests.cs @@ -1,7 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information. -using System.Collections.Generic; using System; +using System.Collections.Generic; using Xunit; namespace NuGet.ProjectModel.Test diff --git a/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/PackageSpecUtilityTests.cs b/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/PackageSpecUtilityTests.cs index 0f1b70c27e9..175c54b0739 100644 --- a/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/PackageSpecUtilityTests.cs +++ b/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/PackageSpecUtilityTests.cs @@ -1,10 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using NuGet.Versioning; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/ToolPathResolverTests.cs b/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/ToolPathResolverTests.cs index f0ddbc8ab38..018c3b4353e 100644 --- a/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/ToolPathResolverTests.cs +++ b/test/NuGet.Core.Tests/NuGet.ProjectModel.Test/ToolPathResolverTests.cs @@ -2,11 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.IO; -using System.Threading.Tasks; using NuGet.Commands; using NuGet.Frameworks; -using NuGet.Packaging; -using NuGet.Test.Utility; using NuGet.Versioning; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/AutoCompleteResourceV2FeedTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/AutoCompleteResourceV2FeedTests.cs index f0ce0f9132d..20bb9b7271a 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/AutoCompleteResourceV2FeedTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/AutoCompleteResourceV2FeedTests.cs @@ -6,7 +6,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using Moq; using NuGet.Common; using NuGet.Protocol.Core.Types; using Test.Utility; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/AutoCompleteResourceV3Tests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/AutoCompleteResourceV3Tests.cs index abc892a8725..1fee2adefb1 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/AutoCompleteResourceV3Tests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/AutoCompleteResourceV3Tests.cs @@ -4,14 +4,10 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Threading; using System.Threading.Tasks; -using NuGet.Common; -using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; using NuGet.Test.Utility; -using NuGet.Versioning; using Test.Utility; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/DedicatedAsynchronousProcessingThreadTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/DedicatedAsynchronousProcessingThreadTests.cs index 28cc67b375d..303bf54145f 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/DedicatedAsynchronousProcessingThreadTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/DedicatedAsynchronousProcessingThreadTests.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using FluentAssertions; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/DependencyInfoResourceV2FeedTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/DependencyInfoResourceV2FeedTests.cs index 6af8bab4017..70245cd2760 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/DependencyInfoResourceV2FeedTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/DependencyInfoResourceV2FeedTests.cs @@ -5,7 +5,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using Moq; using NuGet.Common; using NuGet.Frameworks; using NuGet.Packaging.Core; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/FeedTypeUtilityTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/FeedTypeUtilityTests.cs index 654253d2198..b5b90f7a644 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/FeedTypeUtilityTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/FeedTypeUtilityTests.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.IO; using NuGet.Common; using NuGet.Configuration; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/HttpSource/HttpStreamValidationTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/HttpSource/HttpStreamValidationTests.cs index 70c6fe8b1d5..d4dcd3c6e7f 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/HttpSource/HttpStreamValidationTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/HttpSource/HttpStreamValidationTests.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.IO; using System.IO.Compression; using System.Text; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/HttpSource/ProxyAuthenticationHandlerTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/HttpSource/ProxyAuthenticationHandlerTests.cs index a0722ccf27d..cea49929e53 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/HttpSource/ProxyAuthenticationHandlerTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/HttpSource/ProxyAuthenticationHandlerTests.cs @@ -10,7 +10,6 @@ using System.Threading.Tasks; using Moq; using NuGet.Configuration; -using NuGet.Test.Utility; using Xunit; namespace NuGet.Protocol.Tests diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LegacyCapabilityResourceTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LegacyCapabilityResourceTests.cs index f0ea72c85fe..9d33ce28616 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LegacyCapabilityResourceTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LegacyCapabilityResourceTests.cs @@ -1,18 +1,11 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; -using System.Globalization; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Common; using NuGet.Configuration; -using NuGet.Packaging.Core; -using NuGet.Protocol.Core.Types; -using NuGet.Test.Utility; -using NuGet.Versioning; using Test.Utility; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalPackageListResourceTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalPackageListResourceTests.cs index 96246f5cebe..70c08b820b0 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalPackageListResourceTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalPackageListResourceTests.cs @@ -1,19 +1,12 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Common; -using NuGet.Configuration; -using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; -using NuGet.Test.Utility; -using NuGet.Versioning; -using Test.Utility; using Xunit; namespace NuGet.Protocol.Tests diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalRepositories/LocalV2FindPackageByIdResourceTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalRepositories/LocalV2FindPackageByIdResourceTests.cs index ce1797e4bd5..4422f500348 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalRepositories/LocalV2FindPackageByIdResourceTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalRepositories/LocalV2FindPackageByIdResourceTests.cs @@ -7,7 +7,6 @@ using System.Threading.Tasks; using NuGet.Common; using NuGet.Configuration; -using NuGet.Packaging; using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; using NuGet.Test.Utility; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalRepositories/LocalV3FindPackageByIdResourceTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalRepositories/LocalV3FindPackageByIdResourceTests.cs index d52ded9d846..6d59685e425 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalRepositories/LocalV3FindPackageByIdResourceTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalRepositories/LocalV3FindPackageByIdResourceTests.cs @@ -7,7 +7,6 @@ using System.Threading.Tasks; using NuGet.Common; using NuGet.Configuration; -using NuGet.Packaging; using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; using NuGet.Test.Utility; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalAutoCompleteResourceTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalAutoCompleteResourceTests.cs index 3ed86698351..4b88ad9d15d 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalAutoCompleteResourceTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalAutoCompleteResourceTests.cs @@ -1,18 +1,11 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; -using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; -using Moq; -using NuGet.Common; -using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; using NuGet.Test.Utility; -using NuGet.Versioning; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalDependencyInfoResourceTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalDependencyInfoResourceTests.cs index 7b0e8c43cea..54a3f442b97 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalDependencyInfoResourceTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalDependencyInfoResourceTests.cs @@ -7,7 +7,6 @@ using System.Threading; using System.Threading.Tasks; using System.Xml.Linq; -using Moq; using NuGet.Frameworks; using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalMetadataResourceTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalMetadataResourceTests.cs index 8c679ecb7e0..01a3f6e2fbb 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalMetadataResourceTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalMetadataResourceTests.cs @@ -4,7 +4,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using Moq; using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; using NuGet.Test.Utility; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalPackageSearchResourceTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalPackageSearchResourceTests.cs index 8451eaf6eef..40ed614d50a 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalPackageSearchResourceTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/LocalPackageSearchResourceTests.cs @@ -7,7 +7,6 @@ using System.Threading; using System.Threading.Tasks; using System.Xml.Linq; -using Moq; using NuGet.Common; using NuGet.Protocol.Core.Types; using NuGet.Protocol.Tests.Plugins.Helpers; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/TestLocalPackageInfo.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/TestLocalPackageInfo.cs index 9990dcf8483..8bbd11301e2 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/TestLocalPackageInfo.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/LocalResourceTests/TestLocalPackageInfo.cs @@ -1,10 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using NuGet.Packaging; using NuGet.Packaging.Core; using NuGet.Versioning; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/MetadataClientTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/MetadataClientTests.cs index 8d6a80e4211..774c7ddb840 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/MetadataClientTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/MetadataClientTests.cs @@ -6,7 +6,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using Moq; using NuGet.Frameworks; using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/MetadataResourceV2FeedTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/MetadataResourceV2FeedTests.cs index 547db648831..679ecf99e29 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/MetadataResourceV2FeedTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/MetadataResourceV2FeedTests.cs @@ -8,7 +8,6 @@ using NuGet.Common; using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; -using NuGet.Test.Utility; using NuGet.Versioning; using Test.Utility; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/ODataServiceDocumentV2Tests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/ODataServiceDocumentV2Tests.cs index 39269d7aeee..b61578ff8d7 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/ODataServiceDocumentV2Tests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/ODataServiceDocumentV2Tests.cs @@ -1,9 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Protocol.Core.Types; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/PackageMetadataResourceV2FeedTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/PackageMetadataResourceV2FeedTests.cs index 9159f95e5a1..5e81ce0970a 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/PackageMetadataResourceV2FeedTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/PackageMetadataResourceV2FeedTests.cs @@ -6,7 +6,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using Moq; using NuGet.Common; using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/PackageMetadataResourceV3Tests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/PackageMetadataResourceV3Tests.cs index 815044fcd40..b877eaae5ad 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/PackageMetadataResourceV3Tests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/PackageMetadataResourceV3Tests.cs @@ -11,7 +11,6 @@ using NuGet.Packaging; using NuGet.Packaging.Core; using NuGet.Protocol.Core.Types; -using NuGet.Test.Utility; using NuGet.Versioning; using Test.Utility; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Plugins/Logging/ProcessLogMessageTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Plugins/Logging/ProcessLogMessageTests.cs index d64f262d01b..78073a217ba 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Plugins/Logging/ProcessLogMessageTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Plugins/Logging/ProcessLogMessageTests.cs @@ -4,7 +4,6 @@ using System; using System.Diagnostics; using FluentAssertions; -using NuGet.Common; using Xunit; namespace NuGet.Protocol.Plugins.Tests diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Plugins/Messages/GetAuthenticationCredentialsResponseTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Plugins/Messages/GetAuthenticationCredentialsResponseTests.cs index bc10b0d44d9..3d332e7a750 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Plugins/Messages/GetAuthenticationCredentialsResponseTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Plugins/Messages/GetAuthenticationCredentialsResponseTests.cs @@ -1,4 +1,3 @@ -using System; using System.Text; using NuGet.Protocol.Plugins; using NuGet.Protocol.Plugins.Tests; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Plugins/Messages/GetOperationClaimsRequestTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Plugins/Messages/GetOperationClaimsRequestTests.cs index e8d7200f093..854e31440a3 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Plugins/Messages/GetOperationClaimsRequestTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Plugins/Messages/GetOperationClaimsRequestTests.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/PowershellAutoCompleteResourceTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/PowershellAutoCompleteResourceTests.cs index 2d0d4e41ccd..ed69cad0d5f 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/PowershellAutoCompleteResourceTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/PowershellAutoCompleteResourceTests.cs @@ -6,7 +6,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using NuGet.Common; using NuGet.Protocol.Core.Types; using NuGet.Protocol.VisualStudio; using NuGet.Test.Utility; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Providers/MockServiceIndexResourceV3Provider.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Providers/MockServiceIndexResourceV3Provider.cs index 5b126863e64..0276a9ec845 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Providers/MockServiceIndexResourceV3Provider.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Providers/MockServiceIndexResourceV3Provider.cs @@ -3,12 +3,12 @@ #nullable enable +using System; +using System.Threading; +using System.Threading.Tasks; using Moq; using Newtonsoft.Json.Linq; -using System.Threading.Tasks; -using System; using NuGet.Protocol.Core.Types; -using System.Threading; namespace NuGet.Protocol.Tests.Providers { diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Providers/ReportAbuseResourceV3ProviderTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Providers/ReportAbuseResourceV3ProviderTests.cs index 60385a38f9f..3840a99c42b 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Providers/ReportAbuseResourceV3ProviderTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Providers/ReportAbuseResourceV3ProviderTests.cs @@ -2,8 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Threading.Tasks; using System.Threading; +using System.Threading.Tasks; using Moq; using Newtonsoft.Json.Linq; using NuGet.Configuration; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/ReportAbuseResourceV3Tests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/ReportAbuseResourceV3Tests.cs index fe3b83d9b3b..72f88cb39da 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/ReportAbuseResourceV3Tests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/ReportAbuseResourceV3Tests.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using NuGet.Protocol; using NuGet.Versioning; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Utility/TimeoutUtilityTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Utility/TimeoutUtilityTests.cs index b563ffe15bc..dc2a603936c 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Utility/TimeoutUtilityTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/Utility/TimeoutUtilityTests.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.IO; -using System.Text; using System.Threading; using System.Threading.Tasks; using Xunit; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/V2FeedPackageInfoTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/V2FeedPackageInfoTests.cs index d0d2e078675..e42d8c4cbd9 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/V2FeedPackageInfoTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/V2FeedPackageInfoTests.cs @@ -2,9 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; using NuGet.Frameworks; using NuGet.Packaging.Core; using NuGet.Versioning; diff --git a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/V2FeedParserTests.cs b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/V2FeedParserTests.cs index 4660fa58784..dd7d0bca6af 100644 --- a/test/NuGet.Core.Tests/NuGet.Protocol.Tests/V2FeedParserTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Protocol.Tests/V2FeedParserTests.cs @@ -7,7 +7,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using Moq; using NuGet.Common; using NuGet.Configuration; using NuGet.Packaging.Core; diff --git a/test/NuGet.Core.Tests/NuGet.Resolver.Test/ResolverData.cs b/test/NuGet.Core.Tests/NuGet.Resolver.Test/ResolverData.cs index 11fa7d6e85b..c09c0e42f55 100644 --- a/test/NuGet.Core.Tests/NuGet.Resolver.Test/ResolverData.cs +++ b/test/NuGet.Core.Tests/NuGet.Resolver.Test/ResolverData.cs @@ -1,10 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using NuGet.Versioning; namespace NuGet.Resolver.Test diff --git a/test/NuGet.Core.Tests/NuGet.Resolver.Test/ResolverInputSortTests.cs b/test/NuGet.Core.Tests/NuGet.Resolver.Test/ResolverInputSortTests.cs index 8623f205845..7085763772d 100644 --- a/test/NuGet.Core.Tests/NuGet.Resolver.Test/ResolverInputSortTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Resolver.Test/ResolverInputSortTests.cs @@ -3,9 +3,7 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; -using System.Threading.Tasks; using NuGet.Configuration; using NuGet.Frameworks; using NuGet.Packaging; diff --git a/test/NuGet.Core.Tests/NuGet.Resolver.Test/ResolverSortTests.cs b/test/NuGet.Core.Tests/NuGet.Resolver.Test/ResolverSortTests.cs index 93840d7be9e..c9b00584ac7 100644 --- a/test/NuGet.Core.Tests/NuGet.Resolver.Test/ResolverSortTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Resolver.Test/ResolverSortTests.cs @@ -6,7 +6,6 @@ using NuGet.Packaging.Core; using NuGet.Versioning; using Xunit; -using Xunit.Abstractions; namespace NuGet.Resolver.Test { diff --git a/test/NuGet.Tests.Apex/NuGet.Console.TestContract/NuGetApexConsoleTestService.cs b/test/NuGet.Tests.Apex/NuGet.Console.TestContract/NuGetApexConsoleTestService.cs index ee6aea0bec6..0ebded5272e 100644 --- a/test/NuGet.Tests.Apex/NuGet.Console.TestContract/NuGetApexConsoleTestService.cs +++ b/test/NuGet.Tests.Apex/NuGet.Console.TestContract/NuGetApexConsoleTestService.cs @@ -8,7 +8,6 @@ using System.Threading.Tasks; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell.Interop; -using NuGet.Common; using NuGet.VisualStudio; using NuGetConsole; using NuGetConsole.Implementation; diff --git a/test/NuGet.Tests.Apex/NuGet.PackageManagement.UI.TestContract/NuGetApexUITestService.cs b/test/NuGet.Tests.Apex/NuGet.PackageManagement.UI.TestContract/NuGetApexUITestService.cs index f0fb6434965..d986510e4ca 100644 --- a/test/NuGet.Tests.Apex/NuGet.PackageManagement.UI.TestContract/NuGetApexUITestService.cs +++ b/test/NuGet.Tests.Apex/NuGet.PackageManagement.UI.TestContract/NuGetApexUITestService.cs @@ -7,11 +7,9 @@ using System.Linq; using System.Threading; using Microsoft.ServiceHub.Framework; -using Microsoft.TeamFoundation.WorkItemTracking.Process.WebApi.Models; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell.Interop; using NuGet.PackageManagement.VisualStudio; -using NuGet.ProjectManagement; using NuGet.VisualStudio; using NuGet.VisualStudio.Internal.Contracts; diff --git a/test/NuGet.Tests.Apex/NuGet.Tests.Apex/NuGetEndToEndTests/NuGetConsoleTestCase.cs b/test/NuGet.Tests.Apex/NuGet.Tests.Apex/NuGetEndToEndTests/NuGetConsoleTestCase.cs index a6c1abcfcc2..d6f41256730 100644 --- a/test/NuGet.Tests.Apex/NuGet.Tests.Apex/NuGetEndToEndTests/NuGetConsoleTestCase.cs +++ b/test/NuGet.Tests.Apex/NuGet.Tests.Apex/NuGetEndToEndTests/NuGetConsoleTestCase.cs @@ -7,7 +7,6 @@ using FluentAssertions; using Microsoft.Test.Apex.VisualStudio.Solution; using Microsoft.VisualStudio.TestTools.UnitTesting; -using NuGet.Configuration; using NuGet.Test.Utility; namespace NuGet.Tests.Apex diff --git a/test/NuGet.Tests.Apex/NuGet.Tests.Apex/NuGetEndToEndTests/NuGetUITestCase.cs b/test/NuGet.Tests.Apex/NuGet.Tests.Apex/NuGetEndToEndTests/NuGetUITestCase.cs index 270cf52e415..22d1bc97f5d 100644 --- a/test/NuGet.Tests.Apex/NuGet.Tests.Apex/NuGetEndToEndTests/NuGetUITestCase.cs +++ b/test/NuGet.Tests.Apex/NuGet.Tests.Apex/NuGetEndToEndTests/NuGetUITestCase.cs @@ -4,7 +4,6 @@ using System.IO; using System.Threading; using System.Threading.Tasks; -using FluentAssertions; using Microsoft.Test.Apex.VisualStudio.Solution; using Microsoft.VisualStudio.TestTools.UnitTesting; using NuGet.Test.Utility; diff --git a/test/TestExtensions/API.Test/Cmdlets/GetInstalledPackageCommand.cs b/test/TestExtensions/API.Test/Cmdlets/GetInstalledPackageCommand.cs index 8a802b10802..595fd58751e 100644 --- a/test/TestExtensions/API.Test/Cmdlets/GetInstalledPackageCommand.cs +++ b/test/TestExtensions/API.Test/Cmdlets/GetInstalledPackageCommand.cs @@ -4,7 +4,6 @@ using System.Collections.Generic; using System.Management.Automation; using System.Threading.Tasks; -using Microsoft; using NuGet.VisualStudio; using Task = System.Threading.Tasks.Task; diff --git a/test/TestExtensions/API.Test/InternalAPITestHook.cs b/test/TestExtensions/API.Test/InternalAPITestHook.cs index 1c2f4b5eef7..4647a62548f 100644 --- a/test/TestExtensions/API.Test/InternalAPITestHook.cs +++ b/test/TestExtensions/API.Test/InternalAPITestHook.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Threading.Tasks; using Microsoft.VisualStudio.Shell; using NuGet.Common; using NuGet.PackageManagement.VisualStudio; diff --git a/test/TestExtensions/API.Test/Utils.cs b/test/TestExtensions/API.Test/Utils.cs index 8419c5d992a..621596250ea 100644 --- a/test/TestExtensions/API.Test/Utils.cs +++ b/test/TestExtensions/API.Test/Utils.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace API.Test { diff --git a/test/TestExtensions/GenerateTestPackages/AssemblySourceFileGenerator_Partial.cs b/test/TestExtensions/GenerateTestPackages/AssemblySourceFileGenerator_Partial.cs index 225e2860d3f..e53f9a914c3 100644 --- a/test/TestExtensions/GenerateTestPackages/AssemblySourceFileGenerator_Partial.cs +++ b/test/TestExtensions/GenerateTestPackages/AssemblySourceFileGenerator_Partial.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - namespace GenerateTestPackages { partial class AssemblySourceFileGenerator diff --git a/test/TestExtensions/SampleCommandLineExtensions/GreetCommand.cs b/test/TestExtensions/SampleCommandLineExtensions/GreetCommand.cs index 28d400e17f0..58d34212323 100644 --- a/test/TestExtensions/SampleCommandLineExtensions/GreetCommand.cs +++ b/test/TestExtensions/SampleCommandLineExtensions/GreetCommand.cs @@ -2,8 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.ComponentModel.Composition; -using NuGet.CommandLine; using NuGet; +using NuGet.CommandLine; namespace SampleCommandLineExtensions { diff --git a/test/TestExtensions/TestableVSCredentialProvider/TestCredentialProvider2.cs b/test/TestExtensions/TestableVSCredentialProvider/TestCredentialProvider2.cs index d88a014ae42..7d24570757d 100644 --- a/test/TestExtensions/TestableVSCredentialProvider/TestCredentialProvider2.cs +++ b/test/TestExtensions/TestableVSCredentialProvider/TestCredentialProvider2.cs @@ -1,11 +1,4 @@ -using System; using System.ComponentModel.Composition; -using System.Diagnostics; -using System.Linq; -using System.Net; -using System.Security; -using System.Threading; -using System.Threading.Tasks; using NuGet.VisualStudio; namespace NuGet.Test.TestExtensions.TestableVSCredentialProvider diff --git a/test/TestUtilities/Test.Utility/CommandRunnerResult.cs b/test/TestUtilities/Test.Utility/CommandRunnerResult.cs index 5f31f77bdfa..7aa40582098 100644 --- a/test/TestUtilities/Test.Utility/CommandRunnerResult.cs +++ b/test/TestUtilities/Test.Utility/CommandRunnerResult.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Diagnostics; namespace NuGet.Test.Utility { diff --git a/test/TestUtilities/Test.Utility/Commands/PackageReferenceSpecBuilder.cs b/test/TestUtilities/Test.Utility/Commands/PackageReferenceSpecBuilder.cs index 358a834433a..62f6b2d7407 100644 --- a/test/TestUtilities/Test.Utility/Commands/PackageReferenceSpecBuilder.cs +++ b/test/TestUtilities/Test.Utility/Commands/PackageReferenceSpecBuilder.cs @@ -9,8 +9,6 @@ using NuGet.Frameworks; using NuGet.Packaging; using NuGet.ProjectModel; -using NuGet.RuntimeModel; -using NuGet.Versioning; namespace Test.Utility.Commands { diff --git a/test/TestUtilities/Test.Utility/GlobalFolderUtility.cs b/test/TestUtilities/Test.Utility/GlobalFolderUtility.cs index f4626b58b60..4427f459625 100644 --- a/test/TestUtilities/Test.Utility/GlobalFolderUtility.cs +++ b/test/TestUtilities/Test.Utility/GlobalFolderUtility.cs @@ -1,7 +1,6 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System.Collections.Generic; using System.IO; using System.Threading; using System.Threading.Tasks; diff --git a/test/TestUtilities/Test.Utility/PlatformXunitAttributes/PackageSourceTheoryAttribute.cs b/test/TestUtilities/Test.Utility/PlatformXunitAttributes/PackageSourceTheoryAttribute.cs index 00f20f12a38..252ff837437 100644 --- a/test/TestUtilities/Test.Utility/PlatformXunitAttributes/PackageSourceTheoryAttribute.cs +++ b/test/TestUtilities/Test.Utility/PlatformXunitAttributes/PackageSourceTheoryAttribute.cs @@ -7,7 +7,6 @@ using System.IO; using System.Linq; using System.Reflection; -using NuGet.Common; using NuGet.Configuration; using Xunit; using Xunit.Abstractions; diff --git a/test/TestUtilities/Test.Utility/PlatformXunitAttributes/PlatformTheoryAttribute.cs b/test/TestUtilities/Test.Utility/PlatformXunitAttributes/PlatformTheoryAttribute.cs index 96b19924402..997f0fec8c4 100644 --- a/test/TestUtilities/Test.Utility/PlatformXunitAttributes/PlatformTheoryAttribute.cs +++ b/test/TestUtilities/Test.Utility/PlatformXunitAttributes/PlatformTheoryAttribute.cs @@ -1,9 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; -using NuGet.Common; using Xunit; namespace NuGet.Test.Utility diff --git a/test/TestUtilities/Test.Utility/ProjectManagement/TestCpsPackageReferenceProject.cs b/test/TestUtilities/Test.Utility/ProjectManagement/TestCpsPackageReferenceProject.cs index 125b8e0a5a5..65181b6f5b4 100644 --- a/test/TestUtilities/Test.Utility/ProjectManagement/TestCpsPackageReferenceProject.cs +++ b/test/TestUtilities/Test.Utility/ProjectManagement/TestCpsPackageReferenceProject.cs @@ -6,11 +6,11 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; +using FluentAssertions; using Microsoft.VisualStudio.ProjectSystem; using Moq; using NuGet.Common; using NuGet.Configuration; -using FluentAssertions; using NuGet.Frameworks; using NuGet.LibraryModel; using NuGet.PackageManagement.VisualStudio; diff --git a/test/TestUtilities/Test.Utility/ProjectManagement/TestSourceControlManagerProvider.cs b/test/TestUtilities/Test.Utility/ProjectManagement/TestSourceControlManagerProvider.cs index c94f8837fc5..60f197e047c 100644 --- a/test/TestUtilities/Test.Utility/ProjectManagement/TestSourceControlManagerProvider.cs +++ b/test/TestUtilities/Test.Utility/ProjectManagement/TestSourceControlManagerProvider.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using NuGet.Configuration; using NuGet.ProjectManagement; namespace Test.Utility diff --git a/test/TestUtilities/Test.Utility/Protocol/V3PackageSearchMetadataFixture.cs b/test/TestUtilities/Test.Utility/Protocol/V3PackageSearchMetadataFixture.cs index fcf7fab8e50..f971c33a1f9 100644 --- a/test/TestUtilities/Test.Utility/Protocol/V3PackageSearchMetadataFixture.cs +++ b/test/TestUtilities/Test.Utility/Protocol/V3PackageSearchMetadataFixture.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using System.Xml.Linq; using NuGet.Packaging; using NuGet.Packaging.Core; using NuGet.Protocol; diff --git a/test/TestUtilities/Test.Utility/ProtocolUtility.cs b/test/TestUtilities/Test.Utility/ProtocolUtility.cs index 19ab0f9a0fa..cc1a5463da4 100644 --- a/test/TestUtilities/Test.Utility/ProtocolUtility.cs +++ b/test/TestUtilities/Test.Utility/ProtocolUtility.cs @@ -2,16 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using System.Globalization; using System.IO; -using System.Linq; -using System.Net; -using System.Net.Http; -using System.Reflection; -using System.Threading; -using System.Threading.Tasks; -using System.Xml.Linq; namespace Test.Utility { diff --git a/test/TestUtilities/Test.Utility/ResourceTestUtility.cs b/test/TestUtilities/Test.Utility/ResourceTestUtility.cs index 5b12fe5b0c8..0ed1dd52b77 100644 --- a/test/TestUtilities/Test.Utility/ResourceTestUtility.cs +++ b/test/TestUtilities/Test.Utility/ResourceTestUtility.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.Reflection; namespace NuGet.Test.Utility { diff --git a/test/TestUtilities/Test.Utility/Signing/Asn.1/OcspRequest.cs b/test/TestUtilities/Test.Utility/Signing/Asn.1/OcspRequest.cs index 8bc68e120f6..b41e1df9a43 100644 --- a/test/TestUtilities/Test.Utility/Signing/Asn.1/OcspRequest.cs +++ b/test/TestUtilities/Test.Utility/Signing/Asn.1/OcspRequest.cs @@ -5,7 +5,6 @@ using System; using System.Formats.Asn1; -using System.Security.Cryptography; namespace Test.Utility.Signing { diff --git a/test/TestUtilities/Test.Utility/Signing/X509StoreUtilities.cs b/test/TestUtilities/Test.Utility/Signing/X509StoreUtilities.cs index 2717d04ad3b..f314a4e4990 100644 --- a/test/TestUtilities/Test.Utility/Signing/X509StoreUtilities.cs +++ b/test/TestUtilities/Test.Utility/Signing/X509StoreUtilities.cs @@ -4,7 +4,6 @@ using System; using System.Security.Cryptography.X509Certificates; using NuGet.Common; -using NuGet.Packaging.Signing; namespace Test.Utility.Signing { diff --git a/test/TestUtilities/Test.Utility/SimpleTestSetup/ProjectFileUtils.cs b/test/TestUtilities/Test.Utility/SimpleTestSetup/ProjectFileUtils.cs index 35605b6b2f5..b84ec2cf74d 100644 --- a/test/TestUtilities/Test.Utility/SimpleTestSetup/ProjectFileUtils.cs +++ b/test/TestUtilities/Test.Utility/SimpleTestSetup/ProjectFileUtils.cs @@ -7,7 +7,6 @@ using System.Linq; using System.Text; using System.Xml.Linq; -using NuGet.Commands; using NuGet.Common; using NuGet.Frameworks; diff --git a/test/TestUtilities/Test.Utility/SourceRepository/TestSourceRepositoryUtility.cs b/test/TestUtilities/Test.Utility/SourceRepository/TestSourceRepositoryUtility.cs index 63f3bf45111..e55836f4cdc 100644 --- a/test/TestUtilities/Test.Utility/SourceRepository/TestSourceRepositoryUtility.cs +++ b/test/TestUtilities/Test.Utility/SourceRepository/TestSourceRepositoryUtility.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/test/TestUtilities/Test.Utility/TestFileSystemUtility.cs b/test/TestUtilities/Test.Utility/TestFileSystemUtility.cs index c68da08a1ac..a2abd98ecae 100644 --- a/test/TestUtilities/Test.Utility/TestFileSystemUtility.cs +++ b/test/TestUtilities/Test.Utility/TestFileSystemUtility.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.Reflection; namespace NuGet.Test.Utility { diff --git a/test/TestUtilities/Test.Utility/TestServer/PortReserver.cs b/test/TestUtilities/Test.Utility/TestServer/PortReserver.cs index 9b86486734c..f781e068611 100644 --- a/test/TestUtilities/Test.Utility/TestServer/PortReserver.cs +++ b/test/TestUtilities/Test.Utility/TestServer/PortReserver.cs @@ -3,13 +3,10 @@ using System; using System.Collections.Concurrent; -using System.Linq; using System.Net; -using System.Net.NetworkInformation; using System.Net.Sockets; using System.Threading; using System.Threading.Tasks; -using NuGet.Common; namespace NuGet.Test.Server { diff --git a/test/TestUtilities/Test.Utility/TestServer/TcpListenerServer.cs b/test/TestUtilities/Test.Utility/TestServer/TcpListenerServer.cs index 36c1e08d009..904e44137d9 100644 --- a/test/TestUtilities/Test.Utility/TestServer/TcpListenerServer.cs +++ b/test/TestUtilities/Test.Utility/TestServer/TcpListenerServer.cs @@ -4,13 +4,13 @@ using System; using System.IO; using System.Net; +using System.Net.Security; using System.Net.Sockets; -using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography; +using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading; using System.Threading.Tasks; -using System.Net.Security; namespace NuGet.Test.Server { diff --git a/tools-local/doc.tasks/GenerateMarkdownDoc.cs b/tools-local/doc.tasks/GenerateMarkdownDoc.cs index 00694a4f699..249a68b0870 100644 --- a/tools-local/doc.tasks/GenerateMarkdownDoc.cs +++ b/tools-local/doc.tasks/GenerateMarkdownDoc.cs @@ -2,12 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; using System.IO; using System.Linq; -using System.Runtime.CompilerServices; using System.Xml.XPath; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/tools-local/ship-public-apis/Program.cs b/tools-local/ship-public-apis/Program.cs index 664cbdb3afd..f8e688ad465 100644 --- a/tools-local/ship-public-apis/Program.cs +++ b/tools-local/ship-public-apis/Program.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Invocation; using System.IO; using System.Threading.Tasks;