diff --git a/src/Cli/Microsoft.DotNet.Cli.Sln.Internal/Properties/AssemblyInfo.cs b/src/Cli/Microsoft.DotNet.Cli.Sln.Internal/Properties/AssemblyInfo.cs index d129fabd9a3d..98cdd1d19b73 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Sln.Internal/Properties/AssemblyInfo.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Sln.Internal/Properties/AssemblyInfo.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Reflection; using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Microsoft.DotNet.Cli.Sln.Internal.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/ArgumentEscaper.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/ArgumentEscaper.cs index a25ffb561936..5365375086d2 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/ArgumentEscaper.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/ArgumentEscaper.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Text; namespace Microsoft.DotNet.Cli.Utils diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/BuiltInCommand.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/BuiltInCommand.cs index d115b3a9df4c..e52d8e5e2011 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/BuiltInCommand.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/BuiltInCommand.cs @@ -6,7 +6,6 @@ using System.Diagnostics; using System.IO; using System.Linq; -using System.Threading; using System.Threading.Tasks; namespace Microsoft.DotNet.Cli.Utils diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Command.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Command.cs index 127ad86bbc0b..b2375feeaa2b 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Command.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Command.cs @@ -2,13 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Diagnostics; using System.IO; -using System.Linq; using System.Runtime.CompilerServices; -using NuGet.Frameworks; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/DebugHelper.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/DebugHelper.cs index 89b76bd51e56..fc0ed69807f4 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/DebugHelper.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/DebugHelper.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.CommandLine; -using System.CommandLine.Parsing; using System.Diagnostics; using System.Linq; diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileExtensions.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileExtensions.cs index b9abe2964e98..80b3c7f86846 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileExtensions.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileExtensions.cs @@ -4,10 +4,8 @@ using Microsoft.DotNet.Tools.Common; using NuGet.Packaging; using NuGet.ProjectModel; -using System; using System.Collections.Generic; using System.Linq; -using System.Text; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/FileNameSuffixes.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/FileNameSuffixes.cs index 64c332befd4b..1a062645a5cd 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/FileNameSuffixes.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/FileNameSuffixes.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Runtime.InteropServices; namespace Microsoft.DotNet.Cli.Utils diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/ForwardingAppImplementation.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/ForwardingAppImplementation.cs index aef28903710c..3e1ade540fb6 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/ForwardingAppImplementation.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/ForwardingAppImplementation.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Diagnostics; -using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/GracefulException.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/GracefulException.cs index 5010cebca342..3046c3f8931f 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/GracefulException.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/GracefulException.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildPropertyParser.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildPropertyParser.cs index 66550c88b167..d3773e9c600e 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildPropertyParser.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildPropertyParser.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Text; #nullable enable diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.cs index 38c5f09fa24a..8751c8740640 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Runtime.InteropServices; -using System.Security.Principal; using System.Threading.Tasks; using Microsoft.Win32; diff --git a/src/Cli/Microsoft.DotNet.Configurer/AspNetCertificateSentinel.cs b/src/Cli/Microsoft.DotNet.Configurer/AspNetCertificateSentinel.cs index d6ecebc44764..d7e6c4d556e3 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/AspNetCertificateSentinel.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/AspNetCertificateSentinel.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.IO; -using System.Text; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/Microsoft.DotNet.Configurer/CliFolderPathCalculator.cs b/src/Cli/Microsoft.DotNet.Configurer/CliFolderPathCalculator.cs index c88b7b8da7d0..fb48ef22afdc 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/CliFolderPathCalculator.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/CliFolderPathCalculator.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; using NuGet.Common; diff --git a/src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.cs b/src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.cs index f14168a337d7..19800ffe3500 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.cs @@ -3,11 +3,8 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.IO; using System.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; -using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; namespace Microsoft.DotNet.Configurer diff --git a/src/Cli/Microsoft.DotNet.Configurer/FileSentinel.cs b/src/Cli/Microsoft.DotNet.Configurer/FileSentinel.cs index 847b60b9791c..90424de7ad52 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/FileSentinel.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/FileSentinel.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.Configurer diff --git a/src/Cli/Microsoft.DotNet.Configurer/FirstTimeUseNoticeSentinel.cs b/src/Cli/Microsoft.DotNet.Configurer/FirstTimeUseNoticeSentinel.cs index 153b33bc0f6e..87a8b93ebeb1 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/FirstTimeUseNoticeSentinel.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/FirstTimeUseNoticeSentinel.cs @@ -4,7 +4,6 @@ using System.IO; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; -using NuGet.Configuration; namespace Microsoft.DotNet.Configurer { diff --git a/src/Cli/Microsoft.DotNet.Configurer/IFileSentinel.cs b/src/Cli/Microsoft.DotNet.Configurer/IFileSentinel.cs index f32f404b3ada..d9a3aa9cee1c 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/IFileSentinel.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/IFileSentinel.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; - namespace Microsoft.DotNet.Configurer { public interface IFileSentinel diff --git a/src/Cli/Microsoft.DotNet.Configurer/NoOpFileSentinel.cs b/src/Cli/Microsoft.DotNet.Configurer/NoOpFileSentinel.cs index 115da3d3f076..120a188e8df1 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/NoOpFileSentinel.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/NoOpFileSentinel.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; - namespace Microsoft.DotNet.Configurer { public class NoOpFileSentinel : IFileSentinel diff --git a/src/Cli/Microsoft.DotNet.Configurer/NoOpFirstTimeUseNoticeSentinel.cs b/src/Cli/Microsoft.DotNet.Configurer/NoOpFirstTimeUseNoticeSentinel.cs index 3cd59b0fe2a9..fd5f9935edef 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/NoOpFirstTimeUseNoticeSentinel.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/NoOpFirstTimeUseNoticeSentinel.cs @@ -1,11 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; -using Microsoft.DotNet.Cli.Utils; -using Microsoft.Extensions.EnvironmentAbstractions; -using NuGet.Configuration; - namespace Microsoft.DotNet.Configurer { public class NoOpFirstTimeUseNoticeSentinel : IFirstTimeUseNoticeSentinel diff --git a/src/Cli/Microsoft.DotNet.InternalAbstractions/FileWrapper.cs b/src/Cli/Microsoft.DotNet.InternalAbstractions/FileWrapper.cs index 003c806c1305..c41686e2282e 100644 --- a/src/Cli/Microsoft.DotNet.InternalAbstractions/FileWrapper.cs +++ b/src/Cli/Microsoft.DotNet.InternalAbstractions/FileWrapper.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.IO; namespace Microsoft.Extensions.EnvironmentAbstractions diff --git a/src/Cli/Microsoft.DotNet.InternalAbstractions/TemporaryDirectory.cs b/src/Cli/Microsoft.DotNet.InternalAbstractions/TemporaryDirectory.cs index 8aaee168a925..17efe9ec87d1 100644 --- a/src/Cli/Microsoft.DotNet.InternalAbstractions/TemporaryDirectory.cs +++ b/src/Cli/Microsoft.DotNet.InternalAbstractions/TemporaryDirectory.cs @@ -3,7 +3,6 @@ using System.IO; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.DotNet; namespace Microsoft.DotNet.InternalAbstractions { diff --git a/src/Cli/dotnet/BuildServer/IBuildServer.cs b/src/Cli/dotnet/BuildServer/IBuildServer.cs index c131cacb3ae3..05329a75685a 100644 --- a/src/Cli/dotnet/BuildServer/IBuildServer.cs +++ b/src/Cli/dotnet/BuildServer/IBuildServer.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Threading.Tasks; - namespace Microsoft.DotNet.BuildServer { internal interface IBuildServer diff --git a/src/Cli/dotnet/BuildServer/MSBuildServer.cs b/src/Cli/dotnet/BuildServer/MSBuildServer.cs index 38bb9e9cbb17..554b32c49d21 100644 --- a/src/Cli/dotnet/BuildServer/MSBuildServer.cs +++ b/src/Cli/dotnet/BuildServer/MSBuildServer.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Threading.Tasks; using Microsoft.Build.Execution; namespace Microsoft.DotNet.BuildServer diff --git a/src/Cli/dotnet/BuildServer/RazorServer.cs b/src/Cli/dotnet/BuildServer/RazorServer.cs index 2a39eb95ba62..5487112a93f0 100644 --- a/src/Cli/dotnet/BuildServer/RazorServer.cs +++ b/src/Cli/dotnet/BuildServer/RazorServer.cs @@ -2,13 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Diagnostics; using System.IO; -using System.Threading.Tasks; using Microsoft.DotNet.Cli; -using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.CommandFactory; -using Microsoft.DotNet.Tools; using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.BuildServer diff --git a/src/Cli/dotnet/BuildServer/VBCSCompilerServer.cs b/src/Cli/dotnet/BuildServer/VBCSCompilerServer.cs index f8f6b02f2a35..74165779c891 100644 --- a/src/Cli/dotnet/BuildServer/VBCSCompilerServer.cs +++ b/src/Cli/dotnet/BuildServer/VBCSCompilerServer.cs @@ -1,12 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.IO; using System.Reflection; -using System.Threading.Tasks; using Microsoft.DotNet.Cli; -using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.CommandFactory; namespace Microsoft.DotNet.BuildServer diff --git a/src/Cli/dotnet/CliTransaction.cs b/src/Cli/dotnet/CliTransaction.cs index 78d43c5729d4..112444a5efac 100644 --- a/src/Cli/dotnet/CliTransaction.cs +++ b/src/Cli/dotnet/CliTransaction.cs @@ -3,9 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/CommandBase.cs b/src/Cli/dotnet/CommandBase.cs index 510d90ea4f5d..47cde6d8ff40 100644 --- a/src/Cli/dotnet/CommandBase.cs +++ b/src/Cli/dotnet/CommandBase.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.CommandLine.Parsing; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.cs index c10445a2e5f9..810ee619577a 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.cs index 3747aacadac2..3f8b1c9072fb 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.cs @@ -7,7 +7,6 @@ using System.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Common; -using NuGet.Packaging; using NuGet.ProjectModel; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.cs index b84c61c1b246..6a1ebd5407db 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.cs @@ -6,7 +6,6 @@ using System.IO; using System.Linq; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools.Common; using NuGet.Frameworks; using NuGet.ProjectModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs index 46ce9c9f62d1..5fd14861c753 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs @@ -8,9 +8,6 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools.Common; -using Microsoft.Extensions.DependencyModel; -using NuGet.Configuration; using NuGet.Frameworks; using NuGet.ProjectModel; using NuGet.Versioning; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.cs index 581ec3b66223..40325f728c89 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandLineInfo.cs b/src/Cli/dotnet/CommandLineInfo.cs index bc68a2889367..7765989ad15b 100644 --- a/src/Cli/dotnet/CommandLineInfo.cs +++ b/src/Cli/dotnet/CommandLineInfo.cs @@ -6,7 +6,6 @@ using Microsoft.DotNet.Cli.Utils; using LocalizableStrings = Microsoft.DotNet.Cli.Utils.LocalizableStrings; using RuntimeEnvironment = Microsoft.DotNet.Cli.Utils.RuntimeEnvironment; -using WorkloadCommandParser = Microsoft.DotNet.Cli.WorkloadCommandParser; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/CommandLineValidation/CommandParsingException.cs b/src/Cli/dotnet/CommandLineValidation/CommandParsingException.cs index 29da8f402586..b9e2f7732b7a 100644 --- a/src/Cli/dotnet/CommandLineValidation/CommandParsingException.cs +++ b/src/Cli/dotnet/CommandLineValidation/CommandParsingException.cs @@ -3,7 +3,6 @@ using System; using System.CommandLine; -using System.CommandLine.Parsing; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/DotNetCommandFactory.cs b/src/Cli/dotnet/DotNetCommandFactory.cs index e2a05b633e3b..b89f6c1e1b46 100644 --- a/src/Cli/dotnet/DotNetCommandFactory.cs +++ b/src/Cli/dotnet/DotNetCommandFactory.cs @@ -3,9 +3,7 @@ using System; using System.Collections.Generic; -using System.CommandLine.Invocation; using System.Diagnostics; -using System.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.CommandFactory; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/FilePermissionSetter.cs b/src/Cli/dotnet/FilePermissionSetter.cs index 3d8ac6377de0..2c6bf5cd19e7 100644 --- a/src/Cli/dotnet/FilePermissionSetter.cs +++ b/src/Cli/dotnet/FilePermissionSetter.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Tools diff --git a/src/Cli/dotnet/ICommandRunner.cs b/src/Cli/dotnet/ICommandRunner.cs index 33dfa97c14e0..88cf8b86973c 100644 --- a/src/Cli/dotnet/ICommandRunner.cs +++ b/src/Cli/dotnet/ICommandRunner.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; - namespace Microsoft.DotNet.Cli { public interface ICommandRunner diff --git a/src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.cs b/src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.cs index 72451cc84192..76239b25fb91 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.cs @@ -4,7 +4,6 @@ using System; using System.IO.Pipes; using System.Runtime.Versioning; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using static Microsoft.Win32.Msi.Error; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Cli/dotnet/Installer/Windows/InstallRequestMessage.cs b/src/Cli/dotnet/Installer/Windows/InstallRequestMessage.cs index d38d47a6af0f..5062154624a1 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallRequestMessage.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallRequestMessage.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Newtonsoft.Json; namespace Microsoft.DotNet.Installer.Windows diff --git a/src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.cs b/src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.cs index f98cb29eba6a..d333bc6ba703 100644 --- a/src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.cs +++ b/src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.IO; using System.IO.Pipes; using System.Runtime.Versioning; diff --git a/src/Cli/dotnet/NuGetForwardingApp.cs b/src/Cli/dotnet/NuGetForwardingApp.cs index e09a70a9b47e..dfe3c558fec0 100644 --- a/src/Cli/dotnet/NuGetForwardingApp.cs +++ b/src/Cli/dotnet/NuGetForwardingApp.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.IO; using Microsoft.DotNet.Cli; -using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Tools { diff --git a/src/Cli/dotnet/NugetPackageDownloader/RestoreActionConfig.cs b/src/Cli/dotnet/NugetPackageDownloader/RestoreActionConfig.cs index 63005de8f063..a510b84bce75 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/RestoreActionConfig.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/RestoreActionConfig.cs @@ -1,11 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.IO; -using Microsoft.Extensions.EnvironmentAbstractions; - namespace Microsoft.DotNet.Cli.NuGetPackageDownloader { /// The flag to enable nuget authentication plugin. diff --git a/src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.cs b/src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.cs index e62ddbbb865c..b30d15f4004f 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.cs @@ -6,9 +6,6 @@ using System.IO; using System.Xml; using System.Xml.Serialization; -using Microsoft.DotNet.ToolPackage; -using Microsoft.DotNet.ToolPackage.ToolConfigurationDeserialization; -using Microsoft.DotNet.Tools; namespace Microsoft.DotNet.Cli.NuGetPackageDownloader.WorkloadUnixFilePermissions { diff --git a/src/Cli/dotnet/NugetSearch/NugetSearchApiParameter.cs b/src/Cli/dotnet/NugetSearch/NugetSearchApiParameter.cs index 77d4e36dc68a..c2d26cfc9af0 100644 --- a/src/Cli/dotnet/NugetSearch/NugetSearchApiParameter.cs +++ b/src/Cli/dotnet/NugetSearch/NugetSearchApiParameter.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.CommandLine.Parsing; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/PerformanceLogManager.cs b/src/Cli/dotnet/PerformanceLogManager.cs index 8fb112db325e..005f56e5f490 100644 --- a/src/Cli/dotnet/PerformanceLogManager.cs +++ b/src/Cli/dotnet/PerformanceLogManager.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Threading.Tasks; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/ProjectRootElementExtensions.cs b/src/Cli/dotnet/ProjectRootElementExtensions.cs index 977527dd6c85..421c4a2b1bc5 100644 --- a/src/Cli/dotnet/ProjectRootElementExtensions.cs +++ b/src/Cli/dotnet/ProjectRootElementExtensions.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.Linq; using Microsoft.Build.Construction; diff --git a/src/Cli/dotnet/ReleasePropertyProjectLocator.cs b/src/Cli/dotnet/ReleasePropertyProjectLocator.cs index 8b7ed0c05125..25d43fcdefc2 100644 --- a/src/Cli/dotnet/ReleasePropertyProjectLocator.cs +++ b/src/Cli/dotnet/ReleasePropertyProjectLocator.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using System.Diagnostics; using System.IO; using System.Linq; diff --git a/src/Cli/dotnet/RuntimeConfig.cs b/src/Cli/dotnet/RuntimeConfig.cs index f9f75b7ccfe8..4ba28b5e87e0 100644 --- a/src/Cli/dotnet/RuntimeConfig.cs +++ b/src/Cli/dotnet/RuntimeConfig.cs @@ -4,7 +4,6 @@ using System; using System.Text.Json; using System.IO; -using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Tools.Common { diff --git a/src/Cli/dotnet/RuntimeConfigFramework.cs b/src/Cli/dotnet/RuntimeConfigFramework.cs index c9de2c1a85c5..738bf254db24 100644 --- a/src/Cli/dotnet/RuntimeConfigFramework.cs +++ b/src/Cli/dotnet/RuntimeConfigFramework.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; - namespace Microsoft.DotNet.Tools { internal class RuntimeConfigFramework diff --git a/src/Cli/dotnet/ShellShim/AppHostShimMaker.cs b/src/Cli/dotnet/ShellShim/AppHostShimMaker.cs index 9f34e45b3143..bf6462f8b281 100644 --- a/src/Cli/dotnet/ShellShim/AppHostShimMaker.cs +++ b/src/Cli/dotnet/ShellShim/AppHostShimMaker.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.Runtime.InteropServices; using Microsoft.DotNet.Tools; using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.NET.HostModel; diff --git a/src/Cli/dotnet/ShellShim/DoNothingEnvironmentPath.cs b/src/Cli/dotnet/ShellShim/DoNothingEnvironmentPath.cs index ed30255ce5a1..7ceda950747b 100644 --- a/src/Cli/dotnet/ShellShim/DoNothingEnvironmentPath.cs +++ b/src/Cli/dotnet/ShellShim/DoNothingEnvironmentPath.cs @@ -1,10 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Diagnostics; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.ShellShim diff --git a/src/Cli/dotnet/ShellShim/EnvironmentPathFactory.cs b/src/Cli/dotnet/ShellShim/EnvironmentPathFactory.cs index 8b03751853f3..427e4f44e888 100644 --- a/src/Cli/dotnet/ShellShim/EnvironmentPathFactory.cs +++ b/src/Cli/dotnet/ShellShim/EnvironmentPathFactory.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Linq; -using System.Runtime.InteropServices; -using System.Xml.Xsl; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ShellShim/WindowsEnvironmentPath.cs b/src/Cli/dotnet/ShellShim/WindowsEnvironmentPath.cs index a35c9c5fc5af..8e2e25748205 100644 --- a/src/Cli/dotnet/ShellShim/WindowsEnvironmentPath.cs +++ b/src/Cli/dotnet/ShellShim/WindowsEnvironmentPath.cs @@ -5,7 +5,6 @@ using System.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools; -using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.ShellShim { diff --git a/src/Cli/dotnet/SlnFileExtensions.cs b/src/Cli/dotnet/SlnFileExtensions.cs index 0dec97f3ad7d..4a46eebe258a 100644 --- a/src/Cli/dotnet/SlnFileExtensions.cs +++ b/src/Cli/dotnet/SlnFileExtensions.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Construction; -using Microsoft.Build.Evaluation; using Microsoft.Build.Exceptions; using Microsoft.Build.Execution; using Microsoft.DotNet.Cli.Sln.Internal; diff --git a/src/Cli/dotnet/SlnProjectCollectionExtensions.cs b/src/Cli/dotnet/SlnProjectCollectionExtensions.cs index 12e972701062..055681f22ded 100644 --- a/src/Cli/dotnet/SlnProjectCollectionExtensions.cs +++ b/src/Cli/dotnet/SlnProjectCollectionExtensions.cs @@ -3,7 +3,6 @@ using Microsoft.DotNet.Cli.Sln.Internal; using System.Collections.Generic; -using System.IO; using System.Linq; namespace Microsoft.DotNet.Tools.Common diff --git a/src/Cli/dotnet/StatInterop.cs b/src/Cli/dotnet/StatInterop.cs index c19c67676b9e..67df3c575b0c 100644 --- a/src/Cli/dotnet/StatInterop.cs +++ b/src/Cli/dotnet/StatInterop.cs @@ -3,7 +3,6 @@ using System; using System.Runtime.InteropServices; -using Microsoft.Win32.SafeHandles; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/Telemetry/AllowListToSendFirstAppliedOptions.cs b/src/Cli/dotnet/Telemetry/AllowListToSendFirstAppliedOptions.cs index 30e990ed8a5a..009186d9b516 100644 --- a/src/Cli/dotnet/Telemetry/AllowListToSendFirstAppliedOptions.cs +++ b/src/Cli/dotnet/Telemetry/AllowListToSendFirstAppliedOptions.cs @@ -4,7 +4,6 @@ using System.Collections.Generic; using System.Linq; using System.CommandLine; -using System.CommandLine.Parsing; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.Telemetry diff --git a/src/Cli/dotnet/Telemetry/CIEnvironmentDetectorForTelemetry.cs b/src/Cli/dotnet/Telemetry/CIEnvironmentDetectorForTelemetry.cs index fe511d2d45dc..d61714bfd76e 100644 --- a/src/Cli/dotnet/Telemetry/CIEnvironmentDetectorForTelemetry.cs +++ b/src/Cli/dotnet/Telemetry/CIEnvironmentDetectorForTelemetry.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.IO; using System.Linq; namespace Microsoft.DotNet.Cli.Telemetry diff --git a/src/Cli/dotnet/Telemetry/DockerContainerDetectorForTelemetry.cs b/src/Cli/dotnet/Telemetry/DockerContainerDetectorForTelemetry.cs index f60b5aeeaa24..2e8a1d88e7c7 100644 --- a/src/Cli/dotnet/Telemetry/DockerContainerDetectorForTelemetry.cs +++ b/src/Cli/dotnet/Telemetry/DockerContainerDetectorForTelemetry.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.Runtime.InteropServices; using System.Security; using Microsoft.Win32; diff --git a/src/Cli/dotnet/Telemetry/IParseResultLogRule.cs b/src/Cli/dotnet/Telemetry/IParseResultLogRule.cs index c9de5608c9bf..6bef405c7aa2 100644 --- a/src/Cli/dotnet/Telemetry/IParseResultLogRule.cs +++ b/src/Cli/dotnet/Telemetry/IParseResultLogRule.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.Telemetry diff --git a/src/Cli/dotnet/Telemetry/MacAddressGetter.cs b/src/Cli/dotnet/Telemetry/MacAddressGetter.cs index 902320009b46..8d25f02b3a0c 100644 --- a/src/Cli/dotnet/Telemetry/MacAddressGetter.cs +++ b/src/Cli/dotnet/Telemetry/MacAddressGetter.cs @@ -5,7 +5,6 @@ using System.Linq; using System.Diagnostics; using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Text.RegularExpressions; using System.Net.NetworkInformation; using System.ComponentModel; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/BaseStorageService.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/BaseStorageService.cs index 7808e175eacf..598e88001631 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/BaseStorageService.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/BaseStorageService.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.ApplicationInsights.Channel; -using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel { diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannelDebugLog.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannelDebugLog.cs index c51ad78fd42a..21691cd01c3c 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannelDebugLog.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannelDebugLog.cs @@ -3,7 +3,6 @@ using System; using System.Globalization; -using System.IO; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/Sender.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/Sender.cs index 5510bfad9b8f..53c24e5be258 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/Sender.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/Sender.cs @@ -2,12 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Globalization; using System.Net; using System.Net.NetworkInformation; using System.Threading; using System.Threading.Tasks; -using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel { diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageService.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageService.cs index 07f1a1879af9..038941e9a866 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageService.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageService.cs @@ -9,7 +9,6 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.ApplicationInsights.Channel; -using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel diff --git a/src/Cli/dotnet/Telemetry/TopLevelCommandNameAndOptionToLog.cs b/src/Cli/dotnet/Telemetry/TopLevelCommandNameAndOptionToLog.cs index 0ff74595dab8..cb1b8f9c30ed 100644 --- a/src/Cli/dotnet/Telemetry/TopLevelCommandNameAndOptionToLog.cs +++ b/src/Cli/dotnet/Telemetry/TopLevelCommandNameAndOptionToLog.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; using System.CommandLine; using System.CommandLine.Parsing; diff --git a/src/Cli/dotnet/ToolManifest/JsonElementExtension.cs b/src/Cli/dotnet/ToolManifest/JsonElementExtension.cs index 03daebd4a70f..777cc5be526c 100644 --- a/src/Cli/dotnet/ToolManifest/JsonElementExtension.cs +++ b/src/Cli/dotnet/ToolManifest/JsonElementExtension.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Text.Json; namespace Microsoft.DotNet.ToolManifest diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestCannotBeFoundException.cs b/src/Cli/dotnet/ToolManifest/ToolManifestCannotBeFoundException.cs index 028a5b2ee2c6..0c5b9a3608ca 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestCannotBeFoundException.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestCannotBeFoundException.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.ToolManifest diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestEditor.cs b/src/Cli/dotnet/ToolManifest/ToolManifestEditor.cs index 585e724c01e7..bf2288d6dec4 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestEditor.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestEditor.cs @@ -3,15 +3,11 @@ using System; using System.Collections.Generic; -using System.ComponentModel; using System.IO; using System.Linq; -using Microsoft.CodeAnalysis; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; -using System.Text.Json.Serialization; -using NuGet.Frameworks; using NuGet.Versioning; using System.Text.Json; using System.Text; diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestException.cs b/src/Cli/dotnet/ToolManifest/ToolManifestException.cs index 5efaa9ec592c..f5040fa9613c 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestException.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestException.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.ToolManifest diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestFinder.cs b/src/Cli/dotnet/ToolManifest/ToolManifestFinder.cs index 83635959f8fe..b65828a5f8f7 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestFinder.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestFinder.cs @@ -10,7 +10,6 @@ using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; -using NuGet.Packaging; namespace Microsoft.DotNet.ToolManifest { diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestPackage.cs b/src/Cli/dotnet/ToolManifest/ToolManifestPackage.cs index 0181cb5f343d..be6b65c78c9d 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestPackage.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestPackage.cs @@ -7,7 +7,6 @@ using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; -using NuGet.Frameworks; using NuGet.Versioning; namespace Microsoft.DotNet.ToolManifest diff --git a/src/Cli/dotnet/ToolPackage/ILocalToolsResolverCache.cs b/src/Cli/dotnet/ToolPackage/ILocalToolsResolverCache.cs index 19b660757e88..acb89fba7abd 100644 --- a/src/Cli/dotnet/ToolPackage/ILocalToolsResolverCache.cs +++ b/src/Cli/dotnet/ToolPackage/ILocalToolsResolverCache.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; -using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.ToolPackage { diff --git a/src/Cli/dotnet/ToolPackage/IProjectRestorer.cs b/src/Cli/dotnet/ToolPackage/IProjectRestorer.cs index 238ed49c6732..32e08eeefd52 100644 --- a/src/Cli/dotnet/ToolPackage/IProjectRestorer.cs +++ b/src/Cli/dotnet/ToolPackage/IProjectRestorer.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.ToolPackage diff --git a/src/Cli/dotnet/ToolPackage/IToolPackage.cs b/src/Cli/dotnet/ToolPackage/IToolPackage.cs index 602070d26cfb..bfd868295c96 100644 --- a/src/Cli/dotnet/ToolPackage/IToolPackage.cs +++ b/src/Cli/dotnet/ToolPackage/IToolPackage.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/ToolPackage/IToolPackageInstaller.cs b/src/Cli/dotnet/ToolPackage/IToolPackageInstaller.cs index c76809951ebb..ca0096b23cd7 100644 --- a/src/Cli/dotnet/ToolPackage/IToolPackageInstaller.cs +++ b/src/Cli/dotnet/ToolPackage/IToolPackageInstaller.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; namespace Microsoft.DotNet.ToolPackage diff --git a/src/Cli/dotnet/ToolPackage/IToolPackageStore.cs b/src/Cli/dotnet/ToolPackage/IToolPackageStore.cs index bbd8a0915b6c..77e91823bd7d 100644 --- a/src/Cli/dotnet/ToolPackage/IToolPackageStore.cs +++ b/src/Cli/dotnet/ToolPackage/IToolPackageStore.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; diff --git a/src/Cli/dotnet/ToolPackage/IToolPackageStoreQuery.cs b/src/Cli/dotnet/ToolPackage/IToolPackageStoreQuery.cs index 9aa886b50066..3b6a555f1944 100644 --- a/src/Cli/dotnet/ToolPackage/IToolPackageStoreQuery.cs +++ b/src/Cli/dotnet/ToolPackage/IToolPackageStoreQuery.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; namespace Microsoft.DotNet.ToolPackage diff --git a/src/Cli/dotnet/ToolPackage/LockFileMatchChecker.cs b/src/Cli/dotnet/ToolPackage/LockFileMatchChecker.cs index ff5e8b7f8add..b5c2b573f5a6 100644 --- a/src/Cli/dotnet/ToolPackage/LockFileMatchChecker.cs +++ b/src/Cli/dotnet/ToolPackage/LockFileMatchChecker.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.Linq; using NuGet.ProjectModel; diff --git a/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifierVersionRange.cs b/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifierVersionRange.cs index 083b07548025..587858e21489 100644 --- a/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifierVersionRange.cs +++ b/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifierVersionRange.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; using NuGet.Versioning; diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageFactory.cs b/src/Cli/dotnet/ToolPackage/ToolPackageFactory.cs index 4a6d2640a5e4..d4e7c5b04571 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageFactory.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageFactory.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; -using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Tools.Tool.Install; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageInstance.cs b/src/Cli/dotnet/ToolPackage/ToolPackageInstance.cs index a4a82d54077a..e4dd96889930 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageInstance.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageInstance.cs @@ -11,7 +11,6 @@ using NuGet.ProjectModel; using NuGet.Versioning; using Microsoft.DotNet.Cli.Utils; -using System.Threading; using NuGet.Frameworks; namespace Microsoft.DotNet.ToolPackage diff --git a/src/Cli/dotnet/commands/InstallingWorkloadCommand.cs b/src/Cli/dotnet/commands/InstallingWorkloadCommand.cs index 7eccb0d6d984..34ba9c37882a 100644 --- a/src/Cli/dotnet/commands/InstallingWorkloadCommand.cs +++ b/src/Cli/dotnet/commands/InstallingWorkloadCommand.cs @@ -1,23 +1,19 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; using System.CommandLine; using System.IO; using System.Linq; using System.Threading.Tasks; -using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Configurer; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Workloads.Workload.Install; using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.NET.Sdk.WorkloadManifestReader; using NuGet.Versioning; -using Product = Microsoft.DotNet.Cli.Utils.Product; using Strings = Microsoft.DotNet.Workloads.Workload.Install.LocalizableStrings; namespace Microsoft.DotNet.Workloads.Workload diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-reference/Program.cs b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-reference/Program.cs index 9c86055afd2d..5a03f933adb1 100644 --- a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-reference/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-reference/Program.cs @@ -1,10 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using System.Text; diff --git a/src/Cli/dotnet/commands/dotnet-buildserver/shutdown/BuildServerShutdownCommand.cs b/src/Cli/dotnet/commands/dotnet-buildserver/shutdown/BuildServerShutdownCommand.cs index b0fc393cdb96..3d200542cb29 100644 --- a/src/Cli/dotnet/commands/dotnet-buildserver/shutdown/BuildServerShutdownCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-buildserver/shutdown/BuildServerShutdownCommand.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using System.Linq; using System.Threading.Tasks; using Microsoft.DotNet.BuildServer; diff --git a/src/Cli/dotnet/commands/dotnet-clean/Program.cs b/src/Cli/dotnet/commands/dotnet-clean/Program.cs index f24635aa96ab..11340f1ddbff 100644 --- a/src/Cli/dotnet/commands/dotnet-clean/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-clean/Program.cs @@ -2,12 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; -using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.MSBuild; using Microsoft.DotNet.Cli; using System; using System.CommandLine; -using System.CommandLine.Parsing; namespace Microsoft.DotNet.Tools.Clean { diff --git a/src/Cli/dotnet/commands/dotnet-complete/ParseCommand.cs b/src/Cli/dotnet/commands/dotnet-complete/ParseCommand.cs index 5c5d2b74bb57..806360f13718 100644 --- a/src/Cli/dotnet/commands/dotnet-complete/ParseCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-complete/ParseCommand.cs @@ -3,9 +3,7 @@ using System; using System.CommandLine; -using System.CommandLine.Parsing; using System.Linq; -using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/commands/dotnet-fsi/FsiForwardingApp.cs b/src/Cli/dotnet/commands/dotnet-fsi/FsiForwardingApp.cs index 5aaec4330d28..816395fed6a0 100644 --- a/src/Cli/dotnet/commands/dotnet-fsi/FsiForwardingApp.cs +++ b/src/Cli/dotnet/commands/dotnet-fsi/FsiForwardingApp.cs @@ -1,14 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using Microsoft.DotNet.Cli.Utils; using System; -using System.Collections.Generic; -using System.CommandLine; -using System.CommandLine.Parsing; -using System.Diagnostics; using System.IO; -using System.Linq; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/commands/dotnet-fsi/Program.cs b/src/Cli/dotnet/commands/dotnet-fsi/Program.cs index 4ad05c1f6068..f11dad2ec2a4 100644 --- a/src/Cli/dotnet/commands/dotnet-fsi/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-fsi/Program.cs @@ -3,8 +3,6 @@ using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli; -using System.CommandLine; -using System.CommandLine.Parsing; namespace Microsoft.DotNet.Tools.Fsi { diff --git a/src/Cli/dotnet/commands/dotnet-help/HelpCommand.cs b/src/Cli/dotnet/commands/dotnet-help/HelpCommand.cs index 308bd7385061..0ed1dfb9676b 100644 --- a/src/Cli/dotnet/commands/dotnet-help/HelpCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-help/HelpCommand.cs @@ -3,9 +3,7 @@ using System; using System.CommandLine; -using System.CommandLine.Parsing; using System.Diagnostics; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommand.cs b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommand.cs index 61bbd6d3f530..f259d7008163 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommand.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-reference/ListProjectToProjectReferencesCommand.cs b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-reference/ListProjectToProjectReferencesCommand.cs index 21124a8d9844..2a3d092aaaf7 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-reference/ListProjectToProjectReferencesCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-reference/ListProjectToProjectReferencesCommand.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.CommandLine; -using System.CommandLine.Parsing; using System.Linq; using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs b/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs index 5d9e11da0767..2a9d7508b57d 100644 --- a/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs +++ b/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs @@ -3,10 +3,8 @@ using System; using System.Collections.Generic; -using System.IO; using System.Linq; using System.Reflection; -using System.Runtime.InteropServices; using Microsoft.DotNet.Cli; using System.Diagnostics; using Microsoft.DotNet.Cli.Telemetry; diff --git a/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildLogger.cs b/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildLogger.cs index 0b1d911e31fb..3372aaf69b82 100644 --- a/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildLogger.cs +++ b/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildLogger.cs @@ -3,8 +3,6 @@ using System; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; -using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Telemetry; using Microsoft.DotNet.Configurer; using System.Collections.Generic; diff --git a/src/Cli/dotnet/commands/dotnet-new/DotnetCommandCallbacks.cs b/src/Cli/dotnet/commands/dotnet-new/DotnetCommandCallbacks.cs index b961ac9b30f5..27b932f75b02 100644 --- a/src/Cli/dotnet/commands/dotnet-new/DotnetCommandCallbacks.cs +++ b/src/Cli/dotnet/commands/dotnet-new/DotnetCommandCallbacks.cs @@ -4,9 +4,7 @@ #nullable enable using Microsoft.DotNet.Tools.Add.PackageReference; -using Microsoft.DotNet.Tools; using System.Collections.Generic; -using System.CommandLine; using System.Linq; using Microsoft.DotNet.Tools.Common; using Microsoft.DotNet.Tools.Add.ProjectToProjectReference; diff --git a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/CapabilityExpressionEvaluator.cs b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/CapabilityExpressionEvaluator.cs index 88564ebf7579..583e65dfaebb 100644 --- a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/CapabilityExpressionEvaluator.cs +++ b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/CapabilityExpressionEvaluator.cs @@ -5,7 +5,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using System.Linq; using LocalizableStrings = Microsoft.DotNet.Tools.New.LocalizableStrings; diff --git a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MSBuildEvaluator.cs b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MSBuildEvaluator.cs index d63308766360..4de6e29c5799 100644 --- a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MSBuildEvaluator.cs +++ b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MSBuildEvaluator.cs @@ -9,7 +9,6 @@ using System.IO; using System.Linq; using Microsoft.Build.Evaluation; -using Microsoft.DotNet.Cli.Telemetry; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.Logging; using Microsoft.TemplateEngine.Abstractions; diff --git a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/SDKStyleEvaluationResult.cs b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/SDKStyleEvaluationResult.cs index fba4ea6249ee..4e9515836399 100644 --- a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/SDKStyleEvaluationResult.cs +++ b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/SDKStyleEvaluationResult.cs @@ -3,8 +3,6 @@ #nullable enable -using System; -using System.Collections.Generic; using Microsoft.Build.Evaluation; namespace Microsoft.TemplateEngine.MSBuildEvaluation diff --git a/src/Cli/dotnet/commands/dotnet-new/OptionalWorkloadProviderFactory.cs b/src/Cli/dotnet/commands/dotnet-new/OptionalWorkloadProviderFactory.cs index 11367ca6b8e8..57ea2bb7a754 100644 --- a/src/Cli/dotnet/commands/dotnet-new/OptionalWorkloadProviderFactory.cs +++ b/src/Cli/dotnet/commands/dotnet-new/OptionalWorkloadProviderFactory.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using Microsoft.DotNet.TemplateLocator; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.TemplatePackage; using System; diff --git a/src/Cli/dotnet/commands/dotnet-new/SdkInfoProvider.cs b/src/Cli/dotnet/commands/dotnet-new/SdkInfoProvider.cs index 33606ea55c4e..81412ba0c7b1 100644 --- a/src/Cli/dotnet/commands/dotnet-new/SdkInfoProvider.cs +++ b/src/Cli/dotnet/commands/dotnet-new/SdkInfoProvider.cs @@ -7,7 +7,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.MSBuildSdkResolver; using Microsoft.DotNet.NativeWrapper; diff --git a/src/Cli/dotnet/commands/dotnet-new/WorkloadsInfoProvider.cs b/src/Cli/dotnet/commands/dotnet-new/WorkloadsInfoProvider.cs index 41c73e7fa5a6..f8486067f762 100644 --- a/src/Cli/dotnet/commands/dotnet-new/WorkloadsInfoProvider.cs +++ b/src/Cli/dotnet/commands/dotnet-new/WorkloadsInfoProvider.cs @@ -4,11 +4,9 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Threading; using System.Threading.Tasks; using Microsoft.DotNet.Workloads.Workload.List; -using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.Components; namespace Microsoft.DotNet.Tools.New diff --git a/src/Cli/dotnet/commands/dotnet-nuget/Program.cs b/src/Cli/dotnet/commands/dotnet-nuget/Program.cs index 1c7e888a9a1a..ca980768cff0 100644 --- a/src/Cli/dotnet/commands/dotnet-nuget/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-nuget/Program.cs @@ -3,7 +3,6 @@ using System; using System.CommandLine; -using System.CommandLine.Parsing; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-pack/PackCommand.cs b/src/Cli/dotnet/commands/dotnet-pack/PackCommand.cs index 25b00e6f5828..13fcb8d0f97d 100644 --- a/src/Cli/dotnet/commands/dotnet-pack/PackCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-pack/PackCommand.cs @@ -2,15 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; -using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli; using Parser = Microsoft.DotNet.Cli.Parser; using System; using System.CommandLine; -using System.CommandLine.Parsing; -using Microsoft.DotNet.Tools.Publish; -using System.Linq; -using System.Diagnostics; namespace Microsoft.DotNet.Tools.Pack { diff --git a/src/Cli/dotnet/commands/dotnet-publish/Program.cs b/src/Cli/dotnet/commands/dotnet-publish/Program.cs index 8bc5e24d7e6d..a27d8d8afc29 100644 --- a/src/Cli/dotnet/commands/dotnet-publish/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-publish/Program.cs @@ -4,18 +4,7 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Threading.Tasks; -using Microsoft.Build.Execution; using Microsoft.DotNet.Cli; -using Microsoft.DotNet.Cli.Sln.Internal; -using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools.Common; -using Microsoft.VisualBasic.CompilerServices; using Parser = Microsoft.DotNet.Cli.Parser; diff --git a/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-package/Program.cs b/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-package/Program.cs index aee5a9ca1b78..ced61bdd6639 100644 --- a/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-package/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-package/Program.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-reference/Program.cs b/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-reference/Program.cs index ce657647b090..804fe1944147 100644 --- a/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-reference/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-reference/Program.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using Microsoft.Build.Evaluation; diff --git a/src/Cli/dotnet/commands/dotnet-restore-projectjson/Program.cs b/src/Cli/dotnet/commands/dotnet-restore-projectjson/Program.cs index df3ccbdac03a..927a21219a00 100644 --- a/src/Cli/dotnet/commands/dotnet-restore-projectjson/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-restore-projectjson/Program.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Linq; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.InternalAbstractions; namespace Microsoft.DotNet.Tools.RestoreProjectJson { diff --git a/src/Cli/dotnet/commands/dotnet-restore/Program.cs b/src/Cli/dotnet/commands/dotnet-restore/Program.cs index ba6e2f57525a..c2841470fde2 100644 --- a/src/Cli/dotnet/commands/dotnet-restore/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-restore/Program.cs @@ -8,7 +8,6 @@ using Microsoft.DotNet.Cli; using Parser = Microsoft.DotNet.Cli.Parser; using System.CommandLine; -using System.CommandLine.Parsing; namespace Microsoft.DotNet.Tools.Restore { diff --git a/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/ILaunchSettingsProvider.cs b/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/ILaunchSettingsProvider.cs index 9a30d8d795a3..80e96cece687 100644 --- a/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/ILaunchSettingsProvider.cs +++ b/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/ILaunchSettingsProvider.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; -using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Tools.Run.LaunchSettings { diff --git a/src/Cli/dotnet/commands/dotnet-run/Program.cs b/src/Cli/dotnet/commands/dotnet-run/Program.cs index 8d995d96c3d8..57550b24dec4 100644 --- a/src/Cli/dotnet/commands/dotnet-run/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-run/Program.cs @@ -6,8 +6,6 @@ using Microsoft.DotNet.Cli; using Parser = Microsoft.DotNet.Cli.Parser; using System.CommandLine; -using System.CommandLine.Parsing; -using System; namespace Microsoft.DotNet.Tools.Run { diff --git a/src/Cli/dotnet/commands/dotnet-run/RunCommand.cs b/src/Cli/dotnet/commands/dotnet-run/RunCommand.cs index 3e0d46f2d1ce..be50616997f8 100644 --- a/src/Cli/dotnet/commands/dotnet-run/RunCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-run/RunCommand.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Runtime.InteropServices; using Microsoft.Build.Execution; using Microsoft.Build.Exceptions; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-sdk/check/Program.cs b/src/Cli/dotnet/commands/dotnet-sdk/check/Program.cs index 37c030853478..0c7ebb9549fc 100644 --- a/src/Cli/dotnet/commands/dotnet-sdk/check/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-sdk/check/Program.cs @@ -6,11 +6,9 @@ using Microsoft.DotNet.NativeWrapper; using System; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Text.Json; using EnvironmentProvider = Microsoft.DotNet.NativeWrapper.EnvironmentProvider; -using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tools.Sdk.Check { diff --git a/src/Cli/dotnet/commands/dotnet-sln/add/Program.cs b/src/Cli/dotnet/commands/dotnet-sln/add/Program.cs index cca523e1196e..c7fbef64d3b5 100644 --- a/src/Cli/dotnet/commands/dotnet-sln/add/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-sln/add/Program.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-sln/list/Program.cs b/src/Cli/dotnet/commands/dotnet-sln/list/Program.cs index 9c8241c77052..c62a31b703bf 100644 --- a/src/Cli/dotnet/commands/dotnet-sln/list/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-sln/list/Program.cs @@ -3,7 +3,6 @@ using System; using System.CommandLine; -using System.CommandLine.Parsing; using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Sln.Internal; diff --git a/src/Cli/dotnet/commands/dotnet-sln/list/SlnListParser.cs b/src/Cli/dotnet/commands/dotnet-sln/list/SlnListParser.cs index 8aedc12754a4..e103c6b2b702 100644 --- a/src/Cli/dotnet/commands/dotnet-sln/list/SlnListParser.cs +++ b/src/Cli/dotnet/commands/dotnet-sln/list/SlnListParser.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using Microsoft.DotNet.Tools.Sln; -using System.CommandLine.Invocation; -using System.CommandLine.Parsing; using Microsoft.DotNet.Tools.Sln.List; using LocalizableStrings = Microsoft.DotNet.Tools.Sln.LocalizableStrings; diff --git a/src/Cli/dotnet/commands/dotnet-sln/remove/Program.cs b/src/Cli/dotnet/commands/dotnet-sln/remove/Program.cs index 626a26502f7d..d2c94a38f1dd 100644 --- a/src/Cli/dotnet/commands/dotnet-sln/remove/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-sln/remove/Program.cs @@ -4,12 +4,10 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Sln.Internal; -using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Common; namespace Microsoft.DotNet.Tools.Sln.Remove diff --git a/src/Cli/dotnet/commands/dotnet-store/Program.cs b/src/Cli/dotnet/commands/dotnet-store/Program.cs index a29089b3cf47..13aeafb5c879 100644 --- a/src/Cli/dotnet/commands/dotnet-store/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-store/Program.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tools.Store diff --git a/src/Cli/dotnet/commands/dotnet-tool/install/ParseResultExtension.cs b/src/Cli/dotnet/commands/dotnet-tool/install/ParseResultExtension.cs index 6cbe596c8478..b34677f2b502 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/install/ParseResultExtension.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/install/ParseResultExtension.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.CommandLine.Parsing; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using NuGet.Versioning; diff --git a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallCommand.cs index c495d8bcd3e1..1aa443ed942e 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallCommand.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.CommandLine.Parsing; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Tool.Common; diff --git a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalCommand.cs index 73b217b9b0ba..d08cc9c730ca 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalCommand.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using Microsoft.DotNet.Cli; @@ -11,8 +10,6 @@ using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Tools.Tool.Common; using Microsoft.Extensions.EnvironmentAbstractions; -using System.Collections.Generic; -using NuGet.Packaging; namespace Microsoft.DotNet.Tools.Tool.Install { diff --git a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalInstaller.cs b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalInstaller.cs index 730f3c5156c7..4c9646c0146c 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalInstaller.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalInstaller.cs @@ -3,7 +3,6 @@ using System; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-tool/list/ToolListGlobalOrToolPathCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/list/ToolListGlobalOrToolPathCommand.cs index b0dc61466142..eebd5a6cd417 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/list/ToolListGlobalOrToolPathCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/list/ToolListGlobalOrToolPathCommand.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-tool/list/ToolListLocalCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/list/ToolListLocalCommand.cs index d4f0c6c10889..2f6f8e597eaa 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/list/ToolListLocalCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/list/ToolListLocalCommand.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-tool/restore/ToolRestoreCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/restore/ToolRestoreCommand.cs index a7b31ffd4856..9c76af55a8c9 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/restore/ToolRestoreCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/restore/ToolRestoreCommand.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-tool/run/ToolRunCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/run/ToolRunCommand.cs index d00284ff507c..b93ef0757968 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/run/ToolRunCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/run/ToolRunCommand.cs @@ -3,8 +3,6 @@ using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.CommandFactory; diff --git a/src/Cli/dotnet/commands/dotnet-tool/search/NugetSearchSerializables.cs b/src/Cli/dotnet/commands/dotnet-tool/search/NugetSearchSerializables.cs index 024702f94173..c92edf4d59a5 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/search/NugetSearchSerializables.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/search/NugetSearchSerializables.cs @@ -3,8 +3,6 @@ using System; using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; using Microsoft.DotNet.ToolPackage; namespace Microsoft.DotNet.Tools.Tool.Search diff --git a/src/Cli/dotnet/commands/dotnet-tool/search/SearchResultPrinter.cs b/src/Cli/dotnet/commands/dotnet-tool/search/SearchResultPrinter.cs index dfb152fd49a9..02b029283f8d 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/search/SearchResultPrinter.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/search/SearchResultPrinter.cs @@ -3,10 +3,8 @@ using System; using System.Collections.Generic; -using System.Globalization; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.ToolPackage; namespace Microsoft.DotNet.Tools.Tool.Search { diff --git a/src/Cli/dotnet/commands/dotnet-tool/search/ToolSearchCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/search/ToolSearchCommand.cs index c499dd7664ab..e81687389957 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/search/ToolSearchCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/search/ToolSearchCommand.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.NugetSearch; diff --git a/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallCommand.cs index b06164782232..8655bf7471b3 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallCommand.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.CommandLine.Parsing; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Tool.Common; diff --git a/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallGlobalOrToolPathCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallGlobalOrToolPathCommand.cs index 52601cc2da94..0b2675ba754a 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallGlobalOrToolPathCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallGlobalOrToolPathCommand.cs @@ -3,7 +3,6 @@ using System; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using System.Transactions; diff --git a/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallLocalCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallLocalCommand.cs index 94d6e0d6b954..74499818d793 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallLocalCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallLocalCommand.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateCommand.cs index 44a0d7bf92e6..d9b2b362c794 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateCommand.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.CommandLine.Parsing; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Tool.Common; diff --git a/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateGlobalOrToolPathCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateGlobalOrToolPathCommand.cs index 4400876ddb84..9cfe109d9913 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateGlobalOrToolPathCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateGlobalOrToolPathCommand.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using System.Transactions; @@ -12,7 +11,6 @@ using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ShellShim; using Microsoft.DotNet.ToolPackage; -using Microsoft.DotNet.Tools.Tool.Common; using Microsoft.DotNet.Tools.Tool.Install; using Microsoft.DotNet.Tools.Tool.Uninstall; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/commands/dotnet-vstest/Program.cs b/src/Cli/dotnet/commands/dotnet-vstest/Program.cs index c2a4aac4f351..0d499e390705 100644 --- a/src/Cli/dotnet/commands/dotnet-vstest/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-vstest/Program.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Tools.Test; diff --git a/src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandParser.cs b/src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandParser.cs index 1801d8388e06..d4d6987b577c 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandParser.cs @@ -7,7 +7,6 @@ using System.CommandLine.Parsing; using System.IO; using System.Linq; -using Microsoft.DotNet.Workloads.Workload.Install; using Microsoft.DotNet.Workloads.Workload.List; using Microsoft.NET.Sdk.WorkloadManifestReader; using Microsoft.TemplateEngine.Cli.Commands; diff --git a/src/Cli/dotnet/commands/dotnet-workload/WorkloadInfoHelper.cs b/src/Cli/dotnet/commands/dotnet-workload/WorkloadInfoHelper.cs index fe7f0bbfc196..25889ef28dcd 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/WorkloadInfoHelper.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/WorkloadInfoHelper.cs @@ -3,8 +3,6 @@ using System; using System.Collections.Generic; -using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using Microsoft.Deployment.DotNet.Releases; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/IInstaller.cs b/src/Cli/dotnet/commands/dotnet-workload/install/IInstaller.cs index 49e723c290cd..7d11feb2520a 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/IInstaller.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/IInstaller.cs @@ -8,7 +8,6 @@ using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.NET.Sdk.WorkloadManifestReader; -using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver; namespace Microsoft.DotNet.Workloads.Workload.Install { diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/IWorkloadManifestUpdater.cs b/src/Cli/dotnet/commands/dotnet-workload/install/IWorkloadManifestUpdater.cs index 3b4f753ee2e5..0a82137b2ee4 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/IWorkloadManifestUpdater.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/IWorkloadManifestUpdater.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Threading.Tasks; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/MsiInstallerBase.cs b/src/Cli/dotnet/commands/dotnet-workload/install/MsiInstallerBase.cs index 34d9d4a43fe9..f74aeabdc8e1 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/MsiInstallerBase.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/MsiInstallerBase.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; using System.Linq; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerServer.cs b/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerServer.cs index ba0fb01866d2..f4eee999f79d 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerServer.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerServer.cs @@ -9,7 +9,6 @@ using System.Security.Principal; using System.Threading.Tasks; using Microsoft.DotNet.Installer.Windows; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.NET.Sdk.WorkloadManifestReader; namespace Microsoft.DotNet.Workloads.Workload.Install diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallCommand.cs index 14303adae5bd..d383bcb44ae1 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallCommand.cs @@ -4,22 +4,15 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; -using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Sdk.WorkloadManifestReader; -using Product = Microsoft.DotNet.Cli.Utils.Product; -using System.IO; using System.Linq; using System.Text.Json; -using Microsoft.DotNet.Configurer; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.DotNet.ToolPackage; using NuGet.Versioning; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.Extensions.EnvironmentAbstractions; -using NuGet.Common; using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver; using System.Threading.Tasks; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/RegistryWorkloadInstallationRecordRepository.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/RegistryWorkloadInstallationRecordRepository.cs index 6644c56855fe..c4f29f263d9f 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/RegistryWorkloadInstallationRecordRepository.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/RegistryWorkloadInstallationRecordRepository.cs @@ -1,13 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Versioning; using Microsoft.DotNet.Installer.Windows; -using Microsoft.DotNet.Workloads.Workload.List; using Microsoft.NET.Sdk.WorkloadManifestReader; using Microsoft.Win32; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallerFactory.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallerFactory.cs index 67b0734916f9..0c9472101ad5 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallerFactory.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallerFactory.cs @@ -5,7 +5,6 @@ using System.IO; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Sdk.WorkloadManifestReader; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs index 5e7c4a014b9f..b7a5f38e29e4 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs @@ -12,7 +12,6 @@ using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; -using Microsoft.DotNet.MSBuildSdkResolver; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadResolverFactory.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadResolverFactory.cs index 542585ed9ff8..d9910cb1553d 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadResolverFactory.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadResolverFactory.cs @@ -3,11 +3,8 @@ // using System; -using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/commands/dotnet-workload/list/VisualStudioWorkloads.cs b/src/Cli/dotnet/commands/dotnet-workload/list/VisualStudioWorkloads.cs index 25c381e69c12..5679eadae831 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/list/VisualStudioWorkloads.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/list/VisualStudioWorkloads.cs @@ -7,7 +7,6 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using Microsoft.Deployment.DotNet.Releases; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.DotNet.Workloads.Workload.List; using Microsoft.NET.Sdk.WorkloadManifestReader; using Microsoft.VisualStudio.Setup.Configuration; diff --git a/src/Cli/dotnet/commands/dotnet-workload/list/WorkloadListCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/list/WorkloadListCommand.cs index f5a7c75d9a6c..7f960aad25bf 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/list/WorkloadListCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/list/WorkloadListCommand.cs @@ -4,8 +4,6 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; -using System.IO; using System.Linq; using System.Text.Json; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-workload/repair/WorkloadRepairCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/repair/WorkloadRepairCommand.cs index aabd3dd16909..b966b20f7564 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/repair/WorkloadRepairCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/repair/WorkloadRepairCommand.cs @@ -4,19 +4,14 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Configurer; using Microsoft.NET.Sdk.WorkloadManifestReader; -using System.IO; using System.Linq; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.DotNet.Workloads.Workload.Install; -using NuGet.Common; namespace Microsoft.DotNet.Workloads.Workload.Repair { diff --git a/src/Cli/dotnet/commands/dotnet-workload/search/WorkloadSearchCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/search/WorkloadSearchCommand.cs index f1a229771906..0d45bc97ecd0 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/search/WorkloadSearchCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/search/WorkloadSearchCommand.cs @@ -3,12 +3,9 @@ using System; using System.CommandLine; -using System.CommandLine.Parsing; -using System.IO; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Configurer; using Microsoft.NET.Sdk.WorkloadManifestReader; using System.Linq; using Microsoft.DotNet.Workloads.Workload.Install; diff --git a/src/Cli/dotnet/commands/dotnet-workload/search/WorkloadSearchCommandParser.cs b/src/Cli/dotnet/commands/dotnet-workload/search/WorkloadSearchCommandParser.cs index 7bd3e536e91d..db62d51cf087 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/search/WorkloadSearchCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/search/WorkloadSearchCommandParser.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.CommandLine.Invocation; -using System.CommandLine.Parsing; using Microsoft.DotNet.Workloads.Workload; using Microsoft.DotNet.Workloads.Workload.Search; using LocalizableStrings = Microsoft.DotNet.Workloads.Workload.Search.LocalizableStrings; diff --git a/src/Cli/dotnet/commands/dotnet-workload/uninstall/WorkloadUninstallCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/uninstall/WorkloadUninstallCommand.cs index e70114bbb4f1..864da838eeae 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/uninstall/WorkloadUninstallCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/uninstall/WorkloadUninstallCommand.cs @@ -4,13 +4,11 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.IO; using System.Linq; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Workloads.Workload.Install; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Cli/dotnet/commands/dotnet-workload/update/WorkloadUpdateCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/update/WorkloadUpdateCommand.cs index 9527cfd55fb4..4f05e595d7e1 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/update/WorkloadUpdateCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/update/WorkloadUpdateCommand.cs @@ -4,23 +4,17 @@ using System; using System.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; -using System.IO; using System.Linq; using System.Text.Json; using System.Threading.Tasks; -using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Configurer; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Workloads.Workload.Install; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.NET.Sdk.WorkloadManifestReader; using NuGet.Versioning; -using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver; namespace Microsoft.DotNet.Workloads.Workload.Update { diff --git a/src/Common/CompileOptions.cs b/src/Common/CompileOptions.cs index d971a2c96998..0a8a909eaf01 100644 --- a/src/Common/CompileOptions.cs +++ b/src/Common/CompileOptions.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Reflection; #if MICROSOFT_ENABLE_TELEMETRY [assembly: AssemblyMetadata("TelemetryOptOutDefault", Microsoft.DotNet.Cli.CompileOptions.TelemetryOptOutDefaultString)] diff --git a/src/Resolvers/Microsoft.DotNet.MSBuildSdkResolver/FXVersion.cs b/src/Resolvers/Microsoft.DotNet.MSBuildSdkResolver/FXVersion.cs index 4edcbf2e0dd3..d448d2059270 100644 --- a/src/Resolvers/Microsoft.DotNet.MSBuildSdkResolver/FXVersion.cs +++ b/src/Resolvers/Microsoft.DotNet.MSBuildSdkResolver/FXVersion.cs @@ -6,7 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System.Text; using System; namespace Microsoft.DotNet.MSBuildSdkResolver diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/IWorkloadManifestProvider.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/IWorkloadManifestProvider.cs index 85b502f2d1df..d31a47697f8a 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/IWorkloadManifestProvider.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/IWorkloadManifestProvider.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.IO; namespace Microsoft.NET.Sdk.WorkloadManifestReader { diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestSpecifier.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestSpecifier.cs index 08f3b9d78ecd..69b8bf34ef9b 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestSpecifier.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestSpecifier.cs @@ -2,12 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. // -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace Microsoft.NET.Sdk.WorkloadManifestReader { public record class ManifestSpecifier(ManifestId Id, ManifestVersion Version, SdkFeatureBand FeatureBand) diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestVersionUpdate.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestVersionUpdate.cs index ec8cea8659cc..2872eacd3c80 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestVersionUpdate.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestVersionUpdate.cs @@ -3,9 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.WorkloadManifestReader { diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ReadableWorkloadManifest.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ReadableWorkloadManifest.cs index 96d169b42d9e..700eb4b9368a 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ReadableWorkloadManifest.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ReadableWorkloadManifest.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.WorkloadManifestReader { diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs index 1b28c9a043b6..a3deb419a3ed 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs @@ -3,12 +3,9 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; using Microsoft.NET.Sdk.Localization; using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadManifestReader; -using System.Runtime.Serialization; #if USE_SYSTEM_TEXT_JSON using System.Text.Json; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.InstallStateReader.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.InstallStateReader.cs index 903f420b7a2b..c1584ade78d0 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.InstallStateReader.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.InstallStateReader.cs @@ -5,10 +5,8 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; using Microsoft.NET.Sdk.Localization; using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadManifestReader; -using System.Runtime.Serialization; using Microsoft.Deployment.DotNet.Releases; #if USE_SYSTEM_TEXT_JSON diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.JsonReader.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.JsonReader.cs index 79af53599ed1..ae7dc0d5cd1b 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.JsonReader.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.JsonReader.cs @@ -3,9 +3,6 @@ using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using Microsoft.NET.Sdk.Localization; using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadManifestReader; using System.Runtime.Serialization; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/TempDirectoryWorkloadManifestProvider.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/TempDirectoryWorkloadManifestProvider.cs index 7b685c0ea354..69aca7faadb2 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/TempDirectoryWorkloadManifestProvider.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/TempDirectoryWorkloadManifestProvider.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; namespace Microsoft.NET.Sdk.WorkloadManifestReader { diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadInstallType.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadInstallType.cs index b484e876c0ad..d7ec4e27f41d 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadInstallType.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadInstallType.cs @@ -1,12 +1,8 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.WorkloadManifestReader { diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestInfo.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestInfo.cs index d89d3b992255..8f917ddbddd1 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestInfo.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestInfo.cs @@ -1,13 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace Microsoft.NET.Sdk.WorkloadManifestReader { public class WorkloadManifestInfo diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestReader.Localization.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestReader.Localization.cs index a3dd5caaecdc..b675903954b7 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestReader.Localization.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestReader.Localization.cs @@ -6,7 +6,6 @@ using System.IO; using System.Globalization; using System.Runtime.CompilerServices; -using Microsoft.NET.Sdk.Localization; #if USE_SYSTEM_TEXT_JSON diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadSet.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadSet.cs index 2d2606cc1b3f..6908f04d4e3e 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadSet.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadSet.cs @@ -5,8 +5,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.DotNet.MSBuildSdkResolver; using Strings = Microsoft.NET.Sdk.Localization.Strings; diff --git a/src/Tasks/Common/ConflictResolution/ConflictResolver.cs b/src/Tasks/Common/ConflictResolution/ConflictResolver.cs index 95d2ae98523d..51dcd012f60a 100644 --- a/src/Tasks/Common/ConflictResolution/ConflictResolver.cs +++ b/src/Tasks/Common/ConflictResolution/ConflictResolver.cs @@ -6,8 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using Microsoft.NET.Build.Tasks; -using Microsoft.Build.Utilities; using System; using System.Collections.Generic; using System.Globalization; diff --git a/src/Tasks/Common/ConflictResolution/FrameworkListReader.cs b/src/Tasks/Common/ConflictResolution/FrameworkListReader.cs index c163852cdcba..5c31c8b8cd07 100644 --- a/src/Tasks/Common/ConflictResolution/FrameworkListReader.cs +++ b/src/Tasks/Common/ConflictResolution/FrameworkListReader.cs @@ -6,8 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using Microsoft.NET.Build.Tasks; -using Microsoft.Build.Utilities; using System; using System.Collections.Generic; using System.Globalization; diff --git a/src/Tasks/Common/ConflictResolution/PackageOverride.cs b/src/Tasks/Common/ConflictResolution/PackageOverride.cs index 8c5b06074c72..5284838449c3 100644 --- a/src/Tasks/Common/ConflictResolution/PackageOverride.cs +++ b/src/Tasks/Common/ConflictResolution/PackageOverride.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; -using System.Linq; using Microsoft.Build.Framework; #if EXTENSIONS diff --git a/src/Tasks/Common/ConflictResolution/PlatformManifestReader.cs b/src/Tasks/Common/ConflictResolution/PlatformManifestReader.cs index 8987ed10efa4..bc873ac7602f 100644 --- a/src/Tasks/Common/ConflictResolution/PlatformManifestReader.cs +++ b/src/Tasks/Common/ConflictResolution/PlatformManifestReader.cs @@ -6,8 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using Microsoft.NET.Build.Tasks; -using Microsoft.Build.Utilities; using System; using System.Collections.Generic; using System.Globalization; diff --git a/src/Tasks/Common/MessageBase.cs b/src/Tasks/Common/MessageBase.cs index f9d769340191..8ead7be1cbbe 100644 --- a/src/Tasks/Common/MessageBase.cs +++ b/src/Tasks/Common/MessageBase.cs @@ -6,7 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using Microsoft.Build.Framework; using System; using System.Globalization; diff --git a/src/Tasks/Common/NuGetUtils.cs b/src/Tasks/Common/NuGetUtils.cs index 1ac0a944b5cf..66c9e1170de4 100644 --- a/src/Tasks/Common/NuGetUtils.cs +++ b/src/Tasks/Common/NuGetUtils.cs @@ -7,9 +7,7 @@ #pragma warning restore IDE0240 // Remove redundant nullable directive using System; -using System.Collections.Generic; using System.IO; -using System.Linq; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks.UnitTests/GivenAGetDependsOnNETStandardTask.cs b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks.UnitTests/GivenAGetDependsOnNETStandardTask.cs index a4a77702abe4..0227fa494098 100644 --- a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks.UnitTests/GivenAGetDependsOnNETStandardTask.cs +++ b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks.UnitTests/GivenAGetDependsOnNETStandardTask.cs @@ -1,15 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; using System.Reflection; -using System.Text; using FluentAssertions; -using Microsoft.Build.Framework; -using Microsoft.Extensions.DependencyModel; using Xunit; -using Microsoft.NET.Build.Tasks.ConflictResolution; using System.Linq; using System.IO; diff --git a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/AddFacadesToReferences.cs b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/AddFacadesToReferences.cs index f4c560c792a5..6c9ba15b5297 100644 --- a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/AddFacadesToReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/AddFacadesToReferences.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Text; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GetPublishItemsOutputGroupOutputsTests.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GetPublishItemsOutputGroupOutputsTests.cs index 3181017e0d47..67c89be0cdaa 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GetPublishItemsOutputGroupOutputsTests.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GetPublishItemsOutputGroupOutputsTests.cs @@ -1,12 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.IO; -using System.Linq; using FluentAssertions; -using Microsoft.NET.TestFramework; using Xunit; namespace Microsoft.NET.Build.Tasks.UnitTests diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAAllowEmptyTelemetry.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAAllowEmptyTelemetry.cs index 7e22d08dc576..7904baaad807 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAAllowEmptyTelemetry.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAAllowEmptyTelemetry.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections; using System.Collections.Generic; using System.Text; using FluentAssertions; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenADependencyContextBuilder.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenADependencyContextBuilder.cs index ce8f3a91a99f..fe2b2fcb195d 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenADependencyContextBuilder.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenADependencyContextBuilder.cs @@ -17,7 +17,6 @@ using System.IO; using System.Linq; using Xunit; -using Xunit.Sdk; namespace Microsoft.NET.Build.Tasks.UnitTests { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAProjectContext.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAProjectContext.cs index e60244a79262..0a8ed895b112 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAProjectContext.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAProjectContext.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Reflection; using FluentAssertions; using NuGet.Frameworks; using NuGet.ProjectModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAPublishRelativePathToPackPackagePath.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAPublishRelativePathToPackPackagePath.cs index 56924d42e7ce..a2ac01ece296 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAPublishRelativePathToPackPackagePath.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAPublishRelativePathToPackPackagePath.cs @@ -1,11 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; -using System.Reflection; using FluentAssertions; -using Microsoft.Build.Framework; -using Microsoft.Extensions.DependencyModel; using Xunit; namespace Microsoft.NET.Build.Tasks.UnitTests diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenARemoveDuplicatePackageReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenARemoveDuplicatePackageReferences.cs index cf670ce54cff..5e80a9147a04 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenARemoveDuplicatePackageReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenARemoveDuplicatePackageReferences.cs @@ -3,10 +3,8 @@ using FluentAssertions; using Microsoft.Build.Framework; -using NuGet.ProjectModel; using System; using System.Collections.Generic; -using System.IO; using System.Linq; using Xunit; using NuGet.Packaging.Core; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveTargetingPackAssetsTask.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveTargetingPackAssetsTask.cs index 4774c7f453b4..a0d1146ff444 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveTargetingPackAssetsTask.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveTargetingPackAssetsTask.cs @@ -6,7 +6,6 @@ using Microsoft.NET.TestFramework; using System; -using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs index 77dfe97c57ae..9c9d56038fe1 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs @@ -4,14 +4,11 @@ using System.Collections; using System.Collections.Generic; using System.Globalization; -using System.Resources; using System.Text.RegularExpressions; using FluentAssertions; using Xunit; using System.Linq; using System.Xml.Linq; -using System.Reflection; -using System.Reflection.Metadata; namespace Microsoft.NET.Build.Tasks.UnitTests { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeWantToGetDependenciesViaDesignTimeBuild.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeWantToGetDependenciesViaDesignTimeBuild.cs index bab4d0f0138e..20f9c5e10aef 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeWantToGetDependenciesViaDesignTimeBuild.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeWantToGetDependenciesViaDesignTimeBuild.cs @@ -11,7 +11,6 @@ using Microsoft.NET.TestFramework; using Xunit; using Xunit.Abstractions; -using static Microsoft.NET.Build.Tasks.ResolvePackageAssets; namespace Microsoft.NET.Build.Tasks.UnitTests { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/MockNeverCacheBuildEngine4.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/MockNeverCacheBuildEngine4.cs index 4d2dd320d8c6..3030225dace6 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/MockNeverCacheBuildEngine4.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/MockNeverCacheBuildEngine4.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections; -using System.Collections.Generic; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks.UnitTests diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/ProcessFrameworkReferencesTests.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/ProcessFrameworkReferencesTests.cs index 389c34cfb5bd..55e2d15c982e 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/ProcessFrameworkReferencesTests.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/ProcessFrameworkReferencesTests.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; using FluentAssertions; using Microsoft.NET.TestFramework; using Xunit; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ApplyImplicitVersions.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ApplyImplicitVersions.cs index ca1e913f5776..682a02852238 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ApplyImplicitVersions.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ApplyImplicitVersions.cs @@ -3,8 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/AssetsFileResolver.cs b/src/Tasks/Microsoft.NET.Build.Tasks/AssetsFileResolver.cs index 2cf6ada03dfc..5a020c06831a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/AssetsFileResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/AssetsFileResolver.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.IO; -using NuGet.Frameworks; using NuGet.ProjectModel; using NuGet.Packaging.Core; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateFrameworkReferences.cs index a24bcd101171..54cdb54f1ecc 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateFrameworkReferences.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItems.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItems.cs index 55c611f54ac7..8deff44c4df3 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItems.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItems.cs @@ -3,10 +3,8 @@ using Microsoft.Build.Framework; using System; -using System.Collections.Generic; using System.Globalization; using System.Linq; -using System.Text; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForImplicitPackageReferenceOverrides.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForImplicitPackageReferenceOverrides.cs index 72bf58c59ea8..edda62d97c17 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForImplicitPackageReferenceOverrides.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForImplicitPackageReferenceOverrides.cs @@ -4,9 +4,7 @@ using Microsoft.Build.Framework; using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; -using System.Text; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForTargetInAssetsFile.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForTargetInAssetsFile.cs index 40d457e04c50..7784c8e91034 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForTargetInAssetsFile.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForTargetInAssetsFile.cs @@ -3,9 +3,6 @@ using Microsoft.Build.Framework; using NuGet.ProjectModel; -using System; -using System.Collections.Generic; -using System.Text; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForUnsupportedWinMDReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForUnsupportedWinMDReferences.cs index 5a44a82f53b4..e3837c98440a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForUnsupportedWinMDReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForUnsupportedWinMDReferences.cs @@ -7,8 +7,6 @@ using System.Linq; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; -using System.Text; -using System.Threading.Tasks; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckIfPackageReferenceShouldBeFrameworkReference.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckIfPackageReferenceShouldBeFrameworkReference.cs index e4d96130d54b..e43934d519eb 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckIfPackageReferenceShouldBeFrameworkReference.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckIfPackageReferenceShouldBeFrameworkReference.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.Linq; -using System.Text; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CollectSDKReferencesDesignTime.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CollectSDKReferencesDesignTime.cs index 3d6367b41c0f..b6e9d22453f9 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CollectSDKReferencesDesignTime.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CollectSDKReferencesDesignTime.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CreateComHost.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CreateComHost.cs index 0e3031aac83f..68bef1aae796 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CreateComHost.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CreateComHost.cs @@ -1,11 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.Text; using Microsoft.Build.Framework; -using Microsoft.NET.HostModel; using Microsoft.NET.HostModel.ComHost; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs index 6382214e2395..724318e558dc 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs @@ -4,8 +4,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs b/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs index e5f710415590..9625fe26571c 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; using Microsoft.Build.Framework; using Microsoft.Extensions.DependencyModel; using NuGet.Packaging; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FilterResolvedFiles.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FilterResolvedFiles.cs index 048e6a3d83e1..f633b8ee8362 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FilterResolvedFiles.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FilterResolvedFiles.cs @@ -4,10 +4,8 @@ using System.Collections.Generic; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using System.Globalization; using NuGet.ProjectModel; using NuGet.Packaging.Core; -using NuGet.Versioning; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateClsidMap.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateClsidMap.cs index b1f0c71f4868..485b0ab076f5 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateClsidMap.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateClsidMap.cs @@ -2,12 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.IO; -using System.Reflection; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; -using System.Text; using Microsoft.Build.Framework; using Microsoft.NET.HostModel.ComHost; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs index 7191afe2bc36..8baf693624d0 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs @@ -10,10 +10,8 @@ using NuGet.ProjectModel; using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; -using System.Runtime.InteropServices; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRegFreeComManifest.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRegFreeComManifest.cs index 729debb5ef13..af55a4bdd8f8 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRegFreeComManifest.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRegFreeComManifest.cs @@ -1,13 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; using System.IO; -using System.Reflection; -using System.Reflection.Metadata; -using System.Reflection.PortableExecutable; -using System.Text; using Microsoft.Build.Framework; using Microsoft.NET.HostModel.ComHost; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateShims.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateShims.cs index fab7a21da551..e5517990e19b 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateShims.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateShims.cs @@ -9,8 +9,6 @@ using Microsoft.Build.Utilities; using Microsoft.NET.HostModel; using Microsoft.NET.HostModel.AppHost; -using NuGet.Frameworks; -using NuGet.ProjectModel; using NuGet.Versioning; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs index d604b2512f53..38a5b193549b 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs @@ -4,7 +4,6 @@ using Microsoft.Build.Framework; using System.Xml.Linq; using System.IO; -using System; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyVersion.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyVersion.cs index ea9184401ba5..680cda9b27ff 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyVersion.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyVersion.cs @@ -1,12 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using Newtonsoft.Json; using NuGet.Versioning; -using System.Diagnostics; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetDefaultPlatformTargetForNetFramework.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetDefaultPlatformTargetForNetFramework.cs index 2ac40188d7b1..fa25dd0c3f3a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetDefaultPlatformTargetForNetFramework.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetDefaultPlatformTargetForNetFramework.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.Linq; -using System.Text; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetPackageDirectory.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetPackageDirectory.cs index 7826ebb92668..31f254d9ac3c 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetPackageDirectory.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetPackageDirectory.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; -using System.IO; using System.Linq; -using System.Text; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetPublishItemsOutputGroupOutputs.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetPublishItemsOutputGroupOutputs.cs index 9700b908d42a..b0cfae0cb364 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetPublishItemsOutputGroupOutputs.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetPublishItemsOutputGroupOutputs.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; -using System.IO; -using System.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/JoinItems.cs b/src/Tasks/Microsoft.NET.Build.Tasks/JoinItems.cs index 35bc4a38b87d..52d3cfc94a17 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/JoinItems.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/JoinItems.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; -using System.Text; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using System.Linq; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileCache.cs b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileCache.cs index 5faa5ee9273a..5a9a5d72af2f 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileCache.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileCache.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Diagnostics; using System.IO; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using NuGet.Common; using NuGet.ProjectModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/NuGetPackageResolver.cs b/src/Tasks/Microsoft.NET.Build.Tasks/NuGetPackageResolver.cs index 1df500162981..cc3c7d257f28 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/NuGetPackageResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/NuGetPackageResolver.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using NuGet.Common; -using NuGet.Configuration; using NuGet.Packaging; using NuGet.ProjectModel; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/NuGetUtils.NuGet.cs b/src/Tasks/Microsoft.NET.Build.Tasks/NuGetUtils.NuGet.cs index c13e956052e1..9e8bbfd95e64 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/NuGetUtils.NuGet.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/NuGetUtils.NuGet.cs @@ -3,12 +3,7 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; using NuGet.Frameworks; -using NuGet.Packaging.Core; -using NuGet.ProjectModel; using NuGet.RuntimeModel; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/NugetContentAssetPreprocessor.cs b/src/Tasks/Microsoft.NET.Build.Tasks/NugetContentAssetPreprocessor.cs index c6997b114641..2a7971d67648 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/NugetContentAssetPreprocessor.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/NugetContentAssetPreprocessor.cs @@ -4,7 +4,6 @@ using NuGet.Common; using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; using System.Security.Cryptography; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ParseTargetManifests.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ParseTargetManifests.cs index a87f7ef0d01c..dcd2ba3b5126 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ParseTargetManifests.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ParseTargetManifests.cs @@ -6,7 +6,6 @@ using NuGet.Packaging.Core; using System; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.Text; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.cs b/src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.cs index 98c58b6b6361..16dab09d1284 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.cs @@ -3,8 +3,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; using System.IO; using System.Runtime.InteropServices; using System.Reflection.PortableExecutable; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs index 792c578a70f8..009412f68473 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs @@ -6,7 +6,6 @@ using System.IO; using System.Linq; using System.Runtime.InteropServices; -using System.Text.RegularExpressions; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.DotNet.Cli; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RemoveDuplicatePackageReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RemoveDuplicatePackageReferences.cs index 49743c811a84..6e00fd449fa6 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RemoveDuplicatePackageReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RemoveDuplicatePackageReferences.cs @@ -4,8 +4,6 @@ using System.Collections.Generic; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using System.Globalization; -using NuGet.ProjectModel; using NuGet.Packaging.Core; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveAppHosts.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveAppHosts.cs index 92dc36570bed..eb62e1946551 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveAppHosts.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveAppHosts.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Frameworks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveCopyLocalAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveCopyLocalAssets.cs index 069b6d0f661f..185423e75cf7 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveCopyLocalAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveCopyLocalAssets.cs @@ -6,7 +6,6 @@ using Microsoft.Build.Utilities; using NuGet.Packaging.Core; using NuGet.ProjectModel; -using NuGet.Versioning; using System.Collections.Generic; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveFrameworkReferences.cs index 4b4d188b223f..e9f56bc3ff4d 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveFrameworkReferences.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageAssets.cs index 5171e17f7516..37fd4741ba9a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageAssets.cs @@ -8,7 +8,6 @@ using System.Linq; using System.Security.Cryptography; using System.Text; -using System.Xml.Linq; using Microsoft.Build.Evaluation; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs index 54206b0ec0f5..34024afe5c30 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.ComponentModel; using System.IO; using System.Linq; using System.Runtime.InteropServices; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs index 688ba8f0d7d9..b72328022a91 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; using System.Xml.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs index ca7dea49a899..b61034abff42 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs @@ -2,13 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; using System.Text; -using System.Threading; using System.Xml.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveToolPackagePaths.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveToolPackagePaths.cs index 9bb3d3f468b4..aba83316010e 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveToolPackagePaths.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveToolPackagePaths.cs @@ -4,8 +4,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Runtime.Versioning; using System.Text; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RunReadyToRunCompiler.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RunReadyToRunCompiler.cs index 3323c1597529..64f263fa7ede 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RunReadyToRunCompiler.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RunReadyToRunCompiler.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.Runtime.InteropServices; using System.Text; using Microsoft.Build.Framework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeGraphCache.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeGraphCache.cs index e74b12c80335..0572a7cd20be 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeGraphCache.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeGraphCache.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.IO; -using System.Text; using Microsoft.Build.Framework; using NuGet.RuntimeModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ShowMissingWorkloads.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ShowMissingWorkloads.cs index a593e2baef22..89f98b3830ff 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ShowMissingWorkloads.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ShowMissingWorkloads.cs @@ -5,8 +5,6 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.DotNet.Configurer; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ShowPreviewMessage.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ShowPreviewMessage.cs index 5ab16db585fb..3a2dde9c6633 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ShowPreviewMessage.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ShowPreviewMessage.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Framework; -using System; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/TypeLibraryDictionaryBuilder.cs b/src/Tasks/Microsoft.NET.Build.Tasks/TypeLibraryDictionaryBuilder.cs index 4b2501df54f9..938df0dc3e0a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/TypeLibraryDictionaryBuilder.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/TypeLibraryDictionaryBuilder.cs @@ -1,11 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs index 2c97ab43bcd5..a180078f710b 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs @@ -7,7 +7,6 @@ using System.Runtime.Versioning; using System.Xml.Linq; using Microsoft.Build.Framework; -using NuGet.Frameworks; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tests/Common/Program.UnitTests.cs b/src/Tests/Common/Program.UnitTests.cs index 5140dfd34365..d86965eaa69a 100644 --- a/src/Tests/Common/Program.UnitTests.cs +++ b/src/Tests/Common/Program.UnitTests.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.Linq; -using System.Text; partial class Program { diff --git a/src/Tests/Microsoft.NET.Build.Tests/ArtifactsOutputPathTests.cs b/src/Tests/Microsoft.NET.Build.Tests/ArtifactsOutputPathTests.cs index b1735507794d..2b53eef83fd5 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/ArtifactsOutputPathTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/ArtifactsOutputPathTests.cs @@ -1,14 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.Diagnostics.Contracts; using System.IO; -using System.Linq; using System.Runtime.CompilerServices; -using System.Text; -using System.Threading.Tasks; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; @@ -16,7 +11,6 @@ using Microsoft.NET.TestFramework.ProjectConstruction; using Xunit; using Xunit.Abstractions; -using Xunit.Sdk; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/AspNetCoreOnFullFramework.cs b/src/Tests/Microsoft.NET.Build.Tests/AspNetCoreOnFullFramework.cs index c79db25e4e14..0a09a9751bbf 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/AspNetCoreOnFullFramework.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/AspNetCoreOnFullFramework.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.IO; -using System.Text; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/COMReferenceTests.cs b/src/Tests/Microsoft.NET.Build.Tests/COMReferenceTests.cs index 50a8eea055d0..f0a595a8f7d4 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/COMReferenceTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/COMReferenceTests.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; using System.Xml.Linq; using FluentAssertions; using Microsoft.NET.TestFramework; diff --git a/src/Tests/Microsoft.NET.Build.Tests/DeleteNuGetArtifactsFixture.cs b/src/Tests/Microsoft.NET.Build.Tests/DeleteNuGetArtifactsFixture.cs index 7a66beb50842..9d089f83535a 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/DeleteNuGetArtifactsFixture.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/DeleteNuGetArtifactsFixture.cs @@ -6,7 +6,6 @@ using System; using System.IO; using System.Runtime.CompilerServices; -using System.Text; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/DepsFileSkipTests.cs b/src/Tests/Microsoft.NET.Build.Tests/DepsFileSkipTests.cs index 1ec23f1dc64a..49a509f5f0cc 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/DepsFileSkipTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/DepsFileSkipTests.cs @@ -5,11 +5,8 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Runtime.CompilerServices; -using System.Text; using System.Xml.Linq; using FluentAssertions; -using Microsoft.Extensions.DependencyModel; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Build.Tests/DesignTimeBuildTests.cs b/src/Tests/Microsoft.NET.Build.Tests/DesignTimeBuildTests.cs index 5c694ec700d9..863c89dfcbcf 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/DesignTimeBuildTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/DesignTimeBuildTests.cs @@ -6,7 +6,6 @@ using System.IO; using System.Linq; using System.Runtime.CompilerServices; -using System.Text; using System.Xml.Linq; using FluentAssertions; using Microsoft.NET.TestFramework; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GenerateResourceTests.cs b/src/Tests/Microsoft.NET.Build.Tests/GenerateResourceTests.cs index b9afcbcc6e00..16ed467a6744 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GenerateResourceTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GenerateResourceTests.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.IO; -using System.Text; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatAProjectHasntBeenRestored.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatAProjectHasntBeenRestored.cs index 02c1a0bcac8f..f28e88a14d88 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatAProjectHasntBeenRestored.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatAProjectHasntBeenRestored.cs @@ -1,12 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.IO; -using System.Text; using FluentAssertions; -using Microsoft.NET.Build.Tasks; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeHaveAPackageReferenceWithAliases.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeHaveAPackageReferenceWithAliases.cs index afaef2ae26db..55aaf44b35e5 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeHaveAPackageReferenceWithAliases.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeHaveAPackageReferenceWithAliases.cs @@ -7,13 +7,10 @@ using Microsoft.NET.TestFramework.Commands; using Microsoft.NET.TestFramework.ProjectConstruction; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.CompilerServices; -using Xunit; using Xunit.Abstractions; -using static System.Net.WebRequestMethods; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeManifestSupportedFrameworks.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeManifestSupportedFrameworks.cs index 6f3ffecd9e8c..0e91d5e8e60f 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeManifestSupportedFrameworks.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeManifestSupportedFrameworks.cs @@ -1,13 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; using FluentAssertions; -using Microsoft.NET.Build.Tasks; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAMessageWhenBuildingWithAPreviewSdk.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAMessageWhenBuildingWithAPreviewSdk.cs index 2a54afbc038a..9dec54103661 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAMessageWhenBuildingWithAPreviewSdk.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAMessageWhenBuildingWithAPreviewSdk.cs @@ -6,9 +6,6 @@ using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using System.IO; -using System.Linq; -using System.Xml.Linq; using Xunit; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAllResourcesInSatellite.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAllResourcesInSatellite.cs index 918656120ac5..0c8fb18f7f58 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAllResourcesInSatellite.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAllResourcesInSatellite.cs @@ -8,8 +8,6 @@ using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Microsoft.DotNet.Cli.Utils; using System.Xml.Linq; using System.Runtime.CompilerServices; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantBuildsToBeIncremental.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantBuildsToBeIncremental.cs index 546aed47ac49..fb0c4f70e400 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantBuildsToBeIncremental.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantBuildsToBeIncremental.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.Threading; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenAssetsFileCannotBeRead.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenAssetsFileCannotBeRead.cs index 31f85e8d382d..9afb9fb7342f 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenAssetsFileCannotBeRead.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenAssetsFileCannotBeRead.cs @@ -4,7 +4,6 @@ using System.IO; using System.Text.RegularExpressions; using FluentAssertions; -using Microsoft.NET.Build.Tasks; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs index baa050e87621..c341b10db0ce 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.IO; -using System.Text.RegularExpressions; using FluentAssertions; -using Microsoft.NET.Build.Tasks; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantImplicitNamespaceImportsDisabled.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantImplicitNamespaceImportsDisabled.cs index 7ce43aeeaf9f..6bbc9eb08e4d 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantImplicitNamespaceImportsDisabled.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantImplicitNamespaceImportsDisabled.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliNonLibraryProject.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliNonLibraryProject.cs index 28d1b5817d03..c89edc97a0c6 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliNonLibraryProject.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliNonLibraryProject.cs @@ -2,14 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.IO; -using System.Linq; using System.Xml.Linq; using FluentAssertions; using Microsoft.NET.Build.Tasks; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using Xunit; using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliProject.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliProject.cs index f5a75296ecff..0e759cac5b07 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliProject.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliProject.cs @@ -5,15 +5,12 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Security.Cryptography; using System.Xml.Linq; using FluentAssertions; -using Microsoft.Build.Evaluation; using Microsoft.NET.Build.Tasks; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; using Xunit; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACrossTargetedLibrary.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACrossTargetedLibrary.cs index 1777393595af..967e740b1e81 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACrossTargetedLibrary.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACrossTargetedLibrary.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.IO; -using System.Runtime.InteropServices; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExe.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExe.cs index 5f2f796fdba6..da36fb9a68ef 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExe.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExe.cs @@ -6,8 +6,6 @@ using System.Linq; using System.Runtime.InteropServices; using System.Xml.Linq; - -using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; @@ -17,10 +15,7 @@ using Xunit; using Xunit.Abstractions; -using System.Text.RegularExpressions; using System.Collections.Generic; -using System.Security.Cryptography; -using System.Reflection.Metadata; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWithFSharp.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWithFSharp.cs index fcfb5317e7f0..5ccbcead43bb 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWithFSharp.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWithFSharp.cs @@ -1,23 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.IO; using System.Linq; -using System.Runtime.InteropServices; -using System.Xml.Linq; - -using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; using FluentAssertions; using Xunit; using Xunit.Abstractions; -using System.Text.RegularExpressions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopLibrary.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopLibrary.cs index e3dd47fd328d..591eb78f242c 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopLibrary.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopLibrary.cs @@ -4,7 +4,6 @@ using System; using System.IO; using System.Linq; -using System.Runtime.InteropServices; using System.Xml.Linq; using FluentAssertions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs index 8c16a31f0fcb..2b0bd75a9e5e 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs @@ -10,7 +10,6 @@ using FluentAssertions; using System.Xml.Linq; using System.Runtime.Versioning; -using System.Runtime.InteropServices; using System.Collections.Generic; using System; using System.Runtime.CompilerServices; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithFSharp.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithFSharp.cs index 212e43588f1f..8749de8438d4 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithFSharp.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithFSharp.cs @@ -10,7 +10,6 @@ using FluentAssertions; using System.Xml.Linq; using System.Runtime.Versioning; -using System.Runtime.InteropServices; using System.Collections.Generic; using System; using System.Runtime.CompilerServices; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithVB.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithVB.cs index c3d365fa6200..555a29911eaa 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithVB.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithVB.cs @@ -10,7 +10,6 @@ using FluentAssertions; using System.Xml.Linq; using System.Runtime.Versioning; -using System.Runtime.InteropServices; using System.Collections.Generic; using System; using System.Runtime.CompilerServices; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreApp.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreApp.cs index 1614691d5601..3468802bc3c9 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreApp.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreApp.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using FluentAssertions; -using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.DependencyModel; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; @@ -15,18 +14,13 @@ using System; using System.Collections.Generic; using System.IO; -using System.Reflection.PortableExecutable; -using System.Runtime.InteropServices; using System.Linq; -using System.Text; using System.Xml.Linq; using Xunit; using Xunit.Abstractions; using Microsoft.NET.Build.Tasks; using NuGet.Versioning; using System.Runtime.CompilerServices; -using System.Security.Cryptography; -using Xunit.Sdk; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppForTelemetry.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppForTelemetry.cs index a22d6614c940..521cdfadd8e2 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppForTelemetry.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppForTelemetry.cs @@ -7,8 +7,6 @@ using Microsoft.NET.TestFramework.Commands; using Microsoft.NET.TestFramework.ProjectConstruction; using System; -using System.IO; -using Xunit; using Xunit.Abstractions; using System.Reflection; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppWithWap.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppWithWap.cs index e7c17ee11501..42ed18bfd357 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppWithWap.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppWithWap.cs @@ -5,7 +5,6 @@ using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using Xunit; using Xunit.Abstractions; namespace Microsoft.NET.Publish.Tests diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetStandard2Library.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetStandard2Library.cs index 54d78d28d73d..cc50dff2e627 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetStandard2Library.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetStandard2Library.cs @@ -1,18 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; using Xunit; -using System.Linq; using FluentAssertions; using System.Xml.Linq; -using System.Runtime.Versioning; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System; using Microsoft.NET.TestFramework.ProjectConstruction; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonAnyCPUPlatform.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonAnyCPUPlatform.cs index 542a152c0ec7..ada55dbb6df3 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonAnyCPUPlatform.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonAnyCPUPlatform.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.IO; -using System.Runtime.InteropServices; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using Xunit; using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration.cs index 8a5eae669962..e2a98aca6d93 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; using System.Linq; -using System.Runtime.InteropServices; -using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB.cs index 500ebf446e67..8e70b80a68d7 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; using System.Linq; -using System.Runtime.InteropServices; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithProjRefDiffCase.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithProjRefDiffCase.cs index cf35d03a9aa1..9b7758911f78 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithProjRefDiffCase.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithProjRefDiffCase.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsRuntimeComponent.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsRuntimeComponent.cs index fd240710b5be..5bc625871446 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsRuntimeComponent.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsRuntimeComponent.cs @@ -2,14 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.IO; -using System.Linq; using System.Xml.Linq; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; using Microsoft.NET.TestFramework.ProjectConstruction; -using Newtonsoft.Json.Linq; using Xunit; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithLibrary.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithLibrary.cs index a689cdea1d7f..60afe2c3dd91 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithLibrary.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithLibrary.cs @@ -4,15 +4,11 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; -using System.Runtime.InteropServices; -using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; using Xunit; using FluentAssertions; -using System.Xml.Linq; -using System.Linq; using System; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithSharedProject.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithSharedProject.cs index cee13a1c843e..933ebad39f65 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithSharedProject.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithSharedProject.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.Text; using FluentAssertions; using Xunit; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveProjectRefs.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveProjectRefs.cs index bae22857135a..981c4682df76 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveProjectRefs.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveProjectRefs.cs @@ -1,18 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; -using System.Diagnostics; using System.IO; -using System.Runtime.InteropServices; -using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; using Xunit; using FluentAssertions; -using System.Xml.Linq; -using System.Linq; using System; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAppsWithFrameworkRefs.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAppsWithFrameworkRefs.cs index 888adb703464..3b9ef1129e28 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAppsWithFrameworkRefs.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAppsWithFrameworkRefs.cs @@ -2,15 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. using FluentAssertions; -using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; using System; using System.IO; -using System.Linq; -using System.Runtime.InteropServices; -using System.Xml.Linq; using Xunit; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCopyLocalDependencies.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCopyLocalDependencies.cs index e4ad48f0c416..dee4e0253daa 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCopyLocalDependencies.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCopyLocalDependencies.cs @@ -1,13 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.CompilerServices; -using System.Xml.Linq; - using FluentAssertions; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToExcludeTheMainProjectFromTheDepsFile.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToExcludeTheMainProjectFromTheDepsFile.cs index ab690ef28770..ecd4799aebe7 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToExcludeTheMainProjectFromTheDepsFile.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToExcludeTheMainProjectFromTheDepsFile.cs @@ -6,10 +6,7 @@ using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; using Microsoft.NET.TestFramework.ProjectConstruction; -using System; -using System.Collections.Generic; using System.IO; -using System.Text; using System.Xml.Linq; using Xunit; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs index 5e58b912843d..5c2518dcde64 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; -using System.IO; using System.Runtime.InteropServices; using FluentAssertions; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_Worker.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_Worker.cs index 2f82b20d2341..7243a25638a9 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_Worker.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_Worker.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.IO; using FluentAssertions; using Microsoft.NET.TestFramework; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToIncludeItemsOutsideTheProjectFolder.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToIncludeItemsOutsideTheProjectFolder.cs index e50c7dcbc8af..ddc082a8bfd2 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToIncludeItemsOutsideTheProjectFolder.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToIncludeItemsOutsideTheProjectFolder.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.Text; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPreserveCompilationContextForBuild.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPreserveCompilationContextForBuild.cs index eb6800e14295..c8b4d6ea0551 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPreserveCompilationContextForBuild.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPreserveCompilationContextForBuild.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.IO; using System.Linq; using FluentAssertions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToProduceReferenceAssembly.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToProduceReferenceAssembly.cs index 270bef691a40..1996a642816a 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToProduceReferenceAssembly.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToProduceReferenceAssembly.cs @@ -9,7 +9,6 @@ using Xunit.Abstractions; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.ProjectConstruction; -using System.Collections.Generic; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs index 67a89c7cfb30..03704b4a2644 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs @@ -1,17 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.IO; using System.Linq; -using System.Runtime.CompilerServices; using System.Xml.Linq; using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Commands; -using NuGet.Packaging; using Xunit; using Xunit.Abstractions; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAProject.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAProject.cs index ad038d05dbc1..7ab0d819d359 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAProject.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAProject.cs @@ -6,9 +6,7 @@ using Microsoft.NET.TestFramework.Commands; using Microsoft.NET.TestFramework.ProjectConstruction; using System; -using System.Collections.Generic; using System.IO; -using System.Text; using Xunit; using FluentAssertions; using System.Runtime.InteropServices; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAnAssembly.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAnAssembly.cs index 20ab5c886fae..c5efa350d3ca 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAnAssembly.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAnAssembly.cs @@ -1,12 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.IO; -using System.Linq; using System.Runtime.InteropServices; using FluentAssertions; -using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToSetPropertiesInDirectoryBuildProps.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToSetPropertiesInDirectoryBuildProps.cs index c16c2230d8fb..159ead01f11b 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToSetPropertiesInDirectoryBuildProps.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToSetPropertiesInDirectoryBuildProps.cs @@ -6,11 +6,7 @@ using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.ProjectConstruction; using Microsoft.NET.TestFramework.Commands; -using System; -using System.Collections.Generic; using System.IO; -using System.Text; -using System.Xml.Linq; using Xunit; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetNet471.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetNet471.cs index 2cb328f7d71c..2b590480364f 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetNet471.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetNet471.cs @@ -2,18 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. using FluentAssertions; -using Microsoft.Build.Utilities; -using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; using Microsoft.NET.TestFramework.ProjectConstruction; -using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; -using System.Text; using System.Xml.Linq; using Xunit; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseAnalyzers.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseAnalyzers.cs index 91dfd63c246d..4c2bc7c67e1a 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseAnalyzers.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseAnalyzers.cs @@ -12,7 +12,6 @@ using System.Collections.Generic; using System; using Xunit.Abstractions; -using System.Runtime.InteropServices; using Microsoft.NET.TestFramework.ProjectConstruction; namespace Microsoft.NET.Build.Tests diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseBinaryFormatter.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseBinaryFormatter.cs index 8c04b446a181..95f365367f99 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseBinaryFormatter.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseBinaryFormatter.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyNuGetReferenceCompat.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyNuGetReferenceCompat.cs index a461c1775bef..4a33fd74a2c4 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyNuGetReferenceCompat.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyNuGetReferenceCompat.cs @@ -14,7 +14,6 @@ using System.Linq; using Xunit.Abstractions; using System.Runtime.CompilerServices; -using System.Text.RegularExpressions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyProjectReferenceCompat.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyProjectReferenceCompat.cs index 12ea3245c82a..12e5f07ac777 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyProjectReferenceCompat.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyProjectReferenceCompat.cs @@ -7,8 +7,6 @@ using Microsoft.NET.TestFramework.ProjectConstruction; using System; using System.Collections.Generic; -using System.IO; -using System.Text; using Xunit; using FluentAssertions; using System.Runtime.InteropServices; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs index c50759b96f69..3e732f026fd9 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs @@ -10,7 +10,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; using System.Xml.Linq; using Xunit; using Microsoft.NET.TestFramework.ProjectConstruction; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenTransitiveFrameworkReferencesAreDisabled.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenTransitiveFrameworkReferencesAreDisabled.cs index 02da8206945b..9c6e07bd80ba 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenTransitiveFrameworkReferencesAreDisabled.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenTransitiveFrameworkReferencesAreDisabled.cs @@ -6,10 +6,7 @@ using System.IO; using System.Linq; using System.Runtime.CompilerServices; -using System.Text; -using System.Threading.Tasks; using FluentAssertions; -using FluentAssertions.Collections; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs index a3400594db65..2bc9e7e3d666 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.IO; using System.Xml.Linq; using Microsoft.NET.Build.Tasks; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GlobalPropertyFlowTests.cs b/src/Tests/Microsoft.NET.Build.Tests/GlobalPropertyFlowTests.cs index 19f7b3ccc1ed..af4d99ff8054 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GlobalPropertyFlowTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GlobalPropertyFlowTests.cs @@ -1,14 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Runtime.CompilerServices; using System.Xml.Linq; using FluentAssertions; -using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Build.Tests/ImplicitAspNetVersions.cs b/src/Tests/Microsoft.NET.Build.Tests/ImplicitAspNetVersions.cs index 64583defe0f0..d38ca7d7a5fe 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/ImplicitAspNetVersions.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/ImplicitAspNetVersions.cs @@ -1,11 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/KnownRuntimePackTests.cs b/src/Tests/Microsoft.NET.Build.Tests/KnownRuntimePackTests.cs index def6edf549bc..8e96d33da726 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/KnownRuntimePackTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/KnownRuntimePackTests.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; -using System.Linq; using System.Xml.Linq; using FluentAssertions; using Microsoft.NET.TestFramework; diff --git a/src/Tests/Microsoft.NET.Build.Tests/Net50Targeting.cs b/src/Tests/Microsoft.NET.Build.Tests/Net50Targeting.cs index 839c1ee55054..8ab4733e2a96 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/Net50Targeting.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/Net50Targeting.cs @@ -1,18 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests diff --git a/src/Tests/Microsoft.NET.Build.Tests/ProjectConfigurationDescriptionTest.cs b/src/Tests/Microsoft.NET.Build.Tests/ProjectConfigurationDescriptionTest.cs index ec8ff24c3e50..ddf648d07a0f 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/ProjectConfigurationDescriptionTest.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/ProjectConfigurationDescriptionTest.cs @@ -8,7 +8,6 @@ using FluentAssertions; using Microsoft.NET.TestFramework.ProjectConstruction; using Xunit.Abstractions; -using Xunit; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs b/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs index f54846ac5d0a..c62eb5dbccfe 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.IO; -using System.Linq; using System.Runtime.CompilerServices; using System.Xml.Linq; using FluentAssertions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/SourceLinkTests.cs b/src/Tests/Microsoft.NET.Build.Tests/SourceLinkTests.cs index be2759fa1587..f421e498cdd2 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/SourceLinkTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/SourceLinkTests.cs @@ -12,7 +12,6 @@ using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using NuGet.Packaging.Core; using Xunit; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Build.Tests/WorkloadTests.cs b/src/Tests/Microsoft.NET.Build.Tests/WorkloadTests.cs index 74cf312a7a2f..25c3e96e0c74 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/WorkloadTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/WorkloadTests.cs @@ -1,14 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; -using System.Text; -using System.Threading.Tasks; using FluentAssertions; -using Microsoft.Extensions.DependencyModel; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Clean.Tests/GivenThatWeWantToCleanAProject.cs b/src/Tests/Microsoft.NET.Clean.Tests/GivenThatWeWantToCleanAProject.cs index 0dfa3ecfb95f..d4a485b71ada 100644 --- a/src/Tests/Microsoft.NET.Clean.Tests/GivenThatWeWantToCleanAProject.cs +++ b/src/Tests/Microsoft.NET.Clean.Tests/GivenThatWeWantToCleanAProject.cs @@ -1,12 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Xml.Linq; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatThereAreImplicitPackageReferences.cs b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatThereAreImplicitPackageReferences.cs index f961c6039ded..cc422d439e6f 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatThereAreImplicitPackageReferences.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatThereAreImplicitPackageReferences.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Text; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACppCliProject.cs b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACppCliProject.cs index 09c4cf0b6fd4..4cb4295091e1 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACppCliProject.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACppCliProject.cs @@ -5,7 +5,6 @@ using System.Linq; using System.Xml.Linq; using FluentAssertions; -using Microsoft.NET.Build.Tasks; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACrossTargetedLibrary.cs b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACrossTargetedLibrary.cs index 77cdfbf3d0c4..7cad8f37fb58 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACrossTargetedLibrary.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACrossTargetedLibrary.cs @@ -5,7 +5,6 @@ using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using Xunit; using Xunit.Abstractions; namespace Microsoft.NET.Pack.Tests diff --git a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackAHelloWorldProject.cs b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackAHelloWorldProject.cs index 40b7b76f7e86..7907dbc3214c 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackAHelloWorldProject.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackAHelloWorldProject.cs @@ -1,12 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; -using Microsoft.NET.Build.Tasks; using System.Xml.Linq; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; @@ -15,7 +11,6 @@ using FluentAssertions; using Xunit; using Xunit.Abstractions; -using Microsoft.DotNet.Tools; using Microsoft.DotNet.Cli; namespace Microsoft.NET.Pack.Tests diff --git a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackANetFrameworkLibrary.cs b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackANetFrameworkLibrary.cs index a13419fc59bb..ac5cb978a050 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackANetFrameworkLibrary.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackANetFrameworkLibrary.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; -using System.Text; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; @@ -12,7 +10,6 @@ using System.Xml.Linq; using System.Linq; using FluentAssertions; -using System.Runtime.InteropServices; using Xunit.Abstractions; namespace Microsoft.NET.Pack.Tests diff --git a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackASimpleLibrary.cs b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackASimpleLibrary.cs index 17a72c98fa88..daa5b44b0c2e 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackASimpleLibrary.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackASimpleLibrary.cs @@ -5,7 +5,6 @@ using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using Xunit; using Xunit.Abstractions; namespace Microsoft.NET.Pack.Tests diff --git a/src/Tests/Microsoft.NET.Pack.Tests/SolutionPackTests.cs b/src/Tests/Microsoft.NET.Pack.Tests/SolutionPackTests.cs index 71a88ac3cbe6..8834ad42db51 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/SolutionPackTests.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/SolutionPackTests.cs @@ -1,12 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs index b4325521126a..7f928fb5085b 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs @@ -2,13 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; -using System.Text; using FluentAssertions; -using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.DependencyModel; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToCrossPublish.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToCrossPublish.cs index 97c2bf4fa2a9..32b0b8ff2461 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToCrossPublish.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToCrossPublish.cs @@ -1,10 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToExcludeAPackageFromPublish.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToExcludeAPackageFromPublish.cs index cb93ad2322d5..c386d579b86c 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToExcludeAPackageFromPublish.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToExcludeAPackageFromPublish.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; -using System.Runtime.InteropServices; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs index d7b1e7c82da2..8d333ed48097 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; -using System.IO; -using System.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAComServerLibrary.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAComServerLibrary.cs index 34c35849850a..42c646deea2f 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAComServerLibrary.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAComServerLibrary.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.Text; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliAppProject.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliAppProject.cs index ea495418c6af..79b6b8c08c79 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliAppProject.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliAppProject.cs @@ -7,7 +7,6 @@ using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using Xunit; using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliProject.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliProject.cs index 2e2dc72f0c02..da1f03603d0a 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliProject.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliProject.cs @@ -3,14 +3,11 @@ using System.IO; using System.Linq; -using System.Xml.Linq; using FluentAssertions; using Microsoft.NET.Build.Tasks; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using NuGet.Frameworks; -using NuGet.ProjectModel; using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs index db04eb8aeacd..41f876389c6a 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs @@ -7,14 +7,11 @@ using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Security.Policy; using System.Xml.Linq; using FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools; using Microsoft.Extensions.DependencyModel; -using Microsoft.NET.Build.Tasks; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishANetCoreAppForTelemetry.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishANetCoreAppForTelemetry.cs index 0ff2c0a942c1..2412e1cf206d 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishANetCoreAppForTelemetry.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishANetCoreAppForTelemetry.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.IO; using System.Reflection; using System.Runtime.InteropServices; using FluentAssertions; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithDependencies.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithDependencies.cs index a304a1d72dec..e3d106828ca9 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithDependencies.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithDependencies.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using FluentAssertions; -using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileApp.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileApp.cs index 932f191c433c..9b3b7e0411f7 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileApp.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileApp.cs @@ -8,7 +8,6 @@ using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; using Microsoft.NET.TestFramework.ProjectConstruction; -using System.Linq; using System.Xml.Linq; using NuGet.Frameworks; using Xunit; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileLibrary.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileLibrary.cs index 2eeb4a6e3f5e..90bbd0b5d315 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileLibrary.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileLibrary.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; -using System.IO; -using System.Runtime.CompilerServices; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAToolProjectWithPackagedShim.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAToolProjectWithPackagedShim.cs index adfc6bf9f90c..715d2e99b6b4 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAToolProjectWithPackagedShim.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAToolProjectWithPackagedShim.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; -using System.IO; using System.Linq; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; @@ -10,11 +8,8 @@ using FluentAssertions; using Xunit; using Xunit.Abstractions; -using NuGet.Packaging; using System.Xml.Linq; using System.Runtime.CompilerServices; -using System; -using NuGet.Frameworks; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs index 93590c3267c7..d5d2a14cdd36 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs @@ -6,11 +6,8 @@ using System.IO; using System.Linq; using System.Xml.Linq; -using System.Reflection; -using System.Reflection.Metadata; using System.Reflection.PortableExecutable; using System.Runtime.InteropServices; -using System.Text; using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs index 85468de264ab..db279f9b8896 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs @@ -12,7 +12,6 @@ using Xunit; using Xunit.Abstractions; using System.Collections.Generic; -using System.Runtime.InteropServices; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishToClickOnce.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishToClickOnce.cs index 559f2cdd84bd..8fcf7601f007 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishToClickOnce.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishToClickOnce.cs @@ -2,17 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.IO; -using System.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; using Microsoft.NET.TestFramework.ProjectConstruction; using Xunit; -using System.Xml.Linq; -using System.Runtime.CompilerServices; -using System; -using Microsoft.Extensions.DependencyModel; using Xunit.Abstractions; namespace Microsoft.NET.Publish.Tests diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishTrimmedWindowsFormsAndWPFApps.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishTrimmedWindowsFormsAndWPFApps.cs index 537bc55ff152..c0674ca191ee 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishTrimmedWindowsFormsAndWPFApps.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishTrimmedWindowsFormsAndWPFApps.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; -using System.Linq; -using System.Xml.Linq; using FluentAssertions; using Microsoft.NET.Build.Tasks; using Microsoft.NET.TestFramework; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs index 68bd08c3f1f2..e001cd3d61e2 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs @@ -2,16 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; -using System.IO; using System.Linq; -using System.Runtime.CompilerServices; using System.Xml.Linq; using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Commands; -using NuGet.Packaging; using Xunit; using Xunit.Abstractions; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToRunILLink.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToRunILLink.cs index 7bce71bc343f..788b6c003bca 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToRunILLink.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToRunILLink.cs @@ -24,7 +24,6 @@ using Xunit; using Xunit.Abstractions; using static Microsoft.NET.Publish.Tests.PublishTestUtils; -using System.Security.Permissions; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToTestAMultitargetedSolutionWithPublishReleaseOrPackRelease.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToTestAMultitargetedSolutionWithPublishReleaseOrPackRelease.cs index dcc8b5eb355c..eccc488fec9a 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToTestAMultitargetedSolutionWithPublishReleaseOrPackRelease.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToTestAMultitargetedSolutionWithPublishReleaseOrPackRelease.cs @@ -7,7 +7,6 @@ using System.Linq; using System.Runtime.CompilerServices; using FluentAssertions; -using Microsoft.DotNet.Tools; using Microsoft.NET.Build.Tasks; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; @@ -15,7 +14,6 @@ using Microsoft.NET.TestFramework.ProjectConstruction; using Xunit; using Xunit.Abstractions; -using Xunit.Sdk; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/PublishDepsFilePathTests.cs b/src/Tests/Microsoft.NET.Publish.Tests/PublishDepsFilePathTests.cs index 27221b004120..81036ea270b5 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/PublishDepsFilePathTests.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/PublishDepsFilePathTests.cs @@ -2,12 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.IO; using System.Linq; -using System.Runtime.InteropServices; using FluentAssertions; -using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/PublishNetFrameworkApp.cs b/src/Tests/Microsoft.NET.Publish.Tests/PublishNetFrameworkApp.cs index 51b16ba6cc1c..d2ade16834e9 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/PublishNetFrameworkApp.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/PublishNetFrameworkApp.cs @@ -1,13 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; using FluentAssertions; -using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Publish.Tests/RuntimeIdentifiersTests.cs b/src/Tests/Microsoft.NET.Publish.Tests/RuntimeIdentifiersTests.cs index ee50b3f7a0bf..397f5b94da43 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/RuntimeIdentifiersTests.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/RuntimeIdentifiersTests.cs @@ -1,14 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Reflection; -using System.Security.Cryptography; -using System.Text; -using System.Xml.Linq; using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.TestFramework; @@ -17,7 +12,6 @@ using Microsoft.NET.TestFramework.ProjectConstruction; using Xunit; using Xunit.Abstractions; -using Xunit.Sdk; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Rebuild.Tests/GivenThatWeWantToRebuildAProject.cs b/src/Tests/Microsoft.NET.Rebuild.Tests/GivenThatWeWantToRebuildAProject.cs index dccf0cd23293..f620052f9681 100644 --- a/src/Tests/Microsoft.NET.Rebuild.Tests/GivenThatWeWantToRebuildAProject.cs +++ b/src/Tests/Microsoft.NET.Rebuild.Tests/GivenThatWeWantToRebuildAProject.cs @@ -1,12 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Xml.Linq; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; diff --git a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreDotNetCliToolReference.cs b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreDotNetCliToolReference.cs index be638fef89ba..2e92a9218955 100644 --- a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreDotNetCliToolReference.cs +++ b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreDotNetCliToolReference.cs @@ -3,7 +3,6 @@ using System.IO; using System.Linq; -using System.Xml.Linq; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs index 7b51946dd769..7343d3251cc3 100644 --- a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs +++ b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs @@ -10,10 +10,8 @@ using NuGet.Packaging; using NuGet.Packaging.Core; using NuGet.Packaging.Signing; -using System; using System.IO; using System.Threading; -using System.Threading.Tasks; using Xunit; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsWithPackageDowngrades.cs b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsWithPackageDowngrades.cs index fecd92140e8e..626e4760bd4e 100644 --- a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsWithPackageDowngrades.cs +++ b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsWithPackageDowngrades.cs @@ -6,11 +6,7 @@ using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; using Microsoft.NET.TestFramework.ProjectConstruction; -using NuGet.Common; -using NuGet.Packaging; -using NuGet.Packaging.Core; using System.IO; -using System.Threading; using Xunit; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.Restore.Tests/RestoreWithOlderNuGet.cs b/src/Tests/Microsoft.NET.Restore.Tests/RestoreWithOlderNuGet.cs index 4effdb389e0a..1e21337141f9 100644 --- a/src/Tests/Microsoft.NET.Restore.Tests/RestoreWithOlderNuGet.cs +++ b/src/Tests/Microsoft.NET.Restore.Tests/RestoreWithOlderNuGet.cs @@ -6,11 +6,6 @@ using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; using Microsoft.NET.TestFramework.ProjectConstruction; -using NuGet.Common; -using NuGet.Packaging; -using NuGet.Packaging.Core; -using System.IO; -using System.Threading; using Xunit; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.TestFramework/AspNetSdkTest.cs b/src/Tests/Microsoft.NET.TestFramework/AspNetSdkTest.cs index a87c222ed854..08ddb6dc48fb 100644 --- a/src/Tests/Microsoft.NET.TestFramework/AspNetSdkTest.cs +++ b/src/Tests/Microsoft.NET.TestFramework/AspNetSdkTest.cs @@ -1,13 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; -using System.Xml.Linq; -using Microsoft.NET.TestFramework; using Xunit; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/AssemblyAssertions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/AssemblyAssertions.cs index 5d466323864d..a23fa9b07c9a 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/AssemblyAssertions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/AssemblyAssertions.cs @@ -3,15 +3,12 @@ using FluentAssertions; using FluentAssertions.Execution; -using Microsoft.DotNet.Cli.Utils; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; -using System.Security.Cryptography; -using System.Threading.Tasks; namespace Microsoft.NET.TestFramework.Assertions { diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/CommandResultExtensions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/CommandResultExtensions.cs index b4c5ef4b4a2f..c1aeff5782b7 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/CommandResultExtensions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/CommandResultExtensions.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Cli.Utils; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Assertions { diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/DependencyContextAssertions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/DependencyContextAssertions.cs index ce27d502f049..e02e4b892611 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/DependencyContextAssertions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/DependencyContextAssertions.cs @@ -2,14 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. using FluentAssertions; -using FluentAssertions.Execution; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.DependencyModel; using System; -using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; namespace Microsoft.NET.TestFramework.Assertions { diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/DependencyContextExtensions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/DependencyContextExtensions.cs index c532d10253a3..64f71589af55 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/DependencyContextExtensions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/DependencyContextExtensions.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyModel; -using System; -using System.Collections.Generic; -using System.Text; namespace Microsoft.NET.TestFramework.Assertions { diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/DirectoryInfoAssertions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/DirectoryInfoAssertions.cs index c7b94dba8e9c..ad86e0c256b4 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/DirectoryInfoAssertions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/DirectoryInfoAssertions.cs @@ -3,12 +3,10 @@ using FluentAssertions; using FluentAssertions.Execution; -using Microsoft.DotNet.Cli.Utils; using System; using System.Collections.Generic; using System.IO; using System.Linq; -using System.Threading.Tasks; namespace Microsoft.NET.TestFramework.Assertions { diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/DirectoryInfoExtensions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/DirectoryInfoExtensions.cs index 1032fa3c37b6..66c782e0ec55 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/DirectoryInfoExtensions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/DirectoryInfoExtensions.cs @@ -1,11 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Threading.Tasks; namespace Microsoft.NET.TestFramework.Assertions { diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoAssertions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoAssertions.cs index d2dc5e7fb2ee..ee57cf5c76f8 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoAssertions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoAssertions.cs @@ -3,13 +3,9 @@ using FluentAssertions; using FluentAssertions.Execution; -using Microsoft.DotNet.Cli.Utils; using System; -using System.Collections.Generic; using System.IO; -using System.Linq; using System.Security.Cryptography; -using System.Threading.Tasks; namespace Microsoft.NET.TestFramework.Assertions { diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoLock.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoLock.cs index 93fb1c240eb5..483faf4eeae5 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoLock.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoLock.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Threading.Tasks; namespace Microsoft.NET.TestFramework.Assertions { diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoNuGetLock.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoNuGetLock.cs index 0fef00d446d9..1f772891926a 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoNuGetLock.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoNuGetLock.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Common; diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.cs index fb9930bdc3c9..148537d71aec 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Threading.Tasks; namespace Microsoft.NET.TestFramework.Assertions { diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildOnlyTheoryAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildOnlyTheoryAttribute.cs index 8a0b0e6b831c..9b1eb6db23a5 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildOnlyTheoryAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildOnlyTheoryAttribute.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using Xunit; namespace Microsoft.NET.TestFramework diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyFactAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyFactAttribute.cs index 79e330ccc002..c3711e5874ba 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyFactAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyFactAttribute.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.Text; using Xunit; namespace Microsoft.NET.TestFramework diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyTheoryAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyTheoryAttribute.cs index 835ab03a6481..de0970a764a1 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyTheoryAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyTheoryAttribute.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.Text; using Xunit; namespace Microsoft.NET.TestFramework diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/RequiresMSBuildVersionFactAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/RequiresMSBuildVersionFactAttribute.cs index 3e4da179b41c..b44cb5752d66 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/RequiresMSBuildVersionFactAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/RequiresMSBuildVersionFactAttribute.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using Xunit; namespace Microsoft.NET.TestFramework diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/AddReferenceCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/AddReferenceCommand.cs index 6ef98884c625..5eff334a70f4 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/AddReferenceCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/AddReferenceCommand.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.Text; using Microsoft.DotNet.Cli.Utils; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/BuildCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/BuildCommand.cs index 1a9fe2a1ed05..d05784598a48 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/BuildCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/BuildCommand.cs @@ -1,12 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.ComponentModel; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; -using Microsoft.DotNet.Cli.Utils; using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/CleanCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/CleanCommand.cs index f613577cd6e8..9cd10f2d5662 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/CleanCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/CleanCommand.cs @@ -1,12 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Linq; -using Microsoft.DotNet.Cli.Utils; -using System.IO; using Xunit.Abstractions; -using System.Collections.Generic; namespace Microsoft.NET.TestFramework.Commands { diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetBuildCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetBuildCommand.cs index c9dda001c05d..4b6eec3ccdb3 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetBuildCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetBuildCommand.cs @@ -1,10 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.IO; -using System.Text; using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetCommand.cs index caa06d7e2720..70a28bee9a18 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetCommand.cs @@ -1,11 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using Microsoft.DotNet.Cli.Utils; using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPackCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPackCommand.cs index d6802d047172..6c7d0e2a5010 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPackCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPackCommand.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.Text; using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPublishCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPublishCommand.cs index f64b47ecf652..aa46f590bb99 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPublishCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPublishCommand.cs @@ -1,11 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.IO; -using System.Text; -using Microsoft.DotNet.Cli.Utils; using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetRestoreCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetRestoreCommand.cs index ab54ee5ca5a0..b79244a1e2b3 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetRestoreCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetRestoreCommand.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.Text; using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetToolCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetToolCommand.cs index 910c017225b0..00de80ed8fd9 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetToolCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetToolCommand.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.Text; using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetVSTestCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetVSTestCommand.cs index 01abe9643ed9..8d45f98d331d 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetVSTestCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetVSTestCommand.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.Text; using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/GetValuesCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/GetValuesCommand.cs index 83b0a013e2a2..d734ce66ad47 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/GetValuesCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/GetValuesCommand.cs @@ -1,14 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.Text; -using Microsoft.DotNet.Cli.Utils; using System.Linq; using System.IO; using FluentAssertions; -using Microsoft.NET.TestFramework.Assertions; using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/ListPackageCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/ListPackageCommand.cs index 0efff29f712e..7a0ca9deb08a 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/ListPackageCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/ListPackageCommand.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.Text; using Microsoft.DotNet.Cli.Utils; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/ListReferenceCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/ListReferenceCommand.cs index 4e3e56ede2ff..e78e3c5feb54 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/ListReferenceCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/ListReferenceCommand.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.Text; using Microsoft.DotNet.Cli.Utils; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/MSBuildCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/MSBuildCommand.cs index 5db707d4b0a8..6f94f537eabc 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/MSBuildCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/MSBuildCommand.cs @@ -3,11 +3,9 @@ using Microsoft.DotNet.Cli.Utils; using System; -using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; -using System.Runtime.CompilerServices; using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/NuGetExeRestoreCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/NuGetExeRestoreCommand.cs index 5530eeed5861..55811f63096d 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/NuGetExeRestoreCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/NuGetExeRestoreCommand.cs @@ -3,10 +3,6 @@ using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.DotNet.Cli.Utils; -using NuGet.Configuration; using Xunit.Abstractions; using System; diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/RebuildCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/RebuildCommand.cs index 262d8fc5f505..6f23e00b2c74 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/RebuildCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/RebuildCommand.cs @@ -1,10 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Linq; -using Microsoft.DotNet.Cli.Utils; -using System.IO; using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/RemoveReferenceCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/RemoveReferenceCommand.cs index 9966553686bc..a90fbc8553f1 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/RemoveReferenceCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/RemoveReferenceCommand.cs @@ -1,9 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.Text; using Microsoft.DotNet.Cli.Utils; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/RestoreCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/RestoreCommand.cs index c8494a6f8110..8c3d20a65917 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/RestoreCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/RestoreCommand.cs @@ -1,12 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.ComponentModel; -using System.IO; -using System.Linq; -using Microsoft.DotNet.Cli.Utils; -using NuGet.Configuration; using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/ConflictResolutionAssets.cs b/src/Tests/Microsoft.NET.TestFramework/ConflictResolutionAssets.cs index 2b33c5d100e4..681d531c9c4e 100644 --- a/src/Tests/Microsoft.NET.TestFramework/ConflictResolutionAssets.cs +++ b/src/Tests/Microsoft.NET.TestFramework/ConflictResolutionAssets.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Text; using System.Xml.Linq; namespace Microsoft.NET.TestFramework diff --git a/src/Tests/Microsoft.NET.TestFramework/InternalsVisibleToAttributes.cs b/src/Tests/Microsoft.NET.TestFramework/InternalsVisibleToAttributes.cs index 82731ae6ea10..b57d0cd5873e 100644 --- a/src/Tests/Microsoft.NET.TestFramework/InternalsVisibleToAttributes.cs +++ b/src/Tests/Microsoft.NET.TestFramework/InternalsVisibleToAttributes.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Reflection; using System.Runtime.CompilerServices; diff --git a/src/Tests/Microsoft.NET.TestFramework/NuGetConfigWriter.cs b/src/Tests/Microsoft.NET.TestFramework/NuGetConfigWriter.cs index d295c31608a2..43dac0ed4f8f 100644 --- a/src/Tests/Microsoft.NET.TestFramework/NuGetConfigWriter.cs +++ b/src/Tests/Microsoft.NET.TestFramework/NuGetConfigWriter.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; using System.Xml.Linq; namespace Microsoft.NET.TestFramework diff --git a/src/Tests/Microsoft.NET.TestFramework/NuGetTransientErrorDetector.cs b/src/Tests/Microsoft.NET.TestFramework/NuGetTransientErrorDetector.cs index 6cc796d03dfe..7bab382e3e3c 100644 --- a/src/Tests/Microsoft.NET.TestFramework/NuGetTransientErrorDetector.cs +++ b/src/Tests/Microsoft.NET.TestFramework/NuGetTransientErrorDetector.cs @@ -1,10 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; using System.Linq; -using System.Text.RegularExpressions; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/OutputPathCalculator.cs b/src/Tests/Microsoft.NET.TestFramework/OutputPathCalculator.cs index b96de3282f86..136acddf6e69 100644 --- a/src/Tests/Microsoft.NET.TestFramework/OutputPathCalculator.cs +++ b/src/Tests/Microsoft.NET.TestFramework/OutputPathCalculator.cs @@ -2,16 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.NET.TestFramework.ProjectConstruction; using System.Xml.Linq; -using NuGet.Frameworks; -using Xunit.Sdk; -using System.ComponentModel.DataAnnotations; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/ProjectConstruction/TestProject.cs b/src/Tests/Microsoft.NET.TestFramework/ProjectConstruction/TestProject.cs index 9e99f7780bcb..bd28a2ddae58 100644 --- a/src/Tests/Microsoft.NET.TestFramework/ProjectConstruction/TestProject.cs +++ b/src/Tests/Microsoft.NET.TestFramework/ProjectConstruction/TestProject.cs @@ -9,7 +9,6 @@ using System.Xml.Linq; using Microsoft.Build.Utilities; using NuGet.Frameworks; -using Xunit.Sdk; namespace Microsoft.NET.TestFramework.ProjectConstruction { diff --git a/src/Tests/Microsoft.NET.TestFramework/SdkTest.cs b/src/Tests/Microsoft.NET.TestFramework/SdkTest.cs index 22f015aecfc0..8716808b43ab 100644 --- a/src/Tests/Microsoft.NET.TestFramework/SdkTest.cs +++ b/src/Tests/Microsoft.NET.TestFramework/SdkTest.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.IO; using System.Threading; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.TestFramework/StringTestLogger.cs b/src/Tests/Microsoft.NET.TestFramework/StringTestLogger.cs index ad3e8782e315..369d94373e60 100644 --- a/src/Tests/Microsoft.NET.TestFramework/StringTestLogger.cs +++ b/src/Tests/Microsoft.NET.TestFramework/StringTestLogger.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Text; using Xunit.Abstractions; diff --git a/src/Tests/Microsoft.NET.TestFramework/TestAsset.cs b/src/Tests/Microsoft.NET.TestFramework/TestAsset.cs index fb01ed4e293f..921d379cdde4 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestAsset.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestAsset.cs @@ -10,7 +10,6 @@ using System.Collections.Generic; using Xunit.Abstractions; using Microsoft.NET.TestFramework.ProjectConstruction; -using NuGet.Frameworks; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/TestAssetSubdirectories.cs b/src/Tests/Microsoft.NET.TestFramework/TestAssetSubdirectories.cs index 610dbbc668f7..f4d0eb256de6 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestAssetSubdirectories.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestAssetSubdirectories.cs @@ -1,14 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.CompilerServices; -using System.Threading.Tasks; -using Microsoft.DotNet.Cli.Utils; - namespace Microsoft.NET.TestFramework { public class TestAssetSubdirectories diff --git a/src/Tests/Microsoft.NET.TestFramework/TestAssetsManager.cs b/src/Tests/Microsoft.NET.TestFramework/TestAssetsManager.cs index a491017ff8ce..510f1aa8a5ba 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestAssetsManager.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestAssetsManager.cs @@ -8,7 +8,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; diff --git a/src/Tests/Microsoft.NET.TestFramework/TestCommandLine.cs b/src/Tests/Microsoft.NET.TestFramework/TestCommandLine.cs index 90b8be430c23..6bda9e0d447e 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestCommandLine.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestCommandLine.cs @@ -3,10 +3,7 @@ using System; using System.Collections.Generic; -using System.IO; using System.Linq; -using System.Runtime.Serialization; -using System.Text; using System.Xml; using System.Xml.Linq; diff --git a/src/Tests/Microsoft.NET.TestFramework/TestConstants.cs b/src/Tests/Microsoft.NET.TestFramework/TestConstants.cs index a8aaded4b156..71e26c90ac46 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestConstants.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestConstants.cs @@ -1,12 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace Microsoft.NET.TestFramework { public class TestConstants diff --git a/src/Tests/Microsoft.NET.TestFramework/TestContext.cs b/src/Tests/Microsoft.NET.TestFramework/TestContext.cs index fb710df25287..6f6b57335296 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestContext.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestContext.cs @@ -4,7 +4,6 @@ using System; using System.IO; using Microsoft.DotNet.Cli.Utils; -using Microsoft.NET.TestFramework.Commands; using System.Globalization; using System.Collections.Generic; diff --git a/src/Tests/Microsoft.NET.TestFramework/TestDirectory.cs b/src/Tests/Microsoft.NET.TestFramework/TestDirectory.cs index fb1dc80396de..94cb343ca787 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestDirectory.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestDirectory.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Runtime.InteropServices; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/TestLoggerFactory.cs b/src/Tests/Microsoft.NET.TestFramework/TestLoggerFactory.cs index 638159eac1e3..a64fd6b830b4 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestLoggerFactory.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestLoggerFactory.cs @@ -8,7 +8,6 @@ using System.Linq; using Microsoft.Extensions.Logging; using Xunit.Abstractions; -using Xunit.Sdk; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/TestPackageReference.cs b/src/Tests/Microsoft.NET.TestFramework/TestPackageReference.cs index 2542d0c64435..300cef9895d4 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestPackageReference.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestPackageReference.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Runtime.InteropServices; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/ToolsetInfo.cs b/src/Tests/Microsoft.NET.TestFramework/ToolsetInfo.cs index 9e8ba73ffcaf..d7d6694ac865 100644 --- a/src/Tests/Microsoft.NET.TestFramework/ToolsetInfo.cs +++ b/src/Tests/Microsoft.NET.TestFramework/ToolsetInfo.cs @@ -6,16 +6,8 @@ using System.IO; using System.Linq; using System.Runtime.InteropServices; -using System.Text; using Microsoft.DotNet.Cli.Utils; -using Microsoft.NET.TestFramework.Assertions; using Microsoft.NET.TestFramework.Commands; -using System.Xml.Linq; -using System.Reflection; -using Xunit.Abstractions; -using Microsoft.Build.Utilities; -using NuGet.Versioning; -using System.CommandLine; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/XunitLoggerProvider.cs b/src/Tests/Microsoft.NET.TestFramework/XunitLoggerProvider.cs index e0150e2df56d..cafdb081aef6 100644 --- a/src/Tests/Microsoft.NET.TestFramework/XunitLoggerProvider.cs +++ b/src/Tests/Microsoft.NET.TestFramework/XunitLoggerProvider.cs @@ -9,7 +9,6 @@ using System.Text; using Microsoft.Extensions.Logging; using Xunit.Abstractions; -using Xunit.Sdk; using ILogger = Microsoft.Extensions.Logging.ILogger; using LogLevel = Microsoft.Extensions.Logging.LogLevel; diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs index 1fefdbe78ed5..7cba6a77652e 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs @@ -1,11 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Generic; -using System.IO; using System.Linq; -using System.Text; using System.Xml.Linq; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithExplicitConfig.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithExplicitConfig.cs index b3d615ad93de..f95b393b143c 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithExplicitConfig.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithExplicitConfig.cs @@ -1,11 +1,8 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; using System.Xml.Linq; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Assertions; diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithP2PReference.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithP2PReference.cs index aac585859e15..9f8f1b51a471 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithP2PReference.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithP2PReference.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; -using System.IO; using System.Linq; using System.Runtime.CompilerServices; using FluentAssertions; diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolSelfContainedProject.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolSelfContainedProject.cs index 303a26079bf1..7698f7ab2527 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolSelfContainedProject.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolSelfContainedProject.cs @@ -11,7 +11,6 @@ using Xunit.Abstractions; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Build.Tasks; -using System.Collections.Generic; using System.Runtime.CompilerServices; namespace Microsoft.NET.ToolPack.Tests diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs index 8dc171f70d6a..351b578da8f1 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs @@ -11,8 +11,6 @@ using Xunit.Abstractions; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Build.Tasks; -using System; -using System.Collections.Generic; namespace Microsoft.NET.ToolPack.Tests { diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToTestPackAToolProject.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToTestPackAToolProject.cs index bce5b810eb2a..9962baf69ef5 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToTestPackAToolProject.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToTestPackAToolProject.cs @@ -1,14 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Runtime.CompilerServices; using FluentAssertions; using Microsoft.NET.TestFramework; using Microsoft.NET.TestFramework.Commands; -using NuGet.Packaging; using Xunit; using Xunit.Abstractions; using Microsoft.NET.TestFramework.Assertions;