diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ApiCompatServiceProvider.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ApiCompatServiceProvider.cs index 02de97def6e1..1c7fa26dde77 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ApiCompatServiceProvider.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ApiCompatServiceProvider.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.ApiCompatibility; using Microsoft.DotNet.ApiCompatibility.Comparing; using Microsoft.DotNet.ApiCompatibility.Logging; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/RegexStringTransformer.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/RegexStringTransformer.cs index 15e6530e0ce6..fe6eac20f94d 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/RegexStringTransformer.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/RegexStringTransformer.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.RegularExpressions; namespace Microsoft.DotNet.ApiCompat diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/RoslynResolver.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/RoslynResolver.cs index c9d95a4d4c3e..ba88b29d9e7b 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/RoslynResolver.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/RoslynResolver.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.IO; using System.Reflection; #if NETCOREAPP using System.Runtime.Loader; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/SuppressionFileHelper.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/SuppressionFileHelper.cs index 1aae5cdcfc86..414f906e15e6 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/SuppressionFileHelper.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/SuppressionFileHelper.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.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiSymbolExtensions.Logging; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ValidateAssemblies.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ValidateAssemblies.cs index 1453e765674d..d8d0a7961a5b 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ValidateAssemblies.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ValidateAssemblies.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.IO; using Microsoft.DotNet.ApiCompatibility; using Microsoft.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiCompatibility.Rules; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ValidatePackage.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ValidatePackage.cs index 237a4d0ef6b0..56f963389ec3 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ValidatePackage.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ValidatePackage.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.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiCompatibility.Rules; using Microsoft.DotNet.PackageValidation; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Task/ValidateAssembliesTask.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Task/ValidateAssembliesTask.cs index 2e0011940574..3c05852935c7 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Task/ValidateAssembliesTask.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Task/ValidateAssembliesTask.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.IO; using Microsoft.Build.Framework; using Microsoft.DotNet.ApiCompatibility.Logging; using Microsoft.NET.Build.Tasks; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Task/ValidatePackageTask.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Task/ValidatePackageTask.cs index f9febda1c5a2..659b4d8efa52 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Task/ValidatePackageTask.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Task/ValidatePackageTask.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 Microsoft.Build.Framework; using Microsoft.DotNet.ApiCompatibility.Logging; -using Microsoft.DotNet.PackageValidation; using Microsoft.NET.Build.Tasks; using NuGet.Frameworks; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Tool/Program.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Tool/Program.cs index 700836b56747..063ccad76cba 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Tool/Program.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Tool/Program.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.Collections.Generic; using System.CommandLine; using System.CommandLine.Parsing; using System.Diagnostics; -using System.IO; using System.Reflection; using Microsoft.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiSymbolExtensions.Logging; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/ApiComparer.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/ApiComparer.cs index 36125d8aa016..f6507d20658f 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/ApiComparer.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/ApiComparer.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.Linq; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Mapping; using Microsoft.DotNet.ApiCompatibility.Rules; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/ApiComparerFactory.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/ApiComparerFactory.cs index 8608027715e7..8434588cc0b6 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/ApiComparerFactory.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/ApiComparerFactory.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.ApiCompatibility.Mapping; using Microsoft.DotNet.ApiCompatibility.Rules; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/ApiComparerSettings.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/ApiComparerSettings.cs index 2a29fa9b8a76..98321bb6800c 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/ApiComparerSettings.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/ApiComparerSettings.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; -using System.Collections.Generic; using Microsoft.DotNet.ApiCompatibility.Mapping; using Microsoft.DotNet.ApiCompatibility.Rules; using Microsoft.DotNet.ApiCompatibility.Comparing; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/AttributeDataEqualityComparer.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/AttributeDataEqualityComparer.cs index 89caca3f5870..8a80455dbd25 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/AttributeDataEqualityComparer.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/AttributeDataEqualityComparer.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.Diagnostics.CodeAnalysis; -using System.Linq; using Microsoft.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility.Comparing diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/NamedArgumentComparer.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/NamedArgumentComparer.cs index b55408001bd6..aeba85e50107 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/NamedArgumentComparer.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/NamedArgumentComparer.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.Diagnostics.CodeAnalysis; using Microsoft.CodeAnalysis; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/SymbolEqualityComparer.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/SymbolEqualityComparer.cs index b7a53ae274a4..05cda7795fad 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/SymbolEqualityComparer.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/SymbolEqualityComparer.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.Diagnostics.CodeAnalysis; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiSymbolExtensions; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/TypedConstantEqualityComparer.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/TypedConstantEqualityComparer.cs index 7024a2b8e997..2d2c6c6187e8 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/TypedConstantEqualityComparer.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Comparing/TypedConstantEqualityComparer.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.Diagnostics.CodeAnalysis; -using System.Linq; using Microsoft.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility.Comparing diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/CompatDifference.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/CompatDifference.cs index 3977efc68d01..0a25dce30258 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/CompatDifference.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/CompatDifference.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.CodeAnalysis; using Microsoft.DotNet.ApiSymbolExtensions; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/DifferenceVisitor.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/DifferenceVisitor.cs index 9e308fb06656..a1030f573ba1 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/DifferenceVisitor.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/DifferenceVisitor.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.DotNet.ApiCompatibility.Mapping; namespace Microsoft.DotNet.ApiCompatibility diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/IApiComparer.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/IApiComparer.cs index 4a11a6ad6a51..9a4f59927a78 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/IApiComparer.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/IApiComparer.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.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/IDifferenceVisitor.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/IDifferenceVisitor.cs index bfc7c90a5c4e..2d4cc104ab9c 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/IDifferenceVisitor.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/IDifferenceVisitor.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.DotNet.ApiCompatibility.Mapping; namespace Microsoft.DotNet.ApiCompatibility diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Logging/ISuppressionEngine.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Logging/ISuppressionEngine.cs index 19f1e18d6978..8527e75d71e8 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Logging/ISuppressionEngine.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Logging/ISuppressionEngine.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; - namespace Microsoft.DotNet.ApiCompatibility.Logging { /// diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Logging/Suppression.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Logging/Suppression.cs index 0b6d3254182d..5c4c0b478360 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Logging/Suppression.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Logging/Suppression.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.Text; - namespace Microsoft.DotNet.ApiCompatibility.Logging { /// diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Logging/SuppressionEngine.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Logging/SuppressionEngine.cs index 3276df24ea9c..acffd32dbf00 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Logging/SuppressionEngine.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Logging/SuppressionEngine.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 System.Linq; -using System.Text; using System.Xml; using System.Xml.Serialization; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/AssemblyMapper.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/AssemblyMapper.cs index 59d5c7210da2..15ed1f73fd64 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/AssemblyMapper.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/AssemblyMapper.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.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Rules; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/AssemblySetMapper.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/AssemblySetMapper.cs index 249ae55a9b24..4df694d6797c 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/AssemblySetMapper.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/AssemblySetMapper.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.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Rules; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/ElementMapper.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/ElementMapper.cs index 4276bc8cf82e..df85196f1886 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/ElementMapper.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/ElementMapper.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.DotNet.ApiCompatibility.Rules; namespace Microsoft.DotNet.ApiCompatibility.Mapping diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IAssemblyMapper.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IAssemblyMapper.cs index 1e71884544c8..c8e1674e94bc 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IAssemblyMapper.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IAssemblyMapper.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.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility.Mapping diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IAssemblySetMapper.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IAssemblySetMapper.cs index f5e3e16b50e4..3f740655deb5 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IAssemblySetMapper.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IAssemblySetMapper.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.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility.Mapping diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IElementMapper.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IElementMapper.cs index 035a493e6f00..02041e45c5a4 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IElementMapper.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IElementMapper.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; - namespace Microsoft.DotNet.ApiCompatibility.Mapping { /// diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IMapperSettings.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IMapperSettings.cs index da70b8899722..da64e52538c1 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IMapperSettings.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/IMapperSettings.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.CodeAnalysis; using Microsoft.DotNet.ApiSymbolExtensions.Filtering; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/INamespaceMapper.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/INamespaceMapper.cs index c27c16ed3084..3cf91346be62 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/INamespaceMapper.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/INamespaceMapper.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.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility.Mapping diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/ITypeMapper.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/ITypeMapper.cs index d5ce998aac64..8d7eb514cdf7 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/ITypeMapper.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/ITypeMapper.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.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility.Mapping diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/NamespaceMapper.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/NamespaceMapper.cs index 8527acbe0469..a2058adcdc15 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/NamespaceMapper.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/NamespaceMapper.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.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Rules; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/TypeMapper.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/TypeMapper.cs index d0452f466952..e6f9e3a38157 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/TypeMapper.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Mapping/TypeMapper.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.Diagnostics; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Rules; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/MetadataInformation.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/MetadataInformation.cs index 2afae6c9e45b..5fbcbfafe43f 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/MetadataInformation.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/MetadataInformation.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.ApiCompatibility { /// diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/AssemblyIdentityMustMatch.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/AssemblyIdentityMustMatch.cs index 1dbc6f8e2080..fa1f6ad0f7d6 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/AssemblyIdentityMustMatch.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/AssemblyIdentityMustMatch.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.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiSymbolExtensions.Logging; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/AttributesMustMatch.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/AttributesMustMatch.cs index 55f3d80d9e11..53f9da4e501b 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/AttributesMustMatch.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/AttributesMustMatch.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; -using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics.CodeAnalysis; using Microsoft.CodeAnalysis; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddAbstractMember.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddAbstractMember.cs index 2b2dd3eab55b..06e2740f8a9a 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddAbstractMember.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddAbstractMember.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.CodeAnalysis; using Microsoft.DotNet.ApiSymbolExtensions; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddMemberToInterface.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddMemberToInterface.cs index af6eb216452b..08d104b1bf18 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddMemberToInterface.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddMemberToInterface.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.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility.Rules diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddOrRemoveVirtualKeyword.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddOrRemoveVirtualKeyword.cs index 59be03f11bee..7f7f3dec8a08 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddOrRemoveVirtualKeyword.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddOrRemoveVirtualKeyword.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.CodeAnalysis; using Microsoft.DotNet.ApiSymbolExtensions; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotChangeParameterName.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotChangeParameterName.cs index aee38a887b5f..af1af0f0959c 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotChangeParameterName.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotChangeParameterName.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.Diagnostics; using Microsoft.CodeAnalysis; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotChangeVisibility.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotChangeVisibility.cs index 03bf5140add5..7adf14abdcd9 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotChangeVisibility.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotChangeVisibility.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.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility.Rules diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotRemoveBaseTypeOrInterface.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotRemoveBaseTypeOrInterface.cs index 22252ef760fc..7f7e5ef5799a 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotRemoveBaseTypeOrInterface.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotRemoveBaseTypeOrInterface.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.CodeAnalysis; using Microsoft.DotNet.ApiSymbolExtensions; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotSealType.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotSealType.cs index 2c590a116e7a..0db099d5a2f6 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotSealType.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotSealType.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.CodeAnalysis; using Microsoft.DotNet.ApiSymbolExtensions; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/EnumsMustMatch.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/EnumsMustMatch.cs index 63bfe8d12d93..179430f00718 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/EnumsMustMatch.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/EnumsMustMatch.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.Linq; using Microsoft.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility.Rules diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/IRuleRegistrationContext.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/IRuleRegistrationContext.cs index fb706d918e55..3efab92b3e92 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/IRuleRegistrationContext.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/IRuleRegistrationContext.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.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility.Rules diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/IRuleRunner.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/IRuleRunner.cs index 2ab37e6b6edb..08545c0ea362 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/IRuleRunner.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/IRuleRunner.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.DotNet.ApiCompatibility.Mapping; namespace Microsoft.DotNet.ApiCompatibility.Rules diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/IRuleRunnerContext.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/IRuleRunnerContext.cs index 865e3f5fea76..fb568397f2a1 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/IRuleRunnerContext.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/IRuleRunnerContext.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.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility.Rules diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/MembersMustExist.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/MembersMustExist.cs index f2b0f9702e9e..cd4661b3cac7 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/MembersMustExist.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/MembersMustExist.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.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Mapping; using Microsoft.DotNet.ApiSymbolExtensions; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleContext.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleContext.cs index 3d987c385586..a962becf5db3 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleContext.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleContext.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.CodeAnalysis; namespace Microsoft.DotNet.ApiCompatibility.Rules diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleFactory.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleFactory.cs index 752d66909c67..33764090511b 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleFactory.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleFactory.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.DotNet.ApiCompatibility.Logging; namespace Microsoft.DotNet.ApiCompatibility.Rules diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleRunner.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleRunner.cs index 28ac6f0a72b0..f14a8598efaf 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleRunner.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleRunner.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.Diagnostics; using Microsoft.DotNet.ApiCompatibility.Mapping; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleSettings.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleSettings.cs index c3c7bd2458ff..f2c6be6f2109 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleSettings.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/RuleSettings.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.CodeAnalysis; using Microsoft.DotNet.ApiSymbolExtensions.Filtering; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/ApiCompatRunner.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/ApiCompatRunner.cs index 7f68bc55187c..25194bd68a91 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/ApiCompatRunner.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/ApiCompatRunner.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.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; -using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiSymbolExtensions; diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/ApiCompatRunnerWorkItem.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/ApiCompatRunnerWorkItem.cs index 6a6e8b0d8d38..cfc5a6774e27 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/ApiCompatRunnerWorkItem.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/ApiCompatRunnerWorkItem.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 System.Collections.Generic; - namespace Microsoft.DotNet.ApiCompatibility.Runner { /// diff --git a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/IApiCompatRunner.cs b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/IApiCompatRunner.cs index 1518c5a7cd2d..c36b080ea841 100644 --- a/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/IApiCompatRunner.cs +++ b/src/ApiCompat/Microsoft.DotNet.ApiCompatibility/Runner/IApiCompatRunner.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; - namespace Microsoft.DotNet.ApiCompatibility.Runner { /// diff --git a/src/ApiCompat/Microsoft.DotNet.PackageValidation/ApiCompatRunnerExtensions.cs b/src/ApiCompat/Microsoft.DotNet.PackageValidation/ApiCompatRunnerExtensions.cs index cb1ae8196076..0bd7d32575ad 100644 --- a/src/ApiCompat/Microsoft.DotNet.PackageValidation/ApiCompatRunnerExtensions.cs +++ b/src/ApiCompat/Microsoft.DotNet.PackageValidation/ApiCompatRunnerExtensions.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.Collections.Generic; using System.Diagnostics; -using System.IO; using Microsoft.DotNet.ApiCompatibility; using Microsoft.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiCompatibility.Runner; diff --git a/src/ApiCompat/Microsoft.DotNet.PackageValidation/Package.cs b/src/ApiCompat/Microsoft.DotNet.PackageValidation/Package.cs index d1c24fa35a67..fabf6ee4f1af 100644 --- a/src/ApiCompat/Microsoft.DotNet.PackageValidation/Package.cs +++ b/src/ApiCompat/Microsoft.DotNet.PackageValidation/Package.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.Collections.ObjectModel; -using System.IO; -using System.Linq; using NuGet.Client; using NuGet.ContentModel; using NuGet.Frameworks; diff --git a/src/ApiCompat/Microsoft.DotNet.PackageValidation/Validators/BaselinePackageValidator.cs b/src/ApiCompat/Microsoft.DotNet.PackageValidation/Validators/BaselinePackageValidator.cs index b65871eab6dc..8b2825c6bf98 100644 --- a/src/ApiCompat/Microsoft.DotNet.PackageValidation/Validators/BaselinePackageValidator.cs +++ b/src/ApiCompat/Microsoft.DotNet.PackageValidation/Validators/BaselinePackageValidator.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.Linq; using Microsoft.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiCompatibility.Runner; using NuGet.ContentModel; diff --git a/src/ApiCompat/Microsoft.DotNet.PackageValidation/Validators/CompatibleFrameworkInPackageValidator.cs b/src/ApiCompat/Microsoft.DotNet.PackageValidation/Validators/CompatibleFrameworkInPackageValidator.cs index c783a8fd1397..ad26dfecc312 100644 --- a/src/ApiCompat/Microsoft.DotNet.PackageValidation/Validators/CompatibleFrameworkInPackageValidator.cs +++ b/src/ApiCompat/Microsoft.DotNet.PackageValidation/Validators/CompatibleFrameworkInPackageValidator.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.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; using Microsoft.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiCompatibility.Runner; using NuGet.Client; diff --git a/src/ApiCompat/Microsoft.DotNet.PackageValidation/Validators/CompatibleTFMValidator.cs b/src/ApiCompat/Microsoft.DotNet.PackageValidation/Validators/CompatibleTFMValidator.cs index 57372557dd1c..cea3de404f41 100644 --- a/src/ApiCompat/Microsoft.DotNet.PackageValidation/Validators/CompatibleTFMValidator.cs +++ b/src/ApiCompat/Microsoft.DotNet.PackageValidation/Validators/CompatibleTFMValidator.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.Linq; using Microsoft.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiCompatibility.Runner; using NuGet.ContentModel; diff --git a/src/BlazorWasmSdk/Tasks/BlazorReadSatelliteAssemblyFile.cs b/src/BlazorWasmSdk/Tasks/BlazorReadSatelliteAssemblyFile.cs index 2f974675cb31..e63d1ce0d37c 100644 --- a/src/BlazorWasmSdk/Tasks/BlazorReadSatelliteAssemblyFile.cs +++ b/src/BlazorWasmSdk/Tasks/BlazorReadSatelliteAssemblyFile.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.Linq; -using System.Xml.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/BlazorWasmSdk/Tasks/BlazorWriteSatelliteAssemblyFile.cs b/src/BlazorWasmSdk/Tasks/BlazorWriteSatelliteAssemblyFile.cs index 676d03068ea7..0e3f1a8ca5bc 100644 --- a/src/BlazorWasmSdk/Tasks/BlazorWriteSatelliteAssemblyFile.cs +++ b/src/BlazorWasmSdk/Tasks/BlazorWriteSatelliteAssemblyFile.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.IO; using System.Xml; -using System.Xml.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.NET.Sdk.BlazorWebAssembly { diff --git a/src/BlazorWasmSdk/Tasks/BootExtensionJsonData.cs b/src/BlazorWasmSdk/Tasks/BootExtensionJsonData.cs index 86a3ac65923f..52d70a898927 100644 --- a/src/BlazorWasmSdk/Tasks/BootExtensionJsonData.cs +++ b/src/BlazorWasmSdk/Tasks/BootExtensionJsonData.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.BlazorWebAssembly { public class BootExtensionJsonData diff --git a/src/BlazorWasmSdk/Tasks/BootJsonData.cs b/src/BlazorWasmSdk/Tasks/BootJsonData.cs index 89e667b1f4c3..6ab8103e1360 100644 --- a/src/BlazorWasmSdk/Tasks/BootJsonData.cs +++ b/src/BlazorWasmSdk/Tasks/BootJsonData.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.Runtime.Serialization; using ResourceHashesByNameDictionary = System.Collections.Generic.Dictionary; diff --git a/src/BlazorWasmSdk/Tasks/BrotliCompress.cs b/src/BlazorWasmSdk/Tasks/BrotliCompress.cs index 97d08d799e1a..674173903fb5 100644 --- a/src/BlazorWasmSdk/Tasks/BrotliCompress.cs +++ b/src/BlazorWasmSdk/Tasks/BrotliCompress.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.Diagnostics; -using System.IO; -using System.Linq; using System.Security.Cryptography; -using System.Text; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/BlazorWasmSdk/Tasks/CreateBlazorTrimmerRootDescriptorFile.cs b/src/BlazorWasmSdk/Tasks/CreateBlazorTrimmerRootDescriptorFile.cs index d26e4bcc41a6..b6b0e3fd7572 100644 --- a/src/BlazorWasmSdk/Tasks/CreateBlazorTrimmerRootDescriptorFile.cs +++ b/src/BlazorWasmSdk/Tasks/CreateBlazorTrimmerRootDescriptorFile.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 System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Xml; -using System.Xml.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.NET.Sdk.BlazorWebAssembly { diff --git a/src/BlazorWasmSdk/Tasks/GZipCompress.cs b/src/BlazorWasmSdk/Tasks/GZipCompress.cs index 0103698d2bfe..ae48c8cc9b93 100644 --- a/src/BlazorWasmSdk/Tasks/GZipCompress.cs +++ b/src/BlazorWasmSdk/Tasks/GZipCompress.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.IO; using System.IO.Compression; -using System.Linq; -using System.Security.Cryptography; -using System.Text; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/BlazorWasmSdk/Tasks/GenerateBlazorBootExtensionJson.cs b/src/BlazorWasmSdk/Tasks/GenerateBlazorBootExtensionJson.cs index d4c662f80722..530cc69ab2e2 100644 --- a/src/BlazorWasmSdk/Tasks/GenerateBlazorBootExtensionJson.cs +++ b/src/BlazorWasmSdk/Tasks/GenerateBlazorBootExtensionJson.cs @@ -1,16 +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.Diagnostics; -using System.IO; -using System.Linq; -using System.Reflection; using System.Runtime.Serialization.Json; -using System.Text; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.NET.Sdk.BlazorWebAssembly { diff --git a/src/BlazorWasmSdk/Tasks/GenerateBlazorWebAssemblyBootJson50.cs b/src/BlazorWasmSdk/Tasks/GenerateBlazorWebAssemblyBootJson50.cs index b47c3a9ed531..7ffbf915d5d2 100644 --- a/src/BlazorWasmSdk/Tasks/GenerateBlazorWebAssemblyBootJson50.cs +++ b/src/BlazorWasmSdk/Tasks/GenerateBlazorWebAssemblyBootJson50.cs @@ -1,15 +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.Runtime.Serialization.Json; -using System.Text; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using ResourceHashesByNameDictionary = System.Collections.Generic.Dictionary; namespace Microsoft.NET.Sdk.BlazorWebAssembly diff --git a/src/BlazorWasmSdk/Tasks/GenerateServiceWorkerAssetsManifest.cs b/src/BlazorWasmSdk/Tasks/GenerateServiceWorkerAssetsManifest.cs index 45fb7961880e..0314c4d09c39 100644 --- a/src/BlazorWasmSdk/Tasks/GenerateServiceWorkerAssetsManifest.cs +++ b/src/BlazorWasmSdk/Tasks/GenerateServiceWorkerAssetsManifest.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.IO; -using System.Linq; using System.Runtime.Serialization.Json; using System.Security.Cryptography; -using System.Text; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.NET.Sdk.BlazorWebAssembly { diff --git a/src/BlazorWasmSdk/Tool/Program.cs b/src/BlazorWasmSdk/Tool/Program.cs index 640554c95aa6..6c804a10098a 100644 --- a/src/BlazorWasmSdk/Tool/Program.cs +++ b/src/BlazorWasmSdk/Tool/Program.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.CommandLine; -using System.IO; using System.IO.Compression; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tool { diff --git a/src/BuiltInTools/BrowserRefresh/BlazorWasmHotReloadMiddleware.cs b/src/BuiltInTools/BrowserRefresh/BlazorWasmHotReloadMiddleware.cs index b3f566f073eb..bd76dd6c1b58 100644 --- a/src/BuiltInTools/BrowserRefresh/BlazorWasmHotReloadMiddleware.cs +++ b/src/BuiltInTools/BrowserRefresh/BlazorWasmHotReloadMiddleware.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.Globalization; using System.Text.Json; -using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Net.Http.Headers; diff --git a/src/BuiltInTools/BrowserRefresh/BrowserRefreshMiddleware.cs b/src/BuiltInTools/BrowserRefresh/BrowserRefreshMiddleware.cs index 970dbee43067..b21ba0722c79 100644 --- a/src/BuiltInTools/BrowserRefresh/BrowserRefreshMiddleware.cs +++ b/src/BuiltInTools/BrowserRefresh/BrowserRefreshMiddleware.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.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Microsoft.Extensions.Logging; diff --git a/src/BuiltInTools/BrowserRefresh/BrowserScriptMiddleware.cs b/src/BuiltInTools/BrowserRefresh/BrowserScriptMiddleware.cs index 18c0198683ab..aa82bf273d0c 100644 --- a/src/BuiltInTools/BrowserRefresh/BrowserScriptMiddleware.cs +++ b/src/BuiltInTools/BrowserRefresh/BrowserScriptMiddleware.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.Globalization; -using System.IO; -using System.Text; -using System.Threading.Tasks; using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Watch.BrowserRefresh diff --git a/src/BuiltInTools/BrowserRefresh/HostingStartup.cs b/src/BuiltInTools/BrowserRefresh/HostingStartup.cs index 8ee791468869..06d400d26578 100644 --- a/src/BuiltInTools/BrowserRefresh/HostingStartup.cs +++ b/src/BuiltInTools/BrowserRefresh/HostingStartup.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.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; diff --git a/src/BuiltInTools/BrowserRefresh/ResponseStreamWrapper.cs b/src/BuiltInTools/BrowserRefresh/ResponseStreamWrapper.cs index 473dc149dbb1..68d0529f91cb 100644 --- a/src/BuiltInTools/BrowserRefresh/ResponseStreamWrapper.cs +++ b/src/BuiltInTools/BrowserRefresh/ResponseStreamWrapper.cs @@ -3,10 +3,6 @@ // Based on https://github.com/RickStrahl/Westwind.AspnetCore.LiveReload/blob/128b5f524e86954e997f2c453e7e5c1dcc3db746/Westwind.AspnetCore.LiveReload/ResponseStreamWrapper.cs -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Microsoft.Net.Http.Headers; diff --git a/src/BuiltInTools/BrowserRefresh/StartupHook.cs b/src/BuiltInTools/BrowserRefresh/StartupHook.cs index 834e20d45277..93be4f31fafa 100644 --- a/src/BuiltInTools/BrowserRefresh/StartupHook.cs +++ b/src/BuiltInTools/BrowserRefresh/StartupHook.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; - internal class StartupHook { public static void Initialize() diff --git a/src/BuiltInTools/BrowserRefresh/WebSocketScriptInjection.cs b/src/BuiltInTools/BrowserRefresh/WebSocketScriptInjection.cs index 1ff737ffcd6d..4fd8a52fcd37 100644 --- a/src/BuiltInTools/BrowserRefresh/WebSocketScriptInjection.cs +++ b/src/BuiltInTools/BrowserRefresh/WebSocketScriptInjection.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.IO; -using System.Text; -using System.Threading; -using System.Threading.Tasks; - namespace Microsoft.AspNetCore.Watch.BrowserRefresh { /// diff --git a/src/BuiltInTools/DotNetDeltaApplier/HotReloadAgent.cs b/src/BuiltInTools/DotNetDeltaApplier/HotReloadAgent.cs index f287b055f49c..389f4633f165 100644 --- a/src/BuiltInTools/DotNetDeltaApplier/HotReloadAgent.cs +++ b/src/BuiltInTools/DotNetDeltaApplier/HotReloadAgent.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.Concurrent; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Reflection; namespace Microsoft.Extensions.HotReload diff --git a/src/BuiltInTools/DotNetDeltaApplier/StartupHook.cs b/src/BuiltInTools/DotNetDeltaApplier/StartupHook.cs index 535a4f6efef4..d42ad82c23e0 100644 --- a/src/BuiltInTools/DotNetDeltaApplier/StartupHook.cs +++ b/src/BuiltInTools/DotNetDeltaApplier/StartupHook.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.IO; using System.IO.Pipes; -using System.Linq; -using System.Reflection; -using System.Threading.Tasks; using Microsoft.Extensions.HotReload; internal sealed class StartupHook diff --git a/src/BuiltInTools/DotNetWatchTasks/FileSetSerializer.cs b/src/BuiltInTools/DotNetWatchTasks/FileSetSerializer.cs index 7bc3dc0dc7d7..f481ef1408ca 100644 --- a/src/BuiltInTools/DotNetWatchTasks/FileSetSerializer.cs +++ b/src/BuiltInTools/DotNetWatchTasks/FileSetSerializer.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.Runtime.Serialization.Json; -using System.Text; using Microsoft.Build.Framework; using Microsoft.DotNet.Watcher.Internal; using MSBuildTask = Microsoft.Build.Utilities.Task; diff --git a/src/BuiltInTools/dotnet-watch/CommandLineOptions.cs b/src/BuiltInTools/dotnet-watch/CommandLineOptions.cs index c1e8ae4d68ad..60ecaf0c7b2a 100644 --- a/src/BuiltInTools/dotnet-watch/CommandLineOptions.cs +++ b/src/BuiltInTools/dotnet-watch/CommandLineOptions.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.CommandLine; -using System.IO; -using System.Linq; using Microsoft.DotNet.Watcher.Tools; using Microsoft.Extensions.Tools.Internal; diff --git a/src/BuiltInTools/dotnet-watch/DotNetWatchContext.cs b/src/BuiltInTools/dotnet-watch/DotNetWatchContext.cs index d7dfb31ad834..a05c9948464f 100644 --- a/src/BuiltInTools/dotnet-watch/DotNetWatchContext.cs +++ b/src/BuiltInTools/dotnet-watch/DotNetWatchContext.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; - using Microsoft.Build.Graph; using Microsoft.Extensions.Tools.Internal; diff --git a/src/BuiltInTools/dotnet-watch/DotNetWatchOptions.cs b/src/BuiltInTools/dotnet-watch/DotNetWatchOptions.cs index a941c7db0608..0b39c91f3f84 100644 --- a/src/BuiltInTools/dotnet-watch/DotNetWatchOptions.cs +++ b/src/BuiltInTools/dotnet-watch/DotNetWatchOptions.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; - namespace Microsoft.DotNet.Watcher { [Flags] diff --git a/src/BuiltInTools/dotnet-watch/DotNetWatcher.cs b/src/BuiltInTools/dotnet-watch/DotNetWatcher.cs index d3e62576e2ad..9bdf3a9e96ea 100644 --- a/src/BuiltInTools/dotnet-watch/DotNetWatcher.cs +++ b/src/BuiltInTools/dotnet-watch/DotNetWatcher.cs @@ -2,12 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Diagnostics; using System.Globalization; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.DotNet.Watcher.Internal; using Microsoft.DotNet.Watcher.Tools; using Microsoft.Extensions.Tools.Internal; diff --git a/src/BuiltInTools/dotnet-watch/FileSet.cs b/src/BuiltInTools/dotnet-watch/FileSet.cs index 577e8e33fc9d..6692f300cf0a 100644 --- a/src/BuiltInTools/dotnet-watch/FileSet.cs +++ b/src/BuiltInTools/dotnet-watch/FileSet.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections; -using System.Collections.Generic; namespace Microsoft.DotNet.Watcher { diff --git a/src/BuiltInTools/dotnet-watch/Filters/BrowserRefreshFilter.cs b/src/BuiltInTools/dotnet-watch/Filters/BrowserRefreshFilter.cs index 9a7f32b4814b..11a733f0fb43 100644 --- a/src/BuiltInTools/dotnet-watch/Filters/BrowserRefreshFilter.cs +++ b/src/BuiltInTools/dotnet-watch/Filters/BrowserRefreshFilter.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Build.Graph; using Microsoft.Extensions.Tools.Internal; diff --git a/src/BuiltInTools/dotnet-watch/Filters/BrowserRefreshServer.cs b/src/BuiltInTools/dotnet-watch/Filters/BrowserRefreshServer.cs index 579a78ea3e36..a332aa6eee59 100644 --- a/src/BuiltInTools/dotnet-watch/Filters/BrowserRefreshServer.cs +++ b/src/BuiltInTools/dotnet-watch/Filters/BrowserRefreshServer.cs @@ -2,17 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Net; using System.Net.WebSockets; using System.Security.Cryptography; -using System.Text; using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting.Server; diff --git a/src/BuiltInTools/dotnet-watch/Filters/DotNetBuildFilter.cs b/src/BuiltInTools/dotnet-watch/Filters/DotNetBuildFilter.cs index 14d6a5fecc54..aabac7c031d5 100644 --- a/src/BuiltInTools/dotnet-watch/Filters/DotNetBuildFilter.cs +++ b/src/BuiltInTools/dotnet-watch/Filters/DotNetBuildFilter.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.DotNet.Watcher.Internal; using Microsoft.Extensions.Tools.Internal; diff --git a/src/BuiltInTools/dotnet-watch/Filters/IWatchFilter.cs b/src/BuiltInTools/dotnet-watch/Filters/IWatchFilter.cs index dbf0f8f237da..18854cfe850d 100644 --- a/src/BuiltInTools/dotnet-watch/Filters/IWatchFilter.cs +++ b/src/BuiltInTools/dotnet-watch/Filters/IWatchFilter.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.Threading; -using System.Threading.Tasks; - namespace Microsoft.DotNet.Watcher.Tools { internal interface IWatchFilter diff --git a/src/BuiltInTools/dotnet-watch/Filters/LaunchBrowserFilter.cs b/src/BuiltInTools/dotnet-watch/Filters/LaunchBrowserFilter.cs index 987d237d3ca4..1793e5964f5f 100644 --- a/src/BuiltInTools/dotnet-watch/Filters/LaunchBrowserFilter.cs +++ b/src/BuiltInTools/dotnet-watch/Filters/LaunchBrowserFilter.cs @@ -2,13 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Diagnostics; -using System.Linq; using System.Text.RegularExpressions; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.CodeAnalysis.NavigateTo; using Microsoft.Extensions.Tools.Internal; namespace Microsoft.DotNet.Watcher.Tools diff --git a/src/BuiltInTools/dotnet-watch/Filters/MSBuildEvaluationFilter.cs b/src/BuiltInTools/dotnet-watch/Filters/MSBuildEvaluationFilter.cs index 0ee019c744a0..e115ffb5c10e 100644 --- a/src/BuiltInTools/dotnet-watch/Filters/MSBuildEvaluationFilter.cs +++ b/src/BuiltInTools/dotnet-watch/Filters/MSBuildEvaluationFilter.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.DotNet.Watcher.Tools { diff --git a/src/BuiltInTools/dotnet-watch/Filters/NoRestoreFilter.cs b/src/BuiltInTools/dotnet-watch/Filters/NoRestoreFilter.cs index 8faf00d258dd..b2e33d3d5474 100644 --- a/src/BuiltInTools/dotnet-watch/Filters/NoRestoreFilter.cs +++ b/src/BuiltInTools/dotnet-watch/Filters/NoRestoreFilter.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.Diagnostics; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.Tools.Internal; namespace Microsoft.DotNet.Watcher.Tools diff --git a/src/BuiltInTools/dotnet-watch/HotReload/BlazorWebAssemblyDeltaApplier.cs b/src/BuiltInTools/dotnet-watch/HotReload/BlazorWebAssemblyDeltaApplier.cs index b6d672080335..9cbe24d349ed 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/BlazorWebAssemblyDeltaApplier.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/BlazorWebAssemblyDeltaApplier.cs @@ -2,16 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Buffers; -using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; -using System.Linq; using System.Net.WebSockets; -using System.Text; -using System.Threading; -using System.Threading.Tasks; using Microsoft.CodeAnalysis.ExternalAccess.Watch.Api; using Microsoft.Extensions.Tools.Internal; diff --git a/src/BuiltInTools/dotnet-watch/HotReload/BlazorWebAssemblyHostedDeltaApplier.cs b/src/BuiltInTools/dotnet-watch/HotReload/BlazorWebAssemblyHostedDeltaApplier.cs index 446fc86cf2ca..c06d01df457e 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/BlazorWebAssemblyHostedDeltaApplier.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/BlazorWebAssemblyHostedDeltaApplier.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Immutable; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.CodeAnalysis.ExternalAccess.Watch.Api; using Microsoft.Extensions.Tools.Internal; diff --git a/src/BuiltInTools/dotnet-watch/HotReload/CompilationHandler.cs b/src/BuiltInTools/dotnet-watch/HotReload/CompilationHandler.cs index fe43f9b8087c..24027a590613 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/CompilationHandler.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/CompilationHandler.cs @@ -2,15 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.ExternalAccess.Watch.Api; diff --git a/src/BuiltInTools/dotnet-watch/HotReload/DefaultDeltaApplier.cs b/src/BuiltInTools/dotnet-watch/HotReload/DefaultDeltaApplier.cs index dc3b62ec916b..16f7c4831b97 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/DefaultDeltaApplier.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/DefaultDeltaApplier.cs @@ -2,16 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Buffers; -using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; -using System.IO; using System.IO.Pipes; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.CodeAnalysis.ExternalAccess.Watch.Api; using Microsoft.Extensions.HotReload; using Microsoft.Extensions.Tools.Internal; diff --git a/src/BuiltInTools/dotnet-watch/HotReload/DeltaApplier.cs b/src/BuiltInTools/dotnet-watch/HotReload/DeltaApplier.cs index fa243a537ee1..f371dcfd0398 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/DeltaApplier.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/DeltaApplier.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Immutable; -using System.Threading; -using System.Threading.Tasks; using Microsoft.CodeAnalysis.ExternalAccess.Watch.Api; namespace Microsoft.DotNet.Watcher.Tools diff --git a/src/BuiltInTools/dotnet-watch/HotReload/HotReload.cs b/src/BuiltInTools/dotnet-watch/HotReload/HotReload.cs index b7e19c238cc5..8007fcd2e339 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/HotReload.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/HotReload.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.Tools.Internal; namespace Microsoft.DotNet.Watcher.Tools diff --git a/src/BuiltInTools/dotnet-watch/HotReload/HotReloadEventSource.cs b/src/BuiltInTools/dotnet-watch/HotReload/HotReloadEventSource.cs index 68b8f1444578..5d2a71f0afc1 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/HotReloadEventSource.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/HotReloadEventSource.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Diagnostics.Tracing; namespace Microsoft.DotNet.Watcher.Tools diff --git a/src/BuiltInTools/dotnet-watch/HotReload/HotReloadProfileReader.cs b/src/BuiltInTools/dotnet-watch/HotReload/HotReloadProfileReader.cs index 961c3cc5582f..09fb1a33fd36 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/HotReloadProfileReader.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/HotReloadProfileReader.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using Microsoft.Build.Execution; using Microsoft.Build.Graph; using Microsoft.Extensions.Tools.Internal; diff --git a/src/BuiltInTools/dotnet-watch/HotReload/NamedPipeContract.cs b/src/BuiltInTools/dotnet-watch/HotReload/NamedPipeContract.cs index 3a1b21980fa2..a8e2704d143a 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/NamedPipeContract.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/NamedPipeContract.cs @@ -3,12 +3,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.Extensions.HotReload { diff --git a/src/BuiltInTools/dotnet-watch/HotReload/RudeEditDialog.cs b/src/BuiltInTools/dotnet-watch/HotReload/RudeEditDialog.cs index 96e2dc0c540e..6a37be6c195f 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/RudeEditDialog.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/RudeEditDialog.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.Tools.Internal; namespace Microsoft.DotNet.Watcher.Tools diff --git a/src/BuiltInTools/dotnet-watch/HotReload/ScopedCssFileHandler.cs b/src/BuiltInTools/dotnet-watch/HotReload/ScopedCssFileHandler.cs index 9939941668d6..5d414f84e656 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/ScopedCssFileHandler.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/ScopedCssFileHandler.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Build.Graph; -using Microsoft.DotNet.Watcher.Internal; using Microsoft.Extensions.Tools.Internal; namespace Microsoft.DotNet.Watcher.Tools diff --git a/src/BuiltInTools/dotnet-watch/HotReload/SingleProcessDeltaApplier.cs b/src/BuiltInTools/dotnet-watch/HotReload/SingleProcessDeltaApplier.cs index 3f956592c0d0..b712c98cf6d9 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/SingleProcessDeltaApplier.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/SingleProcessDeltaApplier.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Collections.Immutable; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.CodeAnalysis.ExternalAccess.Watch.Api; diff --git a/src/BuiltInTools/dotnet-watch/HotReload/StaticFileHandler.cs b/src/BuiltInTools/dotnet-watch/HotReload/StaticFileHandler.cs index cad32cca8f1c..99d2c3847056 100644 --- a/src/BuiltInTools/dotnet-watch/HotReload/StaticFileHandler.cs +++ b/src/BuiltInTools/dotnet-watch/HotReload/StaticFileHandler.cs @@ -4,8 +4,6 @@ using System.Text.Json; using System.Text.Json.Serialization; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.Tools.Internal; namespace Microsoft.DotNet.Watcher.Tools diff --git a/src/BuiltInTools/dotnet-watch/HotReloadDotNetWatcher.cs b/src/BuiltInTools/dotnet-watch/HotReloadDotNetWatcher.cs index 725496b3e6f6..33bb577a54ba 100644 --- a/src/BuiltInTools/dotnet-watch/HotReloadDotNetWatcher.cs +++ b/src/BuiltInTools/dotnet-watch/HotReloadDotNetWatcher.cs @@ -2,14 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Watcher.Internal; using Microsoft.DotNet.Watcher.Tools; diff --git a/src/BuiltInTools/dotnet-watch/IFileSetFactory.cs b/src/BuiltInTools/dotnet-watch/IFileSetFactory.cs index a08b0c3d1301..a92107e4c331 100644 --- a/src/BuiltInTools/dotnet-watch/IFileSetFactory.cs +++ b/src/BuiltInTools/dotnet-watch/IFileSetFactory.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.Threading; -using System.Threading.Tasks; - namespace Microsoft.DotNet.Watcher { internal interface IFileSetFactory diff --git a/src/BuiltInTools/dotnet-watch/Internal/ConsoleReporter.cs b/src/BuiltInTools/dotnet-watch/Internal/ConsoleReporter.cs index bc240c31669d..0f967dfbc218 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/ConsoleReporter.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/ConsoleReporter.cs @@ -3,11 +3,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.Extensions.Tools.Internal { diff --git a/src/BuiltInTools/dotnet-watch/Internal/ConsoleRequester.cs b/src/BuiltInTools/dotnet-watch/Internal/ConsoleRequester.cs index bbd053fec0fc..bb654b2b18ba 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/ConsoleRequester.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/ConsoleRequester.cs @@ -3,11 +3,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.Extensions.Tools.Internal { diff --git a/src/BuiltInTools/dotnet-watch/Internal/Ensure.cs b/src/BuiltInTools/dotnet-watch/Internal/Ensure.cs index f367c7539be8..a53bc5f194df 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/Ensure.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/Ensure.cs @@ -3,7 +3,6 @@ #nullable disable -using System; namespace Microsoft.Extensions.Tools.Internal { diff --git a/src/BuiltInTools/dotnet-watch/Internal/FileSetWatcher.cs b/src/BuiltInTools/dotnet-watch/Internal/FileSetWatcher.cs index ddeefec98ab1..6669b97f3f33 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/FileSetWatcher.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/FileSetWatcher.cs @@ -3,10 +3,6 @@ #nullable disable -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.Tools.Internal; namespace Microsoft.DotNet.Watcher.Internal diff --git a/src/BuiltInTools/dotnet-watch/Internal/FileWatcher.cs b/src/BuiltInTools/dotnet-watch/Internal/FileWatcher.cs index a2c56f6198c9..828526c63280 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/FileWatcher.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/FileWatcher.cs @@ -3,10 +3,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using Microsoft.Extensions.Tools.Internal; namespace Microsoft.DotNet.Watcher.Internal diff --git a/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/DotnetFileWatcher.cs b/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/DotnetFileWatcher.cs index d2c98de80bbb..b5443853bff4 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/DotnetFileWatcher.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/DotnetFileWatcher.cs @@ -3,9 +3,7 @@ #nullable disable -using System; using System.ComponentModel; -using System.IO; using Microsoft.Extensions.Tools.Internal; namespace Microsoft.DotNet.Watcher.Internal diff --git a/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/FileWatcherFactory.cs b/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/FileWatcherFactory.cs index 7bcae190bde1..f6f79a90c1e3 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/FileWatcherFactory.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/FileWatcherFactory.cs @@ -3,7 +3,6 @@ #nullable disable -using System; namespace Microsoft.DotNet.Watcher.Internal { diff --git a/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/IFileSystemWatcher.cs b/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/IFileSystemWatcher.cs index be4be0b33115..7b545cab9696 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/IFileSystemWatcher.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/IFileSystemWatcher.cs @@ -3,7 +3,6 @@ #nullable disable -using System; namespace Microsoft.DotNet.Watcher.Internal { diff --git a/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/PollingFileWatcher.cs b/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/PollingFileWatcher.cs index 93e9a32f5ca7..97973a8a8fb8 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/PollingFileWatcher.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/FileWatcher/PollingFileWatcher.cs @@ -3,11 +3,7 @@ #nullable disable -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.IO; -using System.Threading; using Microsoft.Extensions.Tools.Internal; namespace Microsoft.DotNet.Watcher.Internal diff --git a/src/BuiltInTools/dotnet-watch/Internal/HotReloadFileSetWatcher.cs b/src/BuiltInTools/dotnet-watch/Internal/HotReloadFileSetWatcher.cs index 542887be0a02..33d378c808c3 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/HotReloadFileSetWatcher.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/HotReloadFileSetWatcher.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.Tools.Internal; namespace Microsoft.DotNet.Watcher.Internal diff --git a/src/BuiltInTools/dotnet-watch/Internal/IConsole.cs b/src/BuiltInTools/dotnet-watch/Internal/IConsole.cs index bf1535942ca1..c092c446de07 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/IConsole.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/IConsole.cs @@ -3,8 +3,6 @@ #nullable disable -using System; -using System.IO; namespace Microsoft.Extensions.Tools.Internal { diff --git a/src/BuiltInTools/dotnet-watch/Internal/IRequester.cs b/src/BuiltInTools/dotnet-watch/Internal/IRequester.cs index 80c76b0d9157..a0262c9f5525 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/IRequester.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/IRequester.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.Threading; -using System.Threading.Tasks; - namespace Microsoft.Extensions.Tools.Internal { /// diff --git a/src/BuiltInTools/dotnet-watch/Internal/MSBuildFileSetResult.cs b/src/BuiltInTools/dotnet-watch/Internal/MSBuildFileSetResult.cs index 53ba4b883674..2a49d5e3006f 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/MSBuildFileSetResult.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/MSBuildFileSetResult.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.Runtime.Serialization; namespace Microsoft.DotNet.Watcher.Internal diff --git a/src/BuiltInTools/dotnet-watch/Internal/MsBuildFileSetFactory.cs b/src/BuiltInTools/dotnet-watch/Internal/MsBuildFileSetFactory.cs index 83cd8ec8a9de..9a9ecb9cacd6 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/MsBuildFileSetFactory.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/MsBuildFileSetFactory.cs @@ -2,14 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.IO; -using System.Linq; using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; using Microsoft.DotNet.Cli; using IReporter = Microsoft.Extensions.Tools.Internal.IReporter; diff --git a/src/BuiltInTools/dotnet-watch/Internal/MsBuildProjectFinder.cs b/src/BuiltInTools/dotnet-watch/Internal/MsBuildProjectFinder.cs index c9f93c81f967..c5c4c17441d4 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/MsBuildProjectFinder.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/MsBuildProjectFinder.cs @@ -3,10 +3,7 @@ #nullable disable -using System; using System.Globalization; -using System.IO; -using System.Linq; using Microsoft.DotNet.Watcher.Tools; using Microsoft.Extensions.Tools.Internal; diff --git a/src/BuiltInTools/dotnet-watch/Internal/OutputCapture.cs b/src/BuiltInTools/dotnet-watch/Internal/OutputCapture.cs index 991c57daaa17..2e6054489a61 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/OutputCapture.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/OutputCapture.cs @@ -3,7 +3,6 @@ #nullable disable -using System.Collections.Generic; namespace Microsoft.DotNet.Watcher.Internal { diff --git a/src/BuiltInTools/dotnet-watch/Internal/PhysicalConsole.cs b/src/BuiltInTools/dotnet-watch/Internal/PhysicalConsole.cs index 1f8a722fd50c..aa2d3debdfc8 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/PhysicalConsole.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/PhysicalConsole.cs @@ -3,11 +3,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading.Tasks; namespace Microsoft.Extensions.Tools.Internal { diff --git a/src/BuiltInTools/dotnet-watch/Internal/ProcessRunner.cs b/src/BuiltInTools/dotnet-watch/Internal/ProcessRunner.cs index 94758dea7911..cd52ea0b7880 100644 --- a/src/BuiltInTools/dotnet-watch/Internal/ProcessRunner.cs +++ b/src/BuiltInTools/dotnet-watch/Internal/ProcessRunner.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.IO; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.Tools.Internal; using IReporter = Microsoft.Extensions.Tools.Internal.IReporter; diff --git a/src/BuiltInTools/dotnet-watch/LaunchSettingsProfile.cs b/src/BuiltInTools/dotnet-watch/LaunchSettingsProfile.cs index d59faadfff41..8d3b77818a3c 100644 --- a/src/BuiltInTools/dotnet-watch/LaunchSettingsProfile.cs +++ b/src/BuiltInTools/dotnet-watch/LaunchSettingsProfile.cs @@ -2,10 +2,6 @@ // 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.Json; using Microsoft.Extensions.Tools.Internal; diff --git a/src/BuiltInTools/dotnet-watch/ProcessSpec.cs b/src/BuiltInTools/dotnet-watch/ProcessSpec.cs index aaf424131295..92f743b13d9d 100644 --- a/src/BuiltInTools/dotnet-watch/ProcessSpec.cs +++ b/src/BuiltInTools/dotnet-watch/ProcessSpec.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -using System.IO; -using System.Threading; using Microsoft.DotNet.Watcher.Internal; namespace Microsoft.DotNet.Watcher diff --git a/src/BuiltInTools/dotnet-watch/Program.cs b/src/BuiltInTools/dotnet-watch/Program.cs index 6b181e7b99f8..ebfdaadd6774 100644 --- a/src/BuiltInTools/dotnet-watch/Program.cs +++ b/src/BuiltInTools/dotnet-watch/Program.cs @@ -2,14 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.IO; -using System.Linq; using System.Runtime.Loader; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Build.Graph; using Microsoft.Build.Locator; using Microsoft.DotNet.Watcher.Internal; diff --git a/src/BuiltInTools/dotnet-watch/ProjectInfo.cs b/src/BuiltInTools/dotnet-watch/ProjectInfo.cs index b1b0e896beb4..cfec14ba7ca0 100644 --- a/src/BuiltInTools/dotnet-watch/ProjectInfo.cs +++ b/src/BuiltInTools/dotnet-watch/ProjectInfo.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.Watcher { internal sealed record ProjectInfo diff --git a/src/Cli/Microsoft.DotNet.Cli.Sln.Internal/FileManipulation/FileUtil.cs b/src/Cli/Microsoft.DotNet.Cli.Sln.Internal/FileManipulation/FileUtil.cs index 2e9dc6e51295..e6351a48d996 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Sln.Internal/FileManipulation/FileUtil.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Sln.Internal/FileManipulation/FileUtil.cs @@ -26,10 +26,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -using System; -using System.IO; -using System.Text; - namespace Microsoft.DotNet.Cli.Sln.Internal.FileManipulation { static internal class FileUtil diff --git a/src/Cli/Microsoft.DotNet.Cli.Sln.Internal/SlnFile.cs b/src/Cli/Microsoft.DotNet.Cli.Sln.Internal/SlnFile.cs index d11ade267424..15c970494ac4 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Sln.Internal/SlnFile.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Sln.Internal/SlnFile.cs @@ -27,16 +27,11 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -using System; -using System.Collections.Generic; -using System.Linq; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.IO; using System.Collections; using System.Globalization; using System.Reflection; -using System.Text; using Microsoft.DotNet.Cli.Sln.Internal.FileManipulation; using Microsoft.DotNet.Tools.Common; diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/AnsiConsole.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/AnsiConsole.cs index 8e6de1c25b80..fe0b088a1773 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/AnsiConsole.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/AnsiConsole.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.IO; - namespace Microsoft.DotNet.Cli.Utils { public class AnsiConsole diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/AnsiExtensions.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/AnsiExtensions.cs index 83c64c7eab17..68871ba86610 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/AnsiExtensions.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/AnsiExtensions.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.Cli.Utils { public static class AnsiExtensions diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/ArgumentEscaper.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/ArgumentEscaper.cs index 5365375086d2..20f618d0088d 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/ArgumentEscaper.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/ArgumentEscaper.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.Text; - namespace Microsoft.DotNet.Cli.Utils { public static class ArgumentEscaper diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/BlockingMemoryStream.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/BlockingMemoryStream.cs index 877189aa5a22..448ba3c15050 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/BlockingMemoryStream.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/BlockingMemoryStream.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.Concurrent; -using System.IO; -using System.Threading; 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 e52d8e5e2011..6103d98c1748 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/BuiltInCommand.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/BuiltInCommand.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.Diagnostics; -using System.IO; -using System.Linq; -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 b2375feeaa2b..3cbd1d4dfd26 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Command.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Command.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.Diagnostics; -using System.IO; using System.Runtime.CompilerServices; namespace Microsoft.DotNet.Cli.Utils diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/CommandAvailableAsDotNetToolException.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/CommandAvailableAsDotNetToolException.cs index e464c5856a78..d0f98f1b3889 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/CommandAvailableAsDotNetToolException.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/CommandAvailableAsDotNetToolException.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.Cli.Utils { public class CommandAvailableAsDotNetToolException : GracefulException diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/CommandLoggingContext.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/CommandLoggingContext.cs index 65fc0781bdc4..2b572377c17e 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/CommandLoggingContext.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/CommandLoggingContext.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.Cli.Utils { /// diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/CommandUnknownException.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/CommandUnknownException.cs index e90f06ac3e10..ac6664bd8e42 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/CommandUnknownException.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/CommandUnknownException.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.Cli.Utils { public class CommandUnknownException : GracefulException diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Constants.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Constants.cs index 8e377b554e45..a565090b6e46 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Constants.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Constants.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.Runtime.InteropServices; - namespace Microsoft.DotNet.Cli.Utils { public static class Constants diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/DangerousFileDetector.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/DangerousFileDetector.cs index d02944f67f3d..f9e76169815d 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/DangerousFileDetector.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/DangerousFileDetector.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.IO; -using System.Runtime.InteropServices; using System.Runtime.Versioning; 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 fc0ed69807f4..e59bf9800850 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/DebugHelper.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/DebugHelper.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.Diagnostics; -using System.Linq; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/DependencyProvider.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/DependencyProvider.cs index 11cb9ac5f833..a9264c18c6ba 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/DependencyProvider.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/DependencyProvider.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.Linq; using System.Runtime.Versioning; using Microsoft.Win32; diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/DotDefaultPathCorrector.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/DotDefaultPathCorrector.cs index 640b433ac5e4..a50352d6465e 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/DotDefaultPathCorrector.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/DotDefaultPathCorrector.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.Linq; - namespace Microsoft.DotNet.Cli.Utils { /// diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/DotnetFiles.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/DotnetFiles.cs index 16c6368027e9..1b3e3cad4b72 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/DotnetFiles.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/DotnetFiles.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.IO; using System.Reflection; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/DotnetVersionFile.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/DotnetVersionFile.cs index 13b64984c090..67712bb12567 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/DotnetVersionFile.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/DotnetVersionFile.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.Collections.Generic; -using System.IO; - namespace Microsoft.DotNet.Cli.Utils { internal class DotnetVersionFile diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Env.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Env.cs index 9dafb5e151e5..5fff4f7447e2 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Env.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Env.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; - namespace Microsoft.DotNet.Cli.Utils { public static class Env diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/EnvironmentProvider.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/EnvironmentProvider.cs index 19eff9b92d28..dc1d93b0d5fe 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/EnvironmentProvider.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/EnvironmentProvider.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.IO; -using System.Linq; -using System.Runtime.InteropServices; - namespace Microsoft.DotNet.Cli.Utils { public class EnvironmentProvider : IEnvironmentProvider diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/ExceptionExtensions.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/ExceptionExtensions.cs index 93303d2aa909..84520846ae9d 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/ExceptionExtensions.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/ExceptionExtensions.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.Cli.Utils { internal static class ExceptionExtensions diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/ExponentialRetry.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/ExponentialRetry.cs index eb1e1eddb5f8..3326228873a1 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/ExponentialRetry.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/ExponentialRetry.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.Linq; -using System.Threading.Tasks; - namespace Microsoft.DotNet.Cli.Utils { public static class ExponentialRetry diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/CollectionsExtensions.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/CollectionsExtensions.cs index aa02e648ded5..60f8efc34fe3 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/CollectionsExtensions.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/CollectionsExtensions.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.Collections.Generic; -using System.Linq; - namespace Microsoft.DotNet.Cli.Utils { public static class CollectionsExtensions diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileExtensions.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileExtensions.cs index 80b3c7f86846..ba6e91278ca3 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileExtensions.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileExtensions.cs @@ -4,8 +4,6 @@ using Microsoft.DotNet.Tools.Common; using NuGet.Packaging; using NuGet.ProjectModel; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileFormatExtensions.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileFormatExtensions.cs index c3547fbcf317..a83ac40e5b04 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileFormatExtensions.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileFormatExtensions.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.IO; -using System.Threading; -using System.Threading.Tasks; using NuGet.Common; using NuGet.ProjectModel; diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/FileAccessRetryer.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/FileAccessRetryer.cs index f7290bdeead1..4fdd40c9537a 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/FileAccessRetryer.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/FileAccessRetryer.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.IO; -using System.Threading; -using System.Threading.Tasks; - namespace Microsoft.DotNet.Cli.Utils { public static class FileAccessRetrier diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/FileNameSuffixes.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/FileNameSuffixes.cs index 1a062645a5cd..0f8fde87d7fb 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/FileNameSuffixes.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/FileNameSuffixes.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.Runtime.InteropServices; - namespace Microsoft.DotNet.Cli.Utils { public static class FileNameSuffixes diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/FilePermissionSettingException.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/FilePermissionSettingException.cs index f32d3cec47ba..5da70b4d5088 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/FilePermissionSettingException.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/FilePermissionSettingException.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.Cli.Utils { internal class FilePermissionSettingException : Exception diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/ForwardingAppImplementation.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/ForwardingAppImplementation.cs index 3e1ade540fb6..53857aec7cb4 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/ForwardingAppImplementation.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/ForwardingAppImplementation.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.Diagnostics; namespace Microsoft.DotNet.Cli.Utils diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/FrameworkDependencyFile.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/FrameworkDependencyFile.cs index 04907c5eadcb..dee910edffed 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/FrameworkDependencyFile.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/FrameworkDependencyFile.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 System.Linq; -using System.Runtime.InteropServices; using Microsoft.Extensions.DependencyModel; 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 3046c3f8931f..5fb7a24f9244 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/GracefulException.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/GracefulException.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.Utils { public class GracefulException : Exception diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/IBuiltInCommandEnvironment.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/IBuiltInCommandEnvironment.cs index 616e4724894b..d954dbd9b1d6 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/IBuiltInCommandEnvironment.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/IBuiltInCommandEnvironment.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.Cli.Utils { internal interface IBuiltInCommandEnvironment diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/ICommand.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/ICommand.cs index 35257690e380..31fdaa008ef5 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/ICommand.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/ICommand.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.IO; - namespace Microsoft.DotNet.Cli.Utils { public interface ICommand diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/IEnvironmentProvider.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/IEnvironmentProvider.cs index 86aa7bad4392..6229d975bbc9 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/IEnvironmentProvider.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/IEnvironmentProvider.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.Utils { public interface IEnvironmentProvider diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/ITelemetryFilter.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/ITelemetryFilter.cs index 40f0e93973dd..6d734394ad08 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/ITelemetryFilter.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/ITelemetryFilter.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; - namespace Microsoft.DotNet.Cli.Utils { public interface ITelemetryFilter diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Interop.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Interop.cs index f6303bc45d38..ee97f516364f 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Interop.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Interop.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // UrlMonTypeLib.IInternetSecurityManager -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildProjectExtensions.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildProjectExtensions.cs index c84d04dddda3..20c11baa4404 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildProjectExtensions.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildProjectExtensions.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Construction; using Microsoft.DotNet.Tools.Common; -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 d3773e9c600e..637ba308d8c3 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildPropertyParser.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildPropertyParser.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.Text; #nullable enable diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Muxer.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Muxer.cs index f00f270787ba..0417d0e5a823 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Muxer.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Muxer.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.Diagnostics; -using System.IO; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/NativeMethods.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/NativeMethods.cs index 48499b067191..e63518ab4d6d 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/NativeMethods.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/NativeMethods.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.Runtime.InteropServices; using Microsoft.Win32.SafeHandles; namespace Microsoft.DotNet.Cli.Utils diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/PathUtility.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/PathUtility.cs index 97fcc626b350..75019c9e32e3 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/PathUtility.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/PathUtility.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 System.Linq; -using System.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Tools.Common diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/ProcessReaper.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/ProcessReaper.cs index 242cf0bc954c..714682430b88 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/ProcessReaper.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/ProcessReaper.cs @@ -3,10 +3,7 @@ #nullable enable -using System; using System.Diagnostics; -using System.Runtime.InteropServices; -using System.Threading; using Microsoft.Win32.SafeHandles; namespace Microsoft.DotNet.Cli.Utils diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/ProcessStartInfoExtensions.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/ProcessStartInfoExtensions.cs index f3d7524cffec..226d1f616895 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/ProcessStartInfoExtensions.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/ProcessStartInfoExtensions.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.Diagnostics; namespace Microsoft.DotNet.Cli.Utils diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Reporter.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Reporter.cs index df1245445a55..30d76d8e8e1e 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Reporter.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Reporter.cs @@ -3,8 +3,6 @@ #nullable enable -using System; -using System.Threading; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/RuntimeEnvironment.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/RuntimeEnvironment.cs index 73512c215526..9512834ec8d9 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/RuntimeEnvironment.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/RuntimeEnvironment.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.IO; -using System.Runtime.InteropServices; - namespace Microsoft.DotNet.Cli.Utils { internal enum Platform diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/StreamForwarder.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/StreamForwarder.cs index 48629a32163d..d058e2ee0a9c 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/StreamForwarder.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/StreamForwarder.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.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace Microsoft.DotNet.Cli.Utils { public sealed class StreamForwarder diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/TelemetryEventEntry.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/TelemetryEventEntry.cs index 68cc41cf66ce..24fb69578bbf 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/TelemetryEventEntry.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/TelemetryEventEntry.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.Diagnostics; -using System.Linq; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/ToolCommandName.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/ToolCommandName.cs index b5e50a52b3ab..dd174851e01d 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/ToolCommandName.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/ToolCommandName.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.Cli.Utils { public struct ToolCommandName : IEquatable diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/TypoCorrection.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/TypoCorrection.cs index 6fb886824d89..4b529a1def1f 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/TypoCorrection.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/TypoCorrection.cs @@ -3,9 +3,6 @@ #nullable enable -using System; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/UILanguageOverride.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/UILanguageOverride.cs index de4b63255e75..9893d5545ad3 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/UILanguageOverride.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/UILanguageOverride.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.Diagnostics; using System.Globalization; -using System.Runtime.InteropServices; using System.Security; -using System.Text; using Microsoft.Win32; namespace Microsoft.DotNet.Cli.Utils diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Uuid.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Uuid.cs index d11655891de1..209c69c45938 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Uuid.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Uuid.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.Security.Cryptography; namespace Microsoft.DotNet.Cli.Utils diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Windows.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Windows.cs index 404e5a8a5ae9..e31f6a9a489d 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Windows.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Windows.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.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security.Principal; -using System.Threading; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.cs index 8751c8740640..67113fe3e251 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.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.Runtime.InteropServices; -using System.Threading.Tasks; using Microsoft.Win32; namespace Microsoft.DotNet.Cli.Utils diff --git a/src/Cli/Microsoft.DotNet.Configurer/AspNetCertificateSentinel.cs b/src/Cli/Microsoft.DotNet.Configurer/AspNetCertificateSentinel.cs index d7e6c4d556e3..ede3e8a78699 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/AspNetCertificateSentinel.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/AspNetCertificateSentinel.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.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/Microsoft.DotNet.Configurer/BashPathUnderHomeDirectory.cs b/src/Cli/Microsoft.DotNet.Configurer/BashPathUnderHomeDirectory.cs index 6738fb577695..3aadaa40344a 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/BashPathUnderHomeDirectory.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/BashPathUnderHomeDirectory.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 struct BashPathUnderHomeDirectory diff --git a/src/Cli/Microsoft.DotNet.Configurer/CliFolderPathCalculator.cs b/src/Cli/Microsoft.DotNet.Configurer/CliFolderPathCalculator.cs index fb48ef22afdc..c5a6714c7940 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/CliFolderPathCalculator.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/CliFolderPathCalculator.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.IO; using Microsoft.DotNet.Cli.Utils; using NuGet.Common; diff --git a/src/Cli/Microsoft.DotNet.Configurer/ConfigurationException.cs b/src/Cli/Microsoft.DotNet.Configurer/ConfigurationException.cs index 823fa5ddec60..cf915adbeef6 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/ConfigurationException.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/ConfigurationException.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 { internal class ConfigurationException : Exception diff --git a/src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.cs b/src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.cs index 19800ffe3500..6fabd4d080eb 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.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.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; using NuGet.Versioning; diff --git a/src/Cli/Microsoft.DotNet.Configurer/FirstTimeUseNoticeSentinel.cs b/src/Cli/Microsoft.DotNet.Configurer/FirstTimeUseNoticeSentinel.cs index 87a8b93ebeb1..399777f89b36 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/FirstTimeUseNoticeSentinel.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/FirstTimeUseNoticeSentinel.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.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/Microsoft.DotNet.Configurer/IFileExtensions.cs b/src/Cli/Microsoft.DotNet.Configurer/IFileExtensions.cs index 182fc29b9483..d27e57240b2f 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/IFileExtensions.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/IFileExtensions.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.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/Microsoft.DotNet.Configurer/IFirstTimeUseNoticeSentinel.cs b/src/Cli/Microsoft.DotNet.Configurer/IFirstTimeUseNoticeSentinel.cs index 72bd8d1e6c6d..95a05879acf8 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/IFirstTimeUseNoticeSentinel.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/IFirstTimeUseNoticeSentinel.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 IFirstTimeUseNoticeSentinel : IDisposable diff --git a/src/Cli/Microsoft.DotNet.Configurer/IUserLevelCacheWriter.cs b/src/Cli/Microsoft.DotNet.Configurer/IUserLevelCacheWriter.cs index 6ceb21331268..d85c7e892ea3 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/IUserLevelCacheWriter.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/IUserLevelCacheWriter.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 IUserLevelCacheWriter diff --git a/src/Cli/Microsoft.DotNet.Configurer/ToolPackageFolderPathCalculator.cs b/src/Cli/Microsoft.DotNet.Configurer/ToolPackageFolderPathCalculator.cs index 85a05a07c582..5ef78e622dc1 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/ToolPackageFolderPathCalculator.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/ToolPackageFolderPathCalculator.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 static class ToolPackageFolderPathCalculator diff --git a/src/Cli/Microsoft.DotNet.Configurer/UserLevelCacheWriter.cs b/src/Cli/Microsoft.DotNet.Configurer/UserLevelCacheWriter.cs index ca2c305f8d81..67d7e8661184 100644 --- a/src/Cli/Microsoft.DotNet.Configurer/UserLevelCacheWriter.cs +++ b/src/Cli/Microsoft.DotNet.Configurer/UserLevelCacheWriter.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.IO; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/Microsoft.DotNet.InternalAbstractions/DirectoryPath.cs b/src/Cli/Microsoft.DotNet.InternalAbstractions/DirectoryPath.cs index 6ba513c715b8..ad2e1c2b4c32 100644 --- a/src/Cli/Microsoft.DotNet.InternalAbstractions/DirectoryPath.cs +++ b/src/Cli/Microsoft.DotNet.InternalAbstractions/DirectoryPath.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.IO; - namespace Microsoft.Extensions.EnvironmentAbstractions { public struct DirectoryPath diff --git a/src/Cli/Microsoft.DotNet.InternalAbstractions/DirectoryWrapper.cs b/src/Cli/Microsoft.DotNet.InternalAbstractions/DirectoryWrapper.cs index faf7ca9734cb..7f16bb0cc27e 100644 --- a/src/Cli/Microsoft.DotNet.InternalAbstractions/DirectoryWrapper.cs +++ b/src/Cli/Microsoft.DotNet.InternalAbstractions/DirectoryWrapper.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 Microsoft.DotNet.InternalAbstractions; namespace Microsoft.Extensions.EnvironmentAbstractions diff --git a/src/Cli/Microsoft.DotNet.InternalAbstractions/EnvironmentWrapper.cs b/src/Cli/Microsoft.DotNet.InternalAbstractions/EnvironmentWrapper.cs index 611ae899e0d9..4691ebe20d2b 100644 --- a/src/Cli/Microsoft.DotNet.InternalAbstractions/EnvironmentWrapper.cs +++ b/src/Cli/Microsoft.DotNet.InternalAbstractions/EnvironmentWrapper.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.Extensions.EnvironmentAbstractions { internal class EnvironmentWrapper : IEnvironment diff --git a/src/Cli/Microsoft.DotNet.InternalAbstractions/FilePath.cs b/src/Cli/Microsoft.DotNet.InternalAbstractions/FilePath.cs index 0db1fa7a1734..7aaa20cf3a2a 100644 --- a/src/Cli/Microsoft.DotNet.InternalAbstractions/FilePath.cs +++ b/src/Cli/Microsoft.DotNet.InternalAbstractions/FilePath.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.Extensions.EnvironmentAbstractions { public struct FilePath diff --git a/src/Cli/Microsoft.DotNet.InternalAbstractions/FileWrapper.cs b/src/Cli/Microsoft.DotNet.InternalAbstractions/FileWrapper.cs index c41686e2282e..5284f36c94e6 100644 --- a/src/Cli/Microsoft.DotNet.InternalAbstractions/FileWrapper.cs +++ b/src/Cli/Microsoft.DotNet.InternalAbstractions/FileWrapper.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.Extensions.EnvironmentAbstractions { internal class FileWrapper: IFile diff --git a/src/Cli/Microsoft.DotNet.InternalAbstractions/IDirectory.cs b/src/Cli/Microsoft.DotNet.InternalAbstractions/IDirectory.cs index a7948de929b1..e5d1ebba6602 100644 --- a/src/Cli/Microsoft.DotNet.InternalAbstractions/IDirectory.cs +++ b/src/Cli/Microsoft.DotNet.InternalAbstractions/IDirectory.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; - namespace Microsoft.Extensions.EnvironmentAbstractions { internal interface IDirectory diff --git a/src/Cli/Microsoft.DotNet.InternalAbstractions/IFile.cs b/src/Cli/Microsoft.DotNet.InternalAbstractions/IFile.cs index 81698f366dad..abea4cb9ed27 100644 --- a/src/Cli/Microsoft.DotNet.InternalAbstractions/IFile.cs +++ b/src/Cli/Microsoft.DotNet.InternalAbstractions/IFile.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.Extensions.EnvironmentAbstractions { internal interface IFile diff --git a/src/Cli/Microsoft.DotNet.InternalAbstractions/ITemporaryDirectory.cs b/src/Cli/Microsoft.DotNet.InternalAbstractions/ITemporaryDirectory.cs index ec598df27ac1..05cda92e5a3f 100644 --- a/src/Cli/Microsoft.DotNet.InternalAbstractions/ITemporaryDirectory.cs +++ b/src/Cli/Microsoft.DotNet.InternalAbstractions/ITemporaryDirectory.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.Extensions.EnvironmentAbstractions { internal interface ITemporaryDirectory : IDisposable diff --git a/src/Cli/Microsoft.DotNet.InternalAbstractions/TemporaryDirectory.cs b/src/Cli/Microsoft.DotNet.InternalAbstractions/TemporaryDirectory.cs index 17efe9ec87d1..cd3bfb0a5893 100644 --- a/src/Cli/Microsoft.DotNet.InternalAbstractions/TemporaryDirectory.cs +++ b/src/Cli/Microsoft.DotNet.InternalAbstractions/TemporaryDirectory.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.InternalAbstractions diff --git a/src/Cli/dotnet/AutomaticEncodingRestorer.cs b/src/Cli/dotnet/AutomaticEncodingRestorer.cs index 073625fc336b..aba46d6f6a85 100644 --- a/src/Cli/dotnet/AutomaticEncodingRestorer.cs +++ b/src/Cli/dotnet/AutomaticEncodingRestorer.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.IO; using System.Security; -using System.Text; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/BuildServer/BuildServerException.cs b/src/Cli/dotnet/BuildServer/BuildServerException.cs index 61a8701a26a4..3b6a27b7ed29 100644 --- a/src/Cli/dotnet/BuildServer/BuildServerException.cs +++ b/src/Cli/dotnet/BuildServer/BuildServerException.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.BuildServer { internal class BuildServerException : Exception diff --git a/src/Cli/dotnet/BuildServer/BuildServerProvider.cs b/src/Cli/dotnet/BuildServer/BuildServerProvider.cs index 40d35aee2b0e..20b7884d30df 100644 --- a/src/Cli/dotnet/BuildServer/BuildServerProvider.cs +++ b/src/Cli/dotnet/BuildServer/BuildServerProvider.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.IO; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/BuildServer/IBuildServerProvider.cs b/src/Cli/dotnet/BuildServer/IBuildServerProvider.cs index d39408d8a774..499c37a64956 100644 --- a/src/Cli/dotnet/BuildServer/IBuildServerProvider.cs +++ b/src/Cli/dotnet/BuildServer/IBuildServerProvider.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.BuildServer { [Flags] diff --git a/src/Cli/dotnet/BuildServer/RazorPidFile.cs b/src/Cli/dotnet/BuildServer/RazorPidFile.cs index 9e42b9822339..c1e86fda68a6 100644 --- a/src/Cli/dotnet/BuildServer/RazorPidFile.cs +++ b/src/Cli/dotnet/BuildServer/RazorPidFile.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.IO; -using System.Text; using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.BuildServer diff --git a/src/Cli/dotnet/BuildServer/RazorServer.cs b/src/Cli/dotnet/BuildServer/RazorServer.cs index 5487112a93f0..e960e3bec40d 100644 --- a/src/Cli/dotnet/BuildServer/RazorServer.cs +++ b/src/Cli/dotnet/BuildServer/RazorServer.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.IO; using Microsoft.DotNet.Cli; using Microsoft.DotNet.CommandFactory; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/BuildServer/VBCSCompilerServer.cs b/src/Cli/dotnet/BuildServer/VBCSCompilerServer.cs index 74165779c891..b324abf9122e 100644 --- a/src/Cli/dotnet/BuildServer/VBCSCompilerServer.cs +++ b/src/Cli/dotnet/BuildServer/VBCSCompilerServer.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.Reflection; using Microsoft.DotNet.Cli; using Microsoft.DotNet.CommandFactory; diff --git a/src/Cli/dotnet/CliTransaction.cs b/src/Cli/dotnet/CliTransaction.cs index 112444a5efac..0b99debba00f 100644 --- a/src/Cli/dotnet/CliTransaction.cs +++ b/src/Cli/dotnet/CliTransaction.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 { internal interface ITransactionContext diff --git a/src/Cli/dotnet/CommandDirectoryContext.cs b/src/Cli/dotnet/CommandDirectoryContext.cs index 04888d73145a..9265692ded61 100644 --- a/src/Cli/dotnet/CommandDirectoryContext.cs +++ b/src/Cli/dotnet/CommandDirectoryContext.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.IO; - namespace Microsoft.DotNet.Cli { internal static class CommandDirectoryContext diff --git a/src/Cli/dotnet/CommandFactory/CommandFactory.cs b/src/Cli/dotnet/CommandFactory/CommandFactory.cs index d1c00627e31c..0f766fbf9db9 100644 --- a/src/Cli/dotnet/CommandFactory/CommandFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandFactory.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.DotNet.Cli.Utils; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandFactory/CommandFactoryUsingResolver.cs b/src/Cli/dotnet/CommandFactory/CommandFactoryUsingResolver.cs index afd19cef0bc5..72132ccf9d17 100644 --- a/src/Cli/dotnet/CommandFactory/CommandFactoryUsingResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandFactoryUsingResolver.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.Diagnostics; -using System.Linq; using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/AbstractPathBasedCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/AbstractPathBasedCommandResolver.cs index 099219663e59..24d150743e58 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/AbstractPathBasedCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/AbstractPathBasedCommandResolver.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.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseCommandResolver.cs index ccde06d07476..a5604d112c60 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseCommandResolver.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.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseDllCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseDllCommandResolver.cs index 0d8428db9201..08660ae2cf86 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseDllCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/AppBaseDllCommandResolver.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.IO; -using System.Linq; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/CommandResolverArguments.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/CommandResolverArguments.cs index 11b2dbc27d3f..361c85e45c73 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/CommandResolverArguments.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/CommandResolverArguments.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 NuGet.Frameworks; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/CompositeCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/CompositeCommandResolver.cs index 87fabbc9ecbc..8aea52d488c7 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/CompositeCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/CompositeCommandResolver.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; - namespace Microsoft.DotNet.CommandFactory { public class CompositeCommandResolver : ICommandResolver diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.cs index 810ee619577a..a9fd45472161 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.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.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/DepsJsonCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/DepsJsonCommandResolver.cs index 51ad6e88bf08..d70e4dc1946b 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/DepsJsonCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/DepsJsonCommandResolver.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.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Common; using Microsoft.Extensions.DependencyModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/DotnetToolsCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/DotnetToolsCommandResolver.cs index 7f465a15c37c..93ebb28bc240 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/DotnetToolsCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/DotnetToolsCommandResolver.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.IO; - namespace Microsoft.DotNet.CommandFactory { public class DotnetToolsCommandResolver : ICommandResolver diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/GenericPlatformCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/GenericPlatformCommandSpecFactory.cs index dcf7d9fb0c9b..d315b8f045c0 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/GenericPlatformCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/GenericPlatformCommandSpecFactory.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.DotNet.Cli.Utils; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/IPackagedCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/IPackagedCommandSpecFactory.cs index 93c26703f4b3..4f09fe422316 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/IPackagedCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/IPackagedCommandSpecFactory.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 NuGet.ProjectModel; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/IPlatformCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/IPlatformCommandSpecFactory.cs index 514d5e2b0f88..014572f7ebfc 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/IPlatformCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/IPlatformCommandSpecFactory.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.DotNet.Cli.Utils; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/IProject.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/IProject.cs index 39bedc0487da..d665d58aaa6f 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/IProject.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/IProject.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 NuGet.Frameworks; using NuGet.ProjectModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/IPublishedPathCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/IPublishedPathCommandSpecFactory.cs index deafc97ad1b2..8c6cd506851f 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/IPublishedPathCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/IPublishedPathCommandSpecFactory.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; - namespace Microsoft.DotNet.CommandFactory { public interface IPublishedPathCommandSpecFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/LocalToolsCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/LocalToolsCommandResolver.cs index a3417eebe0e9..fa9a90094d28 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/LocalToolsCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/LocalToolsCommandResolver.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.IO; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolManifest; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/LockFileTargetExtensions.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/LockFileTargetExtensions.cs index 9a55137d502c..1330d9a7a3c9 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/LockFileTargetExtensions.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/LockFileTargetExtensions.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.Linq; using NuGet.Packaging.Core; using NuGet.ProjectModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/MSBuildProject.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/MSBuildProject.cs index bfda28ce969f..d9ea13c031a1 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/MSBuildProject.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/MSBuildProject.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.Linq; using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/MuxerCommandSpecMaker.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/MuxerCommandSpecMaker.cs index 0112954015df..ece94633785c 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/MuxerCommandSpecMaker.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/MuxerCommandSpecMaker.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.DotNet.Cli.Utils; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/NuGetUtils.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/NuGetUtils.cs index bba40034774a..09a20c8e13ab 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/NuGetUtils.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/NuGetUtils.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.Linq; using NuGet.Packaging.Core; using NuGet.ProjectModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/OutputPathCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/OutputPathCommandResolver.cs index c22fdacb357b..3f7674cebdbb 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/OutputPathCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/OutputPathCommandResolver.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 Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.cs index 3f8b1c9072fb..71ac2b07c529 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.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.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Common; using NuGet.ProjectModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactoryWithCliRuntime.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactoryWithCliRuntime.cs index f8b247b5633a..8edf29e61da4 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactoryWithCliRuntime.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactoryWithCliRuntime.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.IO; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Common; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/PathCommandResolverPolicy.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/PathCommandResolverPolicy.cs index 8e98ad8da7a8..f0b6ea222ddc 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/PathCommandResolverPolicy.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/PathCommandResolverPolicy.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.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.cs index 6a1ebd5407db..cfcfbd28ed94 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.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.Linq; using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; using NuGet.ProjectModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectFactory.cs index 322e8dc55ec1..37348a9d740f 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectFactory.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.Linq; using Microsoft.Build.Exceptions; using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs index 5fd14861c753..5cef06aac0bb 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.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.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; using NuGet.ProjectModel; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/PublishPathCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/PublishPathCommandSpecFactory.cs index a9bfcd1ef4bb..c64e8e687c43 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/PublishPathCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/PublishPathCommandSpecFactory.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.IO; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/PublishedPathCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/PublishedPathCommandResolver.cs index 6047a1b66220..00e6cc84ad17 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/PublishedPathCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/PublishedPathCommandResolver.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.DotNet.Cli.Utils; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/RootedCommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/RootedCommandResolver.cs index aa28f45cec7b..c06dd86a8297 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/RootedCommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/RootedCommandResolver.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.DotNet.Cli.Utils; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.cs index 40325f728c89..6c14f0e6a247 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.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.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/SingleProjectInfo.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/SingleProjectInfo.cs index d78dfd5f8914..aee086b235f6 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/SingleProjectInfo.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/SingleProjectInfo.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; - namespace Microsoft.DotNet.CommandFactory { internal class SingleProjectInfo diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/ToolPathCalculator.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/ToolPathCalculator.cs index 0c8933899f47..4b75f5c3e779 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/ToolPathCalculator.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/ToolPathCalculator.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.Linq; using NuGet.Frameworks; using NuGet.Versioning; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/CommandFactory/CommandResolution/WindowsExePreferredCommandSpecFactory.cs b/src/Cli/dotnet/CommandFactory/CommandResolution/WindowsExePreferredCommandSpecFactory.cs index 5a9db08d10ef..c6938f111aef 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolution/WindowsExePreferredCommandSpecFactory.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolution/WindowsExePreferredCommandSpecFactory.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.Linq; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.CommandFactory diff --git a/src/Cli/dotnet/CommandFactory/CommandResolver.cs b/src/Cli/dotnet/CommandFactory/CommandResolver.cs index 55e57158215e..3649fddfbb53 100644 --- a/src/Cli/dotnet/CommandFactory/CommandResolver.cs +++ b/src/Cli/dotnet/CommandFactory/CommandResolver.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 Microsoft.DotNet.Cli.Utils; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandFactory/CommandSpec.cs b/src/Cli/dotnet/CommandFactory/CommandSpec.cs index d703184d4116..01a34a99cab3 100644 --- a/src/Cli/dotnet/CommandFactory/CommandSpec.cs +++ b/src/Cli/dotnet/CommandFactory/CommandSpec.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; - namespace Microsoft.DotNet.CommandFactory { public class CommandSpec diff --git a/src/Cli/dotnet/CommandFactory/ICommandFactory.cs b/src/Cli/dotnet/CommandFactory/ICommandFactory.cs index d11d4b4d7420..14419c008622 100644 --- a/src/Cli/dotnet/CommandFactory/ICommandFactory.cs +++ b/src/Cli/dotnet/CommandFactory/ICommandFactory.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.DotNet.Cli.Utils; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/CommandLineInfo.cs b/src/Cli/dotnet/CommandLineInfo.cs index 7765989ad15b..3acb488237d4 100644 --- a/src/Cli/dotnet/CommandLineInfo.cs +++ b/src/Cli/dotnet/CommandLineInfo.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.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; using LocalizableStrings = Microsoft.DotNet.Cli.Utils.LocalizableStrings; using RuntimeEnvironment = Microsoft.DotNet.Cli.Utils.RuntimeEnvironment; diff --git a/src/Cli/dotnet/CommandLineValidation/CommandParsingException.cs b/src/Cli/dotnet/CommandLineValidation/CommandParsingException.cs index b9e2f7732b7a..1e02fbda18f7 100644 --- a/src/Cli/dotnet/CommandLineValidation/CommandParsingException.cs +++ b/src/Cli/dotnet/CommandLineValidation/CommandParsingException.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.CommandLine; namespace Microsoft.DotNet.Cli diff --git a/src/Cli/dotnet/CommonOptions.cs b/src/Cli/dotnet/CommonOptions.cs index db72999696ff..a989805c68d9 100644 --- a/src/Cli/dotnet/CommonOptions.cs +++ b/src/Cli/dotnet/CommonOptions.cs @@ -4,12 +4,8 @@ using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Common; -using System; -using System.Collections.Generic; using System.CommandLine; using System.CommandLine.Completions; -using System.IO; -using System.Linq; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/DotNetCommandFactory.cs b/src/Cli/dotnet/DotNetCommandFactory.cs index b89f6c1e1b46..33d84bc92e41 100644 --- a/src/Cli/dotnet/DotNetCommandFactory.cs +++ b/src/Cli/dotnet/DotNetCommandFactory.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.Diagnostics; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.CommandFactory; diff --git a/src/Cli/dotnet/FilePermissionSetter.cs b/src/Cli/dotnet/FilePermissionSetter.cs index 2c6bf5cd19e7..f64c414ffea8 100644 --- a/src/Cli/dotnet/FilePermissionSetter.cs +++ b/src/Cli/dotnet/FilePermissionSetter.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.Tools diff --git a/src/Cli/dotnet/ForwardingApp.cs b/src/Cli/dotnet/ForwardingApp.cs index e1207191c20c..f740f3193577 100644 --- a/src/Cli/dotnet/ForwardingApp.cs +++ b/src/Cli/dotnet/ForwardingApp.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Cli.Utils; -using System.Collections.Generic; using System.Diagnostics; namespace Microsoft.DotNet.Cli diff --git a/src/Cli/dotnet/Installer/Windows/FormatMessage.cs b/src/Cli/dotnet/Installer/Windows/FormatMessage.cs index 8ca091352cb0..b911ec0aad4e 100644 --- a/src/Cli/dotnet/Installer/Windows/FormatMessage.cs +++ b/src/Cli/dotnet/Installer/Windows/FormatMessage.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.Installer.Windows { /// diff --git a/src/Cli/dotnet/Installer/Windows/InstallClientElevationContext.cs b/src/Cli/dotnet/Installer/Windows/InstallClientElevationContext.cs index 27183d7e500f..65c24dfbe79c 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallClientElevationContext.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallClientElevationContext.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.Diagnostics; using System.IO.Pipes; using System.Reflection; diff --git a/src/Cli/dotnet/Installer/Windows/InstallMessageBase.cs b/src/Cli/dotnet/Installer/Windows/InstallMessageBase.cs index 57eea142785f..0cc3f810b739 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallMessageBase.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallMessageBase.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.Text; using Newtonsoft.Json; namespace Microsoft.DotNet.Installer.Windows diff --git a/src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.cs b/src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.cs index 76239b25fb91..8ca9141a9343 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.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.Pipes; using System.Runtime.Versioning; using static Microsoft.Win32.Msi.Error; diff --git a/src/Cli/dotnet/Installer/Windows/InstallProperties.cs b/src/Cli/dotnet/Installer/Windows/InstallProperties.cs index 31d4419382a8..4a5667ec7e8f 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallProperties.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallProperties.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.Linq; using System.Runtime.Versioning; using Microsoft.Win32.Msi; diff --git a/src/Cli/dotnet/Installer/Windows/InstallRequestMessage.cs b/src/Cli/dotnet/Installer/Windows/InstallRequestMessage.cs index 5062154624a1..712534d0b666 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallRequestMessage.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallRequestMessage.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.Text; using Newtonsoft.Json; namespace Microsoft.DotNet.Installer.Windows diff --git a/src/Cli/dotnet/Installer/Windows/InstallResponseMessage.cs b/src/Cli/dotnet/Installer/Windows/InstallResponseMessage.cs index 0439c5d0172b..75e55536282b 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallResponseMessage.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallResponseMessage.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.Text; using Newtonsoft.Json; using static Microsoft.Win32.Msi.Error; diff --git a/src/Cli/dotnet/Installer/Windows/InstallerBase.cs b/src/Cli/dotnet/Installer/Windows/InstallerBase.cs index b6ad22a7737c..c0630769ded2 100644 --- a/src/Cli/dotnet/Installer/Windows/InstallerBase.cs +++ b/src/Cli/dotnet/Installer/Windows/InstallerBase.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.Diagnostics; -using System.IO; using System.Reflection; -using System.Runtime.InteropServices; using System.Runtime.Versioning; -using System.Text; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Workloads.Workload; using Microsoft.Win32.Msi; diff --git a/src/Cli/dotnet/Installer/Windows/MsiManifest.cs b/src/Cli/dotnet/Installer/Windows/MsiManifest.cs index 742c591aaad4..8411fedebc27 100644 --- a/src/Cli/dotnet/Installer/Windows/MsiManifest.cs +++ b/src/Cli/dotnet/Installer/Windows/MsiManifest.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.Installer.Windows { /// diff --git a/src/Cli/dotnet/Installer/Windows/MsiPackageCache.cs b/src/Cli/dotnet/Installer/Windows/MsiPackageCache.cs index ef00ca635643..3e8b81d794e9 100644 --- a/src/Cli/dotnet/Installer/Windows/MsiPackageCache.cs +++ b/src/Cli/dotnet/Installer/Windows/MsiPackageCache.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.IO.Pipes; -using System.Linq; -using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security; using System.Security.AccessControl; diff --git a/src/Cli/dotnet/Installer/Windows/MsiPayload.cs b/src/Cli/dotnet/Installer/Windows/MsiPayload.cs index 979518b0dfd7..ba72d171971c 100644 --- a/src/Cli/dotnet/Installer/Windows/MsiPayload.cs +++ b/src/Cli/dotnet/Installer/Windows/MsiPayload.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.Linq; using Newtonsoft.Json; namespace Microsoft.DotNet.Installer.Windows diff --git a/src/Cli/dotnet/Installer/Windows/NativeMethods.cs b/src/Cli/dotnet/Installer/Windows/NativeMethods.cs index 05aa150c0a50..20fe0aef3258 100644 --- a/src/Cli/dotnet/Installer/Windows/NativeMethods.cs +++ b/src/Cli/dotnet/Installer/Windows/NativeMethods.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.Runtime.InteropServices; -using System.Text; using System.Runtime.Versioning; namespace Microsoft.DotNet.Installer.Windows diff --git a/src/Cli/dotnet/Installer/Windows/PipeStreamMessageDispatcherBase.cs b/src/Cli/dotnet/Installer/Windows/PipeStreamMessageDispatcherBase.cs index 9f55a09c7c8d..2696cbea28d7 100644 --- a/src/Cli/dotnet/Installer/Windows/PipeStreamMessageDispatcherBase.cs +++ b/src/Cli/dotnet/Installer/Windows/PipeStreamMessageDispatcherBase.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.IO; using System.IO.Pipes; -using System.Linq; using System.Runtime.Versioning; -using System.Threading.Tasks; namespace Microsoft.DotNet.Installer.Windows { diff --git a/src/Cli/dotnet/Installer/Windows/PipeStreamSetupLogger.cs b/src/Cli/dotnet/Installer/Windows/PipeStreamSetupLogger.cs index cffb5e72c08a..23c23c057d3a 100644 --- a/src/Cli/dotnet/Installer/Windows/PipeStreamSetupLogger.cs +++ b/src/Cli/dotnet/Installer/Windows/PipeStreamSetupLogger.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.IO.Pipes; -using System.Collections.Generic; using System.Runtime.Versioning; -using System.Text; namespace Microsoft.DotNet.Installer.Windows { diff --git a/src/Cli/dotnet/Installer/Windows/RelatedProduct.cs b/src/Cli/dotnet/Installer/Windows/RelatedProduct.cs index 8716e1792a1d..ab95dd1b59d1 100644 --- a/src/Cli/dotnet/Installer/Windows/RelatedProduct.cs +++ b/src/Cli/dotnet/Installer/Windows/RelatedProduct.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.Linq; -using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Converters; diff --git a/src/Cli/dotnet/Installer/Windows/Security/AuthentiCode.cs b/src/Cli/dotnet/Installer/Windows/Security/AuthentiCode.cs index 5389b3671356..59aeb5161034 100644 --- a/src/Cli/dotnet/Installer/Windows/Security/AuthentiCode.cs +++ b/src/Cli/dotnet/Installer/Windows/Security/AuthentiCode.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.ComponentModel; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security.Cryptography; using System.Security.Cryptography.Pkcs; diff --git a/src/Cli/dotnet/Installer/Windows/Security/CertQueryContentFlags.cs b/src/Cli/dotnet/Installer/Windows/Security/CertQueryContentFlags.cs index ed5acf883553..1aa375d93c06 100644 --- a/src/Cli/dotnet/Installer/Windows/Security/CertQueryContentFlags.cs +++ b/src/Cli/dotnet/Installer/Windows/Security/CertQueryContentFlags.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.Installer.Windows.Security { /// diff --git a/src/Cli/dotnet/Installer/Windows/Security/NativeMethods.cs b/src/Cli/dotnet/Installer/Windows/Security/NativeMethods.cs index 74d39e278ff8..ea883cd716b5 100644 --- a/src/Cli/dotnet/Installer/Windows/Security/NativeMethods.cs +++ b/src/Cli/dotnet/Installer/Windows/Security/NativeMethods.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.Runtime.InteropServices; - namespace Microsoft.DotNet.Installer.Windows.Security { internal class NativeMethods diff --git a/src/Cli/dotnet/Installer/Windows/Security/ProviderSettings.cs b/src/Cli/dotnet/Installer/Windows/Security/ProviderSettings.cs index cae553e33fd1..611dcd7777c8 100644 --- a/src/Cli/dotnet/Installer/Windows/Security/ProviderSettings.cs +++ b/src/Cli/dotnet/Installer/Windows/Security/ProviderSettings.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.Installer.Windows.Security { /// diff --git a/src/Cli/dotnet/Installer/Windows/Security/WinTrustData.cs b/src/Cli/dotnet/Installer/Windows/Security/WinTrustData.cs index 4147d249eb1a..b08f15109d2f 100644 --- a/src/Cli/dotnet/Installer/Windows/Security/WinTrustData.cs +++ b/src/Cli/dotnet/Installer/Windows/Security/WinTrustData.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.Runtime.InteropServices; - namespace Microsoft.DotNet.Installer.Windows.Security { /// diff --git a/src/Cli/dotnet/Installer/Windows/Security/WinTrustFileInfo.cs b/src/Cli/dotnet/Installer/Windows/Security/WinTrustFileInfo.cs index 95cd7710d8de..431424ba4a24 100644 --- a/src/Cli/dotnet/Installer/Windows/Security/WinTrustFileInfo.cs +++ b/src/Cli/dotnet/Installer/Windows/Security/WinTrustFileInfo.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.Runtime.InteropServices; - namespace Microsoft.DotNet.Installer.Windows.Security { /// diff --git a/src/Cli/dotnet/Installer/Windows/SetupLoggerBase.cs b/src/Cli/dotnet/Installer/Windows/SetupLoggerBase.cs index 39994ab6b723..24866b497961 100644 --- a/src/Cli/dotnet/Installer/Windows/SetupLoggerBase.cs +++ b/src/Cli/dotnet/Installer/Windows/SetupLoggerBase.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.Installer.Windows { /// diff --git a/src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.cs b/src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.cs index d333bc6ba703..c606499ca841 100644 --- a/src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.cs +++ b/src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.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.Concurrent; -using System.IO; using System.IO.Pipes; using System.Runtime.Versioning; -using System.Text; -using System.Threading; namespace Microsoft.DotNet.Installer.Windows { diff --git a/src/Cli/dotnet/Installer/Windows/UpgradeAttributes.cs b/src/Cli/dotnet/Installer/Windows/UpgradeAttributes.cs index 92761c972536..213ab2ad7ef4 100644 --- a/src/Cli/dotnet/Installer/Windows/UpgradeAttributes.cs +++ b/src/Cli/dotnet/Installer/Windows/UpgradeAttributes.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.Installer.Windows { /// diff --git a/src/Cli/dotnet/Installer/Windows/WindowsUpdateAgent.cs b/src/Cli/dotnet/Installer/Windows/WindowsUpdateAgent.cs index 63d85501b21b..b5fc7efd1f26 100644 --- a/src/Cli/dotnet/Installer/Windows/WindowsUpdateAgent.cs +++ b/src/Cli/dotnet/Installer/Windows/WindowsUpdateAgent.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.Linq; using System.Runtime.Versioning; using System.ServiceProcess; diff --git a/src/Cli/dotnet/Installer/Windows/WindowsUtils.cs b/src/Cli/dotnet/Installer/Windows/WindowsUtils.cs index 597e7f3a8d46..463d64513bf8 100644 --- a/src/Cli/dotnet/Installer/Windows/WindowsUtils.cs +++ b/src/Cli/dotnet/Installer/Windows/WindowsUtils.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.Runtime.Versioning; using System.Security.Principal; -using System.Threading; using Microsoft.DotNet.Cli.Telemetry; using Microsoft.DotNet.Cli.Utils; using Microsoft.Win32; diff --git a/src/Cli/dotnet/Installer/Windows/WorkloadPackRecord.cs b/src/Cli/dotnet/Installer/Windows/WorkloadPackRecord.cs index b5fb009e8aff..7e42f4a878fb 100644 --- a/src/Cli/dotnet/Installer/Windows/WorkloadPackRecord.cs +++ b/src/Cli/dotnet/Installer/Windows/WorkloadPackRecord.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.NET.Sdk.WorkloadManifestReader; using NuGet.Versioning; diff --git a/src/Cli/dotnet/MsbuildProject.cs b/src/Cli/dotnet/MsbuildProject.cs index 9f508e294bd5..587c31ab33ea 100644 --- a/src/Cli/dotnet/MsbuildProject.cs +++ b/src/Cli/dotnet/MsbuildProject.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.Linq; using Microsoft.Build.Construction; using Microsoft.Build.Evaluation; using Microsoft.Build.Exceptions; diff --git a/src/Cli/dotnet/NuGetForwardingApp.cs b/src/Cli/dotnet/NuGetForwardingApp.cs index dfe3c558fec0..ecc1cc09c3b2 100644 --- a/src/Cli/dotnet/NuGetForwardingApp.cs +++ b/src/Cli/dotnet/NuGetForwardingApp.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.IO; using Microsoft.DotNet.Cli; namespace Microsoft.DotNet.Tools diff --git a/src/Cli/dotnet/NuGetSignatureVerificationEnabler.cs b/src/Cli/dotnet/NuGetSignatureVerificationEnabler.cs index a87d2a27cca1..1762bd11fea8 100644 --- a/src/Cli/dotnet/NuGetSignatureVerificationEnabler.cs +++ b/src/Cli/dotnet/NuGetSignatureVerificationEnabler.cs @@ -3,8 +3,6 @@ #nullable enable -using System; -using System.Runtime.InteropServices; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.MSBuild; diff --git a/src/Cli/dotnet/NugetPackageDownloader/FirstPartyNuGetPackageSigningVerifier.cs b/src/Cli/dotnet/NugetPackageDownloader/FirstPartyNuGetPackageSigningVerifier.cs index daf43b993611..9762c89822e7 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/FirstPartyNuGetPackageSigningVerifier.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/FirstPartyNuGetPackageSigningVerifier.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.Security.Cryptography.X509Certificates; -using System.Threading; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Packaging; using NuGet.Packaging.Signing; diff --git a/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs b/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs index 85a4d0468d5a..bfcf98ad3d84 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/INuGetPackageDownloader.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.Threading.Tasks; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; diff --git a/src/Cli/dotnet/NugetPackageDownloader/NuGetConsoleLogger.cs b/src/Cli/dotnet/NugetPackageDownloader/NuGetConsoleLogger.cs index e7a7ee2f2678..5d9b3724aa6d 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/NuGetConsoleLogger.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/NuGetConsoleLogger.cs @@ -3,7 +3,6 @@ using Microsoft.DotNet.Cli.Utils; using NuGet.Common; -using System.Threading.Tasks; namespace Microsoft.DotNet.Cli.NuGetPackageDownloader { diff --git a/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs b/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs index 7c03ec72c065..b712a33fd776 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.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.InteropServices; -using System.Threading; -using System.Threading.Tasks; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Tools; diff --git a/src/Cli/dotnet/NugetPackageDownloader/PackageSourceLocation.cs b/src/Cli/dotnet/NugetPackageDownloader/PackageSourceLocation.cs index 297be04a9786..388ea6f30fba 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/PackageSourceLocation.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/PackageSourceLocation.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.IO; using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.Cli.NuGetPackageDownloader diff --git a/src/Cli/dotnet/NugetPackageDownloader/ToolPackageException.cs b/src/Cli/dotnet/NugetPackageDownloader/ToolPackageException.cs index d0277c197ff9..b2475bdeefcd 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/ToolPackageException.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/ToolPackageException.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.Cli.NuGetPackageDownloader { internal class NuGetPackageInstallerException : Exception diff --git a/src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.cs b/src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.cs index b30d15f4004f..460212a1c6d6 100644 --- a/src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.cs +++ b/src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.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.ComponentModel; -using System.IO; using System.Xml; using System.Xml.Serialization; diff --git a/src/Cli/dotnet/NugetSearch/AuthorsConverter.cs b/src/Cli/dotnet/NugetSearch/AuthorsConverter.cs index 3a01dd7c1ec0..aea03a8b5e1a 100644 --- a/src/Cli/dotnet/NugetSearch/AuthorsConverter.cs +++ b/src/Cli/dotnet/NugetSearch/AuthorsConverter.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.Linq; using System.Text.Json; using System.Text.Json.Serialization; diff --git a/src/Cli/dotnet/NugetSearch/INugetToolSearchApiRequest.cs b/src/Cli/dotnet/NugetSearch/INugetToolSearchApiRequest.cs index 4337b768b702..2d6896cd480a 100644 --- a/src/Cli/dotnet/NugetSearch/INugetToolSearchApiRequest.cs +++ b/src/Cli/dotnet/NugetSearch/INugetToolSearchApiRequest.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.Threading.Tasks; - namespace Microsoft.DotNet.NugetSearch { internal interface INugetToolSearchApiRequest diff --git a/src/Cli/dotnet/NugetSearch/NugetSearchApiResultDeserializer.cs b/src/Cli/dotnet/NugetSearch/NugetSearchApiResultDeserializer.cs index 8160d7f655c9..471f27f47f05 100644 --- a/src/Cli/dotnet/NugetSearch/NugetSearchApiResultDeserializer.cs +++ b/src/Cli/dotnet/NugetSearch/NugetSearchApiResultDeserializer.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.Linq; using System.Text.Json; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Tools.Tool.Search; diff --git a/src/Cli/dotnet/NugetSearch/NugetToolSearchApiRequest.cs b/src/Cli/dotnet/NugetSearch/NugetToolSearchApiRequest.cs index 65ba8a7925dd..646d37395caa 100644 --- a/src/Cli/dotnet/NugetSearch/NugetToolSearchApiRequest.cs +++ b/src/Cli/dotnet/NugetSearch/NugetToolSearchApiRequest.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.Specialized; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; using System.Web; using NuGet.Protocol; using NuGet.Protocol.Core.Types; diff --git a/src/Cli/dotnet/OptionForwardingExtensions.cs b/src/Cli/dotnet/OptionForwardingExtensions.cs index e37b80c5f520..acdb4f7ac351 100644 --- a/src/Cli/dotnet/OptionForwardingExtensions.cs +++ b/src/Cli/dotnet/OptionForwardingExtensions.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.CommandLine; using System.CommandLine.Parsing; -using System.Linq; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/ParseResultExtensions.cs b/src/Cli/dotnet/ParseResultExtensions.cs index 4b0d381f5028..d7f48e207cf6 100644 --- a/src/Cli/dotnet/ParseResultExtensions.cs +++ b/src/Cli/dotnet/ParseResultExtensions.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.Collections.Generic; using System.CommandLine; using System.CommandLine.Parsing; using System.Diagnostics; -using System.Linq; using System.Text.RegularExpressions; using Microsoft.DotNet.Cli.Utils; using static Microsoft.DotNet.Cli.Parser; diff --git a/src/Cli/dotnet/Parser.cs b/src/Cli/dotnet/Parser.cs index 4177436dad3d..c127009667a8 100644 --- a/src/Cli/dotnet/Parser.cs +++ b/src/Cli/dotnet/Parser.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.CommandLine; using System.CommandLine.Completions; using System.CommandLine.Help; -using System.IO; -using System.Linq; using System.Reflection; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools; diff --git a/src/Cli/dotnet/ParserExtensions.cs b/src/Cli/dotnet/ParserExtensions.cs index 8b6a818401c6..bc174b7e7d60 100644 --- a/src/Cli/dotnet/ParserExtensions.cs +++ b/src/Cli/dotnet/ParserExtensions.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.Linq; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/PerformanceLogEventListener.cs b/src/Cli/dotnet/PerformanceLogEventListener.cs index a831cf5cdd10..775b5981937b 100644 --- a/src/Cli/dotnet/PerformanceLogEventListener.cs +++ b/src/Cli/dotnet/PerformanceLogEventListener.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.Diagnostics.Tracing; -using System.IO; -using System.Text; using Microsoft.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.Cli.Utils diff --git a/src/Cli/dotnet/PerformanceLogEventSource.cs b/src/Cli/dotnet/PerformanceLogEventSource.cs index c4cffa16165e..e3151d916522 100644 --- a/src/Cli/dotnet/PerformanceLogEventSource.cs +++ b/src/Cli/dotnet/PerformanceLogEventSource.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.Diagnostics; using System.Diagnostics.Tracing; -using System.IO; using System.Reflection; -using System.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; using RuntimeEnvironment = Microsoft.DotNet.Cli.Utils.RuntimeEnvironment; diff --git a/src/Cli/dotnet/PerformanceLogManager.cs b/src/Cli/dotnet/PerformanceLogManager.cs index 005f56e5f490..1a562792a142 100644 --- a/src/Cli/dotnet/PerformanceLogManager.cs +++ b/src/Cli/dotnet/PerformanceLogManager.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.Threading.Tasks; using Microsoft.DotNet.Configurer; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/PrintableTable.cs b/src/Cli/dotnet/PrintableTable.cs index c32adc8fe6e9..279654460c6e 100644 --- a/src/Cli/dotnet/PrintableTable.cs +++ b/src/Cli/dotnet/PrintableTable.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.Globalization; -using System.Linq; -using System.Text; using Microsoft.DotNet.Tools; namespace Microsoft.DotNet.Cli diff --git a/src/Cli/dotnet/Program.cs b/src/Cli/dotnet/Program.cs index d8db8354f558..f16bc221e8d4 100644 --- a/src/Cli/dotnet/Program.cs +++ b/src/Cli/dotnet/Program.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.IO; -using System.Collections.Generic; using System.Diagnostics; -using System.Text; using Microsoft.DotNet.Cli.Telemetry; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/ProjectExtensions.cs b/src/Cli/dotnet/ProjectExtensions.cs index 9f7f95efd84b..b5330cfbe244 100644 --- a/src/Cli/dotnet/ProjectExtensions.cs +++ b/src/Cli/dotnet/ProjectExtensions.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Evaluation; using NuGet.Frameworks; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.DotNet.Tools.ProjectExtensions { diff --git a/src/Cli/dotnet/ProjectInstanceExtensions.cs b/src/Cli/dotnet/ProjectInstanceExtensions.cs index a0a721b13c79..29337fa22c35 100644 --- a/src/Cli/dotnet/ProjectInstanceExtensions.cs +++ b/src/Cli/dotnet/ProjectInstanceExtensions.cs @@ -3,9 +3,6 @@ using Microsoft.Build.Execution; using Microsoft.DotNet.Cli.Sln.Internal; -using System; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.DotNet.Tools.Common { diff --git a/src/Cli/dotnet/ProjectRootElementExtensions.cs b/src/Cli/dotnet/ProjectRootElementExtensions.cs index 421c4a2b1bc5..a557c787cf88 100644 --- a/src/Cli/dotnet/ProjectRootElementExtensions.cs +++ b/src/Cli/dotnet/ProjectRootElementExtensions.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.Linq; using Microsoft.Build.Construction; namespace Microsoft.DotNet.Tools.Common diff --git a/src/Cli/dotnet/ReleasePropertyProjectLocator.cs b/src/Cli/dotnet/ReleasePropertyProjectLocator.cs index 25d43fcdefc2..a51f34ebe9f8 100644 --- a/src/Cli/dotnet/ReleasePropertyProjectLocator.cs +++ b/src/Cli/dotnet/ReleasePropertyProjectLocator.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.CommandLine; using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Threading.Tasks; using Microsoft.Build.Execution; using Microsoft.DotNet.Cli.Sln.Internal; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/RuntimeConfig.cs b/src/Cli/dotnet/RuntimeConfig.cs index 4ba28b5e87e0..6721025c7315 100644 --- a/src/Cli/dotnet/RuntimeConfig.cs +++ b/src/Cli/dotnet/RuntimeConfig.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.Text.Json; -using System.IO; namespace Microsoft.DotNet.Tools.Common { diff --git a/src/Cli/dotnet/ShellShim/AppHostShimMaker.cs b/src/Cli/dotnet/ShellShim/AppHostShimMaker.cs index bf6462f8b281..8397d2b6a8f5 100644 --- a/src/Cli/dotnet/ShellShim/AppHostShimMaker.cs +++ b/src/Cli/dotnet/ShellShim/AppHostShimMaker.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.IO; using Microsoft.DotNet.Tools; using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.NET.HostModel; diff --git a/src/Cli/dotnet/ShellShim/EnvironmentPathFactory.cs b/src/Cli/dotnet/ShellShim/EnvironmentPathFactory.cs index 427e4f44e888..b16fd30fb900 100644 --- a/src/Cli/dotnet/ShellShim/EnvironmentPathFactory.cs +++ b/src/Cli/dotnet/ShellShim/EnvironmentPathFactory.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; using Microsoft.DotNet.Configurer; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ShellShim/IShellShimRepository.cs b/src/Cli/dotnet/ShellShim/IShellShimRepository.cs index ccec024ccb14..f31f9a781f18 100644 --- a/src/Cli/dotnet/ShellShim/IShellShimRepository.cs +++ b/src/Cli/dotnet/ShellShim/IShellShimRepository.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.DotNet.Cli.Utils; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ShellShim/LinuxEnvironmentPath.cs b/src/Cli/dotnet/ShellShim/LinuxEnvironmentPath.cs index ca8bad67ee7e..037c90429fd4 100644 --- a/src/Cli/dotnet/ShellShim/LinuxEnvironmentPath.cs +++ b/src/Cli/dotnet/ShellShim/LinuxEnvironmentPath.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.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Tools; diff --git a/src/Cli/dotnet/ShellShim/OsxBashEnvironmentPath.cs b/src/Cli/dotnet/ShellShim/OsxBashEnvironmentPath.cs index 7169dbb4e19e..401c325b52a4 100644 --- a/src/Cli/dotnet/ShellShim/OsxBashEnvironmentPath.cs +++ b/src/Cli/dotnet/ShellShim/OsxBashEnvironmentPath.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.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Tools; diff --git a/src/Cli/dotnet/ShellShim/OsxZshEnvironmentPathInstruction.cs b/src/Cli/dotnet/ShellShim/OsxZshEnvironmentPathInstruction.cs index 7d9cd81c6eed..a7ac8a649a7d 100644 --- a/src/Cli/dotnet/ShellShim/OsxZshEnvironmentPathInstruction.cs +++ b/src/Cli/dotnet/ShellShim/OsxZshEnvironmentPathInstruction.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.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Tools; diff --git a/src/Cli/dotnet/ShellShim/ShellShimException.cs b/src/Cli/dotnet/ShellShim/ShellShimException.cs index a1649d927c1b..36f9330fc8fd 100644 --- a/src/Cli/dotnet/ShellShim/ShellShimException.cs +++ b/src/Cli/dotnet/ShellShim/ShellShimException.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.ShellShim { internal class ShellShimException : Exception diff --git a/src/Cli/dotnet/ShellShim/ShellShimRepository.cs b/src/Cli/dotnet/ShellShim/ShellShimRepository.cs index 2e9d75451e1f..fadd64a4f1a4 100644 --- a/src/Cli/dotnet/ShellShim/ShellShimRepository.cs +++ b/src/Cli/dotnet/ShellShim/ShellShimRepository.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.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools; diff --git a/src/Cli/dotnet/ShellShim/ShellShimTemplateFinder.cs b/src/Cli/dotnet/ShellShim/ShellShimTemplateFinder.cs index 4dac7ee22b3d..a17000004408 100644 --- a/src/Cli/dotnet/ShellShim/ShellShimTemplateFinder.cs +++ b/src/Cli/dotnet/ShellShim/ShellShimTemplateFinder.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.IO; -using System.Linq; -using System.Runtime.InteropServices; -using System.Threading.Tasks; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/ShellShim/WindowsEnvironmentPath.cs b/src/Cli/dotnet/ShellShim/WindowsEnvironmentPath.cs index 8e2e25748205..805a3a4b126b 100644 --- a/src/Cli/dotnet/ShellShim/WindowsEnvironmentPath.cs +++ b/src/Cli/dotnet/ShellShim/WindowsEnvironmentPath.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.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools; diff --git a/src/Cli/dotnet/ShellShim/ZshDetector.cs b/src/Cli/dotnet/ShellShim/ZshDetector.cs index 05046da07620..82e71703cb3f 100644 --- a/src/Cli/dotnet/ShellShim/ZshDetector.cs +++ b/src/Cli/dotnet/ShellShim/ZshDetector.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.IO; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.ShellShim diff --git a/src/Cli/dotnet/SlnFileExtensions.cs b/src/Cli/dotnet/SlnFileExtensions.cs index 4a46eebe258a..985da6f73a95 100644 --- a/src/Cli/dotnet/SlnFileExtensions.cs +++ b/src/Cli/dotnet/SlnFileExtensions.cs @@ -6,10 +6,6 @@ using Microsoft.Build.Execution; using Microsoft.DotNet.Cli.Sln.Internal; using Microsoft.DotNet.Cli.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; namespace Microsoft.DotNet.Tools.Common { diff --git a/src/Cli/dotnet/SlnFileFactory.cs b/src/Cli/dotnet/SlnFileFactory.cs index 0156426fcab3..49a33de4c782 100644 --- a/src/Cli/dotnet/SlnFileFactory.cs +++ b/src/Cli/dotnet/SlnFileFactory.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.IO; -using System.Linq; using Microsoft.DotNet.Cli.Sln.Internal; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/SlnProjectCollectionExtensions.cs b/src/Cli/dotnet/SlnProjectCollectionExtensions.cs index 055681f22ded..f0d70ae4e640 100644 --- a/src/Cli/dotnet/SlnProjectCollectionExtensions.cs +++ b/src/Cli/dotnet/SlnProjectCollectionExtensions.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Cli.Sln.Internal; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.DotNet.Tools.Common { diff --git a/src/Cli/dotnet/SlnProjectExtensions.cs b/src/Cli/dotnet/SlnProjectExtensions.cs index 722d95c2aab1..405c3b43cb88 100644 --- a/src/Cli/dotnet/SlnProjectExtensions.cs +++ b/src/Cli/dotnet/SlnProjectExtensions.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 Microsoft.DotNet.Cli.Sln.Internal; namespace Microsoft.DotNet.Tools.Common diff --git a/src/Cli/dotnet/StatInterop.cs b/src/Cli/dotnet/StatInterop.cs index 67df3c575b0c..b902bb81a70a 100644 --- a/src/Cli/dotnet/StatInterop.cs +++ b/src/Cli/dotnet/StatInterop.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.Runtime.InteropServices; - namespace Microsoft.DotNet.Cli { // https://github.com/dotnet/runtime/blob/main/src/libraries/Common/src/Interop/Unix/System.Native/Interop.Stat.cs diff --git a/src/Cli/dotnet/SudoEnvironmentDirectoryOverride.cs b/src/Cli/dotnet/SudoEnvironmentDirectoryOverride.cs index 78fdd3527c55..f74bbd784b4a 100644 --- a/src/Cli/dotnet/SudoEnvironmentDirectoryOverride.cs +++ b/src/Cli/dotnet/SudoEnvironmentDirectoryOverride.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.CommandLine; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli.Utils; using NuGet.Common; using NuGet.Configuration; diff --git a/src/Cli/dotnet/Telemetry/AllowListToSendFirstAppliedOptions.cs b/src/Cli/dotnet/Telemetry/AllowListToSendFirstAppliedOptions.cs index 009186d9b516..ad67fa4a7c7c 100644 --- a/src/Cli/dotnet/Telemetry/AllowListToSendFirstAppliedOptions.cs +++ b/src/Cli/dotnet/Telemetry/AllowListToSendFirstAppliedOptions.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.Linq; using System.CommandLine; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Telemetry/AllowListToSendFirstArgument.cs b/src/Cli/dotnet/Telemetry/AllowListToSendFirstArgument.cs index 05455efe970d..de082da35866 100644 --- a/src/Cli/dotnet/Telemetry/AllowListToSendFirstArgument.cs +++ b/src/Cli/dotnet/Telemetry/AllowListToSendFirstArgument.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.Linq; using System.CommandLine; using System.CommandLine.Parsing; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Telemetry/AllowListToSendVerbSecondVerbFirstArgument.cs b/src/Cli/dotnet/Telemetry/AllowListToSendVerbSecondVerbFirstArgument.cs index bcce9d222939..bebf4ee42223 100644 --- a/src/Cli/dotnet/Telemetry/AllowListToSendVerbSecondVerbFirstArgument.cs +++ b/src/Cli/dotnet/Telemetry/AllowListToSendVerbSecondVerbFirstArgument.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.Linq; using System.CommandLine; using System.CommandLine.Parsing; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Telemetry/CIEnvironmentDetectorForTelemetry.cs b/src/Cli/dotnet/Telemetry/CIEnvironmentDetectorForTelemetry.cs index d61714bfd76e..4bb1a3613711 100644 --- a/src/Cli/dotnet/Telemetry/CIEnvironmentDetectorForTelemetry.cs +++ b/src/Cli/dotnet/Telemetry/CIEnvironmentDetectorForTelemetry.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.Linq; - namespace Microsoft.DotNet.Cli.Telemetry { internal class CIEnvironmentDetectorForTelemetry : ICIEnvironmentDetector diff --git a/src/Cli/dotnet/Telemetry/DockerContainerDetectorForTelemetry.cs b/src/Cli/dotnet/Telemetry/DockerContainerDetectorForTelemetry.cs index 2e8a1d88e7c7..2985324771dc 100644 --- a/src/Cli/dotnet/Telemetry/DockerContainerDetectorForTelemetry.cs +++ b/src/Cli/dotnet/Telemetry/DockerContainerDetectorForTelemetry.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.IO; using System.Security; using Microsoft.Win32; diff --git a/src/Cli/dotnet/Telemetry/ExternalTelemetryProperties.cs b/src/Cli/dotnet/Telemetry/ExternalTelemetryProperties.cs index 31513a8623bf..eea676c9adb7 100644 --- a/src/Cli/dotnet/Telemetry/ExternalTelemetryProperties.cs +++ b/src/Cli/dotnet/Telemetry/ExternalTelemetryProperties.cs @@ -1,11 +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.Globalization; using System.Security; using Microsoft.Win32; -using System.Runtime.InteropServices; using System.Diagnostics; namespace Microsoft.DotNet.Cli.Telemetry diff --git a/src/Cli/dotnet/Telemetry/IParseResultLogRule.cs b/src/Cli/dotnet/Telemetry/IParseResultLogRule.cs index 6bef405c7aa2..18eacf2be1bb 100644 --- a/src/Cli/dotnet/Telemetry/IParseResultLogRule.cs +++ b/src/Cli/dotnet/Telemetry/IParseResultLogRule.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.CommandLine; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Telemetry/ITelemetry.cs b/src/Cli/dotnet/Telemetry/ITelemetry.cs index 34472b073136..cebec511ad20 100644 --- a/src/Cli/dotnet/Telemetry/ITelemetry.cs +++ b/src/Cli/dotnet/Telemetry/ITelemetry.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; - namespace Microsoft.DotNet.Cli.Telemetry { public interface ITelemetry diff --git a/src/Cli/dotnet/Telemetry/MacAddressGetter.cs b/src/Cli/dotnet/Telemetry/MacAddressGetter.cs index 8d25f02b3a0c..3b2544a88dda 100644 --- a/src/Cli/dotnet/Telemetry/MacAddressGetter.cs +++ b/src/Cli/dotnet/Telemetry/MacAddressGetter.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 System.Diagnostics; -using System.Collections.Generic; 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 598e88001631..0270e2d3c746 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/BaseStorageService.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/BaseStorageService.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.Threading.Tasks; using Microsoft.ApplicationInsights.Channel; namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/FixedSizeQueue.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/FixedSizeQueue.cs index 075861281de4..8dcd0b80f315 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/FixedSizeQueue.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/FixedSizeQueue.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; - namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel { /// diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/FlushManager.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/FlushManager.cs index f6322f650f29..4debf211395c 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/FlushManager.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/FlushManager.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.ApplicationInsights.Channel; using Microsoft.ApplicationInsights.Extensibility.Implementation; using IChannelTelemetry = Microsoft.ApplicationInsights.Channel.ITelemetry; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannel.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannel.cs index 1a05a7700df3..c5c311194eba 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannel.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannel.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; using Microsoft.ApplicationInsights.Channel; using IChannelTelemetry = Microsoft.ApplicationInsights.Channel.ITelemetry; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannelDebugLog.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannelDebugLog.cs index 21691cd01c3c..115c7580a7a2 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannelDebugLog.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceChannelDebugLog.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.Globalization; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceTransmitter.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceTransmitter.cs index ecc10815a25e..3480c4496d71 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceTransmitter.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/PersistenceTransmitter.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.Threading; -using System.Threading.Tasks; - 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 53c24e5be258..1d2de289b81c 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/Sender.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/Sender.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.Net; using System.Net.NetworkInformation; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel { diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingCollection.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingCollection.cs index 94c853f71e40..2dfdfca4b1c2 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingCollection.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingCollection.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; -using System.Collections.Generic; using System.Diagnostics; namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingDictionary.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingDictionary.cs index 471d27388e24..45f3fd1c00ec 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingDictionary.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/SnapshottingDictionary.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; - namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel { internal class SnapshottingDictionary : diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageService.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageService.cs index 038941e9a866..2773c84e7393 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageService.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageService.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.Globalization; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.ApplicationInsights.Channel; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageTransmission.cs b/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageTransmission.cs index 414d2d788740..3bf5d3d2afb3 100644 --- a/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageTransmission.cs +++ b/src/Cli/dotnet/Telemetry/PersistenceChannel/StorageTransmission.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.Globalization; -using System.IO; -using System.Threading.Tasks; using Microsoft.ApplicationInsights.Channel; namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel diff --git a/src/Cli/dotnet/Telemetry/Telemetry.cs b/src/Cli/dotnet/Telemetry/Telemetry.cs index 1bd56420b4ef..962beb53e4dc 100644 --- a/src/Cli/dotnet/Telemetry/Telemetry.cs +++ b/src/Cli/dotnet/Telemetry/Telemetry.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.Diagnostics; -using System.Threading.Tasks; using Microsoft.ApplicationInsights; using Microsoft.ApplicationInsights.Extensibility; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/Telemetry/TelemetryCommonProperties.cs b/src/Cli/dotnet/Telemetry/TelemetryCommonProperties.cs index 67f10afc043c..eed36f6149ad 100644 --- a/src/Cli/dotnet/Telemetry/TelemetryCommonProperties.cs +++ b/src/Cli/dotnet/Telemetry/TelemetryCommonProperties.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.IO; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using RuntimeEnvironment = Microsoft.DotNet.Cli.Utils.RuntimeEnvironment; diff --git a/src/Cli/dotnet/Telemetry/TelemetryFilter.cs b/src/Cli/dotnet/Telemetry/TelemetryFilter.cs index 83a45243bb36..a5105a618e3e 100644 --- a/src/Cli/dotnet/Telemetry/TelemetryFilter.cs +++ b/src/Cli/dotnet/Telemetry/TelemetryFilter.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.Collections.Generic; -using System; -using System.Linq; using System.CommandLine; using Microsoft.DotNet.Cli.Utils; using System.Globalization; diff --git a/src/Cli/dotnet/Telemetry/TopLevelCommandNameAndOptionToLog.cs b/src/Cli/dotnet/Telemetry/TopLevelCommandNameAndOptionToLog.cs index cb1b8f9c30ed..992f07aa325f 100644 --- a/src/Cli/dotnet/Telemetry/TopLevelCommandNameAndOptionToLog.cs +++ b/src/Cli/dotnet/Telemetry/TopLevelCommandNameAndOptionToLog.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.Collections.Generic; using System.CommandLine; using System.CommandLine.Parsing; -using System.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils.Extensions; diff --git a/src/Cli/dotnet/ToolManifest/IToolManifestFinder.cs b/src/Cli/dotnet/ToolManifest/IToolManifestFinder.cs index 88c63a606380..c888d9ed1860 100644 --- a/src/Cli/dotnet/ToolManifest/IToolManifestFinder.cs +++ b/src/Cli/dotnet/ToolManifest/IToolManifestFinder.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.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolManifest/IToolManifestInspector.cs b/src/Cli/dotnet/ToolManifest/IToolManifestInspector.cs index 63a802f1959f..27dd0a15e315 100644 --- a/src/Cli/dotnet/ToolManifest/IToolManifestInspector.cs +++ b/src/Cli/dotnet/ToolManifest/IToolManifestInspector.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.ToolManifest diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestEditor.cs b/src/Cli/dotnet/ToolManifest/ToolManifestEditor.cs index bf2288d6dec4..a0b6034e3ef6 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestEditor.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestEditor.cs @@ -1,16 +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 Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; using System.Text.Json; -using System.Text; using System.Buffers; namespace Microsoft.DotNet.ToolManifest diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestFinder.cs b/src/Cli/dotnet/ToolManifest/ToolManifestFinder.cs index b65828a5f8f7..39b55dca68d2 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestFinder.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestFinder.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 System.Linq; -using System.Runtime.InteropServices; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; diff --git a/src/Cli/dotnet/ToolManifest/ToolManifestPackage.cs b/src/Cli/dotnet/ToolManifest/ToolManifestPackage.cs index be6b65c78c9d..31e4005bc47b 100644 --- a/src/Cli/dotnet/ToolManifest/ToolManifestPackage.cs +++ b/src/Cli/dotnet/ToolManifest/ToolManifestPackage.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.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolPackage/ILocalToolsResolverCache.cs b/src/Cli/dotnet/ToolPackage/ILocalToolsResolverCache.cs index acb89fba7abd..17636561f894 100644 --- a/src/Cli/dotnet/ToolPackage/ILocalToolsResolverCache.cs +++ b/src/Cli/dotnet/ToolPackage/ILocalToolsResolverCache.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; - namespace Microsoft.DotNet.ToolPackage { internal interface ILocalToolsResolverCache diff --git a/src/Cli/dotnet/ToolPackage/IToolPackage.cs b/src/Cli/dotnet/ToolPackage/IToolPackage.cs index bfd868295c96..9aa1df5a0b95 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.Collections.Generic; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Frameworks; using NuGet.Versioning; diff --git a/src/Cli/dotnet/ToolPackage/IToolPackageStoreQuery.cs b/src/Cli/dotnet/ToolPackage/IToolPackageStoreQuery.cs index 3b6a555f1944..edb0558ae65e 100644 --- a/src/Cli/dotnet/ToolPackage/IToolPackageStoreQuery.cs +++ b/src/Cli/dotnet/ToolPackage/IToolPackageStoreQuery.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 NuGet.Versioning; namespace Microsoft.DotNet.ToolPackage diff --git a/src/Cli/dotnet/ToolPackage/LocalToolsResolverCache.cs b/src/Cli/dotnet/ToolPackage/LocalToolsResolverCache.cs index cb3f691d4fa4..1e16e4938419 100644 --- a/src/Cli/dotnet/ToolPackage/LocalToolsResolverCache.cs +++ b/src/Cli/dotnet/ToolPackage/LocalToolsResolverCache.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.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolPackage/LockFileMatchChecker.cs b/src/Cli/dotnet/ToolPackage/LockFileMatchChecker.cs index b5c2b573f5a6..82420e6a433f 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.Linq; using NuGet.ProjectModel; namespace Microsoft.DotNet.ToolPackage diff --git a/src/Cli/dotnet/ToolPackage/PackageId.cs b/src/Cli/dotnet/ToolPackage/PackageId.cs index 50b5fd37addb..ffa778e3ef94 100644 --- a/src/Cli/dotnet/ToolPackage/PackageId.cs +++ b/src/Cli/dotnet/ToolPackage/PackageId.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 Microsoft.DotNet.InternalAbstractions; - namespace Microsoft.DotNet.ToolPackage { internal struct PackageId : IEquatable, IComparable diff --git a/src/Cli/dotnet/ToolPackage/PackageLocation.cs b/src/Cli/dotnet/ToolPackage/PackageLocation.cs index 636b76eca15f..31c59d7f85a9 100644 --- a/src/Cli/dotnet/ToolPackage/PackageLocation.cs +++ b/src/Cli/dotnet/ToolPackage/PackageLocation.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.Extensions.EnvironmentAbstractions; namespace Microsoft.DotNet.ToolPackage diff --git a/src/Cli/dotnet/ToolPackage/ResolverCacheInconsistentException.cs b/src/Cli/dotnet/ToolPackage/ResolverCacheInconsistentException.cs index a446e99024f8..0bb3ac513385 100644 --- a/src/Cli/dotnet/ToolPackage/ResolverCacheInconsistentException.cs +++ b/src/Cli/dotnet/ToolPackage/ResolverCacheInconsistentException.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.ToolPackage { internal class ResolverCacheInconsistentException : Exception diff --git a/src/Cli/dotnet/ToolPackage/RestoredCommand.cs b/src/Cli/dotnet/ToolPackage/RestoredCommand.cs index 771797c48f18..f2607766ff27 100644 --- a/src/Cli/dotnet/ToolPackage/RestoredCommand.cs +++ b/src/Cli/dotnet/ToolPackage/RestoredCommand.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; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifier.cs b/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifier.cs index 678fe1c83d80..d365b2693819 100644 --- a/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifier.cs +++ b/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifier.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.DotNet.Cli.Utils; using NuGet.Frameworks; using NuGet.Versioning; diff --git a/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifierVersionRange.cs b/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifierVersionRange.cs index 587858e21489..e0b25f861a32 100644 --- a/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifierVersionRange.cs +++ b/src/Cli/dotnet/ToolPackage/RestoredCommandIdentifierVersionRange.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; using NuGet.Frameworks; using NuGet.Versioning; diff --git a/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs b/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs index eb33a92b81d8..bc1db43d38d8 100644 --- a/src/Cli/dotnet/ToolPackage/ToolConfiguration.cs +++ b/src/Cli/dotnet/ToolPackage/ToolConfiguration.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.Linq; using Microsoft.DotNet.Tools; namespace Microsoft.DotNet.ToolPackage diff --git a/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserialization/DotNetCliToolCommand.cs b/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserialization/DotNetCliToolCommand.cs index c720bd3a956e..5fba7dd04777 100644 --- a/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserialization/DotNetCliToolCommand.cs +++ b/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserialization/DotNetCliToolCommand.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.Diagnostics; using System.Xml.Serialization; diff --git a/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserializer.cs b/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserializer.cs index f54d7e1c8ee2..6f6b0274a4ac 100644 --- a/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserializer.cs +++ b/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserializer.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.IO; using System.Xml; using System.Xml.Serialization; using Microsoft.DotNet.ToolPackage.ToolConfigurationDeserialization; diff --git a/src/Cli/dotnet/ToolPackage/ToolConfigurationException.cs b/src/Cli/dotnet/ToolPackage/ToolConfigurationException.cs index f8f302a92dfb..9d9eab72f89b 100644 --- a/src/Cli/dotnet/ToolPackage/ToolConfigurationException.cs +++ b/src/Cli/dotnet/ToolPackage/ToolConfigurationException.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.ToolPackage { internal class ToolConfigurationException : Exception diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageException.cs b/src/Cli/dotnet/ToolPackage/ToolPackageException.cs index d25123a6c251..5617dbc72f20 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageException.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageException.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.ToolPackage { internal class ToolPackageException : Exception diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageFactory.cs b/src/Cli/dotnet/ToolPackage/ToolPackageFactory.cs index d4e7c5b04571..39ae857a27f8 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageFactory.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageFactory.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.DotNet.Configurer; using Microsoft.DotNet.Tools.Tool.Install; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageInstaller.cs b/src/Cli/dotnet/ToolPackage/ToolPackageInstaller.cs index e049949cb237..548f5adcb6de 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageInstaller.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageInstaller.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 System.Linq; -using System.Xml.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageInstance.cs b/src/Cli/dotnet/ToolPackage/ToolPackageInstance.cs index e4dd96889930..639fc35776f4 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageInstance.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageInstance.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.IO; -using System.Linq; -using System.Collections.Generic; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Tools; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageStoreAndQuery.cs b/src/Cli/dotnet/ToolPackage/ToolPackageStoreAndQuery.cs index ccfff0bd6fc8..64743bf94eb4 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageStoreAndQuery.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageStoreAndQuery.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.Linq; using Microsoft.DotNet.Tools; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; diff --git a/src/Cli/dotnet/ToolPackage/ToolPackageUninstaller.cs b/src/Cli/dotnet/ToolPackage/ToolPackageUninstaller.cs index 16fa6bd5b775..d3843f34f5ca 100644 --- a/src/Cli/dotnet/ToolPackage/ToolPackageUninstaller.cs +++ b/src/Cli/dotnet/ToolPackage/ToolPackageUninstaller.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.IO; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; diff --git a/src/Cli/dotnet/TransactionalAction.cs b/src/Cli/dotnet/TransactionalAction.cs index 3927fcb2f9de..2402ff6108ad 100644 --- a/src/Cli/dotnet/TransactionalAction.cs +++ b/src/Cli/dotnet/TransactionalAction.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.Reflection; using System.Transactions; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/InstallingWorkloadCommand.cs b/src/Cli/dotnet/commands/InstallingWorkloadCommand.cs index 34ba9c37882a..3e44077fd323 100644 --- a/src/Cli/dotnet/commands/InstallingWorkloadCommand.cs +++ b/src/Cli/dotnet/commands/InstallingWorkloadCommand.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.CommandLine; -using System.IO; -using System.Linq; -using System.Threading.Tasks; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/RestoringCommand.cs b/src/Cli/dotnet/commands/RestoringCommand.cs index a155126041e9..32b1d0cb65e7 100644 --- a/src/Cli/dotnet/commands/RestoringCommand.cs +++ b/src/Cli/dotnet/commands/RestoringCommand.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.Linq; -using System.Threading.Tasks; using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Tools.MSBuild; using Microsoft.DotNet.Tools.Restore; diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-package/AddPackageParser.cs b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-package/AddPackageParser.cs index 1a8ca7c6a659..97d1d7364e16 100644 --- a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-package/AddPackageParser.cs +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-package/AddPackageParser.cs @@ -1,15 +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.CommandLine; using System.CommandLine.Completions; -using System.IO; -using System.Linq; -using System.Net.Http; using System.Text.Json; -using System.Threading; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Add.PackageReference; using LocalizableStrings = Microsoft.DotNet.Tools.Add.PackageReference.LocalizableStrings; diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-package/Program.cs b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-package/Program.cs index 9f527e776963..8bc7eb595467 100644 --- a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-package/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-package/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.Collections.Generic; using System.CommandLine; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.MSBuild; diff --git a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-reference/AddProjectToProjectReferenceParser.cs b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-reference/AddProjectToProjectReferenceParser.cs index ecfb73ac018e..e0bbc2951ef1 100644 --- a/src/Cli/dotnet/commands/dotnet-add/dotnet-add-reference/AddProjectToProjectReferenceParser.cs +++ b/src/Cli/dotnet/commands/dotnet-add/dotnet-add-reference/AddProjectToProjectReferenceParser.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.CommandLine; using Microsoft.DotNet.Tools.Add.ProjectToProjectReference; using LocalizableStrings = Microsoft.DotNet.Tools.Add.ProjectToProjectReference.LocalizableStrings; 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 5a03f933adb1..1ed7d3bf0f42 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,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.CommandLine; -using System.IO; -using System.Linq; -using System.Text; using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-build/BuildCommand.cs b/src/Cli/dotnet/commands/dotnet-build/BuildCommand.cs index 196107ef8cd5..3eb6fc31616d 100644 --- a/src/Cli/dotnet/commands/dotnet-build/BuildCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-build/BuildCommand.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.CommandLine; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-build/BuildCommandParser.cs b/src/Cli/dotnet/commands/dotnet-build/BuildCommandParser.cs index a814e64a5cd2..ea72e7d0bd61 100644 --- a/src/Cli/dotnet/commands/dotnet-build/BuildCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-build/BuildCommandParser.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.CommandLine; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Build; diff --git a/src/Cli/dotnet/commands/dotnet-buildserver/shutdown/BuildServerShutdownCommand.cs b/src/Cli/dotnet/commands/dotnet-buildserver/shutdown/BuildServerShutdownCommand.cs index 3d200542cb29..046abc644608 100644 --- a/src/Cli/dotnet/commands/dotnet-buildserver/shutdown/BuildServerShutdownCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-buildserver/shutdown/BuildServerShutdownCommand.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.CommandLine; -using System.Linq; -using System.Threading.Tasks; using Microsoft.DotNet.BuildServer; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-clean/CleanCommandParser.cs b/src/Cli/dotnet/commands/dotnet-clean/CleanCommandParser.cs index 18d2bf76c3ac..b77d7e3b4b79 100644 --- a/src/Cli/dotnet/commands/dotnet-clean/CleanCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-clean/CleanCommandParser.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.CommandLine; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Clean; diff --git a/src/Cli/dotnet/commands/dotnet-clean/Program.cs b/src/Cli/dotnet/commands/dotnet-clean/Program.cs index 11340f1ddbff..ff65a9bca101 100644 --- a/src/Cli/dotnet/commands/dotnet-clean/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-clean/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.Collections.Generic; using Microsoft.DotNet.Tools.MSBuild; using Microsoft.DotNet.Cli; -using System; using System.CommandLine; namespace Microsoft.DotNet.Tools.Clean diff --git a/src/Cli/dotnet/commands/dotnet-complete/Complete.cs b/src/Cli/dotnet/commands/dotnet-complete/Complete.cs index d60b952656ab..0ea2adc82815 100644 --- a/src/Cli/dotnet/commands/dotnet-complete/Complete.cs +++ b/src/Cli/dotnet/commands/dotnet-complete/Complete.cs @@ -1,15 +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.CommandLine.Completions; -using System.IO; -using System.Linq; using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools; using static System.Array; -using System.Collections.Generic; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/commands/dotnet-complete/CompleteCommand.cs b/src/Cli/dotnet/commands/dotnet-complete/CompleteCommand.cs index db9cbf440455..d581a2984f1d 100644 --- a/src/Cli/dotnet/commands/dotnet-complete/CompleteCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-complete/CompleteCommand.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.CommandLine.Completions; using System.CommandLine; -using System.Linq; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli diff --git a/src/Cli/dotnet/commands/dotnet-complete/ParseCommand.cs b/src/Cli/dotnet/commands/dotnet-complete/ParseCommand.cs index 806360f13718..5d9e2961cd46 100644 --- a/src/Cli/dotnet/commands/dotnet-complete/ParseCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-complete/ParseCommand.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.Linq; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/commands/dotnet-format/DotnetFormatForwardingApp.cs b/src/Cli/dotnet/commands/dotnet-format/DotnetFormatForwardingApp.cs index 9a3941b6c010..a94537c63cef 100644 --- a/src/Cli/dotnet/commands/dotnet-format/DotnetFormatForwardingApp.cs +++ b/src/Cli/dotnet/commands/dotnet-format/DotnetFormatForwardingApp.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.IO; using Microsoft.DotNet.Cli; namespace Microsoft.DotNet.Tools.Format diff --git a/src/Cli/dotnet/commands/dotnet-format/FormatCommand.cs b/src/Cli/dotnet/commands/dotnet-format/FormatCommand.cs index 36c40ef62d80..554b31c34a62 100644 --- a/src/Cli/dotnet/commands/dotnet-format/FormatCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-format/FormatCommand.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.DotNet.Cli; using System.CommandLine; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-fsi/FsiForwardingApp.cs b/src/Cli/dotnet/commands/dotnet-fsi/FsiForwardingApp.cs index 816395fed6a0..e2a94bbe616f 100644 --- a/src/Cli/dotnet/commands/dotnet-fsi/FsiForwardingApp.cs +++ b/src/Cli/dotnet/commands/dotnet-fsi/FsiForwardingApp.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.IO; - namespace Microsoft.DotNet.Cli { public class FsiForwardingApp : ForwardingApp diff --git a/src/Cli/dotnet/commands/dotnet-help/HelpCommand.cs b/src/Cli/dotnet/commands/dotnet-help/HelpCommand.cs index 0ed1dfb9676b..82eda300ad15 100644 --- a/src/Cli/dotnet/commands/dotnet-help/HelpCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-help/HelpCommand.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.CommandLine; using System.Diagnostics; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-internal-reportinstallsuccess/InternalReportinstallsuccessCommand.cs b/src/Cli/dotnet/commands/dotnet-internal-reportinstallsuccess/InternalReportinstallsuccessCommand.cs index 36c4337fe047..2f46c63e6bbc 100644 --- a/src/Cli/dotnet/commands/dotnet-internal-reportinstallsuccess/InternalReportinstallsuccessCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-internal-reportinstallsuccess/InternalReportinstallsuccessCommand.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.IO; -using System.Collections.Generic; using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Cli.Telemetry; using System.CommandLine; 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 f259d7008163..d8a8a88f6129 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 @@ -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.CommandLine; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.NuGet; diff --git a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs index c44d615dca61..59c5c62463b5 100644 --- a/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-list/dotnet-list-package/ListPackageReferencesCommandParser.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.CommandLine; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.List.PackageReferences; 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 2a3d092aaaf7..ab1ac66e72f3 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 @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.Linq; using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs b/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs index 2a9d7508b57d..23b0296bc434 100644 --- a/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs +++ b/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.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.Linq; using System.Reflection; using Microsoft.DotNet.Cli; using System.Diagnostics; diff --git a/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildLogger.cs b/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildLogger.cs index 3372aaf69b82..c62a968424ed 100644 --- a/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildLogger.cs +++ b/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildLogger.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 Microsoft.Build.Framework; using Microsoft.DotNet.Cli.Telemetry; using Microsoft.DotNet.Configurer; -using System.Collections.Generic; using System.Globalization; -using System.Linq; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Tools.MSBuild diff --git a/src/Cli/dotnet/commands/dotnet-msbuild/Program.cs b/src/Cli/dotnet/commands/dotnet-msbuild/Program.cs index 8f525af91713..7fb86fe63d69 100644 --- a/src/Cli/dotnet/commands/dotnet-msbuild/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-msbuild/Program.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.CommandLine; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-new/BuiltInTemplatePackageProvider.cs b/src/Cli/dotnet/commands/dotnet-new/BuiltInTemplatePackageProvider.cs index 7be234d77112..625bc56346be 100644 --- a/src/Cli/dotnet/commands/dotnet-new/BuiltInTemplatePackageProvider.cs +++ b/src/Cli/dotnet/commands/dotnet-new/BuiltInTemplatePackageProvider.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.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.TemplatePackage; using NuGet.Versioning; diff --git a/src/Cli/dotnet/commands/dotnet-new/BuiltInTemplatePackageProviderFactory.cs b/src/Cli/dotnet/commands/dotnet-new/BuiltInTemplatePackageProviderFactory.cs index 6ec6e28f4fc4..2a51620c4b2a 100644 --- a/src/Cli/dotnet/commands/dotnet-new/BuiltInTemplatePackageProviderFactory.cs +++ b/src/Cli/dotnet/commands/dotnet-new/BuiltInTemplatePackageProviderFactory.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.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.TemplatePackage; diff --git a/src/Cli/dotnet/commands/dotnet-new/DotnetCommandCallbacks.cs b/src/Cli/dotnet/commands/dotnet-new/DotnetCommandCallbacks.cs index 27b932f75b02..fb91f8263e96 100644 --- a/src/Cli/dotnet/commands/dotnet-new/DotnetCommandCallbacks.cs +++ b/src/Cli/dotnet/commands/dotnet-new/DotnetCommandCallbacks.cs @@ -4,8 +4,6 @@ #nullable enable using Microsoft.DotNet.Tools.Add.PackageReference; -using System.Collections.Generic; -using System.Linq; using Microsoft.DotNet.Tools.Common; using Microsoft.DotNet.Tools.Add.ProjectToProjectReference; using Microsoft.DotNet.Tools.Restore; diff --git a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/CapabilityExpressionEvaluator.cs b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/CapabilityExpressionEvaluator.cs index 583e65dfaebb..2c52c73634dd 100644 --- a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/CapabilityExpressionEvaluator.cs +++ b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/CapabilityExpressionEvaluator.cs @@ -3,9 +3,6 @@ #nullable enable -using System; -using System.Collections.Generic; -using System.Linq; using LocalizableStrings = Microsoft.DotNet.Tools.New.LocalizableStrings; namespace Microsoft.TemplateEngine.MSBuildEvaluation diff --git a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MSBuildEvaluationResult.cs b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MSBuildEvaluationResult.cs index edc1f21569e5..8e1eebdd0afe 100644 --- a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MSBuildEvaluationResult.cs +++ b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MSBuildEvaluationResult.cs @@ -3,7 +3,6 @@ #nullable enable -using System.IO; using Microsoft.Build.Evaluation; 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 4de6e29c5799..77b378269af4 100644 --- a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MSBuildEvaluator.cs +++ b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MSBuildEvaluator.cs @@ -3,11 +3,7 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.IO; -using System.Linq; using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.Logging; diff --git a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MultiTargetEvaluationResult.cs b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MultiTargetEvaluationResult.cs index 68c63e17f98b..9079b1691aa2 100644 --- a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MultiTargetEvaluationResult.cs +++ b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MultiTargetEvaluationResult.cs @@ -3,7 +3,6 @@ #nullable enable -using System.Collections.Generic; using Microsoft.Build.Evaluation; namespace Microsoft.TemplateEngine.MSBuildEvaluation diff --git a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MultipleProjectsEvaluationResult.cs b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MultipleProjectsEvaluationResult.cs index 2e99c9b6f67b..80433161908b 100644 --- a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MultipleProjectsEvaluationResult.cs +++ b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/MultipleProjectsEvaluationResult.cs @@ -3,8 +3,6 @@ #nullable enable -using System; -using System.Collections.Generic; using LocalizableStrings = Microsoft.DotNet.Tools.New.LocalizableStrings; namespace Microsoft.TemplateEngine.MSBuildEvaluation diff --git a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/ProjectCapabilityConstraint.cs b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/ProjectCapabilityConstraint.cs index ad2fdabba5d9..541f6fea756d 100644 --- a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/ProjectCapabilityConstraint.cs +++ b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/ProjectCapabilityConstraint.cs @@ -3,11 +3,6 @@ #nullable enable -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Build.Evaluation; using Microsoft.Extensions.Logging; using Microsoft.TemplateEngine.Abstractions; diff --git a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/ProjectContextSymbolSource.cs b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/ProjectContextSymbolSource.cs index 46d5ed0f9d97..7a077d2555ec 100644 --- a/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/ProjectContextSymbolSource.cs +++ b/src/Cli/dotnet/commands/dotnet-new/MSBuildEvaluation/ProjectContextSymbolSource.cs @@ -3,10 +3,6 @@ #nullable enable -using System; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Build.Evaluation; using Microsoft.Extensions.Logging; using Microsoft.TemplateEngine.Abstractions; diff --git a/src/Cli/dotnet/commands/dotnet-new/NewCommandParser.cs b/src/Cli/dotnet/commands/dotnet-new/NewCommandParser.cs index 693c5f6aad47..8b7899c9ddfb 100644 --- a/src/Cli/dotnet/commands/dotnet-new/NewCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-new/NewCommandParser.cs @@ -3,8 +3,6 @@ #nullable enable -using System; -using System.Collections.Generic; using System.CommandLine; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.New; @@ -16,14 +14,12 @@ using LocalizableStrings = Microsoft.DotNet.Tools.New.LocalizableStrings; using Microsoft.TemplateEngine.MSBuildEvaluation; using Microsoft.TemplateEngine.Abstractions.Constraints; -using System.IO; using Microsoft.TemplateEngine.Cli.PostActionProcessors; using Microsoft.DotNet.Tools.New.PostActionProcessors; using Microsoft.TemplateEngine.Cli.Commands; using Microsoft.Extensions.Logging; using Microsoft.DotNet.Tools; using System.CommandLine.Parsing; -using System.Linq; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/commands/dotnet-new/OptionalWorkloadProvider.cs b/src/Cli/dotnet/commands/dotnet-new/OptionalWorkloadProvider.cs index cab0a79447c8..c3dad251a174 100644 --- a/src/Cli/dotnet/commands/dotnet-new/OptionalWorkloadProvider.cs +++ b/src/Cli/dotnet/commands/dotnet-new/OptionalWorkloadProvider.cs @@ -5,11 +5,6 @@ using Microsoft.DotNet.Configurer; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.TemplatePackage; -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.DotNet.Tools.New { diff --git a/src/Cli/dotnet/commands/dotnet-new/OptionalWorkloadProviderFactory.cs b/src/Cli/dotnet/commands/dotnet-new/OptionalWorkloadProviderFactory.cs index 57ea2bb7a754..905f250fc6f2 100644 --- a/src/Cli/dotnet/commands/dotnet-new/OptionalWorkloadProviderFactory.cs +++ b/src/Cli/dotnet/commands/dotnet-new/OptionalWorkloadProviderFactory.cs @@ -3,7 +3,6 @@ using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.TemplatePackage; -using System; namespace Microsoft.DotNet.Tools.New { diff --git a/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetAddPostActionProcessor.cs b/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetAddPostActionProcessor.cs index 4e49931697f1..3f128d4c06d1 100644 --- a/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetAddPostActionProcessor.cs +++ b/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetAddPostActionProcessor.cs @@ -3,10 +3,6 @@ #nullable enable -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.PhysicalFileSystem; diff --git a/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetRestorePostActionProcessor.cs b/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetRestorePostActionProcessor.cs index 4e4958a5c5d2..9d1122dad14e 100644 --- a/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetRestorePostActionProcessor.cs +++ b/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetRestorePostActionProcessor.cs @@ -3,10 +3,6 @@ #nullable enable -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Cli.PostActionProcessors; diff --git a/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetSlnPostActionProcessor.cs b/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetSlnPostActionProcessor.cs index 0dd4ded92257..0418cd674640 100644 --- a/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetSlnPostActionProcessor.cs +++ b/src/Cli/dotnet/commands/dotnet-new/PostActions/DotnetSlnPostActionProcessor.cs @@ -3,11 +3,7 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Abstractions.PhysicalFileSystem; diff --git a/src/Cli/dotnet/commands/dotnet-new/SdkInfoProvider.cs b/src/Cli/dotnet/commands/dotnet-new/SdkInfoProvider.cs index 81412ba0c7b1..455fd78a96ab 100644 --- a/src/Cli/dotnet/commands/dotnet-new/SdkInfoProvider.cs +++ b/src/Cli/dotnet/commands/dotnet-new/SdkInfoProvider.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.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; 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 f8486067f762..daccc8ed1e29 100644 --- a/src/Cli/dotnet/commands/dotnet-new/WorkloadsInfoProvider.cs +++ b/src/Cli/dotnet/commands/dotnet-new/WorkloadsInfoProvider.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.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.DotNet.Workloads.Workload.List; using Microsoft.TemplateEngine.Abstractions.Components; diff --git a/src/Cli/dotnet/commands/dotnet-nuget/NuGetCommandParser.cs b/src/Cli/dotnet/commands/dotnet-nuget/NuGetCommandParser.cs index 6bea9f43ea7e..5ec8687ce005 100644 --- a/src/Cli/dotnet/commands/dotnet-nuget/NuGetCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-nuget/NuGetCommandParser.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.CommandLine; using Microsoft.DotNet.Tools.NuGet; diff --git a/src/Cli/dotnet/commands/dotnet-nuget/Program.cs b/src/Cli/dotnet/commands/dotnet-nuget/Program.cs index ca980768cff0..6b42ae738b12 100644 --- a/src/Cli/dotnet/commands/dotnet-nuget/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-nuget/Program.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.CommandLine; 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 13fcb8d0f97d..5dd30e8f32b7 100644 --- a/src/Cli/dotnet/commands/dotnet-pack/PackCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-pack/PackCommand.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.Collections.Generic; using Microsoft.DotNet.Cli; using Parser = Microsoft.DotNet.Cli.Parser; -using System; using System.CommandLine; namespace Microsoft.DotNet.Tools.Pack diff --git a/src/Cli/dotnet/commands/dotnet-pack/PackCommandParser.cs b/src/Cli/dotnet/commands/dotnet-pack/PackCommandParser.cs index b7ebc0e44f08..15eadae8ebc1 100644 --- a/src/Cli/dotnet/commands/dotnet-pack/PackCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-pack/PackCommandParser.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.CommandLine; using Microsoft.DotNet.Tools; using 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 a27d8d8afc29..f74b0890b277 100644 --- a/src/Cli/dotnet/commands/dotnet-publish/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-publish/Program.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.CommandLine; using Microsoft.DotNet.Cli; using Parser = Microsoft.DotNet.Cli.Parser; diff --git a/src/Cli/dotnet/commands/dotnet-publish/PublishCommandParser.cs b/src/Cli/dotnet/commands/dotnet-publish/PublishCommandParser.cs index 2f78d2a44b61..ec9eb92c5ec2 100644 --- a/src/Cli/dotnet/commands/dotnet-publish/PublishCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-publish/PublishCommandParser.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.Collections.Generic; using System.CommandLine; -using System.Linq; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Publish; using LocalizableStrings = Microsoft.DotNet.Tools.Publish.LocalizableStrings; 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 ced61bdd6639..757b6ed88df5 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 @@ -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.CommandLine; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.NuGet; diff --git a/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-package/RemovePackageParser.cs b/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-package/RemovePackageParser.cs index 6962190037a7..58e5278d4edc 100644 --- a/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-package/RemovePackageParser.cs +++ b/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-package/RemovePackageParser.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.CommandLine; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Remove.PackageReference; 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 804fe1944147..b5294be3d604 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 @@ -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.Collections.Generic; using System.CommandLine; -using System.IO; -using System.Linq; using Microsoft.Build.Evaluation; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-reference/RemoveProjectToProjectReferenceParser.cs b/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-reference/RemoveProjectToProjectReferenceParser.cs index 00596503f54d..9a19eaf88a2f 100644 --- a/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-reference/RemoveProjectToProjectReferenceParser.cs +++ b/src/Cli/dotnet/commands/dotnet-remove/dotnet-remove-reference/RemoveProjectToProjectReferenceParser.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.CommandLine; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Remove.ProjectToProjectReference; diff --git a/src/Cli/dotnet/commands/dotnet-restore-projectjson/NuGet3.cs b/src/Cli/dotnet/commands/dotnet-restore-projectjson/NuGet3.cs index d63368935daa..20cc62756962 100644 --- a/src/Cli/dotnet/commands/dotnet-restore-projectjson/NuGet3.cs +++ b/src/Cli/dotnet/commands/dotnet-restore-projectjson/NuGet3.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.Linq; - namespace Microsoft.DotNet.Tools.RestoreProjectJson { internal static class NuGet3 diff --git a/src/Cli/dotnet/commands/dotnet-restore/Program.cs b/src/Cli/dotnet/commands/dotnet-restore/Program.cs index c2841470fde2..774a2b1b1e63 100644 --- a/src/Cli/dotnet/commands/dotnet-restore/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-restore/Program.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.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.MSBuild; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-restore/RestoreCommandParser.cs b/src/Cli/dotnet/commands/dotnet-restore/RestoreCommandParser.cs index 0b5a5a309a0c..0d08befe5c19 100644 --- a/src/Cli/dotnet/commands/dotnet-restore/RestoreCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-restore/RestoreCommandParser.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.Collections.Generic; using System.CommandLine; -using System.Linq; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Restore; using LocalizableStrings = Microsoft.DotNet.Tools.Restore.LocalizableStrings; diff --git a/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/LaunchSettingsManager.cs b/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/LaunchSettingsManager.cs index afd8ea5f98f2..f9664d67d3ea 100644 --- a/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/LaunchSettingsManager.cs +++ b/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/LaunchSettingsManager.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.Linq; using System.Text.Json; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/ProjectLaunchSettingsModel.cs b/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/ProjectLaunchSettingsModel.cs index 0f3586c20205..79e98dc3300e 100644 --- a/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/ProjectLaunchSettingsModel.cs +++ b/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/ProjectLaunchSettingsModel.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.Tools.Run.LaunchSettings { public class ProjectLaunchSettingsModel diff --git a/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/ProjectLaunchSettingsProvider.cs b/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/ProjectLaunchSettingsProvider.cs index b7ab00ac2c3f..bdaba5832abb 100644 --- a/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/ProjectLaunchSettingsProvider.cs +++ b/src/Cli/dotnet/commands/dotnet-run/LaunchSettings/ProjectLaunchSettingsProvider.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.Tools.Run.LaunchSettings diff --git a/src/Cli/dotnet/commands/dotnet-run/Program.cs b/src/Cli/dotnet/commands/dotnet-run/Program.cs index 57550b24dec4..8b0e87558d34 100644 --- a/src/Cli/dotnet/commands/dotnet-run/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-run/Program.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.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli; using Parser = Microsoft.DotNet.Cli.Parser; diff --git a/src/Cli/dotnet/commands/dotnet-run/RunCommand.cs b/src/Cli/dotnet/commands/dotnet-run/RunCommand.cs index be50616997f8..f9a66bf2306a 100644 --- a/src/Cli/dotnet/commands/dotnet-run/RunCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-run/RunCommand.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.Linq; using Microsoft.Build.Execution; using Microsoft.Build.Exceptions; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-run/RunCommandParser.cs b/src/Cli/dotnet/commands/dotnet-run/RunCommandParser.cs index 19fc4171ff65..d1ae11ed5aee 100644 --- a/src/Cli/dotnet/commands/dotnet-run/RunCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-run/RunCommandParser.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.CommandLine; -using System.Linq; using Microsoft.DotNet.Tools.Run; using LocalizableStrings = Microsoft.DotNet.Tools.Run.LocalizableStrings; diff --git a/src/Cli/dotnet/commands/dotnet-sdk/check/BundleOutputWriter.cs b/src/Cli/dotnet/commands/dotnet-sdk/check/BundleOutputWriter.cs index 6f796c61533e..a31777420abc 100644 --- a/src/Cli/dotnet/commands/dotnet-sdk/check/BundleOutputWriter.cs +++ b/src/Cli/dotnet/commands/dotnet-sdk/check/BundleOutputWriter.cs @@ -5,7 +5,6 @@ using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.NativeWrapper; -using System.Linq; namespace Microsoft.DotNet.Tools.Sdk.Check { diff --git a/src/Cli/dotnet/commands/dotnet-sdk/check/IProductCollectionProvider.cs b/src/Cli/dotnet/commands/dotnet-sdk/check/IProductCollectionProvider.cs index 52de91f995e5..be6ae0b8c026 100644 --- a/src/Cli/dotnet/commands/dotnet-sdk/check/IProductCollectionProvider.cs +++ b/src/Cli/dotnet/commands/dotnet-sdk/check/IProductCollectionProvider.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.Deployment.DotNet.Releases; namespace Microsoft.DotNet.Tools.Sdk.Check diff --git a/src/Cli/dotnet/commands/dotnet-sdk/check/ProductCollectionProvider.cs b/src/Cli/dotnet/commands/dotnet-sdk/check/ProductCollectionProvider.cs index cb2eb1584a4c..117b6db8e2aa 100644 --- a/src/Cli/dotnet/commands/dotnet-sdk/check/ProductCollectionProvider.cs +++ b/src/Cli/dotnet/commands/dotnet-sdk/check/ProductCollectionProvider.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.Threading.Tasks; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-sdk/check/Program.cs b/src/Cli/dotnet/commands/dotnet-sdk/check/Program.cs index 0c7ebb9549fc..cb98035d113a 100644 --- a/src/Cli/dotnet/commands/dotnet-sdk/check/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-sdk/check/Program.cs @@ -4,9 +4,7 @@ using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.NativeWrapper; -using System; using System.CommandLine; -using System.IO; using System.Text.Json; using EnvironmentProvider = Microsoft.DotNet.NativeWrapper.EnvironmentProvider; diff --git a/src/Cli/dotnet/commands/dotnet-sdk/check/RuntimeOutputWriter.cs b/src/Cli/dotnet/commands/dotnet-sdk/check/RuntimeOutputWriter.cs index 0cb4548a617b..f88992c2f89e 100644 --- a/src/Cli/dotnet/commands/dotnet-sdk/check/RuntimeOutputWriter.cs +++ b/src/Cli/dotnet/commands/dotnet-sdk/check/RuntimeOutputWriter.cs @@ -6,9 +6,6 @@ using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.NativeWrapper; -using System; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.DotNet.Tools.Sdk.Check { diff --git a/src/Cli/dotnet/commands/dotnet-sdk/check/SdkOutputWriter.cs b/src/Cli/dotnet/commands/dotnet-sdk/check/SdkOutputWriter.cs index eb7d25dace92..7be86596117c 100644 --- a/src/Cli/dotnet/commands/dotnet-sdk/check/SdkOutputWriter.cs +++ b/src/Cli/dotnet/commands/dotnet-sdk/check/SdkOutputWriter.cs @@ -5,8 +5,6 @@ using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.NativeWrapper; -using System.Collections.Generic; -using System.Linq; using Microsoft.DotNet.Cli; namespace Microsoft.DotNet.Tools.Sdk.Check diff --git a/src/Cli/dotnet/commands/dotnet-sln/SlnArgumentValidator.cs b/src/Cli/dotnet/commands/dotnet-sln/SlnArgumentValidator.cs index 8c9de45e7f5f..aef2ee8c9096 100644 --- a/src/Cli/dotnet/commands/dotnet-sln/SlnArgumentValidator.cs +++ b/src/Cli/dotnet/commands/dotnet-sln/SlnArgumentValidator.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.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-sln/add/Program.cs b/src/Cli/dotnet/commands/dotnet-sln/add/Program.cs index c7fbef64d3b5..ded4c5fc3968 100644 --- a/src/Cli/dotnet/commands/dotnet-sln/add/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-sln/add/Program.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.CommandLine; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Sln.Internal; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-sln/add/SlnAddParser.cs b/src/Cli/dotnet/commands/dotnet-sln/add/SlnAddParser.cs index 67db8c99f4b4..2965bfc23800 100644 --- a/src/Cli/dotnet/commands/dotnet-sln/add/SlnAddParser.cs +++ b/src/Cli/dotnet/commands/dotnet-sln/add/SlnAddParser.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.CommandLine; using Microsoft.DotNet.Tools.Sln.Add; using LocalizableStrings = Microsoft.DotNet.Tools.Sln.LocalizableStrings; diff --git a/src/Cli/dotnet/commands/dotnet-sln/list/Program.cs b/src/Cli/dotnet/commands/dotnet-sln/list/Program.cs index c62a31b703bf..a46642c421b4 100644 --- a/src/Cli/dotnet/commands/dotnet-sln/list/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-sln/list/Program.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.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Sln.Internal; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-sln/remove/Program.cs b/src/Cli/dotnet/commands/dotnet-sln/remove/Program.cs index d2c94a38f1dd..f6e910dff2ca 100644 --- a/src/Cli/dotnet/commands/dotnet-sln/remove/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-sln/remove/Program.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.CommandLine; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Sln.Internal; using Microsoft.DotNet.Tools.Common; diff --git a/src/Cli/dotnet/commands/dotnet-sln/remove/SlnRemoveParser.cs b/src/Cli/dotnet/commands/dotnet-sln/remove/SlnRemoveParser.cs index 36d91be31c56..748f118e40f8 100644 --- a/src/Cli/dotnet/commands/dotnet-sln/remove/SlnRemoveParser.cs +++ b/src/Cli/dotnet/commands/dotnet-sln/remove/SlnRemoveParser.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.CommandLine; using Microsoft.DotNet.Tools.Sln.Remove; using LocalizableStrings = Microsoft.DotNet.Tools.Sln.LocalizableStrings; diff --git a/src/Cli/dotnet/commands/dotnet-store/Program.cs b/src/Cli/dotnet/commands/dotnet-store/Program.cs index 13aeafb5c879..57d7332748b0 100644 --- a/src/Cli/dotnet/commands/dotnet-store/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-store/Program.cs @@ -4,8 +4,6 @@ using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.MSBuild; -using System; -using System.Collections.Generic; using System.CommandLine; using Parser = Microsoft.DotNet.Cli.Parser; diff --git a/src/Cli/dotnet/commands/dotnet-store/StoreCommandParser.cs b/src/Cli/dotnet/commands/dotnet-store/StoreCommandParser.cs index d9c9733b4961..6c7cc908bced 100644 --- a/src/Cli/dotnet/commands/dotnet-store/StoreCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-store/StoreCommandParser.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.Collections.Generic; using System.CommandLine; -using System.Linq; using Microsoft.DotNet.Tools.Store; using LocalizableStrings = Microsoft.DotNet.Tools.Store.LocalizableStrings; diff --git a/src/Cli/dotnet/commands/dotnet-test/Program.cs b/src/Cli/dotnet/commands/dotnet-test/Program.cs index bd484f22547b..9b3101b7834a 100644 --- a/src/Cli/dotnet/commands/dotnet-test/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-test/Program.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.CommandLine; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-test/TestCommandParser.cs b/src/Cli/dotnet/commands/dotnet-test/TestCommandParser.cs index 3dc2f7a1ce29..33d8e9437480 100644 --- a/src/Cli/dotnet/commands/dotnet-test/TestCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-test/TestCommandParser.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.CommandLine; -using System.Linq; using Microsoft.DotNet.Tools.Test; using LocalizableStrings = Microsoft.DotNet.Tools.Test.LocalizableStrings; diff --git a/src/Cli/dotnet/commands/dotnet-test/VSTestArgumentConverter.cs b/src/Cli/dotnet/commands/dotnet-test/VSTestArgumentConverter.cs index 5dd7f03effc1..af77dd3f13ba 100644 --- a/src/Cli/dotnet/commands/dotnet-test/VSTestArgumentConverter.cs +++ b/src/Cli/dotnet/commands/dotnet-test/VSTestArgumentConverter.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.Collections.Immutable; -using System.Linq; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/commands/dotnet-test/VSTestFeatureFlag.cs b/src/Cli/dotnet/commands/dotnet-test/VSTestFeatureFlag.cs index efc51650a049..43e0c38b0141 100644 --- a/src/Cli/dotnet/commands/dotnet-test/VSTestFeatureFlag.cs +++ b/src/Cli/dotnet/commands/dotnet-test/VSTestFeatureFlag.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.Concurrent; -using System.Collections.Generic; namespace Microsoft.DotNet.Tools.Test { diff --git a/src/Cli/dotnet/commands/dotnet-test/VSTestForwardingApp.cs b/src/Cli/dotnet/commands/dotnet-test/VSTestForwardingApp.cs index c9fc1b1bcf10..ab62b1d84466 100644 --- a/src/Cli/dotnet/commands/dotnet-test/VSTestForwardingApp.cs +++ b/src/Cli/dotnet/commands/dotnet-test/VSTestForwardingApp.cs @@ -3,10 +3,6 @@ using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Test; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; namespace Microsoft.DotNet.Cli { diff --git a/src/Cli/dotnet/commands/dotnet-test/VSTestTrace.cs b/src/Cli/dotnet/commands/dotnet-test/VSTestTrace.cs index 57985c5ffa04..7cf88d06fbc9 100644 --- a/src/Cli/dotnet/commands/dotnet-test/VSTestTrace.cs +++ b/src/Cli/dotnet/commands/dotnet-test/VSTestTrace.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.IO; - namespace Microsoft.DotNet.Tools.Test { internal class VSTestTrace diff --git a/src/Cli/dotnet/commands/dotnet-tool/common/ToolAppliedOption.cs b/src/Cli/dotnet/commands/dotnet-tool/common/ToolAppliedOption.cs index aa204c0ceba8..ac309659f76f 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/common/ToolAppliedOption.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/common/ToolAppliedOption.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.CommandLine; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-tool/common/ToolManifestFinderExtensions.cs b/src/Cli/dotnet/commands/dotnet-tool/common/ToolManifestFinderExtensions.cs index 29efe290ff53..cb399abf427f 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/common/ToolManifestFinderExtensions.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/common/ToolManifestFinderExtensions.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.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolManifest; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; -using NuGet.Frameworks; namespace Microsoft.DotNet.Tools.Tool.Common { diff --git a/src/Cli/dotnet/commands/dotnet-tool/install/LocalToolsResolverCacheExtensions.cs b/src/Cli/dotnet/commands/dotnet-tool/install/LocalToolsResolverCacheExtensions.cs index 5137c74e7948..957a8808bff2 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/install/LocalToolsResolverCacheExtensions.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/install/LocalToolsResolverCacheExtensions.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.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using NuGet.Frameworks; diff --git a/src/Cli/dotnet/commands/dotnet-tool/install/ProjectRestorer.cs b/src/Cli/dotnet/commands/dotnet-tool/install/ProjectRestorer.cs index 5093fa62d007..24664d0c8b02 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/install/ProjectRestorer.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/install/ProjectRestorer.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.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; diff --git a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallCommandLowLevelErrorConverter.cs b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallCommandLowLevelErrorConverter.cs index e694b7468e5e..83ddeb7973fb 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallCommandLowLevelErrorConverter.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallCommandLowLevelErrorConverter.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.DotNet.ShellShim; using Microsoft.DotNet.ToolPackage; diff --git a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallGlobalOrToolPathCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallGlobalOrToolPathCommand.cs index 9d08af45df0d..5d70ebeeb9b6 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallGlobalOrToolPathCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallGlobalOrToolPathCommand.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.CommandLine; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; using System.Transactions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalCommand.cs index d08cc9c730ca..5d9d8653fd67 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalCommand.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolManifest; diff --git a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalInstaller.cs b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalInstaller.cs index 4c9646c0146c..385df4d25dcf 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalInstaller.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/install/ToolInstallLocalInstaller.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.IO; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; diff --git a/src/Cli/dotnet/commands/dotnet-tool/list/ToolListGlobalOrToolPathCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/list/ToolListGlobalOrToolPathCommand.cs index eebd5a6cd417..d70cacd6a221 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/list/ToolListGlobalOrToolPathCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/list/ToolListGlobalOrToolPathCommand.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.CommandLine; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; diff --git a/src/Cli/dotnet/commands/dotnet-tool/list/ToolListLocalCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/list/ToolListLocalCommand.cs index 2f6f8e597eaa..a3539364e1f8 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/list/ToolListLocalCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/list/ToolListLocalCommand.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolManifest; diff --git a/src/Cli/dotnet/commands/dotnet-tool/restore/ToolRestoreCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/restore/ToolRestoreCommand.cs index 9c76af55a8c9..79c526e35e5a 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/restore/ToolRestoreCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/restore/ToolRestoreCommand.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.CommandLine; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolManifest; diff --git a/src/Cli/dotnet/commands/dotnet-tool/run/ToolRunCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/run/ToolRunCommand.cs index b93ef0757968..bfd5d26a44c6 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/run/ToolRunCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/run/ToolRunCommand.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.CommandLine; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-tool/run/ToolRunCommandParser.cs b/src/Cli/dotnet/commands/dotnet-tool/run/ToolRunCommandParser.cs index 8609c7092c1b..8516ff7c2fdb 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/run/ToolRunCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/run/ToolRunCommandParser.cs @@ -3,7 +3,6 @@ using System.CommandLine; using Microsoft.DotNet.Tools.Tool.Run; -using System.Collections.Generic; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.Run.LocalizableStrings; namespace Microsoft.DotNet.Cli diff --git a/src/Cli/dotnet/commands/dotnet-tool/search/NugetSearchSerializables.cs b/src/Cli/dotnet/commands/dotnet-tool/search/NugetSearchSerializables.cs index c92edf4d59a5..b51f92f83eaa 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/search/NugetSearchSerializables.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/search/NugetSearchSerializables.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.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 02b029283f8d..10e0e0315bbf 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/search/SearchResultPrinter.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/search/SearchResultPrinter.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.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-tool/search/ToolSearchCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/search/ToolSearchCommand.cs index e81687389957..d74e8f7bfcc1 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/search/ToolSearchCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/search/ToolSearchCommand.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.CommandLine; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallCommandLowLevelErrorConverter.cs b/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallCommandLowLevelErrorConverter.cs index f9a24e077e30..c7c0e16e3a11 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallCommandLowLevelErrorConverter.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallCommandLowLevelErrorConverter.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.DotNet.ShellShim; using Microsoft.DotNet.ToolPackage; diff --git a/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallGlobalOrToolPathCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallGlobalOrToolPathCommand.cs index 0b2675ba754a..552f2de11675 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallGlobalOrToolPathCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallGlobalOrToolPathCommand.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.CommandLine; -using System.IO; -using System.Linq; using System.Transactions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallLocalCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/uninstall/ToolUninstallLocalCommand.cs index 74499818d793..edf5892800e8 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.IO; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolManifest; diff --git a/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateGlobalOrToolPathCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateGlobalOrToolPathCommand.cs index 9cfe109d9913..3a616086d730 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateGlobalOrToolPathCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateGlobalOrToolPathCommand.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.CommandLine; -using System.IO; -using System.Linq; using System.Transactions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateLocalCommand.cs b/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateLocalCommand.cs index 3631847cec02..a740f1edba8e 100644 --- a/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateLocalCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateLocalCommand.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.CommandLine; -using System.CommandLine.Parsing; -using System.IO; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolManifest; diff --git a/src/Cli/dotnet/commands/dotnet-vstest/Program.cs b/src/Cli/dotnet/commands/dotnet-vstest/Program.cs index 0d499e390705..64382fc178da 100644 --- a/src/Cli/dotnet/commands/dotnet-vstest/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-vstest/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.Collections.Generic; using System.CommandLine; -using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Tools.Test; diff --git a/src/Cli/dotnet/commands/dotnet-workload/SignCheck.cs b/src/Cli/dotnet/commands/dotnet-workload/SignCheck.cs index 0de3c465cdc3..9ac9dde6c222 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/SignCheck.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/SignCheck.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.Reflection; using Microsoft.DotNet.Installer.Windows.Security; using Microsoft.Win32; diff --git a/src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandBase.cs b/src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandBase.cs index d99ac200e1b8..933d6d50a84d 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandBase.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandBase.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.IO; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandParser.cs b/src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandParser.cs index d4d6987b577c..a0d98a9821dd 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandParser.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.CommandLine; using System.CommandLine.Parsing; -using System.IO; -using System.Linq; 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/WorkloadException.cs b/src/Cli/dotnet/commands/dotnet-workload/WorkloadException.cs index fa36916ac039..d0f6d3796f9b 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/WorkloadException.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/WorkloadException.cs @@ -3,7 +3,6 @@ #nullable enable -using System; namespace Microsoft.DotNet.Workloads.Workload { diff --git a/src/Cli/dotnet/commands/dotnet-workload/WorkloadInfoHelper.cs b/src/Cli/dotnet/commands/dotnet-workload/WorkloadInfoHelper.cs index 25889ef28dcd..de606679056c 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/WorkloadInfoHelper.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/WorkloadInfoHelper.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.Linq; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Cli/dotnet/commands/dotnet-workload/clean/WorkloadCleanCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/clean/WorkloadCleanCommand.cs index 54b985af97f4..a0e3996570eb 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/clean/WorkloadCleanCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/clean/WorkloadCleanCommand.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.CommandLine; -using System.IO; 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.Installer.Windows; using Microsoft.DotNet.Workloads.Workload.Install; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.DotNet.Workloads.Workload.List; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Cli/dotnet/commands/dotnet-workload/elevate/WorkloadElevateCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/elevate/WorkloadElevateCommand.cs index 25696462ca2a..c64f2e656baf 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/elevate/WorkloadElevateCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/elevate/WorkloadElevateCommand.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 Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Workloads.Workload.Install; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/FileBasedInstaller.cs b/src/Cli/dotnet/commands/dotnet-workload/install/FileBasedInstaller.cs index 19de9f707ee1..59a4345a7468 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/FileBasedInstaller.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/FileBasedInstaller.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.Json; -using System.Threading.Tasks; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/IInstaller.cs b/src/Cli/dotnet/commands/dotnet-workload/install/IInstaller.cs index 7d11feb2520a..2022f21a81d5 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/IInstaller.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/IInstaller.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.Threading.Tasks; using Microsoft.DotNet.Cli; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/IWorkloadManifestUpdater.cs b/src/Cli/dotnet/commands/dotnet-workload/install/IWorkloadManifestUpdater.cs index 0a82137b2ee4..87957062092f 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/IWorkloadManifestUpdater.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/IWorkloadManifestUpdater.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.Threading.Tasks; 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 f74aeabdc8e1..59226a33a1f1 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/MsiInstallerBase.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/MsiInstallerBase.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.Diagnostics; -using System.IO; -using System.Linq; using System.Runtime.Versioning; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerClient.PackGroup.cs b/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerClient.PackGroup.cs index e8b1f58d4a00..f24e255ba87c 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerClient.PackGroup.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerClient.PackGroup.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 System.Text.Json; -using System.Threading.Tasks; using Microsoft.DotNet.Cli; using Microsoft.NET.Sdk.WorkloadManifestReader; using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerClient.cs b/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerClient.cs index 8bb43e9dfd56..de60c6463534 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerClient.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerClient.cs @@ -1,14 +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.Runtime.InteropServices; using System.Runtime.Versioning; -using System.Threading; -using System.Threading.Tasks; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerServer.cs b/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerServer.cs index f4eee999f79d..06e55b87c783 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerServer.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerServer.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.IO.Pipes; using System.Runtime.Versioning; using System.Security; using System.Security.AccessControl; using System.Security.Principal; -using System.Threading.Tasks; using Microsoft.DotNet.Installer.Windows; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallCommand.cs index d383bcb44ae1..67ced5e0cd2d 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallCommand.cs @@ -1,20 +1,16 @@ // 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 Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Sdk.WorkloadManifestReader; -using System.Linq; using System.Text.Json; using Microsoft.DotNet.ToolPackage; using NuGet.Versioning; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.Extensions.EnvironmentAbstractions; using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver; -using System.Threading.Tasks; namespace Microsoft.DotNet.Workloads.Workload.Install { diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallCommandParser.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallCommandParser.cs index 1e688994a6bd..a7bbd03af121 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallCommandParser.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.CommandLine; using Microsoft.DotNet.Workloads.Workload; using Microsoft.DotNet.Workloads.Workload.Install; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/FileBasedInstallationRecordInstaller.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/FileBasedInstallationRecordInstaller.cs index a699be07d881..4fbbbafd289b 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/FileBasedInstallationRecordInstaller.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/FileBasedInstallationRecordInstaller.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.Linq; using Microsoft.NET.Sdk.WorkloadManifestReader; namespace Microsoft.DotNet.Workloads.Workload.Install.InstallRecord diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/IWorkloadInstallationRecordRepository.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/IWorkloadInstallationRecordRepository.cs index 58c75499bd87..cac816904745 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/IWorkloadInstallationRecordRepository.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/IWorkloadInstallationRecordRepository.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.NET.Sdk.WorkloadManifestReader; namespace Microsoft.DotNet.Workloads.Workload.Install.InstallRecord 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 c4f29f263d9f..09a45f5558b1 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/RegistryWorkloadInstallationRecordRepository.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallRecords/RegistryWorkloadInstallationRecordRepository.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.Collections.Generic; -using System.IO; -using System.Linq; using System.Runtime.Versioning; using Microsoft.DotNet.Installer.Windows; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallerFactory.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallerFactory.cs index 0c9472101ad5..154e30dfdae4 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallerFactory.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadInstallerFactory.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.IO; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Sdk.WorkloadManifestReader; using Microsoft.DotNet.Cli; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs index b7a5f38e29e4..1e7ae38863d1 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadManifestUpdater.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.Net.Http; using System.Text.Json; -using System.Threading.Tasks; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadResolverFactory.cs b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadResolverFactory.cs index d9910cb1553d..d9128ca5302b 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadResolverFactory.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/install/WorkloadResolverFactory.cs @@ -2,9 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. // -using System; -using System.IO; -using System.Linq; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; diff --git a/src/Cli/dotnet/commands/dotnet-workload/list/IWorkloadsRepositoryEnumerator.cs b/src/Cli/dotnet/commands/dotnet-workload/list/IWorkloadsRepositoryEnumerator.cs index 9f1440035d64..9c4ed7bf3418 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/list/IWorkloadsRepositoryEnumerator.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/list/IWorkloadsRepositoryEnumerator.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.NET.Sdk.WorkloadManifestReader; namespace Microsoft.DotNet.Workloads.Workload.List diff --git a/src/Cli/dotnet/commands/dotnet-workload/list/InstalledWorkloadsCollection.cs b/src/Cli/dotnet/commands/dotnet-workload/list/InstalledWorkloadsCollection.cs index 2d6f4f89916c..1a229ec03db3 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/list/InstalledWorkloadsCollection.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/list/InstalledWorkloadsCollection.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.Linq; using Microsoft.NET.Sdk.WorkloadManifestReader; namespace Microsoft.DotNet.Workloads.Workload.List diff --git a/src/Cli/dotnet/commands/dotnet-workload/list/VisualStudioWorkloads.cs b/src/Cli/dotnet/commands/dotnet-workload/list/VisualStudioWorkloads.cs index 5679eadae831..e50d2d345d34 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/list/VisualStudioWorkloads.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/list/VisualStudioWorkloads.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.Linq; -using System.Runtime.InteropServices; using System.Runtime.Versioning; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Workloads.Workload.List; diff --git a/src/Cli/dotnet/commands/dotnet-workload/list/WorkloadListCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/list/WorkloadListCommand.cs index 7f960aad25bf..42fb65445dd7 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/list/WorkloadListCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/list/WorkloadListCommand.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.CommandLine; -using System.Linq; using System.Text.Json; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Cli/dotnet/commands/dotnet-workload/repair/WorkloadRepairCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/repair/WorkloadRepairCommand.cs index b966b20f7564..265f117c5279 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/repair/WorkloadRepairCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/repair/WorkloadRepairCommand.cs @@ -1,14 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Generic; using System.CommandLine; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Sdk.WorkloadManifestReader; -using System.Linq; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.DotNet.Workloads.Workload.Install; diff --git a/src/Cli/dotnet/commands/dotnet-workload/restore/WorkloadRestoreCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/restore/WorkloadRestoreCommand.cs index 2f7158c27ac0..4913aca803b0 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/restore/WorkloadRestoreCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/restore/WorkloadRestoreCommand.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.Collections.ObjectModel; using System.CommandLine; -using System.CommandLine.Parsing; -using System.IO; -using System.Linq; using Microsoft.Build.Construction; using Microsoft.Build.Execution; using Microsoft.Build.Framework; diff --git a/src/Cli/dotnet/commands/dotnet-workload/search/WorkloadSearchCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/search/WorkloadSearchCommand.cs index 0d45bc97ecd0..5ee8f1bd6f79 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/search/WorkloadSearchCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/search/WorkloadSearchCommand.cs @@ -1,15 +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.CommandLine; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Sdk.WorkloadManifestReader; -using System.Linq; using Microsoft.DotNet.Workloads.Workload.Install; -using System.Collections.Generic; namespace Microsoft.DotNet.Workloads.Workload.Search { diff --git a/src/Cli/dotnet/commands/dotnet-workload/uninstall/WorkloadUninstallCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/uninstall/WorkloadUninstallCommand.cs index 864da838eeae..efc6d20da2d2 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/uninstall/WorkloadUninstallCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/uninstall/WorkloadUninstallCommand.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.CommandLine; -using System.Linq; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Cli/dotnet/commands/dotnet-workload/uninstall/WorkloadUninstallCommandParser.cs b/src/Cli/dotnet/commands/dotnet-workload/uninstall/WorkloadUninstallCommandParser.cs index e17ff597147c..d9901d537d3c 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/uninstall/WorkloadUninstallCommandParser.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/uninstall/WorkloadUninstallCommandParser.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.Collections.Generic; using LocalizableStrings = Microsoft.DotNet.Workloads.Workload.Uninstall.LocalizableStrings; using Microsoft.DotNet.Workloads.Workload.Uninstall; using Microsoft.DotNet.Workloads.Workload; diff --git a/src/Cli/dotnet/commands/dotnet-workload/update/WorkloadUpdateCommand.cs b/src/Cli/dotnet/commands/dotnet-workload/update/WorkloadUpdateCommand.cs index 4f05e595d7e1..fb51427ef02f 100644 --- a/src/Cli/dotnet/commands/dotnet-workload/update/WorkloadUpdateCommand.cs +++ b/src/Cli/dotnet/commands/dotnet-workload/update/WorkloadUpdateCommand.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.CommandLine; -using System.Linq; using System.Text.Json; -using System.Threading.Tasks; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Common/CliFolderPathCalculatorCore.cs b/src/Common/CliFolderPathCalculatorCore.cs index 88ede8bd116a..20c5cd7ecd4a 100644 --- a/src/Common/CliFolderPathCalculatorCore.cs +++ b/src/Common/CliFolderPathCalculatorCore.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.IO; -using System.Runtime.InteropServices; //only Microsoft.DotNet.MSBuildSdkResolver (net7.0) has nullables enabled #pragma warning disable IDE0240 // Remove redundant nullable directive diff --git a/src/Common/EnvironmentVariableNames.cs b/src/Common/EnvironmentVariableNames.cs index 16bed8fc8d71..833745cb3e87 100644 --- a/src/Common/EnvironmentVariableNames.cs +++ b/src/Common/EnvironmentVariableNames.cs @@ -5,8 +5,6 @@ #nullable enable -using System.Runtime.InteropServices; -using System; namespace Microsoft.DotNet.Cli { diff --git a/src/Common/PathUtilities.cs b/src/Common/PathUtilities.cs index dc6e21b6cbea..5163844ab26c 100644 --- a/src/Common/PathUtilities.cs +++ b/src/Common/PathUtilities.cs @@ -5,9 +5,6 @@ #nullable enable -using System; -using System.IO; -using System.Runtime.InteropServices; namespace Microsoft.DotNet; diff --git a/src/Common/WorkloadFileBasedInstall.cs b/src/Common/WorkloadFileBasedInstall.cs index 65a9c4025b1c..f3024453cb0f 100644 --- a/src/Common/WorkloadFileBasedInstall.cs +++ b/src/Common/WorkloadFileBasedInstall.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.IO; - namespace Microsoft.DotNet.Workloads.Workload { static class WorkloadFileBasedInstall diff --git a/src/Containers/Microsoft.NET.Build.Containers/AuthHandshakeMessageHandler.cs b/src/Containers/Microsoft.NET.Build.Containers/AuthHandshakeMessageHandler.cs index d36da8b56305..2fa74a63007e 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/AuthHandshakeMessageHandler.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/AuthHandshakeMessageHandler.cs @@ -5,7 +5,6 @@ using System.Diagnostics.CodeAnalysis; using System.Net; using System.Net.Http.Headers; -using System.Text; using System.Text.Json; using System.Text.RegularExpressions; diff --git a/src/Containers/Microsoft.NET.Build.Containers/DiagnosticMessage.cs b/src/Containers/Microsoft.NET.Build.Containers/DiagnosticMessage.cs index 055867c707b9..5a621ef3e281 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/DiagnosticMessage.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/DiagnosticMessage.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.Text; using Microsoft.NET.Build.Containers.Resources; namespace Microsoft.NET.Build.Containers; diff --git a/src/Containers/Microsoft.NET.Build.Containers/DigestUtils.cs b/src/Containers/Microsoft.NET.Build.Containers/DigestUtils.cs index a41b9a6faa44..e549defd4635 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/DigestUtils.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/DigestUtils.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Security.Cryptography; -using System.Text; namespace Microsoft.NET.Build.Containers; diff --git a/src/Containers/Microsoft.NET.Build.Containers/Globals.cs b/src/Containers/Microsoft.NET.Build.Containers/Globals.cs index 4469e747683a..468ce9978790 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/Globals.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/Globals.cs @@ -3,8 +3,6 @@ using System.Runtime.CompilerServices; -using System.Resources; - [assembly: InternalsVisibleTo("containerize, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] [assembly: InternalsVisibleTo("Microsoft.NET.Build.Containers.UnitTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] [assembly: InternalsVisibleTo("Microsoft.NET.Build.Containers.IntegrationTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/Containers/Microsoft.NET.Build.Containers/ImageBuilder.cs b/src/Containers/Microsoft.NET.Build.Containers/ImageBuilder.cs index 6e410e4550a3..5650678b7f23 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/ImageBuilder.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/ImageBuilder.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.Text; - namespace Microsoft.NET.Build.Containers; using Microsoft.NET.Build.Containers.Resources; diff --git a/src/Containers/Microsoft.NET.Build.Containers/Layer.cs b/src/Containers/Microsoft.NET.Build.Containers/Layer.cs index 4a39106e37fc..757cec422bbf 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/Layer.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/Layer.cs @@ -3,10 +3,8 @@ using System.Diagnostics; using System.Formats.Tar; -using System.Globalization; using System.IO.Compression; using System.Security.Cryptography; -using System.Text; using System.IO.Enumeration; namespace Microsoft.NET.Build.Containers; diff --git a/src/Containers/Microsoft.NET.Build.Containers/LocalDaemons/DockerCli.cs b/src/Containers/Microsoft.NET.Build.Containers/LocalDaemons/DockerCli.cs index 3d96341c8868..48cdfdc8b97c 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/LocalDaemons/DockerCli.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/LocalDaemons/DockerCli.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.Diagnostics; using System.Formats.Tar; -using System.Text; using System.Text.Json; using System.Text.Json.Nodes; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Containers/Microsoft.NET.Build.Containers/ReferenceParser.cs b/src/Containers/Microsoft.NET.Build.Containers/ReferenceParser.cs index 5884983dbda1..03f9e074990e 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/ReferenceParser.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/ReferenceParser.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.Text; using System.Text.RegularExpressions; namespace Microsoft.NET.Build.Containers; diff --git a/src/Containers/Microsoft.NET.Build.Containers/Registry/HttpExtensions.cs b/src/Containers/Microsoft.NET.Build.Containers/Registry/HttpExtensions.cs index 58934d7f4f18..40912fdb1aea 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/Registry/HttpExtensions.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/Registry/HttpExtensions.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. // -using System.Text; using Microsoft.Extensions.Logging; namespace Microsoft.NET.Build.Containers; diff --git a/src/Containers/Microsoft.NET.Build.Containers/Registry/Registry.cs b/src/Containers/Microsoft.NET.Build.Containers/Registry/Registry.cs index 1cb4197fe46e..a81995e481b3 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/Registry/Registry.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/Registry/Registry.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 Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.Logging; using Microsoft.NET.Build.Containers.Resources; using NuGet.RuntimeModel; using System.Diagnostics; using System.Net.Http.Json; -using System.Text; using System.Text.Json.Nodes; namespace Microsoft.NET.Build.Containers; diff --git a/src/Containers/Microsoft.NET.Build.Containers/Tasks/CreateNewImage.Interface.cs b/src/Containers/Microsoft.NET.Build.Containers/Tasks/CreateNewImage.Interface.cs index d0a26a8be2f8..c1db8ce110c6 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/Tasks/CreateNewImage.Interface.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/Tasks/CreateNewImage.Interface.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.Reflection; -using System.Resources; using Microsoft.Build.Framework; using Microsoft.NET.Build.Containers.Resources; diff --git a/src/Containers/Microsoft.NET.Build.Containers/Tasks/CreateNewImageToolTask.cs b/src/Containers/Microsoft.NET.Build.Containers/Tasks/CreateNewImageToolTask.cs index 842b3fc3a38c..1e74eb9b0361 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/Tasks/CreateNewImageToolTask.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/Tasks/CreateNewImageToolTask.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.Diagnostics; -using System.Linq; -using System.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.NET.Build.Containers.Resources; diff --git a/src/Containers/Microsoft.NET.Build.Containers/Tasks/ParseContainerProperties.cs b/src/Containers/Microsoft.NET.Build.Containers/Tasks/ParseContainerProperties.cs index 018d4ad04e9a..e8b4896cdc62 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/Tasks/ParseContainerProperties.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/Tasks/ParseContainerProperties.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.Linq; using Microsoft.Build.Framework; using Microsoft.NET.Build.Containers.Resources; diff --git a/src/Containers/Microsoft.NET.Build.Containers/VSHostObject.cs b/src/Containers/Microsoft.NET.Build.Containers/VSHostObject.cs index 9e793c7d2bf9..f65843f5ae39 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/VSHostObject.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/VSHostObject.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.Linq; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Containers.Tasks; diff --git a/src/Containers/Microsoft.NET.Build.Containers/net472Definitions.cs b/src/Containers/Microsoft.NET.Build.Containers/net472Definitions.cs index 0574671472c2..bd76c54024d3 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/net472Definitions.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/net472Definitions.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 System.Runtime.CompilerServices { internal static class IsExternalInit { } diff --git a/src/Containers/containerize/ContainerizeCommand.cs b/src/Containers/containerize/ContainerizeCommand.cs index dbf973062945..17a57ddc93d7 100644 --- a/src/Containers/containerize/ContainerizeCommand.cs +++ b/src/Containers/containerize/ContainerizeCommand.cs @@ -3,7 +3,6 @@ using System.CommandLine; using System.CommandLine.Parsing; -using System.Text; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Console; diff --git a/src/Containers/containerize/Program.cs b/src/Containers/containerize/Program.cs index a2c36b2acebf..abd5b7ce9483 100644 --- a/src/Containers/containerize/Program.cs +++ b/src/Containers/containerize/Program.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.CommandLine; -using System.CommandLine.Parsing; - namespace containerize; internal class Program diff --git a/src/GenAPI/Microsoft.DotNet.GenAPI.Tool/Program.cs b/src/GenAPI/Microsoft.DotNet.GenAPI.Tool/Program.cs index 6ba2900416da..22fd42623ca9 100644 --- a/src/GenAPI/Microsoft.DotNet.GenAPI.Tool/Program.cs +++ b/src/GenAPI/Microsoft.DotNet.GenAPI.Tool/Program.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.CommandLine; using System.CommandLine.Parsing; using System.Diagnostics; diff --git a/src/GenAPI/Microsoft.DotNet.GenAPI/AssemblySymbolOrderer.cs b/src/GenAPI/Microsoft.DotNet.GenAPI/AssemblySymbolOrderer.cs index 3cd30cf5ab43..8979955fda3b 100644 --- a/src/GenAPI/Microsoft.DotNet.GenAPI/AssemblySymbolOrderer.cs +++ b/src/GenAPI/Microsoft.DotNet.GenAPI/AssemblySymbolOrderer.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.Linq; using Microsoft.CodeAnalysis; namespace Microsoft.DotNet.GenAPI diff --git a/src/GenAPI/Microsoft.DotNet.GenAPI/AttributeDataExtensions.cs b/src/GenAPI/Microsoft.DotNet.GenAPI/AttributeDataExtensions.cs index 61db06465eff..678623ba673d 100644 --- a/src/GenAPI/Microsoft.DotNet.GenAPI/AttributeDataExtensions.cs +++ b/src/GenAPI/Microsoft.DotNet.GenAPI/AttributeDataExtensions.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.Linq; using System.Reflection; using Microsoft.CodeAnalysis; diff --git a/src/GenAPI/Microsoft.DotNet.GenAPI/CSharpFileBuilder.cs b/src/GenAPI/Microsoft.DotNet.GenAPI/CSharpFileBuilder.cs index f161e3f73c80..f381f885409e 100644 --- a/src/GenAPI/Microsoft.DotNet.GenAPI/CSharpFileBuilder.cs +++ b/src/GenAPI/Microsoft.DotNet.GenAPI/CSharpFileBuilder.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.Collections.Immutable; -using System.IO; -using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; diff --git a/src/GenAPI/Microsoft.DotNet.GenAPI/Filtering/ImplicitSymbolFilter.cs b/src/GenAPI/Microsoft.DotNet.GenAPI/Filtering/ImplicitSymbolFilter.cs index 9138b38ec907..ff036dede7c5 100644 --- a/src/GenAPI/Microsoft.DotNet.GenAPI/Filtering/ImplicitSymbolFilter.cs +++ b/src/GenAPI/Microsoft.DotNet.GenAPI/Filtering/ImplicitSymbolFilter.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.Linq; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiSymbolExtensions.Filtering; diff --git a/src/GenAPI/Microsoft.DotNet.GenAPI/GenAPIApp.cs b/src/GenAPI/Microsoft.DotNet.GenAPI/GenAPIApp.cs index 35fa0d8bdfc7..ae6a2c1a1e34 100644 --- a/src/GenAPI/Microsoft.DotNet.GenAPI/GenAPIApp.cs +++ b/src/GenAPI/Microsoft.DotNet.GenAPI/GenAPIApp.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.IO; #if !NET using System.Text.RegularExpressions; #endif diff --git a/src/GenAPI/Microsoft.DotNet.GenAPI/IMethodSymbolExtensions.cs b/src/GenAPI/Microsoft.DotNet.GenAPI/IMethodSymbolExtensions.cs index d6579eef3b03..460f4c37ad51 100644 --- a/src/GenAPI/Microsoft.DotNet.GenAPI/IMethodSymbolExtensions.cs +++ b/src/GenAPI/Microsoft.DotNet.GenAPI/IMethodSymbolExtensions.cs @@ -1,14 +1,8 @@ // Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -using System; -using System.Collections.Generic; -using System.Linq; using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.DotNet.ApiSymbolExtensions.Filtering; -using Microsoft.DotNet.ApiSymbolExtensions; namespace Microsoft.DotNet.GenAPI { diff --git a/src/GenAPI/Microsoft.DotNet.GenAPI/INamedTypeSymbolExtension.cs b/src/GenAPI/Microsoft.DotNet.GenAPI/INamedTypeSymbolExtension.cs index 3824d67caa1e..ca0ccefd4d45 100644 --- a/src/GenAPI/Microsoft.DotNet.GenAPI/INamedTypeSymbolExtension.cs +++ b/src/GenAPI/Microsoft.DotNet.GenAPI/INamedTypeSymbolExtension.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.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxGeneratorExtensions.cs b/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxGeneratorExtensions.cs index 6651c8c2d6a4..3cb1de44e139 100644 --- a/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxGeneratorExtensions.cs +++ b/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxGeneratorExtensions.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.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Editing; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; -using System.Collections.Generic; using Microsoft.DotNet.ApiSymbolExtensions.Filtering; namespace Microsoft.DotNet.GenAPI diff --git a/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxRewriter/BodyBlockCSharpSyntaxRewriter.cs b/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxRewriter/BodyBlockCSharpSyntaxRewriter.cs index ff96430e11c8..128bd104e91c 100644 --- a/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxRewriter/BodyBlockCSharpSyntaxRewriter.cs +++ b/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxRewriter/BodyBlockCSharpSyntaxRewriter.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.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxRewriter/SingleLineStatementCSharpSyntaxRewriter.cs b/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxRewriter/SingleLineStatementCSharpSyntaxRewriter.cs index 7c8671ce6a74..23ca0192a026 100644 --- a/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxRewriter/SingleLineStatementCSharpSyntaxRewriter.cs +++ b/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxRewriter/SingleLineStatementCSharpSyntaxRewriter.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.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxRewriter/TypeDeclarationCSharpSyntaxRewriter.cs b/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxRewriter/TypeDeclarationCSharpSyntaxRewriter.cs index 9a8bd8283ca7..86e12fbdbe7d 100644 --- a/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxRewriter/TypeDeclarationCSharpSyntaxRewriter.cs +++ b/src/GenAPI/Microsoft.DotNet.GenAPI/SyntaxRewriter/TypeDeclarationCSharpSyntaxRewriter.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.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/Layout/toolset-tasks/ChangeEntryPointLibraryName.cs b/src/Layout/toolset-tasks/ChangeEntryPointLibraryName.cs index 2f1dd74cec37..8932fb50f566 100644 --- a/src/Layout/toolset-tasks/ChangeEntryPointLibraryName.cs +++ b/src/Layout/toolset-tasks/ChangeEntryPointLibraryName.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.DotNet.Cli.Build { diff --git a/src/Layout/toolset-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs b/src/Layout/toolset-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs index d0adfeb6332c..0bf9711a232b 100644 --- a/src/Layout/toolset-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs +++ b/src/Layout/toolset-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs @@ -1,15 +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.IO; -using System.IO.Compression; -using System.Linq; -using System.Text.RegularExpressions; -using System.Xml.Linq; -using System.Xml.XPath; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.DotNet.Build.Tasks { diff --git a/src/Layout/toolset-tasks/OverrideWasmRuntimePackVersions.cs b/src/Layout/toolset-tasks/OverrideWasmRuntimePackVersions.cs index c188525ecbec..a1edde0cf31d 100644 --- a/src/Layout/toolset-tasks/OverrideWasmRuntimePackVersions.cs +++ b/src/Layout/toolset-tasks/OverrideWasmRuntimePackVersions.cs @@ -1,15 +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.IO; -using System.IO.Compression; -using System.Linq; -using System.Text.RegularExpressions; -using System.Xml.Linq; -using System.Xml.XPath; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.DotNet.Build.Tasks { diff --git a/src/Layout/toolset-tasks/PublishMutationUtilities.cs b/src/Layout/toolset-tasks/PublishMutationUtilities.cs index 4e39bfac03d5..8f152b58d003 100644 --- a/src/Layout/toolset-tasks/PublishMutationUtilities.cs +++ b/src/Layout/toolset-tasks/PublishMutationUtilities.cs @@ -3,11 +3,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; namespace Microsoft.DotNet.Cli.Build { diff --git a/src/Layout/toolset-tasks/RemoveAssetFromDepsPackages.cs b/src/Layout/toolset-tasks/RemoveAssetFromDepsPackages.cs index 7b0702571cf8..7d53db4cd0de 100644 --- a/src/Layout/toolset-tasks/RemoveAssetFromDepsPackages.cs +++ b/src/Layout/toolset-tasks/RemoveAssetFromDepsPackages.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 Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using Newtonsoft.Json; using Newtonsoft.Json.Linq; diff --git a/src/Layout/toolset-tasks/ReplaceFileContents.cs b/src/Layout/toolset-tasks/ReplaceFileContents.cs index e8b3e45451e2..63cca9a18785 100644 --- a/src/Layout/toolset-tasks/ReplaceFileContents.cs +++ b/src/Layout/toolset-tasks/ReplaceFileContents.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.IO; -using System.Linq; using System.Text.RegularExpressions; -using Microsoft.Build.Utilities; using Microsoft.Build.Framework; namespace Microsoft.DotNet.Cli.Build diff --git a/src/Layout/toolset-tasks/ZipFileCreateFromDirectory.cs b/src/Layout/toolset-tasks/ZipFileCreateFromDirectory.cs index 1c424711fe90..e4b5252c4549 100644 --- a/src/Layout/toolset-tasks/ZipFileCreateFromDirectory.cs +++ b/src/Layout/toolset-tasks/ZipFileCreateFromDirectory.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.IO.Compression; using System.Text.RegularExpressions; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.DotNet.Build.Tasks { diff --git a/src/Microsoft.DotNet.ApiSymbolExtensions/AssemblyLoadWarning.cs b/src/Microsoft.DotNet.ApiSymbolExtensions/AssemblyLoadWarning.cs index 0b795fdbf592..2391044553af 100644 --- a/src/Microsoft.DotNet.ApiSymbolExtensions/AssemblyLoadWarning.cs +++ b/src/Microsoft.DotNet.ApiSymbolExtensions/AssemblyLoadWarning.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.ApiSymbolExtensions { /// diff --git a/src/Microsoft.DotNet.ApiSymbolExtensions/AssemblySymbolLoader.cs b/src/Microsoft.DotNet.ApiSymbolExtensions/AssemblySymbolLoader.cs index 05f35a292140..8d4c12269804 100644 --- a/src/Microsoft.DotNet.ApiSymbolExtensions/AssemblySymbolLoader.cs +++ b/src/Microsoft.DotNet.ApiSymbolExtensions/AssemblySymbolLoader.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.Collections.Immutable; -using System.IO; using System.IO.Compression; -using System.Linq; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; using Microsoft.CodeAnalysis; diff --git a/src/Microsoft.DotNet.ApiSymbolExtensions/AttributeDataExtensions.cs b/src/Microsoft.DotNet.ApiSymbolExtensions/AttributeDataExtensions.cs index af5751a3d377..7465691f7886 100644 --- a/src/Microsoft.DotNet.ApiSymbolExtensions/AttributeDataExtensions.cs +++ b/src/Microsoft.DotNet.ApiSymbolExtensions/AttributeDataExtensions.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.Immutable; -using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiSymbolExtensions.Filtering; diff --git a/src/Microsoft.DotNet.ApiSymbolExtensions/Filtering/CompositeSymbolFilter.cs b/src/Microsoft.DotNet.ApiSymbolExtensions/Filtering/CompositeSymbolFilter.cs index c99f05ff2e77..df2e3a734e9f 100644 --- a/src/Microsoft.DotNet.ApiSymbolExtensions/Filtering/CompositeSymbolFilter.cs +++ b/src/Microsoft.DotNet.ApiSymbolExtensions/Filtering/CompositeSymbolFilter.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.Linq; using Microsoft.CodeAnalysis; namespace Microsoft.DotNet.ApiSymbolExtensions.Filtering diff --git a/src/Microsoft.DotNet.ApiSymbolExtensions/Filtering/DocIdSymbolFilter.cs b/src/Microsoft.DotNet.ApiSymbolExtensions/Filtering/DocIdSymbolFilter.cs index 7de9a1b0af7e..e802d5ba0fb4 100644 --- a/src/Microsoft.DotNet.ApiSymbolExtensions/Filtering/DocIdSymbolFilter.cs +++ b/src/Microsoft.DotNet.ApiSymbolExtensions/Filtering/DocIdSymbolFilter.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.Collections.Generic; using Microsoft.CodeAnalysis; namespace Microsoft.DotNet.ApiSymbolExtensions.Filtering diff --git a/src/Microsoft.DotNet.ApiSymbolExtensions/IAssemblySymbolLoader.cs b/src/Microsoft.DotNet.ApiSymbolExtensions/IAssemblySymbolLoader.cs index 084629f5b760..cfb78f0a13d1 100644 --- a/src/Microsoft.DotNet.ApiSymbolExtensions/IAssemblySymbolLoader.cs +++ b/src/Microsoft.DotNet.ApiSymbolExtensions/IAssemblySymbolLoader.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 Microsoft.CodeAnalysis; namespace Microsoft.DotNet.ApiSymbolExtensions diff --git a/src/Microsoft.DotNet.ApiSymbolExtensions/Logging/ConsoleLog.cs b/src/Microsoft.DotNet.ApiSymbolExtensions/Logging/ConsoleLog.cs index 9e001702d881..5767b8ab3d6a 100644 --- a/src/Microsoft.DotNet.ApiSymbolExtensions/Logging/ConsoleLog.cs +++ b/src/Microsoft.DotNet.ApiSymbolExtensions/Logging/ConsoleLog.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.ApiSymbolExtensions.Logging { /// diff --git a/src/Microsoft.DotNet.ApiSymbolExtensions/SymbolExtensions.cs b/src/Microsoft.DotNet.ApiSymbolExtensions/SymbolExtensions.cs index b5bb32ee5648..ea23b8d0ce2e 100644 --- a/src/Microsoft.DotNet.ApiSymbolExtensions/SymbolExtensions.cs +++ b/src/Microsoft.DotNet.ApiSymbolExtensions/SymbolExtensions.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.CodeAnalysis; namespace Microsoft.DotNet.ApiSymbolExtensions diff --git a/src/Microsoft.DotNet.TemplateLocator/TemplateLocator.cs b/src/Microsoft.DotNet.TemplateLocator/TemplateLocator.cs index 5fb2d8d6cbad..38625d7a4336 100644 --- a/src/Microsoft.DotNet.TemplateLocator/TemplateLocator.cs +++ b/src/Microsoft.DotNet.TemplateLocator/TemplateLocator.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.Linq; using Microsoft.DotNet.DotNetSdkResolver; using Microsoft.DotNet.NativeWrapper; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Microsoft.Win32.Msi/InstallLogMode.cs b/src/Microsoft.Win32.Msi/InstallLogMode.cs index 9b30bbe9c598..961af7b02231 100644 --- a/src/Microsoft.Win32.Msi/InstallLogMode.cs +++ b/src/Microsoft.Win32.Msi/InstallLogMode.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.Win32.Msi { /// diff --git a/src/Microsoft.Win32.Msi/InstallMessageEventArgs.cs b/src/Microsoft.Win32.Msi/InstallMessageEventArgs.cs index 34791eecd650..11d3653a09f2 100644 --- a/src/Microsoft.Win32.Msi/InstallMessageEventArgs.cs +++ b/src/Microsoft.Win32.Msi/InstallMessageEventArgs.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.Win32.Msi { /// diff --git a/src/Microsoft.Win32.Msi/InstallUILevel.cs b/src/Microsoft.Win32.Msi/InstallUILevel.cs index 5af6128704cc..46ee7aca1ffa 100644 --- a/src/Microsoft.Win32.Msi/InstallUILevel.cs +++ b/src/Microsoft.Win32.Msi/InstallUILevel.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.Win32.Msi { /// diff --git a/src/Microsoft.Win32.Msi/MessageBox.cs b/src/Microsoft.Win32.Msi/MessageBox.cs index f007022f760c..3dfb27c58742 100644 --- a/src/Microsoft.Win32.Msi/MessageBox.cs +++ b/src/Microsoft.Win32.Msi/MessageBox.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.Win32.Msi { /// diff --git a/src/Microsoft.Win32.Msi/MsiFastInstall.cs b/src/Microsoft.Win32.Msi/MsiFastInstall.cs index 99bb462e0952..a15216315421 100644 --- a/src/Microsoft.Win32.Msi/MsiFastInstall.cs +++ b/src/Microsoft.Win32.Msi/MsiFastInstall.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.Win32.Msi { /// diff --git a/src/Microsoft.Win32.Msi/MsiInstallContext.cs b/src/Microsoft.Win32.Msi/MsiInstallContext.cs index 40e42706cd4a..6dfdef6a8324 100644 --- a/src/Microsoft.Win32.Msi/MsiInstallContext.cs +++ b/src/Microsoft.Win32.Msi/MsiInstallContext.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.Win32.Msi { /// diff --git a/src/Microsoft.Win32.Msi/NativeMethods.cs b/src/Microsoft.Win32.Msi/NativeMethods.cs index 52936f2346b0..648902c0c0e7 100644 --- a/src/Microsoft.Win32.Msi/NativeMethods.cs +++ b/src/Microsoft.Win32.Msi/NativeMethods.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.Runtime.InteropServices; -using System.Text; // Work around https://github.com/dotnet/roslyn-analyzers/issues/6094 #pragma warning disable CA1420 diff --git a/src/Microsoft.Win32.Msi/ProgressEventArgs.cs b/src/Microsoft.Win32.Msi/ProgressEventArgs.cs index e9ea026402d5..4db184a5229c 100644 --- a/src/Microsoft.Win32.Msi/ProgressEventArgs.cs +++ b/src/Microsoft.Win32.Msi/ProgressEventArgs.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.RegularExpressions; namespace Microsoft.Win32.Msi diff --git a/src/Microsoft.Win32.Msi/ReinstallMode.cs b/src/Microsoft.Win32.Msi/ReinstallMode.cs index 28591df44cd7..ad48e46d1823 100644 --- a/src/Microsoft.Win32.Msi/ReinstallMode.cs +++ b/src/Microsoft.Win32.Msi/ReinstallMode.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.Win32.Msi { /// diff --git a/src/Microsoft.Win32.Msi/UserInterfaceHandler.cs b/src/Microsoft.Win32.Msi/UserInterfaceHandler.cs index 11fa764c3845..bc50aa172320 100644 --- a/src/Microsoft.Win32.Msi/UserInterfaceHandler.cs +++ b/src/Microsoft.Win32.Msi/UserInterfaceHandler.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.Runtime.InteropServices; - namespace Microsoft.Win32.Msi { /// diff --git a/src/Microsoft.Win32.Msi/WindowsInstaller.cs b/src/Microsoft.Win32.Msi/WindowsInstaller.cs index 385c013addec..b63bae0b9163 100644 --- a/src/Microsoft.Win32.Msi/WindowsInstaller.cs +++ b/src/Microsoft.Win32.Msi/WindowsInstaller.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.Text; - namespace Microsoft.Win32.Msi { /// diff --git a/src/Microsoft.Win32.Msi/WindowsInstallerException.cs b/src/Microsoft.Win32.Msi/WindowsInstallerException.cs index 4107e0272b40..a23b8682abd7 100644 --- a/src/Microsoft.Win32.Msi/WindowsInstallerException.cs +++ b/src/Microsoft.Win32.Msi/WindowsInstallerException.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.ComponentModel; namespace Microsoft.Win32.Msi diff --git a/src/RazorSdk/Tasks/DotnetToolTask.cs b/src/RazorSdk/Tasks/DotnetToolTask.cs index 7c739214bb7a..a5da242d413e 100644 --- a/src/RazorSdk/Tasks/DotnetToolTask.cs +++ b/src/RazorSdk/Tasks/DotnetToolTask.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.Diagnostics; -using System.IO; using System.IO.Pipes; -using System.Threading; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.NET.Sdk.Razor.Tool; diff --git a/src/RazorSdk/Tasks/EncodeRazorInputItem.cs b/src/RazorSdk/Tasks/EncodeRazorInputItem.cs index 9402bcb87e8a..a22346a7170b 100644 --- a/src/RazorSdk/Tasks/EncodeRazorInputItem.cs +++ b/src/RazorSdk/Tasks/EncodeRazorInputItem.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.Numerics; -using System.Security.Cryptography; -using System.Text; -using System.Text.RegularExpressions; using Microsoft.Build.Framework; using MSBuildTask = Microsoft.Build.Utilities.Task; using MSBuildTaskItem = Microsoft.Build.Utilities.TaskItem; diff --git a/src/RazorSdk/Tasks/FindAssembliesWithReferencesTo.cs b/src/RazorSdk/Tasks/FindAssembliesWithReferencesTo.cs index 60e3dbe14c9d..59e2cb301c35 100644 --- a/src/RazorSdk/Tasks/FindAssembliesWithReferencesTo.cs +++ b/src/RazorSdk/Tasks/FindAssembliesWithReferencesTo.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.Linq; using System.Reflection; using Microsoft.Build.Framework; using MSBuildTask = Microsoft.Build.Utilities.Task; diff --git a/src/RazorSdk/Tasks/ReferenceAssemblyNotFoundException.cs b/src/RazorSdk/Tasks/ReferenceAssemblyNotFoundException.cs index 388b20a042d8..d665618af741 100644 --- a/src/RazorSdk/Tasks/ReferenceAssemblyNotFoundException.cs +++ b/src/RazorSdk/Tasks/ReferenceAssemblyNotFoundException.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.AspNetCore.Razor.Tasks { internal class ReferenceAssemblyNotFoundException : Exception diff --git a/src/RazorSdk/Tasks/ReferenceResolver.cs b/src/RazorSdk/Tasks/ReferenceResolver.cs index 02c8054af73d..597c43931f68 100644 --- a/src/RazorSdk/Tasks/ReferenceResolver.cs +++ b/src/RazorSdk/Tasks/ReferenceResolver.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.Diagnostics; -using System.IO; -using System.Linq; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; diff --git a/src/RazorSdk/Tasks/SdkRazorGenerate.cs b/src/RazorSdk/Tasks/SdkRazorGenerate.cs index 6f4f2b2024ba..ab0226420dfa 100644 --- a/src/RazorSdk/Tasks/SdkRazorGenerate.cs +++ b/src/RazorSdk/Tasks/SdkRazorGenerate.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.Text; using Microsoft.Build.Framework; namespace Microsoft.AspNetCore.Razor.Tasks diff --git a/src/RazorSdk/Tasks/SdkRazorTagHelper.cs b/src/RazorSdk/Tasks/SdkRazorTagHelper.cs index 9df99f915b5a..7136f56f1d82 100644 --- a/src/RazorSdk/Tasks/SdkRazorTagHelper.cs +++ b/src/RazorSdk/Tasks/SdkRazorTagHelper.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. -using System.IO; -using System.Text; using Microsoft.Build.Framework; namespace Microsoft.AspNetCore.Razor.Tasks diff --git a/src/RazorSdk/Tool/Application.cs b/src/RazorSdk/Tool/Application.cs index 107e505a2e06..1dc00f44781d 100644 --- a/src/RazorSdk/Tool/Application.cs +++ b/src/RazorSdk/Tool/Application.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.Reflection; -using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.NET.Sdk.Razor.Tool.CommandLineUtils; diff --git a/src/RazorSdk/Tool/Client.cs b/src/RazorSdk/Tool/Client.cs index ecbed86f32fb..954252694e38 100644 --- a/src/RazorSdk/Tool/Client.cs +++ b/src/RazorSdk/Tool/Client.cs @@ -1,15 +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.IO; using System.IO.Pipes; #if NETFRAMEWORK using System.Security.AccessControl; using System.Security.Principal; #endif -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.Razor.Tool { diff --git a/src/RazorSdk/Tool/CommandBase.cs b/src/RazorSdk/Tool/CommandBase.cs index 5cbb4e791eaa..bde13044d744 100644 --- a/src/RazorSdk/Tool/CommandBase.cs +++ b/src/RazorSdk/Tool/CommandBase.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.IO; -using System.Threading; -using System.Threading.Tasks; using Microsoft.NET.Sdk.Razor.Tool.CommandLineUtils; namespace Microsoft.NET.Sdk.Razor.Tool diff --git a/src/RazorSdk/Tool/CommandLine/AnsiConsole.cs b/src/RazorSdk/Tool/CommandLine/AnsiConsole.cs index a2c61c446bfa..68102bc1f66f 100644 --- a/src/RazorSdk/Tool/CommandLine/AnsiConsole.cs +++ b/src/RazorSdk/Tool/CommandLine/AnsiConsole.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.IO; - namespace Microsoft.NET.Sdk.Razor.Tool.CommandLineUtils { internal class AnsiConsole diff --git a/src/RazorSdk/Tool/CommandLine/ArgumentEscaper.cs b/src/RazorSdk/Tool/CommandLine/ArgumentEscaper.cs index 0ba484146bc3..14035d9a54f2 100644 --- a/src/RazorSdk/Tool/CommandLine/ArgumentEscaper.cs +++ b/src/RazorSdk/Tool/CommandLine/ArgumentEscaper.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.Collections.Generic; -using System.Linq; -using System.Text; - namespace Microsoft.NET.Sdk.Razor.Tool.CommandLineUtils { /// diff --git a/src/RazorSdk/Tool/CommandLine/CommandArgument.cs b/src/RazorSdk/Tool/CommandLine/CommandArgument.cs index fca06cee4fdb..e60eea82ff2c 100644 --- a/src/RazorSdk/Tool/CommandLine/CommandArgument.cs +++ b/src/RazorSdk/Tool/CommandLine/CommandArgument.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.Collections.Generic; -using System.Linq; - namespace Microsoft.NET.Sdk.Razor.Tool.CommandLineUtils { internal class CommandArgument diff --git a/src/RazorSdk/Tool/CommandLine/CommandLineApplication.cs b/src/RazorSdk/Tool/CommandLine/CommandLineApplication.cs index a3e53bd52983..a8a73dcdfe03 100644 --- a/src/RazorSdk/Tool/CommandLine/CommandLineApplication.cs +++ b/src/RazorSdk/Tool/CommandLine/CommandLineApplication.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 System; using System.Collections; -using System.Collections.Generic; using System.Globalization; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.Razor.Tool.CommandLineUtils { diff --git a/src/RazorSdk/Tool/CommandLine/CommandOption.cs b/src/RazorSdk/Tool/CommandLine/CommandOption.cs index 1bcee956da27..5421d1b6fa55 100644 --- a/src/RazorSdk/Tool/CommandLine/CommandOption.cs +++ b/src/RazorSdk/Tool/CommandLine/CommandOption.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.Linq; - namespace Microsoft.NET.Sdk.Razor.Tool.CommandLineUtils { internal class CommandOption diff --git a/src/RazorSdk/Tool/CommandLine/CommandParsingException.cs b/src/RazorSdk/Tool/CommandLine/CommandParsingException.cs index c82a4d8d6f42..b9187471fac2 100644 --- a/src/RazorSdk/Tool/CommandLine/CommandParsingException.cs +++ b/src/RazorSdk/Tool/CommandLine/CommandParsingException.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.NET.Sdk.Razor.Tool.CommandLineUtils { internal class CommandParsingException : Exception diff --git a/src/RazorSdk/Tool/CompilerHost.cs b/src/RazorSdk/Tool/CompilerHost.cs index 4943358382f8..6c360274deae 100644 --- a/src/RazorSdk/Tool/CompilerHost.cs +++ b/src/RazorSdk/Tool/CompilerHost.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 System.Linq; -using System.Threading; using Microsoft.CodeAnalysis; namespace Microsoft.NET.Sdk.Razor.Tool diff --git a/src/RazorSdk/Tool/CompositeRazorProjectFileSystem.cs b/src/RazorSdk/Tool/CompositeRazorProjectFileSystem.cs index e50604a05bf6..9fab139a7a63 100644 --- a/src/RazorSdk/Tool/CompositeRazorProjectFileSystem.cs +++ b/src/RazorSdk/Tool/CompositeRazorProjectFileSystem.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.AspNetCore.Razor.Language; namespace Microsoft.NET.Sdk.Razor.Tool diff --git a/src/RazorSdk/Tool/ConcurrentLruCache.cs b/src/RazorSdk/Tool/ConcurrentLruCache.cs index 7536268e4611..83c0320e0ead 100644 --- a/src/RazorSdk/Tool/ConcurrentLruCache.cs +++ b/src/RazorSdk/Tool/ConcurrentLruCache.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.Diagnostics; namespace Microsoft.NET.Sdk.Razor.Tool diff --git a/src/RazorSdk/Tool/Connection.cs b/src/RazorSdk/Tool/Connection.cs index 2b1ff12f643d..6ef0366682a8 100644 --- a/src/RazorSdk/Tool/Connection.cs +++ b/src/RazorSdk/Tool/Connection.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.IO; -using System.Threading; -using System.Threading.Tasks; - namespace Microsoft.NET.Sdk.Razor.Tool { internal abstract class Connection : IDisposable diff --git a/src/RazorSdk/Tool/ConnectionHost.cs b/src/RazorSdk/Tool/ConnectionHost.cs index 9f5abda8ba4f..5fd5b73c0607 100644 --- a/src/RazorSdk/Tool/ConnectionHost.cs +++ b/src/RazorSdk/Tool/ConnectionHost.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.IO; using System.IO.Pipes; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.Razor.Tool { diff --git a/src/RazorSdk/Tool/ConnectionResult.cs b/src/RazorSdk/Tool/ConnectionResult.cs index 61e5b962675e..40c161d97493 100644 --- a/src/RazorSdk/Tool/ConnectionResult.cs +++ b/src/RazorSdk/Tool/ConnectionResult.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.NET.Sdk.Razor.Tool { internal struct ConnectionResult diff --git a/src/RazorSdk/Tool/DebugMode.cs b/src/RazorSdk/Tool/DebugMode.cs index 9d01a93aedd9..fd02991a47cd 100644 --- a/src/RazorSdk/Tool/DebugMode.cs +++ b/src/RazorSdk/Tool/DebugMode.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.Diagnostics; -using System.Linq; -using System.Threading; namespace Microsoft.NET.Sdk.Razor.Tool { diff --git a/src/RazorSdk/Tool/DefaultExtensionAssemblyLoader.cs b/src/RazorSdk/Tool/DefaultExtensionAssemblyLoader.cs index 577c1c73c919..e4a7d13427d2 100644 --- a/src/RazorSdk/Tool/DefaultExtensionAssemblyLoader.cs +++ b/src/RazorSdk/Tool/DefaultExtensionAssemblyLoader.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.Collections.Immutable; -using System.IO; using System.Reflection; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; diff --git a/src/RazorSdk/Tool/DefaultExtensionDependencyChecker.cs b/src/RazorSdk/Tool/DefaultExtensionDependencyChecker.cs index b50739e8d7ee..d47f0cb0e7ab 100644 --- a/src/RazorSdk/Tool/DefaultExtensionDependencyChecker.cs +++ b/src/RazorSdk/Tool/DefaultExtensionDependencyChecker.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.Linq; using System.Reflection; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; diff --git a/src/RazorSdk/Tool/DefaultRequestDispatcher.cs b/src/RazorSdk/Tool/DefaultRequestDispatcher.cs index fbf8a1063d4d..ec56a700ae63 100644 --- a/src/RazorSdk/Tool/DefaultRequestDispatcher.cs +++ b/src/RazorSdk/Tool/DefaultRequestDispatcher.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.Diagnostics; -using System.Linq; using System.Runtime; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.Razor.Tool { diff --git a/src/RazorSdk/Tool/DiscoverCommand.cs b/src/RazorSdk/Tool/DiscoverCommand.cs index d31c450fb46c..cbf75b483c4a 100644 --- a/src/RazorSdk/Tool/DiscoverCommand.cs +++ b/src/RazorSdk/Tool/DiscoverCommand.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.Security.Cryptography; -using System.Text; -using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.Language; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Razor; diff --git a/src/RazorSdk/Tool/EventBus.cs b/src/RazorSdk/Tool/EventBus.cs index cdb61164b486..898dfdf35126 100644 --- a/src/RazorSdk/Tool/EventBus.cs +++ b/src/RazorSdk/Tool/EventBus.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.NET.Sdk.Razor.Tool { internal abstract class EventBus diff --git a/src/RazorSdk/Tool/ExtensionDependencyChecker.cs b/src/RazorSdk/Tool/ExtensionDependencyChecker.cs index d7f51c51160e..b539dcae6a09 100644 --- a/src/RazorSdk/Tool/ExtensionDependencyChecker.cs +++ b/src/RazorSdk/Tool/ExtensionDependencyChecker.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; - namespace Microsoft.NET.Sdk.Razor.Tool { internal abstract class ExtensionDependencyChecker diff --git a/src/RazorSdk/Tool/GenerateCommand.cs b/src/RazorSdk/Tool/GenerateCommand.cs index a7c841068400..4158af5f01a2 100644 --- a/src/RazorSdk/Tool/GenerateCommand.cs +++ b/src/RazorSdk/Tool/GenerateCommand.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.Diagnostics; -using System.IO; -using System.Linq; -using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.Language; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Razor; diff --git a/src/RazorSdk/Tool/JsonReaderExtensions.cs b/src/RazorSdk/Tool/JsonReaderExtensions.cs index e8153cb23370..b27e3e009d09 100644 --- a/src/RazorSdk/Tool/JsonReaderExtensions.cs +++ b/src/RazorSdk/Tool/JsonReaderExtensions.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.Diagnostics; using Newtonsoft.Json; diff --git a/src/RazorSdk/Tool/MetadataCache.cs b/src/RazorSdk/Tool/MetadataCache.cs index 37e99b60c593..7a46493617f0 100644 --- a/src/RazorSdk/Tool/MetadataCache.cs +++ b/src/RazorSdk/Tool/MetadataCache.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.Diagnostics; -using System.IO; using System.Reflection.PortableExecutable; using Microsoft.CodeAnalysis; diff --git a/src/RazorSdk/Tool/MetadataReaderExtensions.cs b/src/RazorSdk/Tool/MetadataReaderExtensions.cs index edb0d3a74200..f0365f2f7a83 100644 --- a/src/RazorSdk/Tool/MetadataReaderExtensions.cs +++ b/src/RazorSdk/Tool/MetadataReaderExtensions.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.Collections.Immutable; using System.Reflection; using System.Reflection.Metadata; using Microsoft.CodeAnalysis; diff --git a/src/RazorSdk/Tool/PipeName.cs b/src/RazorSdk/Tool/PipeName.cs index 6e86ede88e03..3537d1b1c0b6 100644 --- a/src/RazorSdk/Tool/PipeName.cs +++ b/src/RazorSdk/Tool/PipeName.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.IO; using System.Security.Cryptography; -using System.Text; namespace Microsoft.NET.Sdk.Razor.Tool { diff --git a/src/RazorSdk/Tool/Program.cs b/src/RazorSdk/Tool/Program.cs index aa44dee35380..692a91a93a1b 100644 --- a/src/RazorSdk/Tool/Program.cs +++ b/src/RazorSdk/Tool/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.IO; using System.Runtime.Loader; -using System.Threading; using Microsoft.CodeAnalysis; namespace Microsoft.NET.Sdk.Razor.Tool diff --git a/src/RazorSdk/Tool/Properties/AssemblyInfo.cs b/src/RazorSdk/Tool/Properties/AssemblyInfo.cs index 0a927481b5da..6273625c6c4f 100644 --- a/src/RazorSdk/Tool/Properties/AssemblyInfo.cs +++ b/src/RazorSdk/Tool/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.NET.Sdk.Razor.Tool.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/RazorSdk/Tool/RazorDiagnosticJsonConverter.cs b/src/RazorSdk/Tool/RazorDiagnosticJsonConverter.cs index dddccf0f4546..a475dd589c7c 100644 --- a/src/RazorSdk/Tool/RazorDiagnosticJsonConverter.cs +++ b/src/RazorSdk/Tool/RazorDiagnosticJsonConverter.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.Globalization; using Microsoft.AspNetCore.Razor.Language; using Newtonsoft.Json; diff --git a/src/RazorSdk/Tool/RequestDispatcher.cs b/src/RazorSdk/Tool/RequestDispatcher.cs index 5db52524518f..85a6e783475f 100644 --- a/src/RazorSdk/Tool/RequestDispatcher.cs +++ b/src/RazorSdk/Tool/RequestDispatcher.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; - namespace Microsoft.NET.Sdk.Razor.Tool { internal abstract class RequestDispatcher diff --git a/src/RazorSdk/Tool/ServerCommand.cs b/src/RazorSdk/Tool/ServerCommand.cs index f8e57113ca13..f39ade5cb909 100644 --- a/src/RazorSdk/Tool/ServerCommand.cs +++ b/src/RazorSdk/Tool/ServerCommand.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.Globalization; -using System.IO; using System.Reflection; -using System.Text; -using System.Threading; -using System.Threading.Tasks; using Microsoft.DotNet.Configurer; using Microsoft.NET.Sdk.Razor.Tool.CommandLineUtils; diff --git a/src/RazorSdk/Tool/ServerProtocol/CompletedServerResponse.cs b/src/RazorSdk/Tool/ServerProtocol/CompletedServerResponse.cs index 266a2eecd9e4..1bc12c961226 100644 --- a/src/RazorSdk/Tool/ServerProtocol/CompletedServerResponse.cs +++ b/src/RazorSdk/Tool/ServerProtocol/CompletedServerResponse.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.IO; - namespace Microsoft.NET.Sdk.Razor.Tool { /// diff --git a/src/RazorSdk/Tool/ServerProtocol/MismatchedVersionServerResponse.cs b/src/RazorSdk/Tool/ServerProtocol/MismatchedVersionServerResponse.cs index 80372fe033c3..5dfc9d0dba40 100644 --- a/src/RazorSdk/Tool/ServerProtocol/MismatchedVersionServerResponse.cs +++ b/src/RazorSdk/Tool/ServerProtocol/MismatchedVersionServerResponse.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.NET.Sdk.Razor.Tool { internal sealed class MismatchedVersionServerResponse : ServerResponse diff --git a/src/RazorSdk/Tool/ServerProtocol/NativeMethods.cs b/src/RazorSdk/Tool/ServerProtocol/NativeMethods.cs index 0b7b66edfeee..d2680a249eda 100644 --- a/src/RazorSdk/Tool/ServerProtocol/NativeMethods.cs +++ b/src/RazorSdk/Tool/ServerProtocol/NativeMethods.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.Runtime.InteropServices; -using System.Text; - namespace Microsoft.NET.Sdk.Razor.Tool { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] diff --git a/src/RazorSdk/Tool/ServerProtocol/RejectedServerResponse.cs b/src/RazorSdk/Tool/ServerProtocol/RejectedServerResponse.cs index b391dc315990..530b85f0ed4c 100644 --- a/src/RazorSdk/Tool/ServerProtocol/RejectedServerResponse.cs +++ b/src/RazorSdk/Tool/ServerProtocol/RejectedServerResponse.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.NET.Sdk.Razor.Tool { internal sealed class RejectedServerResponse : ServerResponse diff --git a/src/RazorSdk/Tool/ServerProtocol/RequestArgument.cs b/src/RazorSdk/Tool/ServerProtocol/RequestArgument.cs index 7c4985f4d99c..f2a4a70a4bf0 100644 --- a/src/RazorSdk/Tool/ServerProtocol/RequestArgument.cs +++ b/src/RazorSdk/Tool/ServerProtocol/RequestArgument.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.NET.Sdk.Razor.Tool { /// diff --git a/src/RazorSdk/Tool/ServerProtocol/ServerConnection.cs b/src/RazorSdk/Tool/ServerProtocol/ServerConnection.cs index 8cce58878309..9a76370f7053 100644 --- a/src/RazorSdk/Tool/ServerProtocol/ServerConnection.cs +++ b/src/RazorSdk/Tool/ServerProtocol/ServerConnection.cs @@ -1,14 +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.Diagnostics; -using System.IO; -using System.Runtime.InteropServices; -using System.Text; -using System.Threading; -using System.Threading.Tasks; using Microsoft.NET.Sdk.Razor.Tool.CommandLineUtils; namespace Microsoft.NET.Sdk.Razor.Tool diff --git a/src/RazorSdk/Tool/ServerProtocol/ServerLogger.cs b/src/RazorSdk/Tool/ServerProtocol/ServerLogger.cs index 3eb39273e2dc..fee6814734e1 100644 --- a/src/RazorSdk/Tool/ServerProtocol/ServerLogger.cs +++ b/src/RazorSdk/Tool/ServerProtocol/ServerLogger.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.Diagnostics; using System.Globalization; -using System.IO; -using System.Text; -using System.Threading; namespace Microsoft.NET.Sdk.Razor.Tool { diff --git a/src/RazorSdk/Tool/ServerProtocol/ServerPaths.cs b/src/RazorSdk/Tool/ServerProtocol/ServerPaths.cs index b349f4c9e71d..fc14187ecbef 100644 --- a/src/RazorSdk/Tool/ServerProtocol/ServerPaths.cs +++ b/src/RazorSdk/Tool/ServerProtocol/ServerPaths.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.NET.Sdk.Razor.Tool { internal struct ServerPaths diff --git a/src/RazorSdk/Tool/ServerProtocol/ServerProtocol.cs b/src/RazorSdk/Tool/ServerProtocol/ServerProtocol.cs index 7a142c97c866..df129e68665a 100644 --- a/src/RazorSdk/Tool/ServerProtocol/ServerProtocol.cs +++ b/src/RazorSdk/Tool/ServerProtocol/ServerProtocol.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.IO; -using System.Threading; -using System.Threading.Tasks; - namespace Microsoft.NET.Sdk.Razor.Tool { internal static class ServerProtocol diff --git a/src/RazorSdk/Tool/ServerProtocol/ServerRequest.cs b/src/RazorSdk/Tool/ServerProtocol/ServerRequest.cs index 0d4c8ea0a764..509b8d812ce9 100644 --- a/src/RazorSdk/Tool/ServerProtocol/ServerRequest.cs +++ b/src/RazorSdk/Tool/ServerProtocol/ServerRequest.cs @@ -1,14 +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.Collections.ObjectModel; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; // After the server pipe is connected, it forks off a thread to handle the connection, and creates // a new instance of the pipe to listen for new clients. When it gets a request, it validates diff --git a/src/RazorSdk/Tool/ServerProtocol/ServerResponse.cs b/src/RazorSdk/Tool/ServerProtocol/ServerResponse.cs index 966b5b146ae2..395ed32b6cce 100644 --- a/src/RazorSdk/Tool/ServerProtocol/ServerResponse.cs +++ b/src/RazorSdk/Tool/ServerProtocol/ServerResponse.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.IO; -using System.Text; -using System.Threading; -using System.Threading.Tasks; // After the server pipe is connected, it forks off a thread to handle the connection, and creates // a new instance of the pipe to listen for new clients. When it gets a request, it validates diff --git a/src/RazorSdk/Tool/ServerProtocol/ShutdownServerResponse.cs b/src/RazorSdk/Tool/ServerProtocol/ShutdownServerResponse.cs index 4d6ea3d1ab41..587b0980b9a0 100644 --- a/src/RazorSdk/Tool/ServerProtocol/ShutdownServerResponse.cs +++ b/src/RazorSdk/Tool/ServerProtocol/ShutdownServerResponse.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.NET.Sdk.Razor.Tool { internal sealed class ShutdownServerResponse : ServerResponse diff --git a/src/RazorSdk/Tool/ShadowCopyManager.cs b/src/RazorSdk/Tool/ShadowCopyManager.cs index 1d6104254252..e60e43445dce 100644 --- a/src/RazorSdk/Tool/ShadowCopyManager.cs +++ b/src/RazorSdk/Tool/ShadowCopyManager.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.Globalization; -using System.IO; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.Razor.Tool { diff --git a/src/RazorSdk/Tool/ShutdownCommand.cs b/src/RazorSdk/Tool/ShutdownCommand.cs index b5c9ecaa5863..29349cf9891b 100644 --- a/src/RazorSdk/Tool/ShutdownCommand.cs +++ b/src/RazorSdk/Tool/ShutdownCommand.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.Diagnostics; -using System.IO; -using System.Threading; -using System.Threading.Tasks; using Microsoft.NET.Sdk.Razor.Tool.CommandLineUtils; namespace Microsoft.NET.Sdk.Razor.Tool diff --git a/src/RazorSdk/Tool/TagHelperDescriptorJsonConverter.cs b/src/RazorSdk/Tool/TagHelperDescriptorJsonConverter.cs index 1f913863c54d..f87bdf6683e7 100644 --- a/src/RazorSdk/Tool/TagHelperDescriptorJsonConverter.cs +++ b/src/RazorSdk/Tool/TagHelperDescriptorJsonConverter.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.AspNetCore.Razor.Language; using Newtonsoft.Json; diff --git a/src/Resolvers/Microsoft.DotNet.MSBuildSdkResolver/FXVersion.cs b/src/Resolvers/Microsoft.DotNet.MSBuildSdkResolver/FXVersion.cs index d448d2059270..5f6e7a64265b 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; namespace Microsoft.DotNet.MSBuildSdkResolver { diff --git a/src/Resolvers/Microsoft.DotNet.MSBuildSdkResolver/MSBuildSdkResolver.cs b/src/Resolvers/Microsoft.DotNet.MSBuildSdkResolver/MSBuildSdkResolver.cs index e197352735c8..f76a366eab7a 100644 --- a/src/Resolvers/Microsoft.DotNet.MSBuildSdkResolver/MSBuildSdkResolver.cs +++ b/src/Resolvers/Microsoft.DotNet.MSBuildSdkResolver/MSBuildSdkResolver.cs @@ -5,10 +5,6 @@ using Microsoft.DotNet.Configurer; using Microsoft.DotNet.DotNetSdkResolver; using Microsoft.DotNet.NativeWrapper; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Reflection; using Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver; using Microsoft.DotNet.Cli; diff --git a/src/Resolvers/Microsoft.DotNet.NativeWrapper/Constants.cs b/src/Resolvers/Microsoft.DotNet.NativeWrapper/Constants.cs index 045add9785f5..2b2352c3689d 100644 --- a/src/Resolvers/Microsoft.DotNet.NativeWrapper/Constants.cs +++ b/src/Resolvers/Microsoft.DotNet.NativeWrapper/Constants.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.Runtime.InteropServices; - namespace Microsoft.DotNet.NativeWrapper { internal static class Constants diff --git a/src/Resolvers/Microsoft.DotNet.NativeWrapper/EnvironmentProvider.cs b/src/Resolvers/Microsoft.DotNet.NativeWrapper/EnvironmentProvider.cs index 090725c153d0..9b70750cced6 100644 --- a/src/Resolvers/Microsoft.DotNet.NativeWrapper/EnvironmentProvider.cs +++ b/src/Resolvers/Microsoft.DotNet.NativeWrapper/EnvironmentProvider.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.Diagnostics; -using System.IO; -using System.Linq; //only Microsoft.DotNet.NativeWrapper (net7.0) has nullables disabled #pragma warning disable IDE0240 // Remove redundant nullable directive diff --git a/src/Resolvers/Microsoft.DotNet.NativeWrapper/HostFxrResolutionException.cs b/src/Resolvers/Microsoft.DotNet.NativeWrapper/HostFxrResolutionException.cs index 0e6ee3860e12..2262fc72bc3e 100644 --- a/src/Resolvers/Microsoft.DotNet.NativeWrapper/HostFxrResolutionException.cs +++ b/src/Resolvers/Microsoft.DotNet.NativeWrapper/HostFxrResolutionException.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.NativeWrapper { /// diff --git a/src/Resolvers/Microsoft.DotNet.NativeWrapper/Interop.cs b/src/Resolvers/Microsoft.DotNet.NativeWrapper/Interop.cs index 1a91a8675476..878e69465950 100644 --- a/src/Resolvers/Microsoft.DotNet.NativeWrapper/Interop.cs +++ b/src/Resolvers/Microsoft.DotNet.NativeWrapper/Interop.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.IO; using System.Reflection; -using System.Runtime.InteropServices; //only Microsoft.DotNet.NativeWrapper (net7.0) has nullables disabled #pragma warning disable IDE0240 // Remove redundant nullable directive diff --git a/src/Resolvers/Microsoft.DotNet.NativeWrapper/NETBundlesNativeWrapper.cs b/src/Resolvers/Microsoft.DotNet.NativeWrapper/NETBundlesNativeWrapper.cs index c6575160edf7..ecb0717926c0 100644 --- a/src/Resolvers/Microsoft.DotNet.NativeWrapper/NETBundlesNativeWrapper.cs +++ b/src/Resolvers/Microsoft.DotNet.NativeWrapper/NETBundlesNativeWrapper.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.NativeWrapper { public class NETBundlesNativeWrapper : INETBundleProvider diff --git a/src/Resolvers/Microsoft.DotNet.NativeWrapper/NETCoreSdkResolverNativeWrapper.cs b/src/Resolvers/Microsoft.DotNet.NativeWrapper/NETCoreSdkResolverNativeWrapper.cs index b7f255f7ecdd..0a31b94d87e1 100644 --- a/src/Resolvers/Microsoft.DotNet.NativeWrapper/NETCoreSdkResolverNativeWrapper.cs +++ b/src/Resolvers/Microsoft.DotNet.NativeWrapper/NETCoreSdkResolverNativeWrapper.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.Diagnostics; //only Microsoft.DotNet.NativeWrapper (net7.0) has nullables disabled diff --git a/src/Resolvers/Microsoft.DotNet.NativeWrapper/NETEnvironmentInfo.cs b/src/Resolvers/Microsoft.DotNet.NativeWrapper/NETEnvironmentInfo.cs index 9760813a11de..e294a7d59b55 100644 --- a/src/Resolvers/Microsoft.DotNet.NativeWrapper/NETEnvironmentInfo.cs +++ b/src/Resolvers/Microsoft.DotNet.NativeWrapper/NETEnvironmentInfo.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.Linq; -using System.Runtime.InteropServices; using Microsoft.Deployment.DotNet.Releases; using static Microsoft.DotNet.NativeWrapper.Interop; diff --git a/src/Resolvers/Microsoft.DotNet.SdkResolver/NETCoreSdkResolver.cs b/src/Resolvers/Microsoft.DotNet.SdkResolver/NETCoreSdkResolver.cs index 5715080373a7..d4e857472e76 100644 --- a/src/Resolvers/Microsoft.DotNet.SdkResolver/NETCoreSdkResolver.cs +++ b/src/Resolvers/Microsoft.DotNet.SdkResolver/NETCoreSdkResolver.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.Concurrent; -using System.IO; -using System.Linq; using Microsoft.DotNet.NativeWrapper; //Microsoft.DotNet.SdkResolver (net7.0) has nullables disabled diff --git a/src/Resolvers/Microsoft.DotNet.SdkResolver/VSSettings.cs b/src/Resolvers/Microsoft.DotNet.SdkResolver/VSSettings.cs index fabd12ebdfcd..0cfcadc0ea0c 100644 --- a/src/Resolvers/Microsoft.DotNet.SdkResolver/VSSettings.cs +++ b/src/Resolvers/Microsoft.DotNet.SdkResolver/VSSettings.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.Diagnostics; -using System.IO; -using System.Runtime.InteropServices; using Microsoft.DotNet.NativeWrapper; #if NETFRAMEWORK diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver/CachingWorkloadResolver.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver/CachingWorkloadResolver.cs index 15b57a1a9da0..a1831a955ad5 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver/CachingWorkloadResolver.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver/CachingWorkloadResolver.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Framework; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; using Microsoft.NET.Sdk.WorkloadManifestReader; using System.Collections.Immutable; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver/WorkloadSdkResolver.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver/WorkloadSdkResolver.cs index a8068118755f..571c48a5197a 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver/WorkloadSdkResolver.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver/WorkloadSdkResolver.cs @@ -2,14 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Framework; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using Microsoft.NET.Sdk.WorkloadManifestReader; using Microsoft.DotNet.Configurer; -using Microsoft.DotNet.NativeWrapper; -using System.Collections.Immutable; #if NET using Microsoft.DotNet.Cli; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/IWorkloadManifestProvider.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/IWorkloadManifestProvider.cs index d31a47697f8a..d050445031d4 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/IWorkloadManifestProvider.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/IWorkloadManifestProvider.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; - namespace Microsoft.NET.Sdk.WorkloadManifestReader { /// diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/IWorkloadResolver.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/IWorkloadResolver.cs index 97fb9f941313..30a9364e54a3 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/IWorkloadResolver.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/IWorkloadResolver.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; - namespace Microsoft.NET.Sdk.WorkloadManifestReader { public interface IWorkloadResolver diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestId.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestId.cs index 60b9c212d48a..3b50d0be2c7e 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestId.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestId.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.NET.Sdk.WorkloadManifestReader { public struct ManifestId : IEquatable, IComparable diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestVersion.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestVersion.cs index 73f9f34b1d9d..422f4f8fc72b 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestVersion.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestVersion.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.MSBuildSdkResolver; using Strings = Microsoft.NET.Sdk.Localization.Strings; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestVersionUpdate.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestVersionUpdate.cs index 2872eacd3c80..0d32c472c394 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestVersionUpdate.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ManifestVersionUpdate.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.NET.Sdk.WorkloadManifestReader { public class ManifestVersionUpdate : IEquatable, IComparable diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ReadableWorkloadManifest.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ReadableWorkloadManifest.cs index 700eb4b9368a..c096510e5b60 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ReadableWorkloadManifest.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/ReadableWorkloadManifest.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.IO; - namespace Microsoft.NET.Sdk.WorkloadManifestReader { public class ReadableWorkloadManifest diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs index a3deb419a3ed..43dd03f24073 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs @@ -2,8 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. -using System; -using System.IO; using Microsoft.NET.Sdk.Localization; using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadManifestReader; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.InstallStateReader.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.InstallStateReader.cs index c1584ade78d0..a4b91b1fed39 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.InstallStateReader.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.InstallStateReader.cs @@ -2,9 +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.IO; using Microsoft.NET.Sdk.Localization; using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadManifestReader; using Microsoft.Deployment.DotNet.Releases; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.JsonReader.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.JsonReader.cs index ae7dc0d5cd1b..daa0302e561a 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.JsonReader.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.JsonReader.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. -using System; 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/SdkDirectoryWorkloadManifestProvider.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.cs index cfc6fe889de7..5a90982612ad 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkDirectoryWorkloadManifestProvider.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.Linq; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Workloads.Workload; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkFeatureBand.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkFeatureBand.cs index 1d9dc65cc509..162ab0d22ca8 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkFeatureBand.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/SdkFeatureBand.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.Deployment.DotNet.Releases; #nullable disable diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/TempDirectoryWorkloadManifestProvider.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/TempDirectoryWorkloadManifestProvider.cs index 69aca7faadb2..173a9c9f3573 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/TempDirectoryWorkloadManifestProvider.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/TempDirectoryWorkloadManifestProvider.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; - namespace Microsoft.NET.Sdk.WorkloadManifestReader { public class TempDirectoryWorkloadManifestProvider : IWorkloadManifestProvider diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadDefinition.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadDefinition.cs index 29bfa389d86b..2e962b4bbdf3 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadDefinition.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadDefinition.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; - namespace Microsoft.NET.Sdk.WorkloadManifestReader { public abstract class BaseWorkloadDefinition diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadId.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadId.cs index 0c905f94c85f..948b8ec928ae 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadId.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadId.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.NET.Sdk.WorkloadManifestReader { /// diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadInstallType.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadInstallType.cs index d7ec4e27f41d..83f74012c2bf 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadInstallType.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadInstallType.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.IO; - namespace Microsoft.NET.Sdk.WorkloadManifestReader { /// diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifest.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifest.cs index 78c0b47d81f3..01747f998908 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifest.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifest.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 Microsoft.DotNet.MSBuildSdkResolver; namespace Microsoft.NET.Sdk.WorkloadManifestReader diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestFormatException.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestFormatException.cs index e426a073f888..3e01bccecdfa 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestFormatException.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestFormatException.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.NET.Sdk.WorkloadManifestReader { class WorkloadManifestFormatException: WorkloadManifestException diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestReader.Localization.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestReader.Localization.cs index b675903954b7..4e6d6ca7a2d1 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestReader.Localization.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestReader.Localization.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.IO; using System.Globalization; using System.Runtime.CompilerServices; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestReader.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestReader.cs index 329b0b93a60d..96f17e5a1be3 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestReader.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadManifestReader.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.NET.Sdk.Localization; using FXVersion = Microsoft.DotNet.MSBuildSdkResolver.FXVersion; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadPack.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadPack.cs index 60a97252675c..0cdd8022bf8d 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadPack.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadPack.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; - namespace Microsoft.NET.Sdk.WorkloadManifestReader { public class WorkloadPack diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadPackId.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadPackId.cs index d384879885b5..5cc90f064e5a 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadPackId.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadPackId.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; #if USE_SYSTEM_TEXT_JSON using System.Text.Json; using System.Text.Json.Serialization; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadResolver.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadResolver.cs index 60ee9a27d5a6..d85e967923e1 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadResolver.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadResolver.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.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Workloads.Workload; using Microsoft.NET.Sdk.Localization; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadSet.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadSet.cs index 6908f04d4e3e..897d6541b30c 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadSet.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadSet.cs @@ -2,9 +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 Microsoft.DotNet.MSBuildSdkResolver; using Strings = Microsoft.NET.Sdk.Localization.Strings; diff --git a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadSuggestionFinder.cs b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadSuggestionFinder.cs index fdd6917f6c77..49788d78d3e0 100644 --- a/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadSuggestionFinder.cs +++ b/src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadSuggestionFinder.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.Linq; - namespace Microsoft.NET.Sdk.WorkloadManifestReader { internal class WorkloadSuggestionFinder diff --git a/src/Resolvers/WorkloadManifestValidator/Program.cs b/src/Resolvers/WorkloadManifestValidator/Program.cs index 4b872c8bf425..fe872e1aa261 100644 --- a/src/Resolvers/WorkloadManifestValidator/Program.cs +++ b/src/Resolvers/WorkloadManifestValidator/Program.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 WorkloadManifestValidator { class Program diff --git a/src/StaticWebAssetsSdk/Tasks/ApplyCssScopes.cs b/src/StaticWebAssetsSdk/Tasks/ApplyCssScopes.cs index 58fc471a963e..24d4b9db4ff5 100644 --- a/src/StaticWebAssetsSdk/Tasks/ApplyCssScopes.cs +++ b/src/StaticWebAssetsSdk/Tasks/ApplyCssScopes.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.Linq; using System.Text.RegularExpressions; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/ApplyJsModules.cs b/src/StaticWebAssetsSdk/Tasks/ApplyJsModules.cs index 4588c2c084d5..e511d1404017 100644 --- a/src/StaticWebAssetsSdk/Tasks/ApplyJsModules.cs +++ b/src/StaticWebAssetsSdk/Tasks/ApplyJsModules.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.Linq; -using System.Runtime.InteropServices; using System.Text.RegularExpressions; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/AssetToCompress.cs b/src/StaticWebAssetsSdk/Tasks/AssetToCompress.cs index 555059a79ff8..2d818163a17f 100644 --- a/src/StaticWebAssetsSdk/Tasks/AssetToCompress.cs +++ b/src/StaticWebAssetsSdk/Tasks/AssetToCompress.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.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/BrotliCompress.cs b/src/StaticWebAssetsSdk/Tasks/BrotliCompress.cs index a5db408e002c..e05a71ee3a56 100644 --- a/src/StaticWebAssetsSdk/Tasks/BrotliCompress.cs +++ b/src/StaticWebAssetsSdk/Tasks/BrotliCompress.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.IO; -using System.Linq; -using System.Text; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/CollectStaticWebAssetsToCopy.cs b/src/StaticWebAssetsSdk/Tasks/CollectStaticWebAssetsToCopy.cs index 9570d74fb671..14e3e5278a37 100644 --- a/src/StaticWebAssetsSdk/Tasks/CollectStaticWebAssetsToCopy.cs +++ b/src/StaticWebAssetsSdk/Tasks/CollectStaticWebAssetsToCopy.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.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/ComputeCssScope.cs b/src/StaticWebAssetsSdk/Tasks/ComputeCssScope.cs index 8456049f5a9e..96df6e9bc3c9 100644 --- a/src/StaticWebAssetsSdk/Tasks/ComputeCssScope.cs +++ b/src/StaticWebAssetsSdk/Tasks/ComputeCssScope.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.Numerics; using System.Security.Cryptography; -using System.Text; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/ComputeReferenceStaticWebAssetItems.cs b/src/StaticWebAssetsSdk/Tasks/ComputeReferenceStaticWebAssetItems.cs index c414c25df398..d0ecf6c83936 100644 --- a/src/StaticWebAssetsSdk/Tasks/ComputeReferenceStaticWebAssetItems.cs +++ b/src/StaticWebAssetsSdk/Tasks/ComputeReferenceStaticWebAssetItems.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.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/ComputeStaticWebAssetsForCurrentProject.cs b/src/StaticWebAssetsSdk/Tasks/ComputeStaticWebAssetsForCurrentProject.cs index d799a4f57a09..0c2f9cd6d57c 100644 --- a/src/StaticWebAssetsSdk/Tasks/ComputeStaticWebAssetsForCurrentProject.cs +++ b/src/StaticWebAssetsSdk/Tasks/ComputeStaticWebAssetsForCurrentProject.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.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/ComputeStaticWebAssetsTargetPaths.cs b/src/StaticWebAssetsSdk/Tasks/ComputeStaticWebAssetsTargetPaths.cs index 9bb89a60afc8..46fcc2586f76 100644 --- a/src/StaticWebAssetsSdk/Tasks/ComputeStaticWebAssetsTargetPaths.cs +++ b/src/StaticWebAssetsSdk/Tasks/ComputeStaticWebAssetsTargetPaths.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.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/ConcatenateCssFiles.cs b/src/StaticWebAssetsSdk/Tasks/ConcatenateCssFiles.cs index 1c9b2d6e4a0d..42db4f88bfa9 100644 --- a/src/StaticWebAssetsSdk/Tasks/ConcatenateCssFiles.cs +++ b/src/StaticWebAssetsSdk/Tasks/ConcatenateCssFiles.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 System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Security.Cryptography; -using System.Text; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/DefineStaticWebAssets.cs b/src/StaticWebAssetsSdk/Tasks/DefineStaticWebAssets.cs index cc4c6d15158e..d2a96b62d995 100644 --- a/src/StaticWebAssetsSdk/Tasks/DefineStaticWebAssets.cs +++ b/src/StaticWebAssetsSdk/Tasks/DefineStaticWebAssets.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.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.Extensions.FileSystemGlobbing; diff --git a/src/StaticWebAssetsSdk/Tasks/DiscoverDefaultScopedCssItems.cs b/src/StaticWebAssetsSdk/Tasks/DiscoverDefaultScopedCssItems.cs index cc506616be0e..0033e2f81bc8 100644 --- a/src/StaticWebAssetsSdk/Tasks/DiscoverDefaultScopedCssItems.cs +++ b/src/StaticWebAssetsSdk/Tasks/DiscoverDefaultScopedCssItems.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 Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/DiscoverStaticWebAssets.cs b/src/StaticWebAssetsSdk/Tasks/DiscoverStaticWebAssets.cs index 5e8978dec26f..a0afe95de5e6 100644 --- a/src/StaticWebAssetsSdk/Tasks/DiscoverStaticWebAssets.cs +++ b/src/StaticWebAssetsSdk/Tasks/DiscoverStaticWebAssets.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.Linq; -using System.Text.RegularExpressions; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using Microsoft.Extensions.FileSystemGlobbing; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks diff --git a/src/StaticWebAssetsSdk/Tasks/FileHasher.cs b/src/StaticWebAssetsSdk/Tasks/FileHasher.cs index 7288e33ad28f..357a53b9546e 100644 --- a/src/StaticWebAssetsSdk/Tasks/FileHasher.cs +++ b/src/StaticWebAssetsSdk/Tasks/FileHasher.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.Numerics; using System.Security.Cryptography; -using System.Text; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks; diff --git a/src/StaticWebAssetsSdk/Tasks/GZipCompress.cs b/src/StaticWebAssetsSdk/Tasks/GZipCompress.cs index 2ab362cc853b..608df8354345 100644 --- a/src/StaticWebAssetsSdk/Tasks/GZipCompress.cs +++ b/src/StaticWebAssetsSdk/Tasks/GZipCompress.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.IO; using System.IO.Compression; -using System.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/GenerateJSModuleManifest.cs b/src/StaticWebAssetsSdk/Tasks/GenerateJSModuleManifest.cs index 0063680ba118..8537889f2304 100644 --- a/src/StaticWebAssetsSdk/Tasks/GenerateJSModuleManifest.cs +++ b/src/StaticWebAssetsSdk/Tasks/GenerateJSModuleManifest.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.IO; -using System.Linq; using System.Security.Cryptography; using System.Text.Encodings.Web; using System.Text.Json; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/GenerateStaticWebAssetsDevelopmentManifest.cs b/src/StaticWebAssetsSdk/Tasks/GenerateStaticWebAssetsDevelopmentManifest.cs index 367cf652443b..40d69ccb137a 100644 --- a/src/StaticWebAssetsSdk/Tasks/GenerateStaticWebAssetsDevelopmentManifest.cs +++ b/src/StaticWebAssetsSdk/Tasks/GenerateStaticWebAssetsDevelopmentManifest.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.IO; -using System.Linq; using System.Security.Cryptography; using System.Text.Encodings.Web; using System.Text.Json; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/GenerateStaticWebAssetsManifest.cs b/src/StaticWebAssetsSdk/Tasks/GenerateStaticWebAssetsManifest.cs index 7d819ce81949..8074848d9c6e 100644 --- a/src/StaticWebAssetsSdk/Tasks/GenerateStaticWebAssetsManifest.cs +++ b/src/StaticWebAssetsSdk/Tasks/GenerateStaticWebAssetsManifest.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.IO; -using System.Linq; using System.Text.Encodings.Web; using System.Text.Json; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/GenerateStaticWebAsssetsPropsFile.cs b/src/StaticWebAssetsSdk/Tasks/GenerateStaticWebAsssetsPropsFile.cs index d55719ee62f2..4517c93b2925 100644 --- a/src/StaticWebAssetsSdk/Tasks/GenerateStaticWebAsssetsPropsFile.cs +++ b/src/StaticWebAssetsSdk/Tasks/GenerateStaticWebAsssetsPropsFile.cs @@ -1,16 +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.Diagnostics; -using System.IO; -using System.Linq; using System.Security.Cryptography; -using System.Text; using System.Xml; -using System.Xml.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/GenerateV1StaticWebAssetsManifest.cs b/src/StaticWebAssetsSdk/Tasks/GenerateV1StaticWebAssetsManifest.cs index e2332936f9d1..dd490c373bfa 100644 --- a/src/StaticWebAssetsSdk/Tasks/GenerateV1StaticWebAssetsManifest.cs +++ b/src/StaticWebAssetsSdk/Tasks/GenerateV1StaticWebAssetsManifest.cs @@ -1,16 +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.Security.Cryptography; -using System.Text; using System.Xml; -using System.Xml.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/MergeConfigurationProperties.cs b/src/StaticWebAssetsSdk/Tasks/MergeConfigurationProperties.cs index 8177fe0b07cf..8c22f954316d 100644 --- a/src/StaticWebAssetsSdk/Tasks/MergeConfigurationProperties.cs +++ b/src/StaticWebAssetsSdk/Tasks/MergeConfigurationProperties.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.IO; using System.Text.RegularExpressions; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/MergeStaticWebAssets.cs b/src/StaticWebAssetsSdk/Tasks/MergeStaticWebAssets.cs index d6034a365d5c..1e96ca2826f7 100644 --- a/src/StaticWebAssetsSdk/Tasks/MergeStaticWebAssets.cs +++ b/src/StaticWebAssetsSdk/Tasks/MergeStaticWebAssets.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.Diagnostics; -using System.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks; diff --git a/src/StaticWebAssetsSdk/Tasks/OSPath.cs b/src/StaticWebAssetsSdk/Tasks/OSPath.cs index 525fa2917f48..f19ddb4752a0 100644 --- a/src/StaticWebAssetsSdk/Tasks/OSPath.cs +++ b/src/StaticWebAssetsSdk/Tasks/OSPath.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.Runtime.InteropServices; - namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { internal static class OSPath diff --git a/src/StaticWebAssetsSdk/Tasks/ReadStaticWebAssetsManifestFile.cs b/src/StaticWebAssetsSdk/Tasks/ReadStaticWebAssetsManifestFile.cs index 2c051ee5b4a5..0111ac3da46c 100644 --- a/src/StaticWebAssetsSdk/Tasks/ReadStaticWebAssetsManifestFile.cs +++ b/src/StaticWebAssetsSdk/Tasks/ReadStaticWebAssetsManifestFile.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.IO; -using System.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/ReferencedProjectConfiguration.cs b/src/StaticWebAssetsSdk/Tasks/ReferencedProjectConfiguration.cs index 56a4a91d0d42..d7119eff24ca 100644 --- a/src/StaticWebAssetsSdk/Tasks/ReferencedProjectConfiguration.cs +++ b/src/StaticWebAssetsSdk/Tasks/ReferencedProjectConfiguration.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.Globalization; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/ResolveAllScopedCssAssets.cs b/src/StaticWebAssetsSdk/Tasks/ResolveAllScopedCssAssets.cs index 3f763be62209..ea877744211f 100644 --- a/src/StaticWebAssetsSdk/Tasks/ResolveAllScopedCssAssets.cs +++ b/src/StaticWebAssetsSdk/Tasks/ResolveAllScopedCssAssets.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 Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/ResolveCompressedAssets.cs b/src/StaticWebAssetsSdk/Tasks/ResolveCompressedAssets.cs index 07f2fc33fd60..778ebff441de 100644 --- a/src/StaticWebAssetsSdk/Tasks/ResolveCompressedAssets.cs +++ b/src/StaticWebAssetsSdk/Tasks/ResolveCompressedAssets.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.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.Extensions.FileSystemGlobbing; diff --git a/src/StaticWebAssetsSdk/Tasks/ResolveStaticWebAssetsEffectiveTargetFramework.cs b/src/StaticWebAssetsSdk/Tasks/ResolveStaticWebAssetsEffectiveTargetFramework.cs index e1bf1f2795af..311da6f8f038 100644 --- a/src/StaticWebAssetsSdk/Tasks/ResolveStaticWebAssetsEffectiveTargetFramework.cs +++ b/src/StaticWebAssetsSdk/Tasks/ResolveStaticWebAssetsEffectiveTargetFramework.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.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/ResolveStaticWebAssetsEmbeddedProjectConfiguration.cs b/src/StaticWebAssetsSdk/Tasks/ResolveStaticWebAssetsEmbeddedProjectConfiguration.cs index c26963693828..b19de032ae94 100644 --- a/src/StaticWebAssetsSdk/Tasks/ResolveStaticWebAssetsEmbeddedProjectConfiguration.cs +++ b/src/StaticWebAssetsSdk/Tasks/ResolveStaticWebAssetsEmbeddedProjectConfiguration.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.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/RewriteCss.cs b/src/StaticWebAssetsSdk/Tasks/RewriteCss.cs index e8d0e29ab9bb..1a4cd032dffe 100644 --- a/src/StaticWebAssetsSdk/Tasks/RewriteCss.cs +++ b/src/StaticWebAssetsSdk/Tasks/RewriteCss.cs @@ -1,16 +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.Concurrent; -using System.Collections.Generic; using System.Globalization; -using System.IO; -using System.Linq; -using System.Text; using System.Text.RegularExpressions; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using Microsoft.Css.Parser.Parser; using Microsoft.Css.Parser.Tokens; using Microsoft.Css.Parser.TreeItems; diff --git a/src/StaticWebAssetsSdk/Tasks/StaticAssetsManifest.cs b/src/StaticWebAssetsSdk/Tasks/StaticAssetsManifest.cs index 60c987915e27..b4b1b6cb0429 100644 --- a/src/StaticWebAssetsSdk/Tasks/StaticAssetsManifest.cs +++ b/src/StaticWebAssetsSdk/Tasks/StaticAssetsManifest.cs @@ -1,15 +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; -using System.Globalization; -using System.IO; using System.Security.Cryptography; using System.Text.Json; -using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/StaticWebAsset.cs b/src/StaticWebAssetsSdk/Tasks/StaticWebAsset.cs index 8b5bb8895f56..0f1e3226a643 100644 --- a/src/StaticWebAssetsSdk/Tasks/StaticWebAsset.cs +++ b/src/StaticWebAssetsSdk/Tasks/StaticWebAsset.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.Diagnostics; -using System.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsDiscoveryPattern.cs b/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsDiscoveryPattern.cs index 17fdb3ef2e03..c488b8dabc0a 100644 --- a/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsDiscoveryPattern.cs +++ b/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsDiscoveryPattern.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.Diagnostics; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsGeneratePackManifest.cs b/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsGeneratePackManifest.cs index c4103dd50b2f..5e75aa340d0a 100644 --- a/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsGeneratePackManifest.cs +++ b/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsGeneratePackManifest.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.IO; -using System.Linq; using System.Security.Cryptography; using System.Text.Encodings.Web; using System.Text.Json; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsGeneratePackagePropsFile.cs b/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsGeneratePackagePropsFile.cs index 2073b975750f..12851b813b3a 100644 --- a/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsGeneratePackagePropsFile.cs +++ b/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsGeneratePackagePropsFile.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.IO; using System.Security.Cryptography; -using System.Text; using System.Xml; -using System.Xml.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsReadPackManifest.cs b/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsReadPackManifest.cs index ad383c4b192e..b7b6be96275d 100644 --- a/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsReadPackManifest.cs +++ b/src/StaticWebAssetsSdk/Tasks/StaticWebAssetsReadPackManifest.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.IO; -using System.Linq; using System.Text.Json; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/StaticWebAssetsSdk/Tasks/UpdatePackageStaticWebAssets.cs b/src/StaticWebAssetsSdk/Tasks/UpdatePackageStaticWebAssets.cs index af14e544348f..7500bb9ecb6c 100644 --- a/src/StaticWebAssetsSdk/Tasks/UpdatePackageStaticWebAssets.cs +++ b/src/StaticWebAssetsSdk/Tasks/UpdatePackageStaticWebAssets.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.Json; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tasks/ValidateStaticWebAssetsUniquePaths.cs b/src/StaticWebAssetsSdk/Tasks/ValidateStaticWebAssetsUniquePaths.cs index ef147d41858f..786454f5ff16 100644 --- a/src/StaticWebAssetsSdk/Tasks/ValidateStaticWebAssetsUniquePaths.cs +++ b/src/StaticWebAssetsSdk/Tasks/ValidateStaticWebAssetsUniquePaths.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 Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.AspNetCore.StaticWebAssets.Tasks { diff --git a/src/StaticWebAssetsSdk/Tool/Program.cs b/src/StaticWebAssetsSdk/Tool/Program.cs index 34358269682d..86348369e0df 100644 --- a/src/StaticWebAssetsSdk/Tool/Program.cs +++ b/src/StaticWebAssetsSdk/Tool/Program.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.CommandLine; -using System.IO; using System.IO.Compression; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.StaticWebAssets.Tool { diff --git a/src/Tasks/Common/BuildErrorException.cs b/src/Tasks/Common/BuildErrorException.cs index 162cb1d69bc2..612aaff09ebc 100644 --- a/src/Tasks/Common/BuildErrorException.cs +++ b/src/Tasks/Common/BuildErrorException.cs @@ -6,7 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; using System.Globalization; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Common/ConflictResolution/ConflictItem.cs b/src/Tasks/Common/ConflictResolution/ConflictItem.cs index cd768a0699b7..988c2d63af58 100644 --- a/src/Tasks/Common/ConflictResolution/ConflictItem.cs +++ b/src/Tasks/Common/ConflictResolution/ConflictItem.cs @@ -7,8 +7,6 @@ #pragma warning restore IDE0240 // Remove redundant nullable directive using Microsoft.Build.Framework; -using System; -using System.IO; #if EXTENSIONS using ConflictVersion = System.Version; diff --git a/src/Tasks/Common/ConflictResolution/ConflictResolver.cs b/src/Tasks/Common/ConflictResolution/ConflictResolver.cs index 51dcd012f60a..4012b715ae32 100644 --- a/src/Tasks/Common/ConflictResolution/ConflictResolver.cs +++ b/src/Tasks/Common/ConflictResolution/ConflictResolver.cs @@ -6,10 +6,7 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; -using System.Collections.Generic; using System.Globalization; -using System.Linq; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks.ConflictResolution diff --git a/src/Tasks/Common/ConflictResolution/FrameworkListReader.cs b/src/Tasks/Common/ConflictResolution/FrameworkListReader.cs index 5c31c8b8cd07..c030b0ee5edb 100644 --- a/src/Tasks/Common/ConflictResolution/FrameworkListReader.cs +++ b/src/Tasks/Common/ConflictResolution/FrameworkListReader.cs @@ -6,12 +6,7 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; -using System.Collections.Generic; using System.Globalization; -using System.IO; -using System.Xml.Linq; -using System.Linq; using Microsoft.Build.Framework; using System.Reflection; diff --git a/src/Tasks/Common/ConflictResolution/PackageOverride.cs b/src/Tasks/Common/ConflictResolution/PackageOverride.cs index 5284838449c3..a7292da55bec 100644 --- a/src/Tasks/Common/ConflictResolution/PackageOverride.cs +++ b/src/Tasks/Common/ConflictResolution/PackageOverride.cs @@ -6,8 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; -using System.Collections.Generic; using Microsoft.Build.Framework; #if EXTENSIONS diff --git a/src/Tasks/Common/ConflictResolution/PackageOverrideResolver.cs b/src/Tasks/Common/ConflictResolution/PackageOverrideResolver.cs index dfa07a88c423..687e8fb7b4ef 100644 --- a/src/Tasks/Common/ConflictResolution/PackageOverrideResolver.cs +++ b/src/Tasks/Common/ConflictResolution/PackageOverrideResolver.cs @@ -6,8 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; -using System.Collections.Generic; using Microsoft.Build.Framework; #if EXTENSIONS diff --git a/src/Tasks/Common/ConflictResolution/PackageRank.cs b/src/Tasks/Common/ConflictResolution/PackageRank.cs index e2092dd020b9..3759a6a779d4 100644 --- a/src/Tasks/Common/ConflictResolution/PackageRank.cs +++ b/src/Tasks/Common/ConflictResolution/PackageRank.cs @@ -6,8 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; -using System.Collections.Generic; namespace Microsoft.NET.Build.Tasks.ConflictResolution { diff --git a/src/Tasks/Common/ConflictResolution/PlatformManifestReader.cs b/src/Tasks/Common/ConflictResolution/PlatformManifestReader.cs index bc873ac7602f..36c75fb514f8 100644 --- a/src/Tasks/Common/ConflictResolution/PlatformManifestReader.cs +++ b/src/Tasks/Common/ConflictResolution/PlatformManifestReader.cs @@ -6,10 +6,7 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; -using System.Collections.Generic; using System.Globalization; -using System.IO; namespace Microsoft.NET.Build.Tasks.ConflictResolution { diff --git a/src/Tasks/Common/ConflictResolution/ResolvePackageFileConflicts.cs b/src/Tasks/Common/ConflictResolution/ResolvePackageFileConflicts.cs index 226ffb72bdad..2bd0ff7a248d 100644 --- a/src/Tasks/Common/ConflictResolution/ResolvePackageFileConflicts.cs +++ b/src/Tasks/Common/ConflictResolution/ResolvePackageFileConflicts.cs @@ -8,10 +8,6 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; namespace Microsoft.NET.Build.Tasks.ConflictResolution { diff --git a/src/Tasks/Common/ConflictResolution/ResolvePublishOutputConflicts.cs b/src/Tasks/Common/ConflictResolution/ResolvePublishOutputConflicts.cs index 4b397cf2e4f6..9791a5f90885 100644 --- a/src/Tasks/Common/ConflictResolution/ResolvePublishOutputConflicts.cs +++ b/src/Tasks/Common/ConflictResolution/ResolvePublishOutputConflicts.cs @@ -7,8 +7,6 @@ #pragma warning restore IDE0240 // Remove redundant nullable directive using Microsoft.Build.Framework; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.NET.Build.Tasks.ConflictResolution { diff --git a/src/Tasks/Common/FileUtilities.cs b/src/Tasks/Common/FileUtilities.cs index c6a479d6eb4d..23ced902f273 100644 --- a/src/Tasks/Common/FileUtilities.cs +++ b/src/Tasks/Common/FileUtilities.cs @@ -6,10 +6,7 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.IO; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Common/ItemUtilities.cs b/src/Tasks/Common/ItemUtilities.cs index e48c428751ba..a04cc0825722 100644 --- a/src/Tasks/Common/ItemUtilities.cs +++ b/src/Tasks/Common/ItemUtilities.cs @@ -8,8 +8,6 @@ using Microsoft.Build.Framework; using Microsoft.NET.Build.Tasks.ConflictResolution; -using System; -using System.IO; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Common/LogAdapter.cs b/src/Tasks/Common/LogAdapter.cs index 4bd12b9e0d4a..36ae30aa597b 100644 --- a/src/Tasks/Common/LogAdapter.cs +++ b/src/Tasks/Common/LogAdapter.cs @@ -6,7 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; using Microsoft.Build.Utilities; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Common/Logger.cs b/src/Tasks/Common/Logger.cs index c2c7f665eb56..c26958418b9f 100644 --- a/src/Tasks/Common/Logger.cs +++ b/src/Tasks/Common/Logger.cs @@ -6,7 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; using System.Diagnostics; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Common/MSBuildUtilities.cs b/src/Tasks/Common/MSBuildUtilities.cs index 992a11e7550e..542bc8834861 100644 --- a/src/Tasks/Common/MSBuildUtilities.cs +++ b/src/Tasks/Common/MSBuildUtilities.cs @@ -6,7 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Common/MessageBase.cs b/src/Tasks/Common/MessageBase.cs index 8ead7be1cbbe..f9a53333fed7 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 System; using System.Globalization; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Common/MessageLevel.cs b/src/Tasks/Common/MessageLevel.cs index 993be7a463f8..68917cb9386f 100644 --- a/src/Tasks/Common/MessageLevel.cs +++ b/src/Tasks/Common/MessageLevel.cs @@ -6,7 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Common/NuGetUtils.cs b/src/Tasks/Common/NuGetUtils.cs index 66c9e1170de4..a62bf27f5343 100644 --- a/src/Tasks/Common/NuGetUtils.cs +++ b/src/Tasks/Common/NuGetUtils.cs @@ -6,8 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; -using System.IO; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Common/TaskBase.cs b/src/Tasks/Common/TaskBase.cs index 001cd2f30e5c..36dd8ba8cd3e 100644 --- a/src/Tasks/Common/TaskBase.cs +++ b/src/Tasks/Common/TaskBase.cs @@ -6,9 +6,7 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; using Microsoft.Build.Framework; -using System.Collections.Generic; using System.Globalization; using MSBuildTask = Microsoft.Build.Utilities.Task; diff --git a/src/Tasks/Common/TaskWithAssemblyResolveHooks.cs b/src/Tasks/Common/TaskWithAssemblyResolveHooks.cs index c2865591c452..c7fddb85d8ce 100644 --- a/src/Tasks/Common/TaskWithAssemblyResolveHooks.cs +++ b/src/Tasks/Common/TaskWithAssemblyResolveHooks.cs @@ -6,8 +6,6 @@ #nullable disable #pragma warning restore IDE0240 // Remove redundant nullable directive -using System; -using System.IO; using System.Reflection; 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 0227fa494098..e313d65ab7b0 100644 --- a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks.UnitTests/GivenAGetDependsOnNETStandardTask.cs +++ b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks.UnitTests/GivenAGetDependsOnNETStandardTask.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.Collections.Generic; using System.Reflection; using FluentAssertions; using Xunit; -using System.Linq; -using System.IO; namespace Microsoft.NET.Build.Tasks.UnitTests { diff --git a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/AddFacadesToReferences.cs b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/AddFacadesToReferences.cs index 6c9ba15b5297..86a20d701551 100644 --- a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/AddFacadesToReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/AddFacadesToReferences.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.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/GetDependsOnNETStandard.cs b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/GetDependsOnNETStandard.cs index 9202af300a18..341692656cec 100644 --- a/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/GetDependsOnNETStandard.cs +++ b/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/GetDependsOnNETStandard.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Framework; -using System; -using System.IO; using System.Security; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GetPublishItemsOutputGroupOutputsTests.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GetPublishItemsOutputGroupOutputsTests.cs index 67c89be0cdaa..447e65d380ac 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GetPublishItemsOutputGroupOutputsTests.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GetPublishItemsOutputGroupOutputsTests.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 FluentAssertions; using Xunit; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAAllowEmptyTelemetry.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAAllowEmptyTelemetry.cs index 7904baaad807..c6e17404c19d 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAAllowEmptyTelemetry.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAAllowEmptyTelemetry.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 Microsoft.Build.Framework; using Microsoft.Build.Tasks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenACompilationOptionsConverter.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenACompilationOptionsConverter.cs index 55280f66ba3c..761b16154f37 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenACompilationOptionsConverter.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenACompilationOptionsConverter.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.Reflection; using FluentAssertions; using Microsoft.Build.Framework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAConflictResolver.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAConflictResolver.cs index 488e3171a3ad..69ef94015b9b 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAConflictResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAConflictResolver.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.Linq; using FluentAssertions; using Microsoft.Build.Framework; using Microsoft.NET.Build.Tasks.ConflictResolution; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenADependencyContextBuilder.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenADependencyContextBuilder.cs index fe2b2fcb195d..a852c72754d1 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenADependencyContextBuilder.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenADependencyContextBuilder.cs @@ -12,10 +12,6 @@ using NuGet.ProjectModel; using NuGet.Versioning; using NuGet.RuntimeModel; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using Xunit; namespace Microsoft.NET.Build.Tasks.UnitTests diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAGenerateRuntimeConfigurationFiles.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAGenerateRuntimeConfigurationFiles.cs index e5314f3232ab..6da7349172c5 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAGenerateRuntimeConfigurationFiles.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAGenerateRuntimeConfigurationFiles.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.IO; using FluentAssertions; using Microsoft.NET.TestFramework; using Xunit; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAGenerateToolsSettingsFile.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAGenerateToolsSettingsFile.cs index 259d1da13a71..a2ac7a45ad82 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAGenerateToolsSettingsFile.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAGenerateToolsSettingsFile.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using FluentAssertions; -using System.Xml.Linq; using Xunit; namespace Microsoft.NET.Build.Tasks.UnitTests diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenALogger.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenALogger.cs index 21500bec0bc4..99a3e486201a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenALogger.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenALogger.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 FluentAssertions; using Microsoft.Build.Framework; using Xunit; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAPackageOverrideResolver.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAPackageOverrideResolver.cs index cfc0d31a0274..18b0434e2860 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAPackageOverrideResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAPackageOverrideResolver.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.Build.Framework; using Microsoft.NET.Build.Tasks.ConflictResolution; using Microsoft.NET.Build.Tasks.UnitTests.Mocks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAProduceContentsAssetsTask.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAProduceContentsAssetsTask.cs index c70cf317753c..52a31bb5cba1 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAProduceContentsAssetsTask.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAProduceContentsAssetsTask.cs @@ -3,9 +3,6 @@ using FluentAssertions; using Microsoft.Build.Framework; -using System.Collections.Generic; -using System.IO; -using System.Linq; using Xunit; 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 0a8ed895b112..bda98d20ca19 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAProjectContext.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAProjectContext.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.Linq; using FluentAssertions; using NuGet.Frameworks; using NuGet.ProjectModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenARemoveDuplicatePackageReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenARemoveDuplicatePackageReferences.cs index 5e80a9147a04..366f3f27b566 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenARemoveDuplicatePackageReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenARemoveDuplicatePackageReferences.cs @@ -3,9 +3,6 @@ using FluentAssertions; using Microsoft.Build.Framework; -using System; -using System.Collections.Generic; -using System.Linq; using Xunit; using NuGet.Packaging.Core; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolvePackageAssetsTask.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolvePackageAssetsTask.cs index 9abcb014d40f..4888ddae8d89 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolvePackageAssetsTask.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolvePackageAssetsTask.cs @@ -3,10 +3,6 @@ using FluentAssertions; using Microsoft.Build.Framework; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Reflection; using Xunit; using static Microsoft.NET.Build.Tasks.ResolvePackageAssets; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolvePackageDependenciesTask.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolvePackageDependenciesTask.cs index 9ec5c77bd595..9acfe60504bd 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolvePackageDependenciesTask.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolvePackageDependenciesTask.cs @@ -4,10 +4,6 @@ using FluentAssertions; using Microsoft.Build.Framework; using NuGet.ProjectModel; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using NuGet.Common; using Xunit; using static Microsoft.NET.Build.Tasks.UnitTests.LockFileSnippets; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveRuntimePackAssetsTask.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveRuntimePackAssetsTask.cs index 2a9e9f0431ee..cda35ec0c6ea 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveRuntimePackAssetsTask.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveRuntimePackAssetsTask.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.Collections.Generic; -using System.IO; -using System.Linq; using FluentAssertions; using Microsoft.Build.Utilities; using Microsoft.NET.TestFramework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveTargetingPackAssetsTask.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveTargetingPackAssetsTask.cs index a0d1146ff444..82b5b4fb37af 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveTargetingPackAssetsTask.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAResolveTargetingPackAssetsTask.cs @@ -4,11 +4,6 @@ using FluentAssertions; using Microsoft.Build.Framework; using Microsoft.NET.TestFramework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAnAssetsFileResolver.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAnAssetsFileResolver.cs index 36391a969c48..5bc7c64a1aa8 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAnAssetsFileResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenAnAssetsFileResolver.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.IO; using FluentAssertions; using NuGet.Frameworks; using NuGet.Packaging.Core; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs index 9c9d56038fe1..4f7b106e187a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeHaveErrorCodes.cs @@ -2,13 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; -using System.Collections.Generic; using System.Globalization; using System.Text.RegularExpressions; using FluentAssertions; using Xunit; -using System.Linq; -using System.Xml.Linq; namespace Microsoft.NET.Build.Tasks.UnitTests { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeWantToGenerateSupportedTargetFrameworkAlias.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeWantToGenerateSupportedTargetFrameworkAlias.cs index 8e84f541b7d4..1f0e11126e78 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeWantToGenerateSupportedTargetFrameworkAlias.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeWantToGenerateSupportedTargetFrameworkAlias.cs @@ -4,9 +4,6 @@ using FluentAssertions; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using System; -using System.Collections.Generic; -using System.Linq; using Xunit; 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 20f9c5e10aef..bcc395e48d64 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeWantToGetDependenciesViaDesignTimeBuild.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenThatWeWantToGetDependenciesViaDesignTimeBuild.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.Linq; using System.Reflection; using FluentAssertions; using Microsoft.Build.Framework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenUnresolvedSDKProjectItemsAndImplicitPackages.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenUnresolvedSDKProjectItemsAndImplicitPackages.cs index bccef08d95c5..805d9dc69dfb 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenUnresolvedSDKProjectItemsAndImplicitPackages.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenUnresolvedSDKProjectItemsAndImplicitPackages.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.Linq; using FluentAssertions; using Microsoft.Build.Framework; using Xunit; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenWriteAppConfigWithSupportedRuntimeTask.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenWriteAppConfigWithSupportedRuntimeTask.cs index 1197b97eaa37..890e97a09f31 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenWriteAppConfigWithSupportedRuntimeTask.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenWriteAppConfigWithSupportedRuntimeTask.cs @@ -3,8 +3,6 @@ using FluentAssertions; using NuGet.Frameworks; -using System.Linq; -using System.Xml.Linq; using Xunit; namespace Microsoft.NET.Build.Tasks.UnitTests diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/LockFileSnippets.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/LockFileSnippets.cs index c16af300fce8..57c86f9b6167 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/LockFileSnippets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/LockFileSnippets.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.Collections.Generic; -using System; -using System.Linq; using NuGet.Common; namespace Microsoft.NET.Build.Tasks.UnitTests diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockBuildEngine.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockBuildEngine.cs index 3a5e7cd809c0..3a5aeb5e34cb 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockBuildEngine.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockBuildEngine.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; -using System.Collections.Generic; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks.UnitTests diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockConflictItem.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockConflictItem.cs index bca41e31fff6..df7eb55b16cc 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockConflictItem.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockConflictItem.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.NET.Build.Tasks.ConflictResolution; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockContentAssetPreprocessor.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockContentAssetPreprocessor.cs index 25edabea4654..1b044f4a7a14 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockContentAssetPreprocessor.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockContentAssetPreprocessor.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using NuGet.Common; -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; namespace Microsoft.NET.Build.Tasks.UnitTests { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockPackageResolver.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockPackageResolver.cs index 43f9c2855102..94ea855dd214 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockPackageResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockPackageResolver.cs @@ -3,7 +3,6 @@ using NuGet.ProjectModel; using NuGet.Versioning; -using System.IO; namespace Microsoft.NET.Build.Tasks.UnitTests { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockTaskItem.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockTaskItem.cs index 1305e32f24b0..ea5eea0ee237 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockTaskItem.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/Mocks/MockTaskItem.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; -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 55e2d15c982e..57a1af72a697 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/ProcessFrameworkReferencesTests.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/ProcessFrameworkReferencesTests.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.IO; using FluentAssertions; using Microsoft.NET.TestFramework; using Xunit; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/TestLockFiles.cs b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/TestLockFiles.cs index afa8a4561456..8901fa434f12 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/TestLockFiles.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/TestLockFiles.cs @@ -3,7 +3,6 @@ using NuGet.Common; using NuGet.ProjectModel; -using System.IO; namespace Microsoft.NET.Build.Tasks.UnitTests { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/AllowEmptyTelemetry.cs b/src/Tasks/Microsoft.NET.Build.Tasks/AllowEmptyTelemetry.cs index ac22e627d194..c282154bd8f5 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/AllowEmptyTelemetry.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/AllowEmptyTelemetry.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.Linq; using Microsoft.Build.Framework; using Microsoft.NET.Build.Tasks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ApplyImplicitVersions.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ApplyImplicitVersions.cs index 682a02852238..91c4cfe5f364 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ApplyImplicitVersions.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ApplyImplicitVersions.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.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 5a020c06831a..af2519c7a1b7 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/AssetsFileResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/AssetsFileResolver.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.IO; 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 54cdb54f1ecc..e95d4012a651 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateFrameworkReferences.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.Linq; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItemMetadata.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItemMetadata.cs index 26aac64fcdae..fc49d3f2e9d3 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItemMetadata.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItemMetadata.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Framework; -using System.Linq; 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 8deff44c4df3..cf7918c63249 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItems.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForDuplicateItems.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Framework; -using System; using System.Globalization; -using System.Linq; 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 edda62d97c17..23aa9e647d0d 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForImplicitPackageReferenceOverrides.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForImplicitPackageReferenceOverrides.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Framework; -using System; -using System.Collections.Generic; -using System.Linq; 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 e3837c98440a..1f53d913050a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckForUnsupportedWinMDReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckForUnsupportedWinMDReferences.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.Linq; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; using Microsoft.Build.Framework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CheckIfPackageReferenceShouldBeFrameworkReference.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CheckIfPackageReferenceShouldBeFrameworkReference.cs index e43934d519eb..cdd1da022133 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CheckIfPackageReferenceShouldBeFrameworkReference.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CheckIfPackageReferenceShouldBeFrameworkReference.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.Linq; 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 b6e9d22453f9..e02fdc2d013a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CollectSDKReferencesDesignTime.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CollectSDKReferencesDesignTime.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.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CompilationOptionsConverter.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CompilationOptionsConverter.cs index 80f94d1d3d05..a94a98d346f0 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CompilationOptionsConverter.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CompilationOptionsConverter.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.Build.Framework; using Microsoft.Extensions.DependencyModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CreateAppHost.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CreateAppHost.cs index 8f2c4aa3b6c1..30f13087f688 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CreateAppHost.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CreateAppHost.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.IO; -using System.Threading; using Microsoft.Build.Framework; using Microsoft.NET.HostModel; using Microsoft.NET.HostModel.AppHost; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CreateComHost.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CreateComHost.cs index 68bef1aae796..63666ba7b95a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CreateComHost.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CreateComHost.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.Build.Framework; using Microsoft.NET.HostModel.ComHost; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs index 724318e558dc..e673f15a443f 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.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.Linq; 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 9625fe26571c..1adef018d052 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.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.Linq; using Microsoft.Build.Framework; using Microsoft.Extensions.DependencyModel; using NuGet.Packaging; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ExecutableExtension.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ExecutableExtension.cs index 9c625bc1fee4..905a00b8fddd 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ExecutableExtension.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ExecutableExtension.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.NET.Build.Tasks { public sealed class ExecutableExtension diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FileGroup.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FileGroup.cs index 605106b7e94f..8f7fb29d9429 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FileGroup.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FileGroup.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using NuGet.ProjectModel; -using System; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FilterResolvedFiles.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FilterResolvedFiles.cs index f633b8ee8362..22b630b7e525 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FilterResolvedFiles.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FilterResolvedFiles.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.Build.Framework; using Microsoft.Build.Utilities; using NuGet.ProjectModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FindItemsFromPackages.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FindItemsFromPackages.cs index ee47da59fcd2..bd1b9684fa53 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FindItemsFromPackages.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FindItemsFromPackages.cs @@ -3,8 +3,6 @@ using Microsoft.Build.Framework; using NuGet.Packaging.Core; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkReferenceResolver.cs b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkReferenceResolver.cs index 234e2f431d6e..81b0601acc33 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkReferenceResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/FrameworkReferenceResolver.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.IO; -using System.Runtime.InteropServices; using Microsoft.Extensions.DependencyModel.Resolution; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateBundle.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateBundle.cs index 87baf6590ffd..d718334323ff 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateBundle.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateBundle.cs @@ -3,10 +3,6 @@ using Microsoft.Build.Framework; using Microsoft.NET.HostModel.Bundle; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.InteropServices; 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 485b0ab076f5..798e5cbb88d7 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateClsidMap.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateClsidMap.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.IO; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; using Microsoft.Build.Framework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs index 8baf693624d0..090e7d4514cb 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs @@ -8,10 +8,6 @@ using NuGet.Packaging.Core; using NuGet.RuntimeModel; using NuGet.ProjectModel; -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.Tasks/GenerateGlobalUsings.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateGlobalUsings.cs index 5febdb75f419..412625b0b31a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateGlobalUsings.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateGlobalUsings.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.Linq; -using System.Text; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRegFreeComManifest.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRegFreeComManifest.cs index af55a4bdd8f8..2138720b29f5 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRegFreeComManifest.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRegFreeComManifest.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 Microsoft.Build.Framework; using Microsoft.NET.HostModel.ComHost; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRuntimeConfigurationFiles.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRuntimeConfigurationFiles.cs index cd83f1eaf495..c76b4d55c474 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRuntimeConfigurationFiles.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateRuntimeConfigurationFiles.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.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Newtonsoft.Json; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateShims.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateShims.cs index e5517990e19b..3fdbf839f549 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateShims.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateShims.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.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.NET.HostModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateSupportedTargetFrameworkAlias.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateSupportedTargetFrameworkAlias.cs index 010ef8ade5ac..079a1f19250b 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateSupportedTargetFrameworkAlias.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateSupportedTargetFrameworkAlias.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.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Frameworks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs index 38a5b193549b..080305f4e9bc 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Framework; -using System.Xml.Linq; -using System.IO; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyAttributes.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyAttributes.cs index 8b6c87240134..1901f4939ed0 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyAttributes.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetAssemblyAttributes.cs @@ -3,11 +3,7 @@ using Microsoft.Build.Framework; using System.Diagnostics; -using System.IO; -using System.Collections.Generic; -using System; using Microsoft.Build.Utilities; -using System.Linq; 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 fa25dd0c3f3a..b99ed022d14b 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetDefaultPlatformTargetForNetFramework.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetDefaultPlatformTargetForNetFramework.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.Linq; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/GetEmbeddedApphostPaths.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetEmbeddedApphostPaths.cs index 20c0d9976ce4..aa272e4e8779 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetEmbeddedApphostPaths.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetEmbeddedApphostPaths.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.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/GetPackageDirectory.cs b/src/Tasks/Microsoft.NET.Build.Tasks/GetPackageDirectory.cs index 31f254d9ac3c..5879a966fd55 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetPackageDirectory.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetPackageDirectory.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.Linq; 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 b0cfae0cb364..4d89ba3f286d 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/GetPublishItemsOutputGroupOutputs.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/GetPublishItemsOutputGroupOutputs.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.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/IContentAssetPreprocessor.cs b/src/Tasks/Microsoft.NET.Build.Tasks/IContentAssetPreprocessor.cs index 770c139b7e37..da8c0d456ed4 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/IContentAssetPreprocessor.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/IContentAssetPreprocessor.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; - namespace Microsoft.NET.Build.Tasks { /// diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/JoinItems.cs b/src/Tasks/Microsoft.NET.Build.Tasks/JoinItems.cs index 52d3cfc94a17..0fb8789250ca 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/JoinItems.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/JoinItems.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 Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using System.Linq; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileCache.cs b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileCache.cs index 5a9a5d72af2f..6fb82b8b7227 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileCache.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileCache.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.IO; using Microsoft.Build.Framework; using NuGet.Common; using NuGet.ProjectModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileExtensions.cs b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileExtensions.cs index e510fdddbd99..f6786681d357 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileExtensions.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileExtensions.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.Linq; using Microsoft.Build.Framework; using NuGet.Packaging.Core; using NuGet.ProjectModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileLookup.cs b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileLookup.cs index 9e4d6d11c5a7..4317fc114ae2 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/LockFileLookup.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/LockFileLookup.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 NuGet.LibraryModel; using NuGet.ProjectModel; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/NuGetPackageResolver.cs b/src/Tasks/Microsoft.NET.Build.Tasks/NuGetPackageResolver.cs index cc3c7d257f28..54cd841a79d6 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/NuGetPackageResolver.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/NuGetPackageResolver.cs @@ -4,9 +4,6 @@ using NuGet.Packaging; using NuGet.ProjectModel; using NuGet.Versioning; -using System.Collections.Generic; -using System.IO; -using System.Linq; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/NuGetUtils.NuGet.cs b/src/Tasks/Microsoft.NET.Build.Tasks/NuGetUtils.NuGet.cs index 9e8bbfd95e64..ddbf925ac823 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/NuGetUtils.NuGet.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/NuGetUtils.NuGet.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 NuGet.Frameworks; using NuGet.RuntimeModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/NugetContentAssetPreprocessor.cs b/src/Tasks/Microsoft.NET.Build.Tasks/NugetContentAssetPreprocessor.cs index 2a7971d67648..d7817b1d7d3e 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/NugetContentAssetPreprocessor.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/NugetContentAssetPreprocessor.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using NuGet.Common; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Security.Cryptography; -using System.Text; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/PackageReferenceConverter.cs b/src/Tasks/Microsoft.NET.Build.Tasks/PackageReferenceConverter.cs index 19342bceb032..d8049c937ac5 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/PackageReferenceConverter.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/PackageReferenceConverter.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.Linq; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ParseTargetManifests.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ParseTargetManifests.cs index dcd2ba3b5126..6b35acbdf4dc 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ParseTargetManifests.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ParseTargetManifests.cs @@ -4,10 +4,6 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Packaging.Core; -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.cs b/src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.cs index 16dab09d1284..f41115a1b8b4 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.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.Runtime.InteropServices; using System.Reflection.PortableExecutable; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs index 009412f68473..dd8e898c5ee6 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ProcessFrameworkReferences.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 System.Linq; -using System.Runtime.InteropServices; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.DotNet.Cli; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ProduceContentAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ProduceContentAssets.cs index 68e6c64ae3d8..5d814fe64c6e 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ProduceContentAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ProduceContentAssets.cs @@ -3,10 +3,6 @@ using Microsoft.Build.Framework; using Microsoft.Build.Utilities; -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.Tasks/ProjectContext.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ProjectContext.cs index aa78667e6d5f..fbc6c3011e65 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ProjectContext.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ProjectContext.cs @@ -4,10 +4,7 @@ using Microsoft.Build.Framework; using NuGet.Packaging.Core; using NuGet.ProjectModel; -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; namespace Microsoft.NET.Build.Tasks { diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ReferenceInfo.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ReferenceInfo.cs index fe7dc5ec4749..3017de5f9d71 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ReferenceInfo.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ReferenceInfo.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.Linq; using System.Reflection; using Microsoft.Build.Framework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RemoveDuplicatePackageReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RemoveDuplicatePackageReferences.cs index 6e00fd449fa6..0f13bb5ec01b 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RemoveDuplicatePackageReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RemoveDuplicatePackageReferences.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.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Packaging.Core; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveAppHosts.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveAppHosts.cs index eb62e1946551..0534aa96d745 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveAppHosts.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveAppHosts.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.Linq; 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 185423e75cf7..42503c7f2a7c 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveCopyLocalAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveCopyLocalAssets.cs @@ -1,12 +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.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Packaging.Core; using NuGet.ProjectModel; -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 e9f56bc3ff4d..0156c944f052 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveFrameworkReferences.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.Linq; 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 37fd4741ba9a..5656088374ac 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageAssets.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.Diagnostics; -using System.IO; -using System.Linq; using System.Security.Cryptography; -using System.Text; using Microsoft.Build.Evaluation; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageDependencies.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageDependencies.cs index 43f4703d10c9..6e404446bb02 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageDependencies.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageDependencies.cs @@ -5,10 +5,6 @@ using Microsoft.Build.Utilities; using NuGet.Frameworks; using NuGet.ProjectModel; -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.Tasks/ResolveReadyToRunCompilers.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs index 0e04ca700246..f79082c525a5 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.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.IO; -using System.Linq; -using System.Runtime.InteropServices; - using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Versioning; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs index b72328022a91..a42b0da9fae8 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveRuntimePackAssets.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 System.Linq; -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 b61034abff42..91904a6ba24f 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.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.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/ResolveToolPackagePaths.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveToolPackagePaths.cs index aba83316010e..1c96ddb9589f 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveToolPackagePaths.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveToolPackagePaths.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 Microsoft.Build.Framework; using Microsoft.Build.Utilities; using NuGet.Frameworks; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvedFile.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvedFile.cs index f238199713c4..203045c57d0a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolvedFile.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolvedFile.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; using NuGet.Packaging.Core; using Microsoft.Build.Framework; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResourceAssemblyInfo.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResourceAssemblyInfo.cs index 021f750d7332..e2cac2e13797 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResourceAssemblyInfo.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResourceAssemblyInfo.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.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RunReadyToRunCompiler.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RunReadyToRunCompiler.cs index 64f263fa7ede..575778b11d7e 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RunReadyToRunCompiler.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RunReadyToRunCompiler.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.IO; -using System.Text; - using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeGraphCache.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeGraphCache.cs index 0572a7cd20be..a254977f3599 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeGraphCache.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeGraphCache.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.IO; using Microsoft.Build.Framework; using NuGet.RuntimeModel; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeOptions.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeOptions.cs index a360a1f7d473..463cf94277bd 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeOptions.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimeOptions.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 Newtonsoft.Json; using Newtonsoft.Json.Linq; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimePackAssetInfo.cs b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimePackAssetInfo.cs index abcdf90c98fb..66e1ea3aa5cf 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/RuntimePackAssetInfo.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/RuntimePackAssetInfo.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.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ShowMissingWorkloads.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ShowMissingWorkloads.cs index 89f98b3830ff..31e0c69c22ba 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ShowMissingWorkloads.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ShowMissingWorkloads.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.Globalization; -using System.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.DotNet.Configurer; diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/SingleProjectInfo.cs b/src/Tasks/Microsoft.NET.Build.Tasks/SingleProjectInfo.cs index c1efeaf6dfd7..7454e9adafcf 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/SingleProjectInfo.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/SingleProjectInfo.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.IO; -using System.Linq; -using System.Collections.Generic; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/StoreArtifactParser.cs b/src/Tasks/Microsoft.NET.Build.Tasks/StoreArtifactParser.cs index 4a1b8e5554f2..82c667657643 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/StoreArtifactParser.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/StoreArtifactParser.cs @@ -3,8 +3,6 @@ using NuGet.Packaging.Core; using NuGet.Versioning; -using System.Collections.Generic; -using System.Xml.Linq; 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 938df0dc3e0a..00e18706728f 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/TypeLibraryDictionaryBuilder.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/TypeLibraryDictionaryBuilder.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.Linq; 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 a180078f710b..e25db3da7548 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ValidateExecutableReferences.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.Linq; using System.Runtime.Versioning; -using System.Xml.Linq; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/WriteAppConfigWithSupportedRuntime.cs b/src/Tasks/Microsoft.NET.Build.Tasks/WriteAppConfigWithSupportedRuntime.cs index 0ca1246aaf65..105b69ec7f1a 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/WriteAppConfigWithSupportedRuntime.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/WriteAppConfigWithSupportedRuntime.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.IO; -using System.Linq; -using System.Xml.Linq; using Microsoft.Build.Framework; namespace Microsoft.NET.Build.Tasks diff --git a/src/Tests/ArgumentForwarding.Tests/ArgumentForwardingTests.cs b/src/Tests/ArgumentForwarding.Tests/ArgumentForwardingTests.cs index 9a5a490ff3b4..b7472349d1bc 100644 --- a/src/Tests/ArgumentForwarding.Tests/ArgumentForwardingTests.cs +++ b/src/Tests/ArgumentForwarding.Tests/ArgumentForwardingTests.cs @@ -1,21 +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.Runtime.InteropServices; -using System.Text; -using Xunit; -using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools.Test.Utilities; using System.Diagnostics; -using FluentAssertions; using Microsoft.DotNet.CommandFactory; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Commands; namespace Microsoft.DotNet.Tests.ArgumentForwarding { diff --git a/src/Tests/ArgumentsReflector/Reflector.cs b/src/Tests/ArgumentsReflector/Reflector.cs index 452dcdcf03e6..06e4a9fd0cd4 100644 --- a/src/Tests/ArgumentsReflector/Reflector.cs +++ b/src/Tests/ArgumentsReflector/Reflector.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.Tests.ArgumentForwarding { public class Program diff --git a/src/Tests/Common/Program.UnitTests.cs b/src/Tests/Common/Program.UnitTests.cs index d86965eaa69a..31f308383400 100644 --- a/src/Tests/Common/Program.UnitTests.cs +++ b/src/Tests/Common/Program.UnitTests.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.Linq; - partial class Program { public static int Main(string[] args) diff --git a/src/Tests/EndToEnd.Tests/GivenDotNetLinuxInstallers.cs b/src/Tests/EndToEnd.Tests/GivenDotNetLinuxInstallers.cs index 6b78dc35c569..b378713e8f84 100644 --- a/src/Tests/EndToEnd.Tests/GivenDotNetLinuxInstallers.cs +++ b/src/Tests/EndToEnd.Tests/GivenDotNetLinuxInstallers.cs @@ -1,15 +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 Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Tests.EndToEnd { public class GivenDotNetLinuxInstallers : SdkTest diff --git a/src/Tests/EndToEnd.Tests/GivenDotNetUsesMSBuild.cs b/src/Tests/EndToEnd.Tests/GivenDotNetUsesMSBuild.cs index 0139f6eca8ab..6ebcd6eeba07 100644 --- a/src/Tests/EndToEnd.Tests/GivenDotNetUsesMSBuild.cs +++ b/src/Tests/EndToEnd.Tests/GivenDotNetUsesMSBuild.cs @@ -1,16 +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.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - [assembly: CollectionBehavior(DisableTestParallelization = true)] namespace Microsoft.DotNet.Tests.EndToEnd diff --git a/src/Tests/EndToEnd.Tests/GivenDotnetUsesDotnetTools.cs b/src/Tests/EndToEnd.Tests/GivenDotnetUsesDotnetTools.cs index 280172aa46af..552a723bde02 100644 --- a/src/Tests/EndToEnd.Tests/GivenDotnetUsesDotnetTools.cs +++ b/src/Tests/EndToEnd.Tests/GivenDotnetUsesDotnetTools.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 FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace EndToEnd { public class GivenDotnetUsesDotnetTools : SdkTest diff --git a/src/Tests/EndToEnd.Tests/GivenNetFrameworkSupportsNetStandard2.cs b/src/Tests/EndToEnd.Tests/GivenNetFrameworkSupportsNetStandard2.cs index 0dd174d9e45c..9cc0ddb8ec68 100644 --- a/src/Tests/EndToEnd.Tests/GivenNetFrameworkSupportsNetStandard2.cs +++ b/src/Tests/EndToEnd.Tests/GivenNetFrameworkSupportsNetStandard2.cs @@ -1,18 +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 FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using Xunit.Abstractions; -using Xunit; - namespace EndToEnd { public class GivenNetFrameworkSupportsNetStandard2 : SdkTest diff --git a/src/Tests/HelixTasks/AssemblyScheduler.cs b/src/Tests/HelixTasks/AssemblyScheduler.cs index 23484fb05ab6..b36807cf305a 100644 --- a/src/Tests/HelixTasks/AssemblyScheduler.cs +++ b/src/Tests/HelixTasks/AssemblyScheduler.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.Collections.Generic; -using System.IO; -using System.Linq; using System.Reflection; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; -using System.Text; namespace Microsoft.DotNet.SdkCustomHelix.Sdk { diff --git a/src/Tests/HelixTasks/CreateLocalHelixTestLayout.cs b/src/Tests/HelixTasks/CreateLocalHelixTestLayout.cs index 8791e8aa29b3..8b81992258af 100644 --- a/src/Tests/HelixTasks/CreateLocalHelixTestLayout.cs +++ b/src/Tests/HelixTasks/CreateLocalHelixTestLayout.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.IO; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.DotNet.SdkCustomHelix.Sdk { diff --git a/src/Tests/HelixTasks/SDKCustomCreateXUnitWorkItemsWithTestExclusion.cs b/src/Tests/HelixTasks/SDKCustomCreateXUnitWorkItemsWithTestExclusion.cs index 2d0b1c24b271..b23b0ead550f 100644 --- a/src/Tests/HelixTasks/SDKCustomCreateXUnitWorkItemsWithTestExclusion.cs +++ b/src/Tests/HelixTasks/SDKCustomCreateXUnitWorkItemsWithTestExclusion.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; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; using Microsoft.Build.Framework; using Newtonsoft.Json; using NuGet.Frameworks; diff --git a/src/Tests/HelixTasks/TarGzFileCreateFromDirectory.cs b/src/Tests/HelixTasks/TarGzFileCreateFromDirectory.cs index 457ddf7e5a53..60842828e3b2 100644 --- a/src/Tests/HelixTasks/TarGzFileCreateFromDirectory.cs +++ b/src/Tests/HelixTasks/TarGzFileCreateFromDirectory.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.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/BlazorWasmHotReloadMiddlewareTest.cs b/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/BlazorWasmHotReloadMiddlewareTest.cs index a957b5ec5159..cdb268b290b1 100644 --- a/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/BlazorWasmHotReloadMiddlewareTest.cs +++ b/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/BlazorWasmHotReloadMiddlewareTest.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.Text.Json; -using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Net.Http.Headers; -using Xunit; namespace Microsoft.AspNetCore.Watch.BrowserRefresh { diff --git a/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/BrowserRefreshMiddlewareTest.cs b/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/BrowserRefreshMiddlewareTest.cs index eea2dfbc7278..5a167a66906e 100644 --- a/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/BrowserRefreshMiddlewareTest.cs +++ b/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/BrowserRefreshMiddlewareTest.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.IO; -using System.Text; -using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging.Abstractions; -using Xunit; namespace Microsoft.AspNetCore.Watch.BrowserRefresh { diff --git a/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/BrowserScriptMiddlewareTest.cs b/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/BrowserScriptMiddlewareTest.cs index f51372b213b2..0db8346b4070 100644 --- a/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/BrowserScriptMiddlewareTest.cs +++ b/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/BrowserScriptMiddlewareTest.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.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.AspNetCore.Http; -using Xunit; namespace Microsoft.AspNetCore.Watch.BrowserRefresh { diff --git a/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/HostingStartupTest.cs b/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/HostingStartupTest.cs index 2fc01c70355f..8e046cc1c3af 100644 --- a/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/HostingStartupTest.cs +++ b/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/HostingStartupTest.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.IO; -using System.Text; -using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace Microsoft.AspNetCore.Watch.BrowserRefresh { diff --git a/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/WebSocketScriptInjectionTest.cs b/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/WebSocketScriptInjectionTest.cs index fc80b0038b26..f76bb5fa7771 100644 --- a/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/WebSocketScriptInjectionTest.cs +++ b/src/Tests/Microsoft.AspNetCore.Watch.BrowserRefresh.Tests/WebSocketScriptInjectionTest.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.IO; -using System.Text; -using System.Threading.Tasks; -using Xunit; - namespace Microsoft.AspNetCore.Watch.BrowserRefresh { public class WebSocketScriptInjectionTest diff --git a/src/Tests/Microsoft.DotNet.ApiCompat.IntegrationTests/CompatibleFrameworkInPackageValidatorIntegrationTests.cs b/src/Tests/Microsoft.DotNet.ApiCompat.IntegrationTests/CompatibleFrameworkInPackageValidatorIntegrationTests.cs index 2659c37ffeca..49acd64d2a6c 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompat.IntegrationTests/CompatibleFrameworkInPackageValidatorIntegrationTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompat.IntegrationTests/CompatibleFrameworkInPackageValidatorIntegrationTests.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.DotNet.ApiCompatibility; using Microsoft.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiCompatibility.Rules; @@ -10,11 +9,6 @@ using Microsoft.DotNet.ApiSymbolExtensions; using Microsoft.DotNet.PackageValidation; using Microsoft.DotNet.PackageValidation.Validators; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.ApiCompat.IntegrationTests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompat.IntegrationTests/Task/ValidateAssembliesTargetIntegrationTests.cs b/src/Tests/Microsoft.DotNet.ApiCompat.IntegrationTests/Task/ValidateAssembliesTargetIntegrationTests.cs index 140a1a6170f3..9732c2e6f324 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompat.IntegrationTests/Task/ValidateAssembliesTargetIntegrationTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompat.IntegrationTests/Task/ValidateAssembliesTargetIntegrationTests.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 Microsoft.NET.TestFramework; -using Xunit.Abstractions; - namespace Microsoft.DotNet.ApiCompat.Task.IntegrationTests { public class ValidateAssembliesTargetIntegrationTests : SdkTest diff --git a/src/Tests/Microsoft.DotNet.ApiCompat.IntegrationTests/Task/ValidatePackageTargetIntegrationTests.cs b/src/Tests/Microsoft.DotNet.ApiCompat.IntegrationTests/Task/ValidatePackageTargetIntegrationTests.cs index 6bc3f4a1698a..8754f9d7384f 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompat.IntegrationTests/Task/ValidatePackageTargetIntegrationTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompat.IntegrationTests/Task/ValidatePackageTargetIntegrationTests.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.Collections.Generic; -using System.IO; -using System.Linq; using Microsoft.DotNet.ApiCompat.IntegrationTests; using Microsoft.DotNet.ApiCompatibility; using Microsoft.DotNet.ApiCompatibility.Logging; @@ -13,11 +10,6 @@ using Microsoft.DotNet.PackageValidation; using Microsoft.DotNet.PackageValidation.Validators; using Microsoft.DotNet.ApiSymbolExtensions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; using NuGet.Frameworks; namespace Microsoft.DotNet.ApiCompat.Task.IntegrationTests diff --git a/src/Tests/Microsoft.DotNet.ApiCompat.Tests/RegexStringTransformerTests.cs b/src/Tests/Microsoft.DotNet.ApiCompat.Tests/RegexStringTransformerTests.cs index ef357b3ab9bf..5459d930d25a 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompat.Tests/RegexStringTransformerTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompat.Tests/RegexStringTransformerTests.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.Text.RegularExpressions; using Microsoft.DotNet.ApiCompat; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/CompatDifferenceTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/CompatDifferenceTests.cs index 395a8c7487b2..b53ce9869c26 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/CompatDifferenceTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/CompatDifferenceTests.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.Collections.Generic; -using Xunit; - namespace Microsoft.DotNet.ApiCompatibility.Tests { public class CompatDifferenceTests diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/CustomSideNameTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/CustomSideNameTests.cs index 11e1f04beecc..b1d28ae919cd 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/CustomSideNameTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/CustomSideNameTests.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.Collections.Generic; -using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Rules; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/EmptyTestSuppressionEngine.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/EmptyTestSuppressionEngine.cs index 62baea2fd0ed..21a2c6b87376 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/EmptyTestSuppressionEngine.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/EmptyTestSuppressionEngine.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.IO; - namespace Microsoft.DotNet.ApiCompatibility.Logging.Tests { internal class EmptyTestSuppressionEngine : SuppressionEngine diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/SuppressionEngineTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/SuppressionEngineTests.cs index 7ee09b60f0d0..429095aed1c7 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/SuppressionEngineTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/SuppressionEngineTests.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.Runtime.InteropServices; using System.Xml.Serialization; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Logging.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/SuppressionTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/SuppressionTests.cs index 3f27b1095955..c25bfa28f3ea 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/SuppressionTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/SuppressionTests.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.Collections.Generic; -using Xunit; - namespace Microsoft.DotNet.ApiCompatibility.Logging.Tests { public class SuppressionTests diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/TestSuppressionEngine.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/TestSuppressionEngine.cs index d49944d7d4b2..def1c8467d0b 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/TestSuppressionEngine.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Logging/TestSuppressionEngine.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.IO; -using System.Runtime.InteropServices; - namespace Microsoft.DotNet.ApiCompatibility.Logging.Tests { internal class TestSuppressionEngine : SuppressionEngine diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/AssemblyMapperTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/AssemblyMapperTests.cs index 3ad92851d7e1..f74473deae16 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/AssemblyMapperTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/AssemblyMapperTests.cs @@ -3,14 +3,11 @@ #nullable enable -using System.Collections.Generic; -using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Mapping; using Microsoft.DotNet.ApiCompatibility.Rules; using Microsoft.DotNet.ApiSymbolExtensions.Tests; using Moq; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Tests.Mapping { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/AssemblySetMapperTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/AssemblySetMapperTests.cs index 7c0a5d9b2973..2ccc34d7e8cb 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/AssemblySetMapperTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/AssemblySetMapperTests.cs @@ -3,13 +3,10 @@ #nullable enable -using System.Collections.Generic; -using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Mapping; using Microsoft.DotNet.ApiCompatibility.Rules; using Moq; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Tests.Mapping { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/MemberMapperTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/MemberMapperTests.cs index 78fafb17f6ae..00a7d0fff2a3 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/MemberMapperTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/MemberMapperTests.cs @@ -6,7 +6,6 @@ using Microsoft.DotNet.ApiCompatibility.Mapping; using Microsoft.DotNet.ApiCompatibility.Rules; using Moq; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Tests.Mapping { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/NamespaceMapperTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/NamespaceMapperTests.cs index 44f0c5d84427..c1a5a139bc12 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/NamespaceMapperTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/NamespaceMapperTests.cs @@ -3,14 +3,11 @@ #nullable enable -using System.Collections.Generic; -using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Mapping; using Microsoft.DotNet.ApiCompatibility.Rules; using Microsoft.DotNet.ApiSymbolExtensions.Tests; using Moq; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Tests.Mapping { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/TypeMapperTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/TypeMapperTests.cs index 90395f0d682c..2d51d7756188 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/TypeMapperTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Mapping/TypeMapperTests.cs @@ -3,14 +3,11 @@ #nullable enable -using System.Collections.Generic; -using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Mapping; using Microsoft.DotNet.ApiCompatibility.Rules; using Microsoft.DotNet.ApiSymbolExtensions.Tests; using Moq; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Tests.Mapping { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/AssemblyIdentityMustMatchTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/AssemblyIdentityMustMatchTests.cs index 301bd0ea85b1..f3a2816379b4 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/AssemblyIdentityMustMatchTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/AssemblyIdentityMustMatchTests.cs @@ -1,15 +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.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/AttributesMustMatchTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/AttributesMustMatchTests.cs index 4786c42a8dbb..00d07070e086 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/AttributesMustMatchTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/AttributesMustMatchTests.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.IO; -using System.Collections.Generic; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; using Microsoft.DotNet.ApiSymbolExtensions.Filtering; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotAddAbstractMemberTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotAddAbstractMemberTests.cs index 6560ff5d1cf6..5769249f7853 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotAddAbstractMemberTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotAddAbstractMemberTests.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 Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotAddMemberToInterfaceTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotAddMemberToInterfaceTests.cs index 8c9f05e4f42b..b4b55c5683cd 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotAddMemberToInterfaceTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotAddMemberToInterfaceTests.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.Collections.Generic; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotAddOrRemoveVirtualKeywordTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotAddOrRemoveVirtualKeywordTests.cs index 32fb8bc0bf50..f6eb2a8ba5e8 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotAddOrRemoveVirtualKeywordTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotAddOrRemoveVirtualKeywordTests.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.Runtime.InteropServices; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotChangeVisibilityTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotChangeVisibilityTests.cs index c02170cbbb63..010d02090277 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotChangeVisibilityTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotChangeVisibilityTests.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; -using System.Collections.Generic; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotRemoveBaseTypeOrInterfaceTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotRemoveBaseTypeOrInterfaceTests.cs index d48bf5f5cc88..2902b4f1f6d6 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotRemoveBaseTypeOrInterfaceTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotRemoveBaseTypeOrInterfaceTests.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 Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotSealTypeTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotSealTypeTests.cs index 3822a03e7d9e..e04ea5093674 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotSealTypeTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/CannotSealTypeTests.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.Collections.Generic; -using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/EnumsMustMatchTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/EnumsMustMatchTests.cs index eabf68ab5061..f655a9e3db0c 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/EnumsMustMatchTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/EnumsMustMatchTests.cs @@ -1,11 +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.Collections.Generic; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/MembersMustExistTests.Strict.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/MembersMustExistTests.Strict.cs index ba26ae121ea7..0fdef051f53f 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/MembersMustExistTests.Strict.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/MembersMustExistTests.Strict.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 Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/MembersMustExistTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/MembersMustExistTests.cs index 36f7d4b03ac9..a8e307d48a70 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/MembersMustExistTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/MembersMustExistTests.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.Collections.Generic; -using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/ParameterNamesCannotChangeTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/ParameterNamesCannotChangeTests.cs index 7918eb66ff8e..e042307f4568 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/ParameterNamesCannotChangeTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/ParameterNamesCannotChangeTests.cs @@ -1,11 +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.Collections.Generic; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/TypeMustExistTests.Strict.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/TypeMustExistTests.Strict.cs index fb0d712d13b7..50dc4f25ee8a 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/TypeMustExistTests.Strict.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/TypeMustExistTests.Strict.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 Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/TypeMustExistTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/TypeMustExistTests.cs index 0e4598d9cb87..a77852005747 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/TypeMustExistTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Rules/TypeMustExistTests.cs @@ -1,11 +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.Collections.Generic; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.ApiSymbolExtensions.Tests; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Rules.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Runner/ApiCompatOptionsTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Runner/ApiCompatOptionsTests.cs index 7db7b1992435..c9e788696c83 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Runner/ApiCompatOptionsTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Runner/ApiCompatOptionsTests.cs @@ -3,7 +3,6 @@ #nullable enable -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Runner.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Runner/ApiCompatRunnerTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Runner/ApiCompatRunnerTests.cs index 6d8725d7f356..99c359610094 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Runner/ApiCompatRunnerTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Runner/ApiCompatRunnerTests.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.Collections.Generic; -using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiSymbolExtensions; using Moq; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Runner.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Runner/ApiCompatWorkItemTests.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Runner/ApiCompatWorkItemTests.cs index db224e2568a3..8c905c2eeba9 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Runner/ApiCompatWorkItemTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/Runner/ApiCompatWorkItemTests.cs @@ -3,8 +3,6 @@ #nullable enable -using Microsoft.DotNet.ApiCompatibility; -using Xunit; namespace Microsoft.DotNet.ApiCompatibility.Runner.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/SuppressableTestLog.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/SuppressableTestLog.cs index 64bfc20eb5dd..455bf8889f74 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/SuppressableTestLog.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/SuppressableTestLog.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.DotNet.ApiCompatibility.Logging; using Microsoft.DotNet.ApiSymbolExtensions.Logging; diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/SymbolFactoryExtensions.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/SymbolFactoryExtensions.cs index 628e2d198aba..9ba413d6dd01 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/SymbolFactoryExtensions.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/SymbolFactoryExtensions.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.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using Microsoft.DotNet.ApiSymbolExtensions.Tests; diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/TempDirectory.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/TempDirectory.cs index 399e9727d51c..36644f62a5d4 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/TempDirectory.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/TempDirectory.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.IO; - namespace Microsoft.DotNet.ApiCompatibility.Tests { public class TempDirectory : IDisposable diff --git a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/TestRuleFactory.cs b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/TestRuleFactory.cs index d844233b0375..c1fb3a6b7113 100644 --- a/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/TestRuleFactory.cs +++ b/src/Tests/Microsoft.DotNet.ApiCompatibility.Tests/TestRuleFactory.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.DotNet.ApiCompatibility.Rules; namespace Microsoft.DotNet.ApiCompatibility.Tests diff --git a/src/Tests/Microsoft.DotNet.ApiSymbolExtensions.Tests/AssemblySymbolLoaderTests.cs b/src/Tests/Microsoft.DotNet.ApiSymbolExtensions.Tests/AssemblySymbolLoaderTests.cs index de3c1ccf817a..e6db37aaa223 100644 --- a/src/Tests/Microsoft.DotNet.ApiSymbolExtensions.Tests/AssemblySymbolLoaderTests.cs +++ b/src/Tests/Microsoft.DotNet.ApiSymbolExtensions.Tests/AssemblySymbolLoaderTests.cs @@ -1,21 +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.Concurrent; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Reflection; -using System.Threading; using Microsoft.CodeAnalysis; 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 Xunit.Abstractions; namespace Microsoft.DotNet.ApiSymbolExtensions.Tests { diff --git a/src/Tests/Microsoft.DotNet.ApiSymbolExtensions.Tests/SymbolFactory.cs b/src/Tests/Microsoft.DotNet.ApiSymbolExtensions.Tests/SymbolFactory.cs index 9dd4e641bfc1..b1d590944453 100644 --- a/src/Tests/Microsoft.DotNet.ApiSymbolExtensions.Tests/SymbolFactory.cs +++ b/src/Tests/Microsoft.DotNet.ApiSymbolExtensions.Tests/SymbolFactory.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.Collections.Immutable; -using System.IO; -using System.Linq; using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; -using Xunit; namespace Microsoft.DotNet.ApiSymbolExtensions.Tests { diff --git a/src/Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests.cs b/src/Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests.cs index 9abbca13116e..fed4fde65b54 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests.cs @@ -1,17 +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.IO; -using FluentAssertions; -using Xunit; -using Microsoft.DotNet.Cli.Sln.Internal; -using Microsoft.DotNet.Tools.Test.Utilities; using System.Runtime.CompilerServices; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Sln.Internal.Tests { diff --git a/src/Tests/Microsoft.DotNet.Cli.Telemetry.PersistenceChannel.Tests/SenderTests.cs b/src/Tests/Microsoft.DotNet.Cli.Telemetry.PersistenceChannel.Tests/SenderTests.cs index 3ec88b1a0472..4da6dff2eaa4 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Telemetry.PersistenceChannel.Tests/SenderTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Telemetry.PersistenceChannel.Tests/SenderTests.cs @@ -1,17 +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.Net; using System.Runtime.CompilerServices; -using System.Threading; -using FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; using Moq; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel.Tests { diff --git a/src/Tests/Microsoft.DotNet.Cli.Telemetry.PersistenceChannel.Tests/StorageTests.cs b/src/Tests/Microsoft.DotNet.Cli.Telemetry.PersistenceChannel.Tests/StorageTests.cs index 8c6b81185a09..a3a3704e5725 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Telemetry.PersistenceChannel.Tests/StorageTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Telemetry.PersistenceChannel.Tests/StorageTests.cs @@ -1,18 +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.IO; using System.Runtime.CompilerServices; -using System.Text; -using FluentAssertions; using Microsoft.ApplicationInsights.Channel; using Microsoft.ApplicationInsights.DataContracts; using Microsoft.ApplicationInsights.Extensibility.Implementation; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; using IChannelTelemetry = Microsoft.ApplicationInsights.Channel.ITelemetry; namespace Microsoft.DotNet.Cli.Telemetry.PersistenceChannel.Tests diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/ArgumentEscaperTests.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/ArgumentEscaperTests.cs index d76ae5d2c543..cdc0796ee136 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/ArgumentEscaperTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/ArgumentEscaperTests.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 Xunit; - namespace Microsoft.DotNet.Cli.Utils.Tests { public class ArgumentEscaperTests diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/BlockingMemoryStreamTests.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/BlockingMemoryStreamTests.cs index 03cf3b8ec123..d075e04d94ea 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/BlockingMemoryStreamTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/BlockingMemoryStreamTests.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.Threading; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; - namespace Microsoft.DotNet.Cli.Utils { public class BlockingMemoryStreamTests diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/BuiltInCommandTests.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/BuiltInCommandTests.cs index ee5d82e660fe..25b39bd02e47 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/BuiltInCommandTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/BuiltInCommandTests.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.IO; -using System.Linq; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; - namespace Microsoft.DotNet.Cli.Utils { public class BuiltInCommandTests diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DangerousFileDetectorTests.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DangerousFileDetectorTests.cs index 6cff907a8b0f..2fe0a44713b8 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DangerousFileDetectorTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DangerousFileDetectorTests.cs @@ -1,19 +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.ComponentModel; -using System.IO; -using System.Runtime.InteropServices; using System.Runtime.Versioning; -using FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; using Microsoft.Win32.SafeHandles; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Utils.Tests { diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DependencyProviderTests.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DependencyProviderTests.cs index 17598bdc25c6..413766e5fe8d 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DependencyProviderTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DependencyProviderTests.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.IO; -using System.Linq; -using Microsoft.NET.TestFramework; using Microsoft.Win32; -using Xunit; namespace Microsoft.DotNet.Cli.Utils.Tests { diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DotDefaultPathCorrectorTests.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DotDefaultPathCorrectorTests.cs index fc69e4b85c02..72934c567be6 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DotDefaultPathCorrectorTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/DotDefaultPathCorrectorTests.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 FluentAssertions; -using Microsoft.DotNet.Tools.Common; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; - namespace Microsoft.DotNet.Cli.Utils { public class DotDefaultPathCorrectorTests diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/GivenAFrameworkDependencyFile.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/GivenAFrameworkDependencyFile.cs index 928a89eefa3a..d589e14d0257 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/GivenAFrameworkDependencyFile.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/GivenAFrameworkDependencyFile.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 FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.Extensions.DependencyModel; -using Microsoft.NET.TestFramework; -using Xunit; namespace Microsoft.DotNet.Cli.Utils.Tests { diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/GivenAppThrowingException.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/GivenAppThrowingException.cs index a149911f8c03..ff560af53a1f 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/GivenAppThrowingException.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/GivenAppThrowingException.cs @@ -1,15 +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.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Cli.Utils.Tests { public class GivenAppThrowingException : SdkTest diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/PathUtilityTests.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/PathUtilityTests.cs index d887bddabfa5..0d7f0cb96a4f 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/PathUtilityTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/PathUtilityTests.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Tools.Common; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Xunit; namespace Microsoft.DotNet.Cli.Utils { diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/ProcessExtensionsTests.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/ProcessExtensionsTests.cs index ae20ff3e720e..915313a2f6ad 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/ProcessExtensionsTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/ProcessExtensionsTests.cs @@ -3,8 +3,6 @@ using System.Diagnostics; using System.Runtime.Versioning; -using Microsoft.NET.TestFramework; -using Xunit; namespace Microsoft.DotNet.Cli.Utils.Tests { diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/RuntimeEnvironmentTests.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/RuntimeEnvironmentTests.cs index b350166fb675..f416b9dcfe0d 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/RuntimeEnvironmentTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/RuntimeEnvironmentTests.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.Runtime.InteropServices; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Cli.Utils.Tests { public class RuntimeEnvironmentTests : SdkTest diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/StreamForwarderTests.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/StreamForwarderTests.cs index 18715339d476..ff752e802d3f 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/StreamForwarderTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/StreamForwarderTests.cs @@ -1,17 +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 Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.InternalAbstractions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; namespace StreamForwarderTests { diff --git a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/TypoCorrectionTests.cs b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/TypoCorrectionTests.cs index ef4c307e0607..f74fa1853a1d 100644 --- a/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/TypoCorrectionTests.cs +++ b/src/Tests/Microsoft.DotNet.Cli.Utils.Tests/TypoCorrectionTests.cs @@ -3,8 +3,6 @@ #nullable enable -using FluentAssertions; -using Xunit; namespace Microsoft.DotNet.Cli.Utils.Tests { diff --git a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/CommandResolverTestUtils.cs b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/CommandResolverTestUtils.cs index 0deeea9e6380..74ff28ccd9eb 100644 --- a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/CommandResolverTestUtils.cs +++ b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/CommandResolverTestUtils.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.IO; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Tests diff --git a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenACompositeCommandResolver.cs b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenACompositeCommandResolver.cs index 282a6294edde..ab37d3da3267 100644 --- a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenACompositeCommandResolver.cs +++ b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenACompositeCommandResolver.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.Collections.Generic; -using FluentAssertions; using Microsoft.DotNet.CommandFactory; -using Microsoft.DotNet.Tools.Test.Utilities; using Moq; -using Xunit; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenADefaultCommandResolver.cs b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenADefaultCommandResolver.cs index b5e17df88a03..586d99b951b4 100644 --- a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenADefaultCommandResolver.cs +++ b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenADefaultCommandResolver.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.Linq; -using FluentAssertions; using Microsoft.DotNet.CommandFactory; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenADotnetToolsCommandResolver.cs b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenADotnetToolsCommandResolver.cs index d93aafddc229..13ec50cfde94 100644 --- a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenADotnetToolsCommandResolver.cs +++ b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenADotnetToolsCommandResolver.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.IO; -using FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; using Microsoft.DotNet.CommandFactory; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenALocalToolsCommandResolver.cs b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenALocalToolsCommandResolver.cs index de97afd3a916..9dda6f938bf0 100644 --- a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenALocalToolsCommandResolver.cs +++ b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenALocalToolsCommandResolver.cs @@ -1,26 +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.Collections.Generic; -using System.IO; -using FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.CommandFactory; using Microsoft.DotNet.ToolManifest; using Microsoft.DotNet.ToolPackage; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; using NuGet.Frameworks; using NuGet.Versioning; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAProjectDependencyCommandResolver.cs b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAProjectDependencyCommandResolver.cs index 0ab219858f93..f226cce06ac4 100644 --- a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAProjectDependencyCommandResolver.cs +++ b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAProjectDependencyCommandResolver.cs @@ -1,17 +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.IO; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; using Microsoft.DotNet.CommandFactory; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAProjectPathCommandResolver.cs b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAProjectPathCommandResolver.cs index 20953e7c882d..749ba9e463c6 100644 --- a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAProjectPathCommandResolver.cs +++ b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAProjectPathCommandResolver.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.IO; -using System.Runtime.InteropServices; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.CommandFactory; -using Xunit; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAProjectToolsCommandResolver.cs b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAProjectToolsCommandResolver.cs index 929fd8846f01..d9ac4256ec2f 100644 --- a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAProjectToolsCommandResolver.cs +++ b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAProjectToolsCommandResolver.cs @@ -1,23 +1,13 @@ // 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; using Microsoft.DotNet.Cli.Utils; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; using Microsoft.DotNet.Tools.Test.Utilities; using NuGet.Frameworks; using NuGet.ProjectModel; using NuGet.Versioning; -using Xunit; using Microsoft.DotNet.CommandFactory; using LocalizableStrings = Microsoft.DotNet.CommandFactory.LocalizableStrings; -using Microsoft.DotNet.Tools.MSBuild; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenARootedCommandResolver.cs b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenARootedCommandResolver.cs index 96869b33bd3e..0e5c4e029760 100644 --- a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenARootedCommandResolver.cs +++ b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenARootedCommandResolver.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 FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.DotNet.CommandFactory; -using Xunit; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAScriptCommandResolver.cs b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAScriptCommandResolver.cs index c59216855e48..823080e86cea 100644 --- a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAScriptCommandResolver.cs +++ b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAScriptCommandResolver.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.Linq; -using FluentAssertions; using Microsoft.DotNet.CommandFactory; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAnAppBaseCommandResolver.cs b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAnAppBaseCommandResolver.cs index c4fa3db2a06b..8a516efd2c89 100644 --- a/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAnAppBaseCommandResolver.cs +++ b/src/Tests/Microsoft.DotNet.CommandFactory.Tests/GivenAnAppBaseCommandResolver.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.IO; -using System.Runtime.InteropServices; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.CommandFactory; -using Xunit; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenADotnetFirstTimeUseConfigurer.cs b/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenADotnetFirstTimeUseConfigurer.cs index a1aac55345df..0ecbee391f52 100644 --- a/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenADotnetFirstTimeUseConfigurer.cs +++ b/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenADotnetFirstTimeUseConfigurer.cs @@ -1,17 +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 FluentAssertions; -using Microsoft.DotNet.Cli.Telemetry; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Configurer; -using Microsoft.DotNet.Tests; -using Microsoft.DotNet.Tools.Test; -using Microsoft.Extensions.DependencyModel.Tests; using Moq; -using Xunit; namespace Microsoft.DotNet.Configurer.UnitTests { diff --git a/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenADotnetFirstTimeUseConfigurerWIthStateSetup.cs b/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenADotnetFirstTimeUseConfigurerWIthStateSetup.cs index 9b8c566935e0..3a01b75325a6 100644 --- a/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenADotnetFirstTimeUseConfigurerWIthStateSetup.cs +++ b/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenADotnetFirstTimeUseConfigurerWIthStateSetup.cs @@ -1,17 +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 FluentAssertions; using Microsoft.DotNet.Cli.Telemetry; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Utilities; using Moq; -using Xunit; -using Xunit.Abstractions; using static Microsoft.DotNet.Configurer.UnitTests.GivenADotnetFirstTimeUseConfigurerWithStateSetup.ActionCalledTime; namespace Microsoft.DotNet.Configurer.UnitTests diff --git a/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenAFirstTimeUseNoticeSentinel.cs b/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenAFirstTimeUseNoticeSentinel.cs index 850d33ea1997..274aad639d8e 100644 --- a/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenAFirstTimeUseNoticeSentinel.cs +++ b/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenAFirstTimeUseNoticeSentinel.cs @@ -1,17 +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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Configurer; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Moq; -using Xunit; namespace Microsoft.DotNet.Configurer.UnitTests { diff --git a/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenAFunctionReturnStringAndFakeFileSystem.cs b/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenAFunctionReturnStringAndFakeFileSystem.cs index 8e8a64c4ee65..52c1a5865eec 100644 --- a/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenAFunctionReturnStringAndFakeFileSystem.cs +++ b/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenAFunctionReturnStringAndFakeFileSystem.cs @@ -1,17 +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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Configurer; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; using Moq; -using Xunit; namespace Microsoft.DotNet.Configurer.UnitTests { diff --git a/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenAPathCalculator.cs b/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenAPathCalculator.cs index ba9d6e94f72e..4872bf74cff1 100644 --- a/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenAPathCalculator.cs +++ b/src/Tests/Microsoft.DotNet.Configurer.UnitTests/GivenAPathCalculator.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 Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools.Test.Utilities; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Xunit; - namespace Microsoft.DotNet.Configurer.UnitTests { public class GivenAPathCalculator diff --git a/src/Tests/Microsoft.DotNet.GenAPI.Tests/CSharpFileBuilderTests.cs b/src/Tests/Microsoft.DotNet.GenAPI.Tests/CSharpFileBuilderTests.cs index 876a5fbc3f50..14ba3ef5dd36 100644 --- a/src/Tests/Microsoft.DotNet.GenAPI.Tests/CSharpFileBuilderTests.cs +++ b/src/Tests/Microsoft.DotNet.GenAPI.Tests/CSharpFileBuilderTests.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.Runtime.CompilerServices; -using System.Text; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.DotNet.ApiSymbolExtensions; @@ -11,7 +9,6 @@ using Microsoft.DotNet.ApiSymbolExtensions.Logging; using Microsoft.DotNet.ApiSymbolExtensions.Tests; using Microsoft.DotNet.GenAPI.Filtering; -using Xunit; namespace Microsoft.DotNet.GenAPI.Tests { diff --git a/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/BodyBlockCSharpSyntaxRewriterTests.cs b/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/BodyBlockCSharpSyntaxRewriterTests.cs index 61305ff2ef58..6cdd51d9a271 100644 --- a/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/BodyBlockCSharpSyntaxRewriterTests.cs +++ b/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/BodyBlockCSharpSyntaxRewriterTests.cs @@ -4,7 +4,6 @@ #nullable enable using Microsoft.DotNet.GenAPI.SyntaxRewriter; -using Xunit; namespace Microsoft.DotNet.GenAPI.Tests.SyntaxRewriter { diff --git a/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/CSharpSyntaxRewriterTestBase.cs b/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/CSharpSyntaxRewriterTestBase.cs index 4164bf21f749..7ed6bcf8aeab 100644 --- a/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/CSharpSyntaxRewriterTestBase.cs +++ b/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/CSharpSyntaxRewriterTestBase.cs @@ -3,9 +3,6 @@ #nullable enable -using Xunit; -using System.IO; -using System.Text; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis; diff --git a/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/SingleLineStatementCSharpSyntaxRewriterTests.cs b/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/SingleLineStatementCSharpSyntaxRewriterTests.cs index 9748d33a61e6..c3c2e5f2e997 100644 --- a/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/SingleLineStatementCSharpSyntaxRewriterTests.cs +++ b/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/SingleLineStatementCSharpSyntaxRewriterTests.cs @@ -4,7 +4,6 @@ #nullable enable using Microsoft.DotNet.GenAPI.SyntaxRewriter; -using Xunit; namespace Microsoft.DotNet.GenAPI.Tests.SyntaxRewriter { diff --git a/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/TypeDeclarationCSharpSyntaxRewriterTests.cs b/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/TypeDeclarationCSharpSyntaxRewriterTests.cs index bfc70942505b..8ab46c53a721 100644 --- a/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/TypeDeclarationCSharpSyntaxRewriterTests.cs +++ b/src/Tests/Microsoft.DotNet.GenAPI.Tests/SyntaxRewriter/TypeDeclarationCSharpSyntaxRewriterTests.cs @@ -4,7 +4,6 @@ #nullable enable using Microsoft.DotNet.GenAPI.SyntaxRewriter; -using Xunit; namespace Microsoft.DotNet.GenAPI.Tests.SyntaxRewriter { diff --git a/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenAnEnvironmentForResolution.cs b/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenAnEnvironmentForResolution.cs index 72d13e38a0b9..98775e635cff 100644 --- a/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenAnEnvironmentForResolution.cs +++ b/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenAnEnvironmentForResolution.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.IO; -using System.Linq; -using FluentAssertions; -using Xunit; - namespace Microsoft.DotNet.Cli.Utils.Tests { public class GivenAnEnvironmentForResolution diff --git a/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenAnMSBuildSdkResolver.cs b/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenAnMSBuildSdkResolver.cs index d840683f98c1..f49e8225901c 100644 --- a/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenAnMSBuildSdkResolver.cs +++ b/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenAnMSBuildSdkResolver.cs @@ -2,19 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. extern alias sdkResolver; -using FluentAssertions; using Microsoft.Build.Framework; using Microsoft.DotNet.MSBuildSdkResolver; -using Microsoft.DotNet.Tools.Test.Utilities; -using System.Collections.Generic; -using System.IO; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using Xunit; -using Xunit.Abstractions; -using System; -using Microsoft.NET.TestFramework; -using System.Linq; using Microsoft.DotNet.DotNetSdkResolver; [assembly: CollectionBehavior(DisableTestParallelization = true)] diff --git a/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenThatIWantToCompareSemanticVersions.cs b/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenThatIWantToCompareSemanticVersions.cs index b92e3d876031..94a89c104906 100644 --- a/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenThatIWantToCompareSemanticVersions.cs +++ b/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenThatIWantToCompareSemanticVersions.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 Xunit; using Microsoft.DotNet.MSBuildSdkResolver; -using FluentAssertions; namespace Microsoft.DotNet.Cli.Utils.Tests { diff --git a/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenThatWeWantToParseSemanticVersions.cs b/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenThatWeWantToParseSemanticVersions.cs index 7c0bd335ad5b..1fce5751568b 100644 --- a/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenThatWeWantToParseSemanticVersions.cs +++ b/src/Tests/Microsoft.DotNet.MSBuildSdkResolver.Tests/GivenThatWeWantToParseSemanticVersions.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 Xunit; using Microsoft.DotNet.MSBuildSdkResolver; -using FluentAssertions; namespace Microsoft.DotNet.Cli.Utils.Tests { diff --git a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/LocalToolsResolverCacheTests.cs b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/LocalToolsResolverCacheTests.cs index 1340c745ca5a..6cb9deaca70c 100644 --- a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/LocalToolsResolverCacheTests.cs +++ b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/LocalToolsResolverCacheTests.cs @@ -1,22 +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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework; using NuGet.Frameworks; using NuGet.Versioning; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.PackageInstall.Tests { diff --git a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/LockFileMatcherTests.cs b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/LockFileMatcherTests.cs index 9f9a66c0d47c..fb7237d4e891 100644 --- a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/LockFileMatcherTests.cs +++ b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/LockFileMatcherTests.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 FluentAssertions; using Microsoft.DotNet.ToolPackage; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; using NuGet.ProjectModel; -using Xunit; namespace Microsoft.DotNet.PackageInstall.Tests { diff --git a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/NuGetPackageInstallerExtractTests.cs b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/NuGetPackageInstallerExtractTests.cs index 1718acffb9a2..fe1aef46a520 100644 --- a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/NuGetPackageInstallerExtractTests.cs +++ b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/NuGetPackageInstallerExtractTests.cs @@ -1,19 +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.Threading.Tasks; -using FluentAssertions; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework; using NuGet.Versioning; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.PackageInstall.Tests { diff --git a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/NuGetPackageInstallerTests.cs b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/NuGetPackageInstallerTests.cs index 0d73c2959c18..790b337e16e0 100644 --- a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/NuGetPackageInstallerTests.cs +++ b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/NuGetPackageInstallerTests.cs @@ -1,27 +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.Reflection; using System.Security.Cryptography; -using FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; -using Xunit; -using System.Threading.Tasks; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.ToolPackage; -using Microsoft.NET.HostModel; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Utilities; using NuGet.Packaging; using NuGet.Packaging.Signing; -using Xunit.Abstractions; -using System.Security.Cryptography.X509Certificates; -using System.Linq; -using System.Threading; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.PackageInstall.Tests diff --git a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/Stage2ProjectRestorer.cs b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/Stage2ProjectRestorer.cs index 696c8397a14d..e21dc966e814 100644 --- a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/Stage2ProjectRestorer.cs +++ b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/Stage2ProjectRestorer.cs @@ -1,15 +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.Collections.Generic; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.DotNet.CommandFactory; -using System.Linq; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Commands; namespace Microsoft.DotNet.Tools.Tool.Install { diff --git a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolConfigurationDeserializerTests.cs b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolConfigurationDeserializerTests.cs index ac231ca7cad0..71423885f54b 100644 --- a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolConfigurationDeserializerTests.cs +++ b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolConfigurationDeserializerTests.cs @@ -1,15 +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.DotNet.ToolPackage; using Microsoft.DotNet.Tools; -using NuGet.Protocol.Core.Types; -using Xunit; namespace Microsoft.DotNet.PackageInstall.Tests { diff --git a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolPackageInstallerNugetCacheTests.cs b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolPackageInstallerNugetCacheTests.cs index 1607bea642a5..def708e6b9b1 100644 --- a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolPackageInstallerNugetCacheTests.cs +++ b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolPackageInstallerNugetCacheTests.cs @@ -1,23 +1,13 @@ // 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.Reflection; -using FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Tools.Tool.Install; using Microsoft.DotNet.Tools.Tests.ComponentMocks; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Xunit; using NuGet.Versioning; -using Microsoft.NET.TestFramework.Utilities; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; -using System.Linq; -using System.Runtime.CompilerServices; using Microsoft.DotNet.ToolPackage; namespace Microsoft.DotNet.PackageInstall.Tests diff --git a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolPackageInstallerTests.cs b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolPackageInstallerTests.cs index 72ccff69e7b2..b6b1478b422e 100644 --- a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolPackageInstallerTests.cs +++ b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolPackageInstallerTests.cs @@ -1,16 +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.Globalization; -using System.IO; -using System.Linq; using System.Reflection; using System.Transactions; -using System.Threading; -using FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools; @@ -18,17 +11,9 @@ using Microsoft.DotNet.Tools.Tests.ComponentMocks; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.TemplateEngine.Cli; using NuGet.Versioning; -using Xunit; -using LocalizableStrings = Microsoft.DotNet.Tools.Tool.Install.LocalizableStrings; using System.Runtime.CompilerServices; using Microsoft.DotNet.ToolPackage; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Utilities; using NuGet.Frameworks; namespace Microsoft.DotNet.PackageInstall.Tests diff --git a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolPackageUninstallerTests.cs b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolPackageUninstallerTests.cs index 6b50ec800d3e..86c566b622a6 100644 --- a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolPackageUninstallerTests.cs +++ b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/ToolPackageUninstallerTests.cs @@ -1,26 +1,13 @@ // 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.Transactions; -using FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.DotNet.Cli; -using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Tool.Install; using Microsoft.DotNet.Tools.Tests.ComponentMocks; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; -using Xunit; -using Microsoft.NET.TestFramework.Utilities; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; using System.Runtime.CompilerServices; using Microsoft.DotNet.ToolPackage; diff --git a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/UnixFilePermissionsTests.cs b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/UnixFilePermissionsTests.cs index ae7ac8cbe205..0abaedf14e3d 100644 --- a/src/Tests/Microsoft.DotNet.PackageInstall.Tests/UnixFilePermissionsTests.cs +++ b/src/Tests/Microsoft.DotNet.PackageInstall.Tests/UnixFilePermissionsTests.cs @@ -1,16 +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 FluentAssertions; using Microsoft.DotNet.Cli.NuGetPackageDownloader.WorkloadUnixFilePermissions; -using Microsoft.DotNet.ToolPackage; -using Microsoft.DotNet.Tools; -using NuGet.Protocol.Core.Types; -using Xunit; namespace Microsoft.DotNet.PackageInstall.Tests { diff --git a/src/Tests/Microsoft.DotNet.PackageValidation.Tests/Validators/BaselinePackageValidatorTests.cs b/src/Tests/Microsoft.DotNet.PackageValidation.Tests/Validators/BaselinePackageValidatorTests.cs index 1a90daa23891..bdeba16bcc03 100644 --- a/src/Tests/Microsoft.DotNet.PackageValidation.Tests/Validators/BaselinePackageValidatorTests.cs +++ b/src/Tests/Microsoft.DotNet.PackageValidation.Tests/Validators/BaselinePackageValidatorTests.cs @@ -5,7 +5,6 @@ using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.PackageValidation.Tests; using Moq; -using Xunit; namespace Microsoft.DotNet.PackageValidation.Validators.Tests { diff --git a/src/Tests/Microsoft.DotNet.PackageValidation.Tests/Validators/CompatibleTFMValidatorTests.cs b/src/Tests/Microsoft.DotNet.PackageValidation.Tests/Validators/CompatibleTFMValidatorTests.cs index 4b054d40eb27..71ed0ff26d80 100644 --- a/src/Tests/Microsoft.DotNet.PackageValidation.Tests/Validators/CompatibleTFMValidatorTests.cs +++ b/src/Tests/Microsoft.DotNet.PackageValidation.Tests/Validators/CompatibleTFMValidatorTests.cs @@ -4,9 +4,7 @@ using Microsoft.DotNet.ApiCompatibility.Runner; using Microsoft.DotNet.ApiCompatibility.Tests; using Microsoft.DotNet.PackageValidation.Tests; -using Microsoft.NET.TestFramework; using Moq; -using Xunit; namespace Microsoft.DotNet.PackageValidation.Validators.Tests { diff --git a/src/Tests/Microsoft.DotNet.ShellShim.Tests/AppHostShellShimMakerTests.cs b/src/Tests/Microsoft.DotNet.ShellShim.Tests/AppHostShellShimMakerTests.cs index 650e32254704..ded0fbdf25be 100644 --- a/src/Tests/Microsoft.DotNet.ShellShim.Tests/AppHostShellShimMakerTests.cs +++ b/src/Tests/Microsoft.DotNet.ShellShim.Tests/AppHostShellShimMakerTests.cs @@ -1,15 +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.IO; -using FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.NET.HostModel.AppHost; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; -using Xunit; namespace Microsoft.DotNet.ShellShim.Tests { diff --git a/src/Tests/Microsoft.DotNet.ShellShim.Tests/EnvironmentPathFactoryTests.cs b/src/Tests/Microsoft.DotNet.ShellShim.Tests/EnvironmentPathFactoryTests.cs index 2bf459958d7c..5b1cf56e197a 100644 --- a/src/Tests/Microsoft.DotNet.ShellShim.Tests/EnvironmentPathFactoryTests.cs +++ b/src/Tests/Microsoft.DotNet.ShellShim.Tests/EnvironmentPathFactoryTests.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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; using Moq; -using Xunit; namespace Microsoft.DotNet.ShellShim.Tests { diff --git a/src/Tests/Microsoft.DotNet.ShellShim.Tests/LinuxEnvironmentPathTests.cs b/src/Tests/Microsoft.DotNet.ShellShim.Tests/LinuxEnvironmentPathTests.cs index 60cc738b9e17..6a260aedea98 100644 --- a/src/Tests/Microsoft.DotNet.ShellShim.Tests/LinuxEnvironmentPathTests.cs +++ b/src/Tests/Microsoft.DotNet.ShellShim.Tests/LinuxEnvironmentPathTests.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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Tools; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Utilities; using Moq; -using Xunit; namespace Microsoft.DotNet.ShellShim.Tests { diff --git a/src/Tests/Microsoft.DotNet.ShellShim.Tests/OsxEnvironmentPathTests.cs b/src/Tests/Microsoft.DotNet.ShellShim.Tests/OsxEnvironmentPathTests.cs index e8f1f5e17b08..0639f79564b4 100644 --- a/src/Tests/Microsoft.DotNet.ShellShim.Tests/OsxEnvironmentPathTests.cs +++ b/src/Tests/Microsoft.DotNet.ShellShim.Tests/OsxEnvironmentPathTests.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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Tools; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Utilities; using Moq; -using Xunit; namespace Microsoft.DotNet.ShellShim.Tests { diff --git a/src/Tests/Microsoft.DotNet.ShellShim.Tests/OsxZshEnvironmentPathInstructionTests.cs b/src/Tests/Microsoft.DotNet.ShellShim.Tests/OsxZshEnvironmentPathInstructionTests.cs index 62c29ab9f5f6..188a0aaacaf8 100644 --- a/src/Tests/Microsoft.DotNet.ShellShim.Tests/OsxZshEnvironmentPathInstructionTests.cs +++ b/src/Tests/Microsoft.DotNet.ShellShim.Tests/OsxZshEnvironmentPathInstructionTests.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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Tools; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Utilities; using Moq; -using Xunit; namespace Microsoft.DotNet.ShellShim.Tests { diff --git a/src/Tests/Microsoft.DotNet.ShellShim.Tests/ShellShimRepositoryTests.cs b/src/Tests/Microsoft.DotNet.ShellShim.Tests/ShellShimRepositoryTests.cs index c53af028bb29..9b09c4bc9d5c 100644 --- a/src/Tests/Microsoft.DotNet.ShellShim.Tests/ShellShimRepositoryTests.cs +++ b/src/Tests/Microsoft.DotNet.ShellShim.Tests/ShellShimRepositoryTests.cs @@ -1,27 +1,14 @@ // 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 System.Reflection.Metadata; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Transactions; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Tools; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.DotNet.Tools.Tests.ComponentMocks; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; using NuGet.Frameworks; using Microsoft.DotNet.Cli.NuGetPackageDownloader; diff --git a/src/Tests/Microsoft.DotNet.ShellShim.Tests/WindowsEnvironmentPathTests.cs b/src/Tests/Microsoft.DotNet.ShellShim.Tests/WindowsEnvironmentPathTests.cs index e239a92adae9..02c915ebed90 100644 --- a/src/Tests/Microsoft.DotNet.ShellShim.Tests/WindowsEnvironmentPathTests.cs +++ b/src/Tests/Microsoft.DotNet.ShellShim.Tests/WindowsEnvironmentPathTests.cs @@ -1,15 +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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Tools; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; namespace Microsoft.DotNet.ShellShim.Tests { diff --git a/src/Tests/Microsoft.DotNet.ShellShim.Tests/ZshDetectorTests.cs b/src/Tests/Microsoft.DotNet.ShellShim.Tests/ZshDetectorTests.cs index 8c16b12770d3..4704fddb4b02 100644 --- a/src/Tests/Microsoft.DotNet.ShellShim.Tests/ZshDetectorTests.cs +++ b/src/Tests/Microsoft.DotNet.ShellShim.Tests/ZshDetectorTests.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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Moq; -using Xunit; namespace Microsoft.DotNet.ShellShim.Tests { diff --git a/src/Tests/Microsoft.DotNet.TemplateLocator.Tests/GivenAnTemplateLocator.cs b/src/Tests/Microsoft.DotNet.TemplateLocator.Tests/GivenAnTemplateLocator.cs index 935ad7a65210..dfd4799aad0f 100644 --- a/src/Tests/Microsoft.DotNet.TemplateLocator.Tests/GivenAnTemplateLocator.cs +++ b/src/Tests/Microsoft.DotNet.TemplateLocator.Tests/GivenAnTemplateLocator.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 FluentAssertions; -using System.IO; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework; -using System.Linq; using Microsoft.DotNet.DotNetSdkResolver; namespace Microsoft.DotNet.TemplateLocator.Tests diff --git a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/EnvironmentPathInstructionMock.cs b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/EnvironmentPathInstructionMock.cs index 98efbd70b144..673b00fc0a98 100644 --- a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/EnvironmentPathInstructionMock.cs +++ b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/EnvironmentPathInstructionMock.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.Tools.Tests.ComponentMocks diff --git a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/MockFeed.cs b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/MockFeed.cs index 64a612fbd0a3..0ebae89692ee 100644 --- a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/MockFeed.cs +++ b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/MockFeed.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; - namespace Microsoft.DotNet.Tools.Tests.ComponentMocks { public class MockFeed diff --git a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ProjectRestorerMock.cs b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ProjectRestorerMock.cs index 1adbdf889f7b..737a42a80ec8 100644 --- a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ProjectRestorerMock.cs +++ b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ProjectRestorerMock.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.Linq; using System.Text.Json; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; diff --git a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageInstallerMock.cs b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageInstallerMock.cs index d35666e27737..8c60de7e9be6 100644 --- a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageInstallerMock.cs +++ b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageInstallerMock.cs @@ -1,16 +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.Transactions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework.Utilities; using NuGet.Frameworks; using NuGet.Versioning; diff --git a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageMock.cs b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageMock.cs index cb972a77d199..2d43ad13c423 100644 --- a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageMock.cs +++ b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageMock.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.Json; -using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageStoreMock.cs b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageStoreMock.cs index d5d0e40c3f25..370bf4fd788d 100644 --- a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageStoreMock.cs +++ b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageStoreMock.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 System.Linq; -using Microsoft.DotNet.Cli; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Frameworks; diff --git a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageUninstallerMock.cs b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageUninstallerMock.cs index 56794da26ff5..9cbdecc5ea64 100644 --- a/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageUninstallerMock.cs +++ b/src/Tests/Microsoft.DotNet.Tools.Tests.ComponentMocks/ToolPackageUninstallerMock.cs @@ -1,16 +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.Transactions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.ToolPackage; -using Microsoft.DotNet.Tools; using Microsoft.Extensions.EnvironmentAbstractions; -using NuGet.Versioning; namespace Microsoft.DotNet.Tools.Tests.ComponentMocks { diff --git a/src/Tests/Microsoft.DotNet.Tools.Tests.Utilities.Tests/MockFileSystemTests.cs b/src/Tests/Microsoft.DotNet.Tools.Tests.Utilities.Tests/MockFileSystemTests.cs index 8cf2ed95f23a..54541ab65801 100644 --- a/src/Tests/Microsoft.DotNet.Tools.Tests.Utilities.Tests/MockFileSystemTests.cs +++ b/src/Tests/Microsoft.DotNet.Tools.Tests.Utilities.Tests/MockFileSystemTests.cs @@ -1,16 +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.IO; -using System.Linq; -using System.Text; -using FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework; -using Xunit; namespace Microsoft.DotNet.Tools.Tests.Utilities.Tests { diff --git a/src/Tests/Microsoft.DotNet.Tools.Tests.Utilities.Tests/NuGetTransientErrorDetectorTests.cs b/src/Tests/Microsoft.DotNet.Tools.Tests.Utilities.Tests/NuGetTransientErrorDetectorTests.cs index f5c8bf087585..bd514d3b07ea 100644 --- a/src/Tests/Microsoft.DotNet.Tools.Tests.Utilities.Tests/NuGetTransientErrorDetectorTests.cs +++ b/src/Tests/Microsoft.DotNet.Tools.Tests.Utilities.Tests/NuGetTransientErrorDetectorTests.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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Xunit; - namespace Microsoft.DotNet.Tools.Tests.Utilities.Tests { public class NuGetTransientErrorDetectorTests diff --git a/src/Tests/Microsoft.Extensions.DotNetDeltaApplier.Tests/HotReloadAgentTest.cs b/src/Tests/Microsoft.Extensions.DotNetDeltaApplier.Tests/HotReloadAgentTest.cs index a7a30f0317f6..8452276d7dc0 100644 --- a/src/Tests/Microsoft.Extensions.DotNetDeltaApplier.Tests/HotReloadAgentTest.cs +++ b/src/Tests/Microsoft.Extensions.DotNetDeltaApplier.Tests/HotReloadAgentTest.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.Collections.Generic; using System.Reflection; using Microsoft.Extensions.HotReload; using Moq; -using Xunit; namespace Microsoft.Extensions.DotNetDeltaApplier { diff --git a/src/Tests/Microsoft.Extensions.DotNetDeltaApplier.Tests/StartupHookTests.cs b/src/Tests/Microsoft.Extensions.DotNetDeltaApplier.Tests/StartupHookTests.cs index be4bb164473a..847e5c959125 100644 --- a/src/Tests/Microsoft.Extensions.DotNetDeltaApplier.Tests/StartupHookTests.cs +++ b/src/Tests/Microsoft.Extensions.DotNetDeltaApplier.Tests/StartupHookTests.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.Collections.Generic; -using System.IO; -using Xunit; - namespace Microsoft.Extensions.DotNetDeltaApplier { public class StartupHookTests diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ContainerCli.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ContainerCli.cs index e93500ef82d9..872fc7ffebd1 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ContainerCli.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ContainerCli.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.Linq; -using System.Diagnostics; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework; - namespace Microsoft.NET.Build.Containers.IntegrationTests; static class ContainerCli diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/CreateNewImageTests.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/CreateNewImageTests.cs index 8f57f920560c..2b05dcf7f088 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/CreateNewImageTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/CreateNewImageTests.cs @@ -2,18 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Utilities; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; using Microsoft.NET.Build.Containers.IntegrationTests; using Microsoft.NET.Build.Containers.UnitTests; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework; using FakeItEasy; using Microsoft.Build.Framework; using System.Runtime.CompilerServices; -using Microsoft.Extensions.Logging; namespace Microsoft.NET.Build.Containers.Tasks.IntegrationTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs index 976db30fc13a..53954b10427b 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.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.Text; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.Logging; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Containers.IntegrationTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryTests.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryTests.cs index d97cb265f232..60cf1dc61245 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryTests.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.NET.Build.Containers.UnitTests; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; using ILogger = Microsoft.Extensions.Logging.ILogger; namespace Microsoft.NET.Build.Containers.IntegrationTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerSupportsArchInlineData.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerSupportsArchInlineData.cs index caa4b453ef1a..3ec432cc7aa8 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerSupportsArchInlineData.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerSupportsArchInlineData.cs @@ -3,9 +3,6 @@ using System.Reflection; using System.Text.Json; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; using Xunit.Sdk; namespace Microsoft.NET.Build.Containers.IntegrationTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerTestsCollection.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerTestsCollection.cs index 9e6ba9772e6e..9b3a6e25327c 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerTestsCollection.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerTestsCollection.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 Xunit; - namespace Microsoft.NET.Build.Containers.IntegrationTests; [CollectionDefinition("Docker tests")] diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerTestsFixture.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerTestsFixture.cs index 7256f0d6d597..847c22b7d956 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerTestsFixture.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerTestsFixture.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 Microsoft.NET.TestFramework; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Containers.IntegrationTests; public sealed class DockerTestsFixture : IDisposable diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/EndToEndTests.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/EndToEndTests.cs index ac610282cd94..e93c36535a09 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/EndToEndTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/EndToEndTests.cs @@ -2,14 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; -using System.Xml.Linq; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Build.Containers.UnitTests; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; using ILogger = Microsoft.Extensions.Logging.ILogger; namespace Microsoft.NET.Build.Containers.IntegrationTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/FullFramework/CreateNewImageToolTaskTests.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/FullFramework/CreateNewImageToolTaskTests.cs index 6781f270982d..c4ee4759e126 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/FullFramework/CreateNewImageToolTaskTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/FullFramework/CreateNewImageToolTaskTests.cs @@ -1,16 +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.Reflection; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.NET.Build.Containers.Tasks; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; using FakeItEasy; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Containers.IntegrationTests.FullFramework; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/LayerEndToEndTests.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/LayerEndToEndTests.cs index 39178cee743c..0ac2938c1d18 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/LayerEndToEndTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/LayerEndToEndTests.cs @@ -4,8 +4,6 @@ using System.Formats.Tar; using System.IO.Compression; using System.Security.Cryptography; -using Xunit.Abstractions; -using Xunit; namespace Microsoft.NET.Build.Containers.IntegrationTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/PackageTests.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/PackageTests.cs index 1f59d758b0ca..0a7fd355958b 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/PackageTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/PackageTests.cs @@ -3,11 +3,6 @@ // using System.IO.Compression; -using System.Xml.Linq; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.DotNet.Cli.Utils; -using Xunit; namespace Microsoft.NET.Build.Containers.IntegrationTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ParseContainerPropertiesTests.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ParseContainerPropertiesTests.cs index 9d8aaf171050..b668e1a5a00b 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ParseContainerPropertiesTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ParseContainerPropertiesTests.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 FluentAssertions; using Microsoft.NET.Build.Containers.IntegrationTests; using Microsoft.NET.Build.Containers.UnitTests; -using Xunit; using static Microsoft.NET.Build.Containers.KnownStrings; using static Microsoft.NET.Build.Containers.KnownStrings.Properties; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ProjectInitializer.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ProjectInitializer.cs index 2f8d51d87a89..d373bb05bb8c 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ProjectInitializer.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ProjectInitializer.cs @@ -4,8 +4,6 @@ using System.Runtime.CompilerServices; using Microsoft.Build.Evaluation; using Microsoft.Build.Framework; -using Microsoft.NET.TestFramework; -using Xunit; namespace Microsoft.NET.Build.Containers.IntegrationTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/RegistryTests.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/RegistryTests.cs index 3e55c7117015..92bede0342c3 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/RegistryTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/RegistryTests.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Logging; -using Microsoft.NET.Build.Containers.UnitTests; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Containers.IntegrationTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/TargetsTests.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/TargetsTests.cs index 783980f63b1e..7ed58d4a0df2 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/TargetsTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/TargetsTests.cs @@ -2,12 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. using static Microsoft.NET.Build.Containers.KnownStrings.Properties; -using FluentAssertions; using Microsoft.Build.Execution; -using Xunit; using Microsoft.NET.Build.Containers.IntegrationTests; -using Microsoft.NET.Build.Containers.UnitTests; -using System.Linq; namespace Microsoft.NET.Build.Containers.Targets.IntegrationTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/TestSettings.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/TestSettings.cs index d2935b7ee319..53328435d597 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/TestSettings.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/TestSettings.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; -using Microsoft.NET.TestFramework; namespace Microsoft.NET.Build.Containers.IntegrationTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ToolsetUtils.cs b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ToolsetUtils.cs index 240ad803f141..35cf4fb4ddd0 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ToolsetUtils.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/ToolsetUtils.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.Runtime.InteropServices; -using Microsoft.NET.TestFramework; -using Xunit; - namespace Microsoft.NET.Build.Containers.IntegrationTests; internal static class ToolsetUtils diff --git a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/ContainerHelpersTests.cs b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/ContainerHelpersTests.cs index 43df690a90b9..3755f969097a 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/ContainerHelpersTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/ContainerHelpersTests.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 Xunit; - namespace Microsoft.NET.Build.Containers.UnitTests; public class ContainerHelpersTests diff --git a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/CreateNewImageTests.cs b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/CreateNewImageTests.cs index a9ada0545b2a..22c73e9d493a 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/CreateNewImageTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/CreateNewImageTests.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 Xunit; using Moq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DescriptorTests.cs b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DescriptorTests.cs index 18d2fe9c2814..f689bd4c7944 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DescriptorTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DescriptorTests.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; -using Xunit; namespace Microsoft.NET.Build.Containers.UnitTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DiagnosticMessageTests.cs b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DiagnosticMessageTests.cs index 46da6362a7dd..f56d419e7ddc 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DiagnosticMessageTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DiagnosticMessageTests.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.NET.Build.Containers.Resources; -using Xunit; namespace Microsoft.NET.Build.Containers.UnitTests { diff --git a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DockerAvailableUtils.cs b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DockerAvailableUtils.cs index 0e72fc1868f5..21cb7eec9976 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DockerAvailableUtils.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DockerAvailableUtils.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 Microsoft.NET.TestFramework; -using Xunit; - namespace Microsoft.NET.Build.Containers.UnitTests; public class DockerAvailableTheoryAttribute : TheoryAttribute diff --git a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DockerDaemonTests.cs b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DockerDaemonTests.cs index ca167accd97c..5e4e951b5cb2 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DockerDaemonTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/DockerDaemonTests.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 Microsoft.Extensions.Logging; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Containers.UnitTests; [CollectionDefinition("Daemon Tests")] diff --git a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/ImageBuilderTests.cs b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/ImageBuilderTests.cs index d1ab8e31aabc..e7c8da584ba9 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/ImageBuilderTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/ImageBuilderTests.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json.Nodes; -using Xunit; namespace Microsoft.NET.Build.Containers.UnitTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/ImageConfigTests.cs b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/ImageConfigTests.cs index 10b29ffc8efb..25d3cafe2268 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/ImageConfigTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/ImageConfigTests.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json.Nodes; -using Xunit; namespace Microsoft.NET.Build.Containers.UnitTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/RegistryTests.cs b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/RegistryTests.cs index 1bd5f3d4dfc3..3c3fba3d2cd6 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/RegistryTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/RegistryTests.cs @@ -4,10 +4,7 @@ using System.Net; using Microsoft.Extensions.Logging; using Microsoft.NET.Build.Containers.Resources; -using Microsoft.NET.TestFramework; using Moq; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Containers.UnitTests; diff --git a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/Resources/ResourceTests.cs b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/Resources/ResourceTests.cs index 4e5d57777de6..e98df3016659 100644 --- a/src/Tests/Microsoft.NET.Build.Containers.UnitTests/Resources/ResourceTests.cs +++ b/src/Tests/Microsoft.NET.Build.Containers.UnitTests/Resources/ResourceTests.cs @@ -5,7 +5,6 @@ using System.Globalization; using System.Resources; using Microsoft.NET.Build.Containers.Resources; -using Xunit; namespace Microsoft.NET.Build.Containers.UnitTests.Resources { diff --git a/src/Tests/Microsoft.NET.Build.Tests/AppHostTests.cs b/src/Tests/Microsoft.NET.Build.Tests/AppHostTests.cs index 8bc632574a48..45e00ed2ae78 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/AppHostTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/AppHostTests.cs @@ -1,24 +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.Diagnostics; -using System.IO; -using System.Linq; using System.Reflection.PortableExecutable; -using System.Runtime.InteropServices; using System.Text.RegularExpressions; -using FluentAssertions; 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 Xunit.Abstractions; using NuGet.Frameworks; -using System.Xml.Linq; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/ArtifactsOutputPathTests.cs b/src/Tests/Microsoft.NET.Build.Tests/ArtifactsOutputPathTests.cs index 2b53eef83fd5..85a313508463 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/ArtifactsOutputPathTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/ArtifactsOutputPathTests.cs @@ -1,16 +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.IO; using System.Runtime.CompilerServices; -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/AspNetCoreOnFullFramework.cs b/src/Tests/Microsoft.NET.Build.Tests/AspNetCoreOnFullFramework.cs index 0a09a9751bbf..54fb8e9e3d78 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/AspNetCoreOnFullFramework.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/AspNetCoreOnFullFramework.cs @@ -1,14 +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 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 Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/COMReferenceTests.cs b/src/Tests/Microsoft.NET.Build.Tests/COMReferenceTests.cs index f0a595a8f7d4..1c23619d3e50 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/COMReferenceTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/COMReferenceTests.cs @@ -1,15 +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.Xml.Linq; -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 { public class COMReferenceTests : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/DeleteNuGetArtifactsFixture.cs b/src/Tests/Microsoft.NET.Build.Tests/DeleteNuGetArtifactsFixture.cs index 9d089f83535a..5918a5f9e730 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/DeleteNuGetArtifactsFixture.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/DeleteNuGetArtifactsFixture.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 Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System; -using System.IO; using System.Runtime.CompilerServices; 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 49a509f5f0cc..b92d4a776bb9 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/DepsFileSkipTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/DepsFileSkipTests.cs @@ -1,20 +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.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 NuGet.Frameworks; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/DesignTimeBuildTests.cs b/src/Tests/Microsoft.NET.Build.Tests/DesignTimeBuildTests.cs index 863c89dfcbcf..64f5f5f5bbff 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/DesignTimeBuildTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/DesignTimeBuildTests.cs @@ -1,19 +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.Runtime.CompilerServices; -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 Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GenerateResourceTests.cs b/src/Tests/Microsoft.NET.Build.Tests/GenerateResourceTests.cs index 16ed467a6744..4f1e48ec08f8 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GenerateResourceTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GenerateResourceTests.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.IO; -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 { public class GenerateResourceTests : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenFrameworkReferences.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenFrameworkReferences.cs index 88399fb2a69f..1e5f341babfd 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenFrameworkReferences.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenFrameworkReferences.cs @@ -1,20 +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.Runtime.CompilerServices; -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; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatAProjectHasntBeenRestored.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatAProjectHasntBeenRestored.cs index f28e88a14d88..a396391df045 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatAProjectHasntBeenRestored.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatAProjectHasntBeenRestored.cs @@ -1,15 +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; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatAProjectHasntBeenRestored : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeHaveAPackageReferenceWithAliases.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeHaveAPackageReferenceWithAliases.cs index 55aaf44b35e5..09bac098e4db 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeHaveAPackageReferenceWithAliases.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeHaveAPackageReferenceWithAliases.cs @@ -1,16 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Runtime.CompilerServices; -using Xunit.Abstractions; 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 0e91d5e8e60f..63fde6110857 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeManifestSupportedFrameworks.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeManifestSupportedFrameworks.cs @@ -1,17 +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 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 { public class GivenThatWeManifestSupportedFrameworks : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantACustomTFM.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantACustomTFM.cs index 1e85120952b8..083f9e6826eb 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantACustomTFM.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantACustomTFM.cs @@ -1,16 +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.Commands; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.Collections.Generic; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantACustomTFM : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAMessageWhenBuildingWithAPreviewSdk.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAMessageWhenBuildingWithAPreviewSdk.cs index 9dec54103661..3513318741c7 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAMessageWhenBuildingWithAPreviewSdk.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAMessageWhenBuildingWithAPreviewSdk.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 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/GivenThatWeWantAllResourcesInSatellite.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAllResourcesInSatellite.cs index 0c8fb18f7f58..762fbe01af36 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAllResourcesInSatellite.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantAllResourcesInSatellite.cs @@ -1,16 +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.Runtime.InteropServices; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using System.Xml.Linq; using System.Runtime.CompilerServices; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantBuildsToBeIncremental.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantBuildsToBeIncremental.cs index fb0c4f70e400..e5c71181f8db 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantBuildsToBeIncremental.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantBuildsToBeIncremental.cs @@ -1,15 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantBuildsToBeIncremental : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenAssetsFileCannotBeRead.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenAssetsFileCannotBeRead.cs index 9afb9fb7342f..df34864d5ee8 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenAssetsFileCannotBeRead.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenAssetsFileCannotBeRead.cs @@ -1,14 +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.Text.RegularExpressions; -using FluentAssertions; -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/GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs index c341b10db0ce..57a72b408505 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs @@ -1,15 +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; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantDiagnosticsWhenPackageCannotBeFound : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantImplicitNamespaceImportsDisabled.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantImplicitNamespaceImportsDisabled.cs index 6bbc9eb08e4d..3b4b3fe8aa71 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantImplicitNamespaceImportsDisabled.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantImplicitNamespaceImportsDisabled.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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantImplicitNamespaceImportsDisabled : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantRuntimeConfigInBuiltProjectOutputGroup.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantRuntimeConfigInBuiltProjectOutputGroup.cs index 9cf3bd755484..950450efc6f6 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantRuntimeConfigInBuiltProjectOutputGroup.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantRuntimeConfigInBuiltProjectOutputGroup.cs @@ -1,18 +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 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 Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantRuntimeConfigInBuiltProjectOutputGroup : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantSatelliteAssembliesHaveassemblyVersion.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantSatelliteAssembliesHaveassemblyVersion.cs index 2ec19ead9d8e..4bdc8d8bda46 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantSatelliteAssembliesHaveassemblyVersion.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantSatelliteAssembliesHaveassemblyVersion.cs @@ -1,17 +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.IO; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; using System.Diagnostics; -using FluentAssertions; using System.Reflection; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAComServerLibrary.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAComServerLibrary.cs index 22eeccbef096..7dfcdeb10898 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAComServerLibrary.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAComServerLibrary.cs @@ -1,16 +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.Xml.Linq; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; using Newtonsoft.Json.Linq; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliNonLibraryProject.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliNonLibraryProject.cs index c89edc97a0c6..1f406aa9fb5e 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliNonLibraryProject.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliNonLibraryProject.cs @@ -1,14 +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.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.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 0e759cac5b07..791247fd7a35 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliProject.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliProject.cs @@ -1,18 +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.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/GivenThatWeWantToBuildACppCliProjectWithTransitiveDeps.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliProjectWithTransitiveDeps.cs index 2f38100dfef4..043404998af2 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliProjectWithTransitiveDeps.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliProjectWithTransitiveDeps.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.IO; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildACppCliProjectWithTransitiveDeps : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACrossTargetedLibrary.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACrossTargetedLibrary.cs index 967e740b1e81..8b49b2debd89 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACrossTargetedLibrary.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACrossTargetedLibrary.cs @@ -1,17 +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.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using System.Xml.Linq; -using System.Linq; -using FluentAssertions; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.ProjectConstruction; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildACrossTargetedLibrary : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExe.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExe.cs index da36fb9a68ef..84cfc8cfa424 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExe.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExe.cs @@ -1,22 +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 System.Runtime.InteropServices; -using System.Xml.Linq; -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.Collections.Generic; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildADesktopExe : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWithFSharp.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWithFSharp.cs index 5ccbcead43bb..1dfd5b8c2ef9 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWithFSharp.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWithFSharp.cs @@ -1,16 +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.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; - -using FluentAssertions; -using Xunit; - -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildADesktopExeWithFSharp : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWtihNetStandardLib.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWtihNetStandardLib.cs index 18df737f37fc..bf2310a70b8b 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWtihNetStandardLib.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExeWtihNetStandardLib.cs @@ -1,20 +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 System.Xml.Linq; - -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; - -using FluentAssertions; -using Xunit; - -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildADesktopExeWithNetStandardLib : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopLibrary.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopLibrary.cs index 591eb78f242c..d7750817da9e 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopLibrary.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopLibrary.cs @@ -1,22 +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.IO; -using System.Linq; -using System.Xml.Linq; - -using FluentAssertions; - using Microsoft.Build.Utilities; using Microsoft.Extensions.DependencyModel; -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/GivenThatWeWantToBuildALibrary.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs index 2b0bd75a9e5e..62cdde2169cd 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs @@ -1,20 +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.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.Collections.Generic; -using System; using System.Runtime.CompilerServices; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.ProjectConstruction; using Newtonsoft.Json.Linq; using NuGet.Versioning; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithFSharp.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithFSharp.cs index 8749de8438d4..2ff22a04a58f 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithFSharp.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithFSharp.cs @@ -1,19 +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.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.Collections.Generic; -using System; using System.Runtime.CompilerServices; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithOSSupportedVersion.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithOSSupportedVersion.cs index 7b3e695a55be..445885937c0a 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithOSSupportedVersion.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithOSSupportedVersion.cs @@ -1,15 +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.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using FluentAssertions; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.ProjectConstruction; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildALibraryWithOSMinimumVersion : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithVB.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithVB.cs index 555a29911eaa..109776e31e53 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithVB.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithVB.cs @@ -1,19 +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.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.Collections.Generic; -using System; using System.Runtime.CompilerServices; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreApp.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreApp.cs index 3468802bc3c9..76fd6657ded2 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreApp.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreApp.cs @@ -1,23 +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 FluentAssertions; using Microsoft.Extensions.DependencyModel; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; using Newtonsoft.Json.Linq; using NuGet.Common; using NuGet.Frameworks; using NuGet.ProjectModel; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Xml.Linq; -using Xunit; -using Xunit.Abstractions; using Microsoft.NET.Build.Tasks; using NuGet.Versioning; using System.Runtime.CompilerServices; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppForTelemetry.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppForTelemetry.cs index 521cdfadd8e2..b268f0d49b67 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppForTelemetry.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppForTelemetry.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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System; -using Xunit.Abstractions; using System.Reflection; namespace Microsoft.NET.Build.Tests diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppWithWap.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppWithWap.cs index 42ed18bfd357..629ebd08677d 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppWithWap.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreAppWithWap.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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.NET.Publish.Tests { public class GivenThatWeWantToBuildANetCoreAppWithWap : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetStandard2Library.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetStandard2Library.cs index cc50dff2e627..6a6ca684bfc5 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetStandard2Library.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetStandard2Library.cs @@ -1,15 +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.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using FluentAssertions; -using System.Xml.Linq; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildANetStandard2Library : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAP2PrefernceWithTargetPlatform.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAP2PrefernceWithTargetPlatform.cs index 3fe4ebe24a9d..faeceef5e99b 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAP2PrefernceWithTargetPlatform.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAP2PrefernceWithTargetPlatform.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 Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using FluentAssertions; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.ProjectConstruction; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildAP2PReferenceWithTargetPlatform : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASelfContainedApp.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASelfContainedApp.cs index f63152df9c03..2c719b558dc7 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASelfContainedApp.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASelfContainedApp.cs @@ -1,21 +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 FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; 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 System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Xml.Linq; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonAnyCPUPlatform.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonAnyCPUPlatform.cs index ada55dbb6df3..e202bdbed8d5 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonAnyCPUPlatform.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonAnyCPUPlatform.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.IO; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildASolutionWithNonAnyCPUPlatform : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration.cs index e2a98aca6d93..c096f9c9af45 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration.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.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB.cs index 8e70b80a68d7..331835eef958 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB.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.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithProjRefDiffCase.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithProjRefDiffCase.cs index 9b7758911f78..640b91fa12da 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithProjRefDiffCase.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASolutionWithProjRefDiffCase.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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildASolutionWithProjRefDiffCase : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAUnitTestProject.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAUnitTestProject.cs index 656679811ce2..028180400339 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAUnitTestProject.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAUnitTestProject.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 Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using FluentAssertions; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildAUnitTestProject : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsDesktopProject.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsDesktopProject.cs index 35018a7b9c51..1124ad471ac8 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsDesktopProject.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsDesktopProject.cs @@ -1,17 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.Xml.Linq; -using System.IO; -using System.Linq; -using System; using NuGet.Versioning; namespace Microsoft.NET.Build.Tests diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsRuntimeComponent.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsRuntimeComponent.cs index 5bc625871446..72f300908ea3 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsRuntimeComponent.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsRuntimeComponent.cs @@ -1,16 +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; -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 { public class GivenThatWeWantToBuildAWindowsRuntimeComponent : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithLibrariesAndRid.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithLibrariesAndRid.cs index 9f11c0c321da..89fdbca300c3 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithLibrariesAndRid.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithLibrariesAndRid.cs @@ -1,18 +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 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; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithLibrary.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithLibrary.cs index 60afe2c3dd91..617789abc89f 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithLibrary.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithLibrary.cs @@ -1,16 +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.Diagnostics; -using System.IO; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using FluentAssertions; -using System; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithSharedProject.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithSharedProject.cs index 933ebad39f65..25a5bb188d1d 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithSharedProject.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithSharedProject.cs @@ -1,15 +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 FluentAssertions; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using System.IO; -using System.Linq; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildAnAppWithSharedProject : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveNonSdkProjectRefs.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveNonSdkProjectRefs.cs index 6052860de7c1..4d445ccb7f13 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveNonSdkProjectRefs.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveNonSdkProjectRefs.cs @@ -1,20 +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.IO; -using System.Linq; -using System.Xml.Linq; - -using FluentAssertions; using Microsoft.Extensions.DependencyModel; -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/GivenThatWeWantToBuildAnAppWithTransitiveProjectRefs.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveProjectRefs.cs index 981c4682df76..53637d0cac21 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveProjectRefs.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithTransitiveProjectRefs.cs @@ -1,15 +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.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using FluentAssertions; -using System; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildAnAppWithTransitiveProjectRefs : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithoutTransitiveProjectRefs.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithoutTransitiveProjectRefs.cs index b3b9d22427bb..25a6f88fffb4 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithoutTransitiveProjectRefs.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAnAppWithoutTransitiveProjectRefs.cs @@ -1,20 +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.Collections.Generic; using System.Collections.Immutable; -using System.IO; -using System.Linq; using System.Runtime.CompilerServices; -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; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAppsWithFrameworkRefs.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAppsWithFrameworkRefs.cs index 3b9ef1129e28..8ab0fd05319c 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAppsWithFrameworkRefs.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAppsWithFrameworkRefs.cs @@ -1,15 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using System; -using System.IO; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildAppsWithFrameworkRefs : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithARuntimeIdentifier.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithARuntimeIdentifier.cs index 86c39a9595be..d76b76752631 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithARuntimeIdentifier.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithARuntimeIdentifier.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.Xml.Linq; -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 { public class GivenThatWeWantToBuildWithARuntimeIdentifier : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithATargetPlatform.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithATargetPlatform.cs index 665d56de2866..06a77a954fa2 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithATargetPlatform.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithATargetPlatform.cs @@ -1,16 +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.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using FluentAssertions; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.IO; -using System; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildWithATargetPlatform : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithGlobalJson.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithGlobalJson.cs index cbe01f374904..a36929987660 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithGlobalJson.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithGlobalJson.cs @@ -1,16 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.IO; -using System; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToBuildWithGlobalJson : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCollectExceptionTelemetry.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCollectExceptionTelemetry.cs index 48b78a7afd71..ac9065e02999 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCollectExceptionTelemetry.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCollectExceptionTelemetry.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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using System; -using System.IO; -using Xunit.Abstractions; using System.Reflection; namespace Microsoft.NET.Build.Tests diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToControlGeneratedAssemblyInfo.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToControlGeneratedAssemblyInfo.cs index 74c6a082ba5c..f1982682a253 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToControlGeneratedAssemblyInfo.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToControlGeneratedAssemblyInfo.cs @@ -1,18 +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 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 Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToControlGeneratedAssemblyInfo : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCopyLocalDependencies.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCopyLocalDependencies.cs index dee4e0253daa..4ae8ea92fd69 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCopyLocalDependencies.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCopyLocalDependencies.cs @@ -1,16 +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 FluentAssertions; - 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 Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCopyPPFileToOutput.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCopyPPFileToOutput.cs index 6d7ac8835ede..54d67048e009 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCopyPPFileToOutput.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToCopyPPFileToOutput.cs @@ -1,16 +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.Commands; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.Xml.Linq; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeHaveAPpContentFile : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToExcludeTheMainProjectFromTheDepsFile.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToExcludeTheMainProjectFromTheDepsFile.cs index ecd4799aebe7..b58f3319c5d5 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToExcludeTheMainProjectFromTheDepsFile.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToExcludeTheMainProjectFromTheDepsFile.cs @@ -1,17 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.IO; -using System.Xml.Linq; -using Xunit; - -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToExcludeTheMainProjectFromTheDepsFile : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs index 5c2518dcde64..890bddbc6cb2 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs @@ -1,16 +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.Runtime.InteropServices; -using FluentAssertions; 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 Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToFloatWarningLevels.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToFloatWarningLevels.cs index cf4a78f9753b..f6062e312649 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToFloatWarningLevels.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToFloatWarningLevels.cs @@ -1,18 +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 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 { public class GivenThatWeWantToFloatWarningLevels : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateADepsFileForATool.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateADepsFileForATool.cs index 09998104fe1a..c73131a42541 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateADepsFileForATool.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateADepsFileForATool.cs @@ -1,26 +1,13 @@ // 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; -using Microsoft.NET.TestFramework.ProjectConstruction; using NuGet.Packaging; using NuGet.ProjectModel; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToGenerateADepsFileForATool : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_BlazorWasm.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_BlazorWasm.cs index 843977f78e90..6eafd362ee82 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_BlazorWasm.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_BlazorWasm.cs @@ -1,15 +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; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToGenerateGlobalUsings_BlazorWasm : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_DotNet.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_DotNet.cs index 2d4615a7553d..9b401cc862f0 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_DotNet.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_DotNet.cs @@ -1,17 +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.Xml.Linq; -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 { public class GivenThatWeWantToGenerateGlobalUsings_DotNet : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_WebApp.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_WebApp.cs index 6ab2abe7224f..7ee55b424179 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_WebApp.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_WebApp.cs @@ -1,15 +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; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToGenerateGlobalUsings_WebApp : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_Worker.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_Worker.cs index 7243a25638a9..08457b7c300b 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_Worker.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToGenerateGlobalUsings_Worker.cs @@ -1,15 +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; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToGenerateGlobalUsings_Worker : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToIncludeItemsOutsideTheProjectFolder.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToIncludeItemsOutsideTheProjectFolder.cs index ddc082a8bfd2..2bbe6659055f 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToIncludeItemsOutsideTheProjectFolder.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToIncludeItemsOutsideTheProjectFolder.cs @@ -1,18 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; - -using Xunit.Abstractions; -using System.Xml.Linq; -using System.IO; -using System.Linq; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToIncludeItemsOutsideTheProjectFolder : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPreserveCompilationContextForBuild.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPreserveCompilationContextForBuild.cs index c8b4d6ea0551..039020256666 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPreserveCompilationContextForBuild.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPreserveCompilationContextForBuild.cs @@ -1,16 +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 FluentAssertions; using Microsoft.Extensions.DependencyModel; -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/GivenThatWeWantToProduceReferenceAssembly.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToProduceReferenceAssembly.cs index 1996a642816a..b8929706099e 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToProduceReferenceAssembly.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToProduceReferenceAssembly.cs @@ -1,15 +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.Commands; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.ProjectConstruction; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToProduceReferenceAssembly : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs index 03704b4a2644..28e74b847e92 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs @@ -1,15 +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.Linq; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Assertions; namespace Microsoft.NET.ToolPack.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAProject.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAProject.cs index 7ab0d819d359..98cad38ec256 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAProject.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAProject.cs @@ -1,19 +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.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System; -using System.IO; -using Xunit; -using FluentAssertions; -using System.Runtime.InteropServices; -using System.Linq; -using Xunit.Abstractions; -using System.Xml.Linq; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToReferenceAProject : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAnAssembly.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAnAssembly.cs index c5efa350d3ca..43e09333ce7c 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAnAssembly.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToReferenceAnAssembly.cs @@ -1,16 +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 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 { public class GivenThatWeWantToReferenceAnAssembly : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToResolveConflicts.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToResolveConflicts.cs index 400ea48e5de6..ba9e4973ea1a 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToResolveConflicts.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToResolveConflicts.cs @@ -1,18 +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.IO; -using System.Linq; using System.Text.RegularExpressions; -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 Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToResolveRuntimePackAssets.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToResolveRuntimePackAssets.cs index f07eda860e34..4b6e7ef45fe0 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToResolveRuntimePackAssets.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToResolveRuntimePackAssets.cs @@ -1,16 +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.Xml.Linq; -using FluentAssertions; 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; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToRunFromMSBuildTarget.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToRunFromMSBuildTarget.cs index c5b64d30f193..515eb0c43cfb 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToRunFromMSBuildTarget.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToRunFromMSBuildTarget.cs @@ -1,15 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.IO; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToRunFromMSBuildTarget : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToSetPropertiesInDirectoryBuildProps.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToSetPropertiesInDirectoryBuildProps.cs index 159ead01f11b..e39c8e2b07d4 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToSetPropertiesInDirectoryBuildProps.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToSetPropertiesInDirectoryBuildProps.cs @@ -1,15 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Microsoft.NET.TestFramework.Commands; -using System.IO; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToSetPropertiesInDirectoryBuildProps : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetEolFrameworks.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetEolFrameworks.cs index 99765a455fe9..9f196512336e 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetEolFrameworks.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetEolFrameworks.cs @@ -1,16 +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 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 { public class GivenThatWeWantToTargetEolFrameworks : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetNet471.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetNet471.cs index 2b590480364f..fb4dcb096a18 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetNet471.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToTargetNet471.cs @@ -1,17 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.IO; -using System.Linq; using System.Runtime.CompilerServices; -using System.Xml.Linq; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseAnalyzers.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseAnalyzers.cs index 4c2bc7c67e1a..ec944ffd711b 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseAnalyzers.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseAnalyzers.cs @@ -1,19 +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.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.Collections.Generic; -using System; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.ProjectConstruction; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToUseAnalyzers : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseBinaryFormatter.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseBinaryFormatter.cs index 95f365367f99..282b0c9356b0 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseBinaryFormatter.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseBinaryFormatter.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 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 { public class GivenThatWeWantToUseBinaryFormatter : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseContentFiles.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseContentFiles.cs index fdf2e7c494b6..bbaa4776c829 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseContentFiles.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseContentFiles.cs @@ -1,17 +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.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using System.Linq; -using FluentAssertions; -using System; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.ProjectConstruction; - namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUsePlatformAnalyzers.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUsePlatformAnalyzers.cs index 97425f93b586..a22b1c84446b 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUsePlatformAnalyzers.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUsePlatformAnalyzers.cs @@ -1,17 +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; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; - -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToUsePlatformAnalyzers : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseVB.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseVB.cs index dbd2fe032faa..ca05148e08d0 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseVB.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToUseVB.cs @@ -1,17 +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.Linq; - -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Xunit.Abstractions; -using Xunit; -using System; -using System.IO; -using Microsoft.NET.TestFramework.ProjectConstruction; using Microsoft.Build.Utilities; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyNuGetReferenceCompat.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyNuGetReferenceCompat.cs index 4a33fd74a2c4..fb3030900aa1 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyNuGetReferenceCompat.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyNuGetReferenceCompat.cs @@ -1,18 +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.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 Xunit; -using FluentAssertions; -using System.Runtime.InteropServices; -using System.Linq; -using Xunit.Abstractions; using System.Runtime.CompilerServices; 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 12e5f07ac777..5db509606096 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyProjectReferenceCompat.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyProjectReferenceCompat.cs @@ -1,18 +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.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System; -using System.Collections.Generic; -using Xunit; -using FluentAssertions; -using System.Runtime.InteropServices; -using System.Linq; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToVerifyProjectReferenceCompat : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs index 3e732f026fd9..ab8eaf6172c5 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenThereAreDefaultItems.cs @@ -2,18 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Assertions; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Xml.Linq; -using Xunit; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit.Abstractions; using NuGet.ProjectModel; using NuGet.Common; using NuGet.Frameworks; diff --git a/src/Tests/Microsoft.NET.Build.Tests/GivenTransitiveFrameworkReferencesAreDisabled.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenTransitiveFrameworkReferencesAreDisabled.cs index 9c6e07bd80ba..62619a18073b 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenTransitiveFrameworkReferencesAreDisabled.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenTransitiveFrameworkReferencesAreDisabled.cs @@ -1,18 +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.Runtime.CompilerServices; -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/GivenWeWantToRequireWindowsForDesktopApps.cs b/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs index 2bc9e7e3d666..3fe7ed37c577 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GivenWeWantToRequireWindowsForDesktopApps.cs @@ -1,17 +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.Xml.Linq; 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 FluentAssertions; -using Xunit; -using Xunit.Abstractions; -using System.Linq; using System.Runtime.CompilerServices; namespace Microsoft.NET.Build.Tests diff --git a/src/Tests/Microsoft.NET.Build.Tests/GiventThatWeWantDesignerSupport.cs b/src/Tests/Microsoft.NET.Build.Tests/GiventThatWeWantDesignerSupport.cs index 9a6f3e302144..5288cc52db7b 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GiventThatWeWantDesignerSupport.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GiventThatWeWantDesignerSupport.cs @@ -1,20 +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.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; -using FluentAssertions; using Microsoft.Extensions.DependencyModel; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/GlobalPropertyFlowTests.cs b/src/Tests/Microsoft.NET.Build.Tests/GlobalPropertyFlowTests.cs index af4d99ff8054..61377ca4d2a4 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/GlobalPropertyFlowTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/GlobalPropertyFlowTests.cs @@ -1,16 +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.Runtime.CompilerServices; -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 Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/ImplicitAspNetVersions.cs b/src/Tests/Microsoft.NET.Build.Tests/ImplicitAspNetVersions.cs index d38ca7d7a5fe..034aadb35c2b 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/ImplicitAspNetVersions.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/ImplicitAspNetVersions.cs @@ -1,19 +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.IO; -using System.Linq; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; using NuGet.Common; using NuGet.Frameworks; using NuGet.ProjectModel; using NuGet.Versioning; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/KnownRuntimePackTests.cs b/src/Tests/Microsoft.NET.Build.Tests/KnownRuntimePackTests.cs index 8e96d33da726..fc4fa8a4449a 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/KnownRuntimePackTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/KnownRuntimePackTests.cs @@ -1,15 +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.Xml.Linq; -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 { public class KnownRuntimePackTests : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/MetadataUpdaterSupportTest.cs b/src/Tests/Microsoft.NET.Build.Tests/MetadataUpdaterSupportTest.cs index cd2dbec51312..6d4e71d89906 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/MetadataUpdaterSupportTest.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/MetadataUpdaterSupportTest.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.IO; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class MetadataUpdaterSupportTest : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/Net50Targeting.cs b/src/Tests/Microsoft.NET.Build.Tests/Net50Targeting.cs index 8ab4733e2a96..d345a0193082 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/Net50Targeting.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/Net50Targeting.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.IO; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class Net50Targeting : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/NonCopyLocalProjectReferenceTests.cs b/src/Tests/Microsoft.NET.Build.Tests/NonCopyLocalProjectReferenceTests.cs index 6c3165c28824..58ae6e1d8c0c 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/NonCopyLocalProjectReferenceTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/NonCopyLocalProjectReferenceTests.cs @@ -1,17 +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.Xml.Linq; -using FluentAssertions; using Microsoft.Extensions.DependencyModel; -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 ddf648d07a0f..3ff95f07ede1 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/ProjectConfigurationDescriptionTest.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/ProjectConfigurationDescriptionTest.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.IO; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class ProjectConfigurationDescription : SdkTest diff --git a/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs b/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs index c62eb5dbccfe..0ec058c9c59c 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/ReferenceExeTests.cs @@ -1,17 +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.IO; 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; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Build.Tests/SourceLinkTests.cs b/src/Tests/Microsoft.NET.Build.Tests/SourceLinkTests.cs index f421e498cdd2..c00c2a0edeed 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/SourceLinkTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/SourceLinkTests.cs @@ -1,19 +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.IO; using System.IO.Compression; -using System.Linq; using System.Reflection.Metadata; -using System.Text; -using System.Xml.Linq; -using FluentAssertions; -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/WorkloadTests.cs b/src/Tests/Microsoft.NET.Build.Tests/WorkloadTests.cs index 25c3e96e0c74..aa93bbfd6667 100644 --- a/src/Tests/Microsoft.NET.Build.Tests/WorkloadTests.cs +++ b/src/Tests/Microsoft.NET.Build.Tests/WorkloadTests.cs @@ -1,16 +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.Linq; -using System.Runtime.InteropServices; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; using NuGet.Versioning; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Clean.Tests/GivenThatWeWantToCleanAProject.cs b/src/Tests/Microsoft.NET.Clean.Tests/GivenThatWeWantToCleanAProject.cs index d4a485b71ada..7f1076c12316 100644 --- a/src/Tests/Microsoft.NET.Clean.Tests/GivenThatWeWantToCleanAProject.cs +++ b/src/Tests/Microsoft.NET.Clean.Tests/GivenThatWeWantToCleanAProject.cs @@ -1,15 +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.IO; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; using NuGet.Common; using NuGet.ProjectModel; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Clean.Tests { diff --git a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatThereAreImplicitPackageReferences.cs b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatThereAreImplicitPackageReferences.cs index cc422d439e6f..1c3950dc3c3b 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatThereAreImplicitPackageReferences.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatThereAreImplicitPackageReferences.cs @@ -1,19 +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.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.Xml.Linq; -using System.Linq; -using FluentAssertions; -using System.Runtime.InteropServices; -using Xunit.Abstractions; - namespace Microsoft.NET.Pack.Tests { public class GivenThatThereAreImplicitPackageReferences : SdkTest diff --git a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACppCliProject.cs b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACppCliProject.cs index 4cb4295091e1..9b87a6c39323 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACppCliProject.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACppCliProject.cs @@ -1,15 +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; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.NET.Build.Tests { public class GivenThatWeWantToPackACppCliProject : SdkTest diff --git a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACrossTargetedLibrary.cs b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACrossTargetedLibrary.cs index 7cad8f37fb58..e9ff500830f8 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACrossTargetedLibrary.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACrossTargetedLibrary.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.IO; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.NET.Pack.Tests { public class GivenThatWeWantToPackACrossTargetedLibrary : SdkTest diff --git a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackAHelloWorldProject.cs b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackAHelloWorldProject.cs index 7907dbc3214c..a4756bd2f2f2 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackAHelloWorldProject.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackAHelloWorldProject.cs @@ -1,16 +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 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 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 ac5cb978a050..a879c0ed4beb 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackANetFrameworkLibrary.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackANetFrameworkLibrary.cs @@ -1,17 +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.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.Xml.Linq; -using System.Linq; -using FluentAssertions; -using Xunit.Abstractions; - namespace Microsoft.NET.Pack.Tests { public class GivenThatWeWantToPackANetFrameworkLibrary : SdkTest diff --git a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackAProjectTool.cs b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackAProjectTool.cs index d7585c2c3794..a57d48104c06 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackAProjectTool.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackAProjectTool.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.IO; -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; using Microsoft.NET.Build.Tasks; namespace Microsoft.NET.Build.Tests diff --git a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackASimpleLibrary.cs b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackASimpleLibrary.cs index daa5b44b0c2e..1772c77b7cf0 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackASimpleLibrary.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackASimpleLibrary.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.IO; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.NET.Pack.Tests { public class GivenThatWeWantToPackASimpleLibrary : SdkTest diff --git a/src/Tests/Microsoft.NET.Pack.Tests/SolutionPackTests.cs b/src/Tests/Microsoft.NET.Pack.Tests/SolutionPackTests.cs index 8834ad42db51..7294a8f483d4 100644 --- a/src/Tests/Microsoft.NET.Pack.Tests/SolutionPackTests.cs +++ b/src/Tests/Microsoft.NET.Pack.Tests/SolutionPackTests.cs @@ -1,16 +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.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Microsoft.NET.TestFramework.ProjectConstruction; - -using FluentAssertions; -using Xunit.Abstractions; -using System.IO; - namespace Microsoft.NET.Pack.Tests { public class SolutionPackTests : SdkTest diff --git a/src/Tests/Microsoft.NET.Publish.Tests/FilesCopiedToPublishDirTests.cs b/src/Tests/Microsoft.NET.Publish.Tests/FilesCopiedToPublishDirTests.cs index 93d3384d0bfb..bcb52c240d1d 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/FilesCopiedToPublishDirTests.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/FilesCopiedToPublishDirTests.cs @@ -1,19 +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.Runtime.InteropServices; -using FluentAssertions; 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 Xunit.Abstractions; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs index 7f928fb5085b..4b3b82b177ea 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs @@ -1,22 +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.IO; -using System.Linq; using System.Runtime.CompilerServices; -using FluentAssertions; using Microsoft.Extensions.DependencyModel; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; using Newtonsoft.Json.Linq; using NuGet.Common; using NuGet.Frameworks; using NuGet.ProjectModel; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToCrossPublish.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToCrossPublish.cs index 32b0b8ff2461..0c93c6218d51 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToCrossPublish.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToCrossPublish.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 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.Publish.Tests { public class GivenThatWeWantToCrossPublish : SdkTest diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToExcludeAPackageFromPublish.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToExcludeAPackageFromPublish.cs index c386d579b86c..4d16417eb2af 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToExcludeAPackageFromPublish.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToExcludeAPackageFromPublish.cs @@ -1,15 +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.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using System.Xml.Linq; -using Xunit.Abstractions; -using System.Collections.Generic; -using Microsoft.NET.TestFramework.ProjectConstruction; - namespace Microsoft.NET.Publish.Tests { public class GivenThatWeWantToExcludeAPackageFromPublish : SdkTest diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs index 8d333ed48097..30aba6f70745 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToFilterSatelliteAssemblies.cs @@ -1,14 +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 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 Xunit.Abstractions; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPreserveCompilationContext.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPreserveCompilationContext.cs index e083fa033c0d..ab93e6d3308b 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPreserveCompilationContext.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPreserveCompilationContext.cs @@ -1,20 +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.IO; -using System.Linq; -using System.Runtime.InteropServices; -using FluentAssertions; using Microsoft.Extensions.DependencyModel; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using System.Xml.Linq; -using Xunit.Abstractions; -using System.Collections.Generic; -using Microsoft.NET.TestFramework.ProjectConstruction; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAComServerLibrary.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAComServerLibrary.cs index 42c646deea2f..9bdb64867c9b 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAComServerLibrary.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAComServerLibrary.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 Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Publish.Tests { public class GivenThatWeWantToPublishAComServerLibrary : SdkTest diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliAppProject.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliAppProject.cs index 79b6b8c08c79..bdb236459d61 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliAppProject.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliAppProject.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.IO; -using FluentAssertions; using Microsoft.NET.Build.Tasks; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -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 da1f03603d0a..58b15b0faa51 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliProject.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliProject.cs @@ -1,14 +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 FluentAssertions; using Microsoft.NET.Build.Tasks; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; namespace Microsoft.NET.Build.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAFrameworkDependentApp.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAFrameworkDependentApp.cs index 93a0dbd7bd32..ff31fa3e626b 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAFrameworkDependentApp.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAFrameworkDependentApp.cs @@ -1,18 +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.Runtime.InteropServices; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; 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.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs index 41f876389c6a..634b12c4b643 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs @@ -1,23 +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.IO; -using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.DependencyModel; -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.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishANetCoreAppForTelemetry.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishANetCoreAppForTelemetry.cs index 2412e1cf206d..45187cc3c725 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishANetCoreAppForTelemetry.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishANetCoreAppForTelemetry.cs @@ -1,17 +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.Reflection; -using System.Runtime.InteropServices; -using FluentAssertions; using Microsoft.NET.Build.Tests; -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.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs index 6c6c55b803dd..b61039b38e63 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs @@ -1,21 +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 FluentAssertions.Json; using Microsoft.Extensions.DependencyModel; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; using Newtonsoft.Json.Linq; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithDependencies.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithDependencies.cs index e3d106828ca9..0f064fa99224 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithDependencies.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithDependencies.cs @@ -1,19 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; -using System.Xml.Linq; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASelfContainedApp.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASelfContainedApp.cs index 5f4cd04652bd..e259797d1dee 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASelfContainedApp.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASelfContainedApp.cs @@ -1,17 +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 FluentAssertions; 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 System; -using System.IO; -using System.Runtime.InteropServices; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileApp.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileApp.cs index 9b3b7e0411f7..57dec092fa32 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileApp.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileApp.cs @@ -1,22 +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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; 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 System.Xml.Linq; using NuGet.Frameworks; -using Xunit; -using Xunit.Abstractions; -using System; -using System.IO; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; -using System.Collections.Generic; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileLibrary.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileLibrary.cs index 90bbd0b5d315..53c19234a68c 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileLibrary.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileLibrary.cs @@ -1,15 +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 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.Publish.Tests { public class GivenThatWeWantToPublishASingleFileLibrary : SdkTest diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAToolProjectWithPackagedShim.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAToolProjectWithPackagedShim.cs index 715d2e99b6b4..917670a7f645 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAToolProjectWithPackagedShim.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAToolProjectWithPackagedShim.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.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; -using System.Xml.Linq; using System.Runtime.CompilerServices; namespace Microsoft.NET.Publish.Tests diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAWebApp.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAWebApp.cs index 008c13163b31..cd64cc38cefe 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAWebApp.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAWebApp.cs @@ -1,15 +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 FluentAssertions; 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.IO; -using Xunit; -using Xunit.Abstractions; 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 d5d2a14cdd36..c683d0af4ba3 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs @@ -1,22 +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.Xml.Linq; using System.Reflection.PortableExecutable; -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; -using Microsoft.NET.TestFramework.ProjectConstruction; using Newtonsoft.Json.Linq; -using Xunit; -using Xunit.Abstractions; using static Microsoft.NET.Publish.Tests.PublishTestUtils; namespace Microsoft.NET.Publish.Tests diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAppWithLibrariesAndRid.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAppWithLibrariesAndRid.cs index 66b3a77c631f..ec9ca780bbb8 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAppWithLibrariesAndRid.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAppWithLibrariesAndRid.cs @@ -1,16 +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.IO; -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; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnUnpublishableProject.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnUnpublishableProject.cs index 74735461f61f..b78303497d57 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnUnpublishableProject.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnUnpublishableProject.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 Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Publish.Tests { public class GivenThatWeWantToPublishAnUnpublishableProject : SdkTest diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs index db279f9b8896..eb6d048217da 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs @@ -1,18 +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 FluentAssertions; -using System; -using System.IO; -using System.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; -using System.Collections.Generic; - namespace Microsoft.NET.Publish.Tests { public class GivenThatWeWantToPublishIncrementally : SdkTest diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishReadyToRun.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishReadyToRun.cs index 78e1777f25f5..bbf397694af0 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishReadyToRun.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishReadyToRun.cs @@ -1,23 +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.Reflection.Metadata; using System.Reflection.PortableExecutable; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using FluentAssertions; 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 NuGet.Frameworks; -using Xunit; -using Xunit.Abstractions; 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 8fcf7601f007..5bea028de135 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishToClickOnce.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishToClickOnce.cs @@ -1,14 +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 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 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 c0674ca191ee..f5f8d99e5935 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishTrimmedWindowsFormsAndWPFApps.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishTrimmedWindowsFormsAndWPFApps.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 FluentAssertions; 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.Abstractions; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs index e001cd3d61e2..64af792f08a2 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs @@ -1,16 +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 System.Xml.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Assertions; namespace Microsoft.NET.ToolPack.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishWithoutConflicts.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishWithoutConflicts.cs index 0e08ebfe0735..0d0cfb51f95a 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishWithoutConflicts.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishWithoutConflicts.cs @@ -1,16 +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 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; -using System.IO; -using System.Linq; - namespace Microsoft.NET.Publish.Tests { public class GivenThatWeWantToPublishWithoutConflicts : SdkTest diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToRunILLink.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToRunILLink.cs index 788b6c003bca..9a827eadcaad 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToRunILLink.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToRunILLink.cs @@ -1,28 +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.Collections.Generic; -using System.IO; -using System.Linq; -using System.Xml.Linq; using System.Reflection; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; using System.Runtime.CompilerServices; -using System.Text; using System.Text.RegularExpressions; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.DependencyModel; 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 Newtonsoft.Json.Linq; -using Xunit; -using Xunit.Abstractions; using static Microsoft.NET.Publish.Tests.PublishTestUtils; namespace Microsoft.NET.Publish.Tests diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToStoreAProjectWithDependencies.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToStoreAProjectWithDependencies.cs index 41f75864ec9e..34ba5cf8720c 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToStoreAProjectWithDependencies.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToStoreAProjectWithDependencies.cs @@ -1,24 +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.Runtime.InteropServices; -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 NuGet.Packaging.Core; using NuGet.Versioning; -using Xunit; -using Xunit.Abstractions; 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 eccc488fec9a..8bc7b031669f 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToTestAMultitargetedSolutionWithPublishReleaseOrPackRelease.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToTestAMultitargetedSolutionWithPublishReleaseOrPackRelease.cs @@ -1,19 +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.Runtime.CompilerServices; -using FluentAssertions; 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; 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 81036ea270b5..a67a2348f0e7 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/PublishDepsFilePathTests.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/PublishDepsFilePathTests.cs @@ -1,17 +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; -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.Publish.Tests { public class PublishDepsFilePathTests : SdkTest diff --git a/src/Tests/Microsoft.NET.Publish.Tests/PublishItemsOutputGroupOutputsTests.cs b/src/Tests/Microsoft.NET.Publish.Tests/PublishItemsOutputGroupOutputsTests.cs index 326bac60b3fe..011e88259efc 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/PublishItemsOutputGroupOutputsTests.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/PublishItemsOutputGroupOutputsTests.cs @@ -1,19 +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.Runtime.InteropServices; -using FluentAssertions; 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 Xunit.Abstractions; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/PublishItemsOutputGroupTests.cs b/src/Tests/Microsoft.NET.Publish.Tests/PublishItemsOutputGroupTests.cs index 0675180553ed..e1d76207bbb2 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/PublishItemsOutputGroupTests.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/PublishItemsOutputGroupTests.cs @@ -1,19 +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.Runtime.InteropServices; -using FluentAssertions; 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 Xunit.Abstractions; namespace Microsoft.NET.Publish.Tests { diff --git a/src/Tests/Microsoft.NET.Publish.Tests/PublishNetFrameworkApp.cs b/src/Tests/Microsoft.NET.Publish.Tests/PublishNetFrameworkApp.cs index d2ade16834e9..51339d170e2f 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/PublishNetFrameworkApp.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/PublishNetFrameworkApp.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 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.Publish.Tests { public class PublishNetFrameworkApp : SdkTest diff --git a/src/Tests/Microsoft.NET.Publish.Tests/PublishTestUtils.cs b/src/Tests/Microsoft.NET.Publish.Tests/PublishTestUtils.cs index 56de1885bc48..9ae403c3daee 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/PublishTestUtils.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/PublishTestUtils.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.Collections.Generic; -using Microsoft.NET.TestFramework; - namespace Microsoft.NET.Publish.Tests { internal static class PublishTestUtils diff --git a/src/Tests/Microsoft.NET.Publish.Tests/PublishWebApp.cs b/src/Tests/Microsoft.NET.Publish.Tests/PublishWebApp.cs index 16301706dfdf..4ea32a9f347c 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/PublishWebApp.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/PublishWebApp.cs @@ -1,16 +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; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Publish.Tests { public class PublishWebApp : SdkTest diff --git a/src/Tests/Microsoft.NET.Publish.Tests/PublishWpfApp.cs b/src/Tests/Microsoft.NET.Publish.Tests/PublishWpfApp.cs index 8a338a2b106d..32104c34eb9b 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/PublishWpfApp.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/PublishWpfApp.cs @@ -1,15 +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; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.NET.Publish.Tests { public class PublishWpfApp : SdkTest diff --git a/src/Tests/Microsoft.NET.Publish.Tests/RuntimeIdentifiersTests.cs b/src/Tests/Microsoft.NET.Publish.Tests/RuntimeIdentifiersTests.cs index 397f5b94da43..ff4103c46fd3 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/RuntimeIdentifiersTests.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/RuntimeIdentifiersTests.cs @@ -1,17 +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.Collections.Generic; -using System.IO; using System.Reflection; -using FluentAssertions; 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 Xunit.Abstractions; 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 f620052f9681..d7a55938b992 100644 --- a/src/Tests/Microsoft.NET.Rebuild.Tests/GivenThatWeWantToRebuildAProject.cs +++ b/src/Tests/Microsoft.NET.Rebuild.Tests/GivenThatWeWantToRebuildAProject.cs @@ -1,15 +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.IO; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; using NuGet.Common; using NuGet.ProjectModel; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Rebuild.Tests { diff --git a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantAutomaticTargetingPackReferences.cs b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantAutomaticTargetingPackReferences.cs index 59d3b6b7779a..627746e93607 100644 --- a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantAutomaticTargetingPackReferences.cs +++ b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantAutomaticTargetingPackReferences.cs @@ -1,20 +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.IO; -using System.Linq; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.Build.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; using NuGet.Common; using NuGet.Frameworks; using NuGet.ProjectModel; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Restore.Tests { diff --git a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantRestoreToUseImplicitPackages.cs b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantRestoreToUseImplicitPackages.cs index ac189b48cfbb..f3a40cdb9ce7 100644 --- a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantRestoreToUseImplicitPackages.cs +++ b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantRestoreToUseImplicitPackages.cs @@ -1,17 +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.IO; -using System.Linq; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.ProjectConstruction; using NuGet.Common; using NuGet.Frameworks; using NuGet.ProjectModel; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Restore.Tests { diff --git a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToIgnoreObsoleteDotNetCliToolPackages.cs b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToIgnoreObsoleteDotNetCliToolPackages.cs index 2d14240366b9..b5d8b02faafc 100644 --- a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToIgnoreObsoleteDotNetCliToolPackages.cs +++ b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToIgnoreObsoleteDotNetCliToolPackages.cs @@ -1,16 +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; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Restore.Tests { public class GivenThatWeWantToIgnoreObsoleteDotNetCliToolPackages : SdkTest diff --git a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreDotNetCliToolReference.cs b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreDotNetCliToolReference.cs index 2e92a9218955..8d820ac26b27 100644 --- a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreDotNetCliToolReference.cs +++ b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreDotNetCliToolReference.cs @@ -1,18 +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.IO; -using System.Linq; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; using NuGet.Common; using NuGet.Frameworks; using NuGet.ProjectModel; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Restore.Tests { diff --git a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs index 7343d3251cc3..bea9e943bcea 100644 --- a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs +++ b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs @@ -1,19 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -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 NuGet.Packaging.Signing; -using System.IO; -using System.Threading; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Restore.Tests { diff --git a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsWithPackageDowngrades.cs b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsWithPackageDowngrades.cs index 626e4760bd4e..35d3b34270e6 100644 --- a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsWithPackageDowngrades.cs +++ b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToRestoreProjectsWithPackageDowngrades.cs @@ -1,15 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.IO; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Restore.Tests { public class GivenThatWeWantToRestoreProjectsWithPackageDowngrades : SdkTest diff --git a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToUseFrameworkRoslyn.cs b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToUseFrameworkRoslyn.cs index f1de5d546fcf..1042f5cbb7d4 100644 --- a/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToUseFrameworkRoslyn.cs +++ b/src/Tests/Microsoft.NET.Restore.Tests/GivenThatWeWantToUseFrameworkRoslyn.cs @@ -1,15 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Restore.Tests { public class GivenThatWeWantToUseFrameworkRoslyn : SdkTest diff --git a/src/Tests/Microsoft.NET.Restore.Tests/RestoreWithOlderNuGet.cs b/src/Tests/Microsoft.NET.Restore.Tests/RestoreWithOlderNuGet.cs index 1e21337141f9..db45ecf0d89e 100644 --- a/src/Tests/Microsoft.NET.Restore.Tests/RestoreWithOlderNuGet.cs +++ b/src/Tests/Microsoft.NET.Restore.Tests/RestoreWithOlderNuGet.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 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.Restore.Tests { public class RestoreWithOlderNuGet : SdkTest diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests/WasmAoTPublishIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests/WasmAoTPublishIntegrationTest.cs index 8359aa3269d8..c58902863e77 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests/WasmAoTPublishIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests/WasmAoTPublishIntegrationTest.cs @@ -1,20 +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.Runtime.CompilerServices; -using System.Xml.Linq; using Microsoft.NET.Sdk.BlazorWebAssembly.Tests; using static Microsoft.NET.Sdk.BlazorWebAssembly.Tests.ServiceWorkerAssert; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorLegacyIntegrationTest50.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorLegacyIntegrationTest50.cs index c35c5159813b..ab9c7990693b 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorLegacyIntegrationTest50.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorLegacyIntegrationTest50.cs @@ -1,14 +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 FluentAssertions; using Microsoft.NET.Sdk.Razor.Tests; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorLegacyIntegrationTest60.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorLegacyIntegrationTest60.cs index 013f3e110534..f687f4315471 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorLegacyIntegrationTest60.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorLegacyIntegrationTest60.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.IO; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorMultitargetIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorMultitargetIntegrationTest.cs index 9690adb4de0d..bc0c5585f441 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorMultitargetIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorMultitargetIntegrationTest.cs @@ -1,22 +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.IO.Compression; -using System.Linq; -using System.Reflection.Metadata; -using System.Reflection.PortableExecutable; -using System.Text.Json; -using System.Xml.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; -using static Microsoft.NET.Sdk.BlazorWebAssembly.Tests.ServiceWorkerAssert; -using Microsoft.NET.Sdk.WebAssembly; - namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { public class BlazorMultitargetIntegrationTest : AspNetSdkTest diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorReadSatelliteAssemblyFileTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorReadSatelliteAssemblyFileTest.cs index 0e1fab50cec9..9fd3bb0865b5 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorReadSatelliteAssemblyFileTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorReadSatelliteAssemblyFileTest.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.Collections.Generic; -using System.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using FluentAssertions; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmBaselineTests.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmBaselineTests.cs index 9587e5677f23..6b9fbd797179 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmBaselineTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmBaselineTests.cs @@ -1,15 +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.RegularExpressions; -using Microsoft.AspNetCore.Razor.Tasks; using Microsoft.NET.Sdk.Razor.Tests; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmStaticWebAssetsIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmStaticWebAssetsIntegrationTest.cs index a4f919cc6f2f..9b1c08d8628e 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmStaticWebAssetsIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmStaticWebAssetsIntegrationTest.cs @@ -1,14 +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.Xml.Linq; using Microsoft.AspNetCore.StaticWebAssets.Tasks; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BootJsonData.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BootJsonData.cs index 301f2e504473..e3490a388680 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BootJsonData.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BootJsonData.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.Runtime.Serialization; using ResourceHashesByNameDictionary = System.Collections.Generic.Dictionary; diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/LegacyBuildIntegrationTestBase.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/LegacyBuildIntegrationTestBase.cs index 01fcbcf873a4..1810a13b063b 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/LegacyBuildIntegrationTestBase.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/LegacyBuildIntegrationTestBase.cs @@ -1,17 +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.Threading.Tasks; using Microsoft.NET.Sdk.Razor.Tests; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/ResolveCompressedAssetsTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/ResolveCompressedAssetsTest.cs index fdfb94365efa..96f7bee812cf 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/ResolveCompressedAssetsTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/ResolveCompressedAssetsTest.cs @@ -1,16 +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 FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using Microsoft.NET.TestFramework; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests; diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/RewriteCssTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/RewriteCssTest.cs index fa503982a4a7..6a1892a735f4 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/RewriteCssTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/RewriteCssTest.cs @@ -2,9 +2,7 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. // -using System.Linq; using Microsoft.AspNetCore.StaticWebAssets.Tasks; -using Xunit; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests; diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/ServiceWorkerAssert.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/ServiceWorkerAssert.cs index 27e75b0a080a..bafa5e939f22 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/ServiceWorkerAssert.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/ServiceWorkerAssert.cs @@ -1,15 +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.Json; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using FluentAssertions; -using Microsoft.NET.Sdk.BlazorWebAssembly; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/VanillaWasmTests.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/VanillaWasmTests.cs index 96720a8bae09..b90ca5b344c5 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/VanillaWasmTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/VanillaWasmTests.cs @@ -1,19 +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; -using System.Xml.Linq; -using Microsoft.AspNetCore.StaticWebAssets.Tasks; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { public class VanillaWasmTests : BlazorWasmBaselineTests diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIncrementalismTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIncrementalismTest.cs index 0b7556c9d710..53c5024d5094 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIncrementalismTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIncrementalismTest.cs @@ -1,18 +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.IO; -using System.Linq; using System.Text.Json; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.NET.Sdk.WebAssembly; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIntegrationTest.cs index 9e2cdf28b022..47b3b8330d59 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIntegrationTest.cs @@ -1,21 +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.Text.Json; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; -using Microsoft.AspNetCore.Razor.Tasks; -using Microsoft.NET.TestFramework; using Microsoft.NET.Sdk.WebAssembly; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; -using static NuGet.Client.ManagedCodeConventions; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildLazyLoadTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildLazyLoadTest.cs index 9379567d9040..025b15355791 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildLazyLoadTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildLazyLoadTest.cs @@ -1,19 +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.Text.Json; -using System.Threading.Tasks; -using FluentAssertions; -using System.Xml.Linq; -using Microsoft.NET.Sdk.BlazorWebAssembly; -using Microsoft.DotNet.Cli.Utils; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; using Microsoft.NET.Sdk.WebAssembly; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmCompressionTests.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmCompressionTests.cs index c86fa11c1b40..7fc24a935a59 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmCompressionTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmCompressionTests.cs @@ -1,15 +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.Threading.Tasks; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { public class WasmCompressionTests : AspNetSdkTest diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmJsModulesIntegrationTests.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmJsModulesIntegrationTests.cs index 7743a9951169..441683a3f16d 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmJsModulesIntegrationTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmJsModulesIntegrationTests.cs @@ -1,17 +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.IO; -using System.Linq; using System.Text.Json; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs index e49db2ce5e9c..acc8310189e8 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs @@ -1,19 +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.IO; using System.IO.Compression; -using System.Linq; -using System.Reflection.Metadata; -using System.Reflection.PortableExecutable; using System.Text.Json; -using System.Xml.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; using static Microsoft.NET.Sdk.BlazorWebAssembly.Tests.ServiceWorkerAssert; using Microsoft.NET.Sdk.WebAssembly; diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTestBase.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTestBase.cs index a4808af4a053..fad0863f59bb 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTestBase.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTestBase.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 System.IO; using System.Text.Json; using Microsoft.NET.Sdk.WebAssembly; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; using ResourceHashesByNameDictionary = System.Collections.Generic.Dictionary; namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPwaManifestTests.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPwaManifestTests.cs index 364e5f929858..f0eb2148c85c 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPwaManifestTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPwaManifestTests.cs @@ -1,18 +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.IO; -using System.Linq; using System.Text.Json; using System.Text.RegularExpressions; -using System.Threading.Tasks; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; using static Microsoft.NET.Sdk.BlazorWebAssembly.Tests.ServiceWorkerAssert; diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/AppSettingsTransformTests.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/AppSettingsTransformTests.cs index 44541ccb7ef8..7fd205eb2e77 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/AppSettingsTransformTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/AppSettingsTransformTests.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.Collections.Generic; -using System.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Newtonsoft.Json.Linq; -using Xunit; namespace Microsoft.NET.Sdk.Publish.Tasks.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/EnvironmentHelperTests.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/EnvironmentHelperTests.cs index 5299de468b00..1844df14aa21 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/EnvironmentHelperTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/EnvironmentHelperTests.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.IO; -using System.Linq; -using System.Xml.Linq; -using Microsoft.NET.Sdk.Publish.Tasks; -using Xunit; - namespace Microsoft.NET.Sdk.Publish.Tasks.Tests { public class EnvironmentHelperTests diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/GenerateEFSQLScriptsTests.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/GenerateEFSQLScriptsTests.cs index 5ee5e7059162..a3fe806740d3 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/GenerateEFSQLScriptsTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/GenerateEFSQLScriptsTests.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 Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using Xunit; namespace Microsoft.NET.Sdk.Publish.Tasks.Tests.Tasks { diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/GenerateEnvTransformTests.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/GenerateEnvTransformTests.cs index 09e0c8b08ea2..2afade63b6df 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/GenerateEnvTransformTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/GenerateEnvTransformTests.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.IO; -using System.Linq; -using System.Xml.Linq; using Microsoft.NET.Sdk.Publish.Tasks.Xdt; -using Xunit; namespace Microsoft.NET.Sdk.Publish.Tasks.Tests.Tasks { diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/TransformAppSettingsTests.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/TransformAppSettingsTests.cs index cf054c1fe238..ee749b25d33a 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/TransformAppSettingsTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/TransformAppSettingsTests.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.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Newtonsoft.Json.Linq; -using Xunit; namespace Microsoft.NET.Sdk.Publish.Tasks.Tests.Tasks { diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/TransformWebConfigTests.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/TransformWebConfigTests.cs index 0a68c19f81ba..30bca6fd3025 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/TransformWebConfigTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/TransformWebConfigTests.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 Xunit; -using System.Text; -using System.IO; -using System; - namespace Microsoft.NET.Sdk.Publish.Tasks.Tests { public class TransformWebConfigTests diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/TransformXmlTests.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/TransformXmlTests.cs index 8f8ec67107b9..143d918ddc3a 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/TransformXmlTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/TransformXmlTests.cs @@ -2,14 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.NET.Sdk.Publish.Tasks.Xdt; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Xml.Linq; -using Xunit; namespace Microsoft.NET.Sdk.Publish.Tasks.Tests.Tasks { diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/ZipDeploy/ZipDeployerTaskTests.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/ZipDeploy/ZipDeployerTaskTests.cs index cb8f457e1a1e..ceeca7071368 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/ZipDeploy/ZipDeployerTaskTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/ZipDeploy/ZipDeployerTaskTests.cs @@ -1,16 +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.Net; using System.Net.Http; -using System.Text; -using System.Threading.Tasks; -using Microsoft.NET.Sdk.Publish.Tasks.ZipDeploy; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.Publish.Tasks.ZipDeploy.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/ZipDeploy/ZipDeploymentStatusTests.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/ZipDeploy/ZipDeploymentStatusTests.cs index d9fe6bfb7e8f..0b918a7bde8d 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/ZipDeploy/ZipDeploymentStatusTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/Tasks/ZipDeploy/ZipDeploymentStatusTests.cs @@ -1,18 +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.Linq; using System.Net; using System.Net.Http; -using System.Text; using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; using Moq; -using Xunit; - namespace Microsoft.NET.Sdk.Publish.Tasks.ZipDeploy.Tests { public class ZipDeploymentStatusTests diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebConfigTelemetryTests.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebConfigTelemetryTests.cs index 644169f8cc2c..b6954479f90a 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebConfigTelemetryTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebConfigTelemetryTests.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.IO; -using System.Linq; -using System.Xml.Linq; -using Microsoft.NET.Sdk.Publish.Tasks; -using Xunit; - namespace Microsoft.NET.Sdk.Publish.Tasks.Tests { public class WebConfigTelemetryTests diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebConfigTransformTemplates.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebConfigTransformTemplates.cs index 8fc64d012325..0214698db274 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebConfigTransformTemplates.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebConfigTransformTemplates.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.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Xml.Linq; - namespace Microsoft.NET.Sdk.Publish.Tasks.Tests { internal class WebConfigTransformTemplates diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebConfigTransformTests.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebConfigTransformTests.cs index a11c628a9c6b..66b2ac7a6a8d 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebConfigTransformTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebConfigTransformTests.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 System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Xml.Linq; using Microsoft.NET.Sdk.Publish.Tasks; using Microsoft.NET.Sdk.Publish.Tasks.Tests; -using Xunit; // Some of the tests Copied from https://raw.githubusercontent.com/aspnet/IISIntegration/50f066579a96c6f2b2a4c47524c684e1ef3dfdf0/test/Microsoft.AspNetCore.Server.IISIntegration.Tools.Tests/WebConfigTransformFacts.cs diff --git a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebJobsCommandGeneratorTests.cs b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebJobsCommandGeneratorTests.cs index 692ae1e449f9..5ad00ee75409 100644 --- a/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebJobsCommandGeneratorTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Publish.Tasks.Tests/WebJobsCommandGeneratorTests.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.NET.Sdk.Publish.Tasks; -using Xunit; namespace Microsoft.Net.Sdk.Publish.Tasks.Tests diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ApplicationPartDiscoveryIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ApplicationPartDiscoveryIntegrationTest.cs index fa2ec42a17fb..d5e55b10909f 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ApplicationPartDiscoveryIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ApplicationPartDiscoveryIntegrationTest.cs @@ -1,16 +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.Threading.Tasks; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.Razor.Tests { public class ApplicationPartDiscoveryIntegrationTest : AspNetSdkTest diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ApplyCssScopesTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ApplyCssScopesTest.cs index 7aa7280e31cb..8ce75bfa6d3e 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ApplyCssScopesTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ApplyCssScopesTest.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 FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/AspNetSdkBaselineTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/AspNetSdkBaselineTest.cs index c0c3eff0d263..6ac384dacffd 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/AspNetSdkBaselineTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/AspNetSdkBaselineTest.cs @@ -1,17 +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.IO; -using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Text.Json; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildIncrementalismTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildIncrementalismTest.cs index c5ee22aec68b..d9dfc5522328 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildIncrementalismTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildIncrementalismTest.cs @@ -1,21 +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.Runtime.InteropServices; -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.Utilities; using Moq; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildIntegrationTest.cs index dbe52280b24c..5072b121a1d5 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildIntegrationTest.cs @@ -1,21 +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.IO; -using System.Linq; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Threading.Tasks; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.Extensions.DependencyModel; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildIntrospectionTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildIntrospectionTest.cs index f1e645886542..a01d96d4e098 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildIntrospectionTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildIntrospectionTest.cs @@ -1,17 +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.Threading.Tasks; -using System.Xml.Linq; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.Razor.Tests { public class BuildIntrospectionTest : AspNetSdkTest diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildWithComponents31IntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildWithComponents31IntegrationTest.cs index 7473d093ce66..c8e7bbdf94dd 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildWithComponents31IntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildWithComponents31IntegrationTest.cs @@ -1,16 +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.Threading.Tasks; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.Razor.Tests { public class BuildWithComponents31IntegrationTest : AspNetSdkTest diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildWithComponentsIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildWithComponentsIntegrationTest.cs index 21cb821bf6a5..a79178ebc39a 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildWithComponentsIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/BuildWithComponentsIntegrationTest.cs @@ -1,16 +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.Runtime.CompilerServices; -using System.Threading.Tasks; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ComputeCssScopesTests.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ComputeCssScopesTests.cs index 671af421deb9..e136af6872ff 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ComputeCssScopesTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ComputeCssScopesTests.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.Collections.Generic; -using System.Linq; using System.Text.RegularExpressions; -using FluentAssertions; using Microsoft.Build.Utilities; -using Xunit; using Microsoft.AspNetCore.StaticWebAssets.Tasks; namespace Microsoft.NET.Sdk.Razor.Test diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ConcatenateFilesTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ConcatenateFilesTest.cs index 65ca46b1fe56..576be05bddbe 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ConcatenateFilesTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ConcatenateFilesTest.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 System; -using System.Collections.Generic; -using System.IO; -using FluentAssertions; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using Microsoft.NET.TestFramework.Assertions; -using Xunit; using Microsoft.AspNetCore.StaticWebAssets.Tasks; namespace Microsoft.NET.Sdk.Razor.Test diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/DesignTimeBuildIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/DesignTimeBuildIntegrationTest.cs index bd703e32dbcd..a1b7b6d99c50 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/DesignTimeBuildIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/DesignTimeBuildIntegrationTest.cs @@ -1,17 +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.Threading.Tasks; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Microsoft.NET.Sdk.Razor.Tests; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests { public class DesignTimeBuildIntegrationTest : AspNetSdkTest diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/DiscoverDefaultScopedCssItemsTests.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/DiscoverDefaultScopedCssItemsTests.cs index 000f8fd6bbbd..22d2d93768c1 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/DiscoverDefaultScopedCssItemsTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/DiscoverDefaultScopedCssItemsTests.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.Collections.Generic; -using FluentAssertions; using Microsoft.Build.Utilities; -using Xunit; using Microsoft.AspNetCore.StaticWebAssets.Tasks; namespace Microsoft.NET.Sdk.Razor.Test diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/GenerateStaticWebAssetsDevelopmentManifestTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/GenerateStaticWebAssetsDevelopmentManifestTest.cs index 0ec6d8e7167a..3d15d6e4574c 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/GenerateStaticWebAssetsDevelopmentManifestTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/GenerateStaticWebAssetsDevelopmentManifestTest.cs @@ -1,15 +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 FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; using Microsoft.Build.Framework; using Moq; -using Xunit; using static Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest; namespace Microsoft.NET.Sdk.Razor.Tests diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/GenerateStaticWebAssetsPropsFileTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/GenerateStaticWebAssetsPropsFileTest.cs index a0c3bbbbefe2..5a59540480ff 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/GenerateStaticWebAssetsPropsFileTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/GenerateStaticWebAssetsPropsFileTest.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.Collections.Generic; -using System.IO; -using FluentAssertions; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Moq; -using Xunit; using Microsoft.AspNetCore.StaticWebAssets.Tasks; namespace Microsoft.NET.Sdk.Razor.Test diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/GenerateV1StaticWebAssetsManifestTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/GenerateV1StaticWebAssetsManifestTest.cs index c753b5a90dee..efa95cfdf23c 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/GenerateV1StaticWebAssetsManifestTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/GenerateV1StaticWebAssetsManifestTest.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.Collections.Generic; -using System.IO; -using FluentAssertions; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Moq; -using Xunit; using Microsoft.AspNetCore.StaticWebAssets.Tasks; namespace Microsoft.NET.Sdk.Razor.Test diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/JsModulesIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/JsModulesIntegrationTest.cs index 59849a7edb8e..44b8216f293a 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/JsModulesIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/JsModulesIntegrationTest.cs @@ -1,17 +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.IO; -using System.Linq; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest21.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest21.cs index bff9590071a0..d418790045f6 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest21.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest21.cs @@ -1,17 +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.Threading.Tasks; -using System.Xml.Linq; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.Razor.Tests { public class MvcBuildIntegrationTest21 : MvcBuildIntegrationTestLegacy diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest21NetFx.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest21NetFx.cs index fa9aa21a8ae4..6667e642adea 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest21NetFx.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest21NetFx.cs @@ -1,15 +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 FluentAssertions; using Microsoft.Extensions.DependencyModel; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest22.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest22.cs index 8c23789dca8d..049de791f507 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest22.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest22.cs @@ -1,17 +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.Threading.Tasks; -using System.Xml.Linq; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.Razor.Tests { public class MvcBuildIntegrationTest22 : MvcBuildIntegrationTestLegacy diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest31.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest31.cs index abb88f94424f..2dc9a6651ef1 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest31.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest31.cs @@ -1,16 +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.Threading.Tasks; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.Razor.Tests { public class MvcBuildIntegrationTest31 : MvcBuildIntegrationTestLegacy diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest50.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest50.cs index 4fb053e91018..226aba61d20a 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest50.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest50.cs @@ -1,16 +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.Threading.Tasks; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.Razor.Tests { public class MvcBuildIntegrationTest50 : MvcBuildIntegrationTestLegacy diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTestLegacy.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTestLegacy.cs index 2b1d244c4f20..1447b3977762 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTestLegacy.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTestLegacy.cs @@ -1,19 +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.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.Extensions.DependencyModel; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/PackIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/PackIntegrationTest.cs index 72394028246f..ddd6af00c130 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/PackIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/PackIntegrationTest.cs @@ -1,22 +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.Runtime.InteropServices; -using System.Text.RegularExpressions; -using System.Threading.Tasks; -using System.Xml.Linq; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Moq; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.Razor.Tests { public class PackIntegrationTest : AspNetSdkTest diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/PublishIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/PublishIntegrationTest.cs index 29aa41cd3cff..a994090c983b 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/PublishIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/PublishIntegrationTest.cs @@ -1,18 +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.IO; using System.Reflection; -using System.Threading.Tasks; -using System.Xml.Linq; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ReferenceResolverTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ReferenceResolverTest.cs index 62a1d59541ba..8ec6d6a7526f 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ReferenceResolverTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ReferenceResolverTest.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.Linq; -using FluentAssertions; using Microsoft.AspNetCore.Razor.Tasks; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Test { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ResolveAllScopedCssAssetsTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ResolveAllScopedCssAssetsTest.cs index a742d84c1ff5..f6261ae15561 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ResolveAllScopedCssAssetsTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ResolveAllScopedCssAssetsTest.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.Collections.Generic; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; using Microsoft.Build.Utilities; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Test { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ScopedCssIntegrationTests.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ScopedCssIntegrationTests.cs index 9286eac8621f..1bd8241383e0 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ScopedCssIntegrationTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ScopedCssIntegrationTests.cs @@ -1,19 +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.Collections.Generic; -using System.IO; -using System.Linq; using System.Text.RegularExpressions; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/ComputeReferenceStaticWebAssetItemsTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/ComputeReferenceStaticWebAssetItemsTest.cs index 4b876c0914b0..a693610758b1 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/ComputeReferenceStaticWebAssetItemsTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/ComputeReferenceStaticWebAssetItemsTest.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.Collections.Generic; -using System.IO; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; using Microsoft.Build.Framework; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/ComputeStaticWebAssetsForCurrentProjectTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/ComputeStaticWebAssetsForCurrentProjectTest.cs index 52163d40ced5..501892c773fb 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/ComputeStaticWebAssetsForCurrentProjectTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/ComputeStaticWebAssetsForCurrentProjectTest.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.Collections.Generic; -using System.IO; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; using Microsoft.Build.Framework; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/DiscoverStaticWebAssetsTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/DiscoverStaticWebAssetsTest.cs index 0d47754d5537..efc07ddc3c3b 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/DiscoverStaticWebAssetsTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/DiscoverStaticWebAssetsTest.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.Collections.Generic; -using System.IO; -using System.Linq; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/GenerateStaticWebAssetsManifestTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/GenerateStaticWebAssetsManifestTest.cs index fda3babedc7b..f5955ab8e94b 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/GenerateStaticWebAssetsManifestTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/GenerateStaticWebAssetsManifestTest.cs @@ -1,15 +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 FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; using Microsoft.Build.Framework; -using Microsoft.NET.TestFramework; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/MergeConfigurationPropertiesTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/MergeConfigurationPropertiesTest.cs index aebdd172230c..0bb7f12b0da7 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/MergeConfigurationPropertiesTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/MergeConfigurationPropertiesTest.cs @@ -1,16 +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 FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; -using Microsoft.NET.TestFramework; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/ReadStaticWebAssetsManifestFileTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/ReadStaticWebAssetsManifestFileTest.cs index b93a6b99dbe8..17a87458c899 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/ReadStaticWebAssetsManifestFileTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssets/ReadStaticWebAssetsManifestFileTest.cs @@ -1,16 +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.Text.Json; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; using Microsoft.Build.Framework; -using Microsoft.NET.TestFramework; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineComparer.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineComparer.cs index 39cb41a96654..0c8df6fd1967 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineComparer.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineComparer.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 System.Linq; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; namespace Microsoft.NET.Sdk.Razor.Tests; diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineFactory.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineFactory.cs index 688587631029..bef56761c282 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineFactory.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineFactory.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.Linq; using Microsoft.AspNetCore.StaticWebAssets.Tasks; namespace Microsoft.NET.Sdk.Razor.Tests; diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsCrossTargetingTests.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsCrossTargetingTests.cs index f78a7b7f76e7..6ddaec6921d5 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsCrossTargetingTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsCrossTargetingTests.cs @@ -4,14 +4,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.Xml.Linq; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsGeneratePackagePropsFileTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsGeneratePackagePropsFileTest.cs index 91d30be3a3fc..e30343d1e457 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsGeneratePackagePropsFileTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsGeneratePackagePropsFileTest.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.IO; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; using Microsoft.Build.Framework; using Moq; -using Xunit; namespace Microsoft.AspNetCore.Razor.Tasks { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsIntegrationTest.cs index 87fc8c3e70fa..5b0b907ce371 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsIntegrationTest.cs @@ -1,20 +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.Runtime.InteropServices; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.Razor.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ValidateStaticWebAssetsUniquePathsTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ValidateStaticWebAssetsUniquePathsTest.cs index cd37a2b91e3e..3286bdfdf20a 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ValidateStaticWebAssetsUniquePathsTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tests/ValidateStaticWebAssetsUniquePathsTest.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.IO; -using FluentAssertions; using Microsoft.AspNetCore.StaticWebAssets.Tasks; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Moq; -using Xunit; namespace Microsoft.AspNetCore.Razor.Tasks { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/CompositeRazorProjectFileSystemTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/CompositeRazorProjectFileSystemTest.cs index 9909f99b3c00..25312395dcb3 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/CompositeRazorProjectFileSystemTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/CompositeRazorProjectFileSystemTest.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.Linq; using Microsoft.AspNetCore.Razor.Language; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tool.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ConcurrentLruCacheTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ConcurrentLruCacheTest.cs index 720f4606d9a9..052929155f17 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ConcurrentLruCacheTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ConcurrentLruCacheTest.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.Linq; -using Xunit; - namespace Microsoft.NET.Sdk.Razor.Tool.Tests { public class ConcurrentLruCacheTest diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/DefaultExtensionAssemblyLoaderTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/DefaultExtensionAssemblyLoaderTest.cs index 65913946472c..ae0728e8145b 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/DefaultExtensionAssemblyLoaderTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/DefaultExtensionAssemblyLoaderTest.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.IO; -using System.Text; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.Razor.Tool.Tests { public class DefaultExtensionAssemblyLoaderTest : SdkTest diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/DefaultExtensionDependencyCheckerTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/DefaultExtensionDependencyCheckerTest.cs index 309fe2434a23..aacd46762273 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/DefaultExtensionDependencyCheckerTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/DefaultExtensionDependencyCheckerTest.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.IO; -using Microsoft.NET.Sdk.Razor.Tool; -using Microsoft.NET.TestFramework; using Moq; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.Razor.Tool.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/DefaultRequestDispatcherTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/DefaultRequestDispatcherTest.cs index 96b45d4bfb76..e69f094842b0 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/DefaultRequestDispatcherTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/DefaultRequestDispatcherTest.cs @@ -1,14 +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; -using System.Threading.Tasks; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tool.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Infrastructure/ServerData.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Infrastructure/ServerData.cs index 90039906426b..f00d202f2b05 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Infrastructure/ServerData.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Infrastructure/ServerData.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.Threading; -using System.Threading.Tasks; -using Xunit; - namespace Microsoft.NET.Sdk.Razor.Tool { internal sealed class ServerData : IDisposable diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Infrastructure/ServerUtilities.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Infrastructure/ServerUtilities.cs index 3454869b6be4..55519b30574f 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Infrastructure/ServerUtilities.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Infrastructure/ServerUtilities.cs @@ -1,14 +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.Threading; -using System.Threading.Tasks; -using System.CommandLine; using Microsoft.CodeAnalysis; -using Microsoft.NET.Sdk.Razor.Tool; using Moq; namespace Microsoft.NET.Sdk.Razor.Tool.Tests diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Infrastructure/TestableEventBus.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Infrastructure/TestableEventBus.cs index 941430289c7a..d935437cd3eb 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Infrastructure/TestableEventBus.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Infrastructure/TestableEventBus.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 Microsoft.NET.Sdk.Razor.Tool; - namespace Microsoft.NET.Sdk.Razor.Tool.Tests { internal class TestableEventBus : EventBus diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/LoaderTestResources.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/LoaderTestResources.cs index 62ebe9baef7b..fc9e5e988dbe 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/LoaderTestResources.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/LoaderTestResources.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.IO; -using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tool.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/MetadataCacheTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/MetadataCacheTest.cs index 5e0bbb90aaef..a4c15c18c299 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/MetadataCacheTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/MetadataCacheTest.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.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.Razor.Tool.Tests { public class MetadataCacheTest : SdkTest diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/NotFoundProjectItem.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/NotFoundProjectItem.cs index 344415572d00..a9dc421b21ae 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/NotFoundProjectItem.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/NotFoundProjectItem.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 Microsoft.AspNetCore.Razor.Language; -using System.IO; namespace Microsoft.NET.Sdk.Razor.Tool.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ServerCommandTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ServerCommandTest.cs index 2efc3c90f044..2bc593d19cce 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ServerCommandTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ServerCommandTest.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.Diagnostics; using System.Globalization; -using System.IO; -using System.Text; -using System.Threading; using Microsoft.CodeAnalysis; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tool { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ServerLifecycleTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ServerLifecycleTest.cs index 6fbfaf1e5a6e..73affbbba089 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ServerLifecycleTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ServerLifecycleTest.cs @@ -1,16 +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.Diagnostics; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.NET.TestFramework; -using Microsoft.NET.Sdk.Razor.Tool; using Moq; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tool.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ServerProtocol/ServerProtocolTest.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ServerProtocol/ServerProtocolTest.cs index 7ad1f0dfad41..c1d76e89ddd4 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ServerProtocol/ServerProtocolTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/ServerProtocol/ServerProtocolTest.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using FluentAssertions; -using Xunit; namespace Microsoft.NET.Sdk.Razor.Tool.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/TestDefaultExtensionAssemblyLoader.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/TestDefaultExtensionAssemblyLoader.cs index ca0fc45da77d..a540aff59c62 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/TestDefaultExtensionAssemblyLoader.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/TestDefaultExtensionAssemblyLoader.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.Reflection; namespace Microsoft.NET.Sdk.Razor.Tool.Tests diff --git a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/TestRazorProjectItem.cs b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/TestRazorProjectItem.cs index 38446ff65c62..7341cceb39d9 100644 --- a/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/TestRazorProjectItem.cs +++ b/src/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/TestRazorProjectItem.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.Text; - namespace Microsoft.AspNetCore.Razor.Language { public class TestRazorProjectItem : RazorProjectItem diff --git a/src/Tests/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs b/src/Tests/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs index 1de25c88282f..f3b3f2c9e897 100644 --- a/src/Tests/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.Web.Tests/PublishTests.cs @@ -1,16 +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.IO; using System.Text.Json.Nodes; -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.Sdk.Web.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/FakeManifestProvider.cs b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/FakeManifestProvider.cs index 0dda1cf66b52..39b1cf9eab9d 100644 --- a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/FakeManifestProvider.cs +++ b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/FakeManifestProvider.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.NET.Sdk.WorkloadManifestReader; - -using System; using System.Collections; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; namespace ManifestReaderTests { diff --git a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/ManifestReaderFunctionalTests.cs b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/ManifestReaderFunctionalTests.cs index 92d332fd60c3..47333edfae85 100644 --- a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/ManifestReaderFunctionalTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/ManifestReaderFunctionalTests.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 FluentAssertions; using Microsoft.NET.Sdk.WorkloadManifestReader; -using System.IO; -using Xunit; -using System.Linq; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; namespace ManifestReaderTests { diff --git a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/ManifestTests.cs b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/ManifestTests.cs index 97d3d3945917..bbef970d5fd6 100644 --- a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/ManifestTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/ManifestTests.cs @@ -1,20 +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 FluentAssertions; -using FluentAssertions.Execution; - using Microsoft.NET.Sdk.WorkloadManifestReader; -using Microsoft.NET.TestFramework; - -using System; using System.Globalization; -using System.IO; -using System.Linq; -using System.Text; - -using Xunit; -using Xunit.Abstractions; namespace ManifestReaderTests { diff --git a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/SdkDirectoryWorkloadManifestProviderTests.cs b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/SdkDirectoryWorkloadManifestProviderTests.cs index b63147e7554b..6d42496c5501 100644 --- a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/SdkDirectoryWorkloadManifestProviderTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/SdkDirectoryWorkloadManifestProviderTests.cs @@ -1,21 +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.Diagnostics.CodeAnalysis; -using System.IO; -using System.Linq; using System.Runtime.CompilerServices; -using System.Text.Json; -using FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.NET.Sdk.Localization; using Microsoft.NET.Sdk.WorkloadManifestReader; -using Microsoft.NET.TestFramework; - -using Xunit; -using Xunit.Abstractions; namespace ManifestReaderTests { diff --git a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/SdkFeatureBandTests.cs b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/SdkFeatureBandTests.cs index 669bbe1d49bf..15ae1163389e 100644 --- a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/SdkFeatureBandTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/SdkFeatureBandTests.cs @@ -1,20 +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.Diagnostics.CodeAnalysis; -using System.IO; -using System.Linq; -using System.Runtime.CompilerServices; -using System.Text.Json; -using FluentAssertions; -using Microsoft.DotNet.Cli; using Microsoft.NET.Sdk.WorkloadManifestReader; -using Microsoft.NET.TestFramework; - -using Xunit; -using Xunit.Abstractions; namespace ManifestReaderTests { diff --git a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/WorkloadPackGroupTests.cs b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/WorkloadPackGroupTests.cs index fe6e150cb577..020768def576 100644 --- a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/WorkloadPackGroupTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/WorkloadPackGroupTests.cs @@ -1,18 +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 FluentAssertions; -using FluentAssertions.Collections; -using Microsoft.NET.Sdk.WorkloadManifestReader; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.NET.Sdk.WorkloadManifestReader.Tests { public class WorkloadPackGroupTests : SdkTest diff --git a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/WorkloadResolverTests.cs b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/WorkloadResolverTests.cs index f864081825d8..9db4ee273dfb 100644 --- a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/WorkloadResolverTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/WorkloadResolverTests.cs @@ -1,17 +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 FluentAssertions; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using ManifestReaderTests; -using System.IO; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.Sdk.WorkloadManifestReader.Tests { diff --git a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/WorkloadSuggestionFinderTests.cs b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/WorkloadSuggestionFinderTests.cs index 36c131291ca4..f74f2bff6fd0 100644 --- a/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/WorkloadSuggestionFinderTests.cs +++ b/src/Tests/Microsoft.NET.Sdk.WorkloadManifestReader.Tests/WorkloadSuggestionFinderTests.cs @@ -1,17 +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 FluentAssertions; - using Microsoft.NET.Sdk.WorkloadManifestReader; -using Microsoft.NET.TestFramework; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; - -using Xunit; -using Xunit.Abstractions; using WorkloadSuggestionCandidate = Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadSuggestionFinder.WorkloadSuggestionCandidate; namespace ManifestReaderTests diff --git a/src/Tests/Microsoft.NET.TestFramework/AspNetSdkTest.cs b/src/Tests/Microsoft.NET.TestFramework/AspNetSdkTest.cs index 08ddb6dc48fb..431d43adae85 100644 --- a/src/Tests/Microsoft.NET.TestFramework/AspNetSdkTest.cs +++ b/src/Tests/Microsoft.NET.TestFramework/AspNetSdkTest.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.Linq; using System.Reflection; using System.Runtime.CompilerServices; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/AssemblyInfo.cs b/src/Tests/Microsoft.NET.TestFramework/AssemblyInfo.cs index a532ee63bbec..fbe64295bae6 100644 --- a/src/Tests/Microsoft.NET.TestFramework/AssemblyInfo.cs +++ b/src/Tests/Microsoft.NET.TestFramework/AssemblyInfo.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.Reflection.PortableExecutable; using System.Reflection.Metadata; -using System.Text; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/AssemblyAssertions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/AssemblyAssertions.cs index a23fa9b07c9a..2634aba3ff9a 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/AssemblyAssertions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/AssemblyAssertions.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 FluentAssertions; using FluentAssertions.Execution; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs index 9f73d9e8202f..176dee7b5dac 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.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.IO; using System.IO.Compression; -using System.Linq; using System.Text.RegularExpressions; -using FluentAssertions; using FluentAssertions.Execution; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/DependencyContextAssertions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/DependencyContextAssertions.cs index e02e4b892611..e777048eb3c5 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/DependencyContextAssertions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/DependencyContextAssertions.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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.Extensions.DependencyModel; -using System; -using System.IO; -using System.Linq; 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 ad86e0c256b4..2ab66b4e5b65 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/DirectoryInfoAssertions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/DirectoryInfoAssertions.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 FluentAssertions; using FluentAssertions.Execution; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; 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 66c782e0ec55..fdbb1c664b39 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/DirectoryInfoExtensions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/DirectoryInfoExtensions.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.NET.TestFramework.Assertions { public static class DirectoryInfoExtensions diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoAssertions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoAssertions.cs index ee57cf5c76f8..bc8ae13bcbd2 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoAssertions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoAssertions.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 FluentAssertions; using FluentAssertions.Execution; -using System; -using System.IO; using System.Security.Cryptography; 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 483faf4eeae5..c340486a2476 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoLock.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoLock.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.IO; - namespace Microsoft.NET.TestFramework.Assertions { public static partial class FileInfoExtensions diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoNuGetLock.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoNuGetLock.cs index 1f772891926a..649a0920d358 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoNuGetLock.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.FileInfoNuGetLock.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.IO; -using System.Threading; -using System.Threading.Tasks; using NuGet.Common; namespace Microsoft.NET.TestFramework.Assertions diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.cs index 148537d71aec..ff9d23791398 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/FileInfoExtensions.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.IO; - namespace Microsoft.NET.TestFramework.Assertions { public static partial class FileInfoExtensions diff --git a/src/Tests/Microsoft.NET.TestFramework/Assertions/StringAssertionsExtensions.cs b/src/Tests/Microsoft.NET.TestFramework/Assertions/StringAssertionsExtensions.cs index 7e32cb3e898d..1f397b66e283 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Assertions/StringAssertionsExtensions.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Assertions/StringAssertionsExtensions.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.Globalization; -using FluentAssertions; using FluentAssertions.Execution; using FluentAssertions.Primitives; diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildAndWindowsOnlyFactAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildAndWindowsOnlyFactAttribute.cs index 0ce973bd3845..2f826bceff53 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildAndWindowsOnlyFactAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildAndWindowsOnlyFactAttribute.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.Runtime.InteropServices; -using Xunit; - namespace Microsoft.NET.TestFramework { public class CoreMSBuildAndWindowsOnlyFactAttribute : FactAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildAndWindowsOnlyTheoryAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildAndWindowsOnlyTheoryAttribute.cs index a41048490609..642639d9a492 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildAndWindowsOnlyTheoryAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildAndWindowsOnlyTheoryAttribute.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.Runtime.InteropServices; -using Xunit; - namespace Microsoft.NET.TestFramework { public class CoreMSBuildAndWindowsOnlyTheoryAttribute : TheoryAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildOnlyFactAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildOnlyFactAttribute.cs index 149ebb824ef8..ee45bb21a0da 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildOnlyFactAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildOnlyFactAttribute.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 Xunit; - namespace Microsoft.NET.TestFramework { public class CoreMSBuildOnlyFactAttribute : FactAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildOnlyTheoryAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildOnlyTheoryAttribute.cs index 9b1eb6db23a5..53517b0f9800 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildOnlyTheoryAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/CoreMSBuildOnlyTheoryAttribute.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 Xunit; - namespace Microsoft.NET.TestFramework { public class CoreMSBuildOnlyTheoryAttribute : TheoryAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyFactAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyFactAttribute.cs index c3711e5874ba..ce165719c406 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyFactAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyFactAttribute.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 Xunit; - namespace Microsoft.NET.TestFramework { public class FullMSBuildOnlyFactAttribute : FactAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyTheoryAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyTheoryAttribute.cs index de0970a764a1..410ca6fad69f 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyTheoryAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/FullMSBuildOnlyTheoryAttribute.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 Xunit; - namespace Microsoft.NET.TestFramework { public class FullMSBuildOnlyTheoryAttribute : TheoryAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/PlatformSpecificFact.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/PlatformSpecificFact.cs index 78a0ab2593c1..e0f8973ac4d1 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/PlatformSpecificFact.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/PlatformSpecificFact.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.Runtime.InteropServices; -using Xunit; - namespace Microsoft.NET.TestFramework { public class PlatformSpecificFact : FactAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/PlatformSpecificTheory.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/PlatformSpecificTheory.cs index b08755ea9918..61699a59c4f2 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/PlatformSpecificTheory.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/PlatformSpecificTheory.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 Xunit; - namespace Microsoft.NET.TestFramework { public class PlatformSpecificTheory : TheoryAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/RequiresMSBuildVersionFactAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/RequiresMSBuildVersionFactAttribute.cs index b44cb5752d66..bc388a631c77 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/RequiresMSBuildVersionFactAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/RequiresMSBuildVersionFactAttribute.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 Xunit; - namespace Microsoft.NET.TestFramework { public class RequiresMSBuildVersionFactAttribute : FactAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/RequiresMSBuildVersionTheoryAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/RequiresMSBuildVersionTheoryAttribute.cs index 25f4cebf5f0f..b7c36b189574 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/RequiresMSBuildVersionTheoryAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/RequiresMSBuildVersionTheoryAttribute.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 Xunit; - namespace Microsoft.NET.TestFramework { public class RequiresMSBuildVersionTheoryAttribute : TheoryAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/WindowsOnlyRequiresMSBuildVersionFactAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/WindowsOnlyRequiresMSBuildVersionFactAttribute.cs index 4b8c5777a0c5..d9e3e4a11e27 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/WindowsOnlyRequiresMSBuildVersionFactAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/WindowsOnlyRequiresMSBuildVersionFactAttribute.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.Runtime.InteropServices; -using Xunit; - namespace Microsoft.NET.TestFramework { public class WindowsOnlyRequiresMSBuildVersionFactAttribute : FactAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Attributes/WindowsOnlyRequiresMSBuildVersionTheoryAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/Attributes/WindowsOnlyRequiresMSBuildVersionTheoryAttribute.cs index c68f9398aa2d..5f3053e044ba 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Attributes/WindowsOnlyRequiresMSBuildVersionTheoryAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Attributes/WindowsOnlyRequiresMSBuildVersionTheoryAttribute.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.Runtime.InteropServices; -using Xunit; - namespace Microsoft.NET.TestFramework { public class WindowsOnlyRequiresMSBuildVersionTheoryAttribute : TheoryAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/AddReferenceCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/AddReferenceCommand.cs index 5eff334a70f4..de87adbe6dd1 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.Collections.Generic; using Microsoft.DotNet.Cli.Utils; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands { diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/BuildCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/BuildCommand.cs index d05784598a48..2c884087235f 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/BuildCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/BuildCommand.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands { diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/BuildServerCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/BuildServerCommand.cs index 00d2ae66bc99..a47e2c0c81af 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/BuildServerCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/BuildServerCommand.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.Collections.Generic; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Tools.Test.Utilities { public sealed class BuildServerCommand : DotnetCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/CleanCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/CleanCommand.cs index 9cd10f2d5662..94a00850f95a 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/CleanCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/CleanCommand.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 Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public sealed class CleanCommand : MSBuildCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetBuildCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetBuildCommand.cs index 4b6eec3ccdb3..42a4b9dab46c 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetBuildCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetBuildCommand.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 Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public class DotnetBuildCommand : DotnetCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetCommand.cs index 70a28bee9a18..8122ca293148 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetCommand.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.Collections.Generic; -using System.Linq; -using Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public class DotnetCommand : TestCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetNewCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetNewCommand.cs index 515c9d7c75fb..6d71b8a96c69 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetNewCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetNewCommand.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 Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public class DotnetNewCommand : DotnetCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPackCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPackCommand.cs index 6c7d0e2a5010..d22f2d2f4ba0 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPackCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPackCommand.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 Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public class DotnetPackCommand : DotnetCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPublishCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPublishCommand.cs index aa46f590bb99..a1e26f84b9cb 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPublishCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetPublishCommand.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.Collections.Generic; -using Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public class DotnetPublishCommand : DotnetCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetRestoreCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetRestoreCommand.cs index b79244a1e2b3..ffac35aa780a 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetRestoreCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetRestoreCommand.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 Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public class DotnetRestoreCommand : DotnetCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetTestCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetTestCommand.cs index 5bf9a823744d..5ecdab5b2dca 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetTestCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetTestCommand.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 Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public class DotnetTestCommand : DotnetCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetToolCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetToolCommand.cs index 00de80ed8fd9..4b90c75ab6cb 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetToolCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetToolCommand.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 Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public class DotnetToolCommand : DotnetCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetVSTestCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetVSTestCommand.cs index 8d45f98d331d..6294d5a62c94 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetVSTestCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/DotnetVSTestCommand.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 Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public class DotnetVSTestCommand : DotnetCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/GetValuesCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/GetValuesCommand.cs index d734ce66ad47..95cc9bb99481 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/GetValuesCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/GetValuesCommand.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.Collections.Generic; -using System.Linq; -using System.IO; -using FluentAssertions; -using Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public sealed class GetValuesCommand : MSBuildCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/ListPackageCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/ListPackageCommand.cs index 7a0ca9deb08a..40c37bdf7479 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.Collections.Generic; using Microsoft.DotNet.Cli.Utils; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands { diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/ListReferenceCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/ListReferenceCommand.cs index e78e3c5feb54..9f04348d506f 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.Collections.Generic; using Microsoft.DotNet.Cli.Utils; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands { diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/MSBuildCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/MSBuildCommand.cs index 6f94f537eabc..7778109d5d4c 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/MSBuildCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/MSBuildCommand.cs @@ -2,11 +2,6 @@ // 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.IO; -using System.Linq; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands { diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/MSBuildVersionCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/MSBuildVersionCommand.cs index 086e04979eb6..c500a7383a5c 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/MSBuildVersionCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/MSBuildVersionCommand.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.Collections.Generic; -using Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public class MSBuildVersionCommand : TestCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/NuGetExeRestoreCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/NuGetExeRestoreCommand.cs index 55811f63096d..0d6e8515e1b3 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/NuGetExeRestoreCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/NuGetExeRestoreCommand.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.Collections.Generic; -using System.IO; -using Xunit.Abstractions; -using System; - namespace Microsoft.NET.TestFramework.Commands { public class NuGetExeRestoreCommand : TestCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/PackCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/PackCommand.cs index b56614a86079..d2944f953b93 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/PackCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/PackCommand.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 Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public sealed class PackCommand : MSBuildCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/PublishCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/PublishCommand.cs index 477e4ed47530..561be32f37c9 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/PublishCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/PublishCommand.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; -using System.IO; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands { diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/RebuildCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/RebuildCommand.cs index 6f23e00b2c74..4d820b5845a2 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/RebuildCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/RebuildCommand.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 Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public sealed class RebuildCommand : MSBuildCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/RemoveReferenceCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/RemoveReferenceCommand.cs index a90fbc8553f1..a757b4c9958b 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.Collections.Generic; using Microsoft.DotNet.Cli.Utils; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands { diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/RestoreCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/RestoreCommand.cs index 8c3d20a65917..137bd5996c5f 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/RestoreCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/RestoreCommand.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework.Commands { diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/RunExeCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/RunExeCommand.cs index bca35b04ffd2..97751154a6a4 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/RunExeCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/RunExeCommand.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.IO; -using System.Linq; -using Xunit.Abstractions; - namespace Microsoft.NET.TestFramework.Commands { public class RunExeCommand : TestCommand diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/SdkCommandSpec.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/SdkCommandSpec.cs index 1e8cf9b5ca70..d4f0f747bfab 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/SdkCommandSpec.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/SdkCommandSpec.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.Diagnostics; using Microsoft.DotNet.Cli.Utils; diff --git a/src/Tests/Microsoft.NET.TestFramework/Commands/TestCommand.cs b/src/Tests/Microsoft.NET.TestFramework/Commands/TestCommand.cs index c1171620c774..dfef5f0f2311 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Commands/TestCommand.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Commands/TestCommand.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Cli.Utils; -using System.Collections.Generic; -using Xunit.Abstractions; using System.Diagnostics; -using System.Linq; -using System; using static Microsoft.DotNet.Cli.Utils.ExponentialRetry; namespace Microsoft.NET.TestFramework.Commands diff --git a/src/Tests/Microsoft.NET.TestFramework/ConflictResolutionAssets.cs b/src/Tests/Microsoft.NET.TestFramework/ConflictResolutionAssets.cs index 681d531c9c4e..5e17bb7f0971 100644 --- a/src/Tests/Microsoft.NET.TestFramework/ConflictResolutionAssets.cs +++ b/src/Tests/Microsoft.NET.TestFramework/ConflictResolutionAssets.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.Xml.Linq; - namespace Microsoft.NET.TestFramework { public class ConflictResolutionAssets diff --git a/src/Tests/Microsoft.NET.TestFramework/FileConstants.cs b/src/Tests/Microsoft.NET.TestFramework/FileConstants.cs index 7f2e0340d8fb..37ac9b06e66d 100644 --- a/src/Tests/Microsoft.NET.TestFramework/FileConstants.cs +++ b/src/Tests/Microsoft.NET.TestFramework/FileConstants.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.Runtime.InteropServices; - namespace Microsoft.NET.TestFramework { public static class FileConstants diff --git a/src/Tests/Microsoft.NET.TestFramework/InMemoryLoggerProvider.cs b/src/Tests/Microsoft.NET.TestFramework/InMemoryLoggerProvider.cs index d1c543798a44..bddb608c52ca 100644 --- a/src/Tests/Microsoft.NET.TestFramework/InMemoryLoggerProvider.cs +++ b/src/Tests/Microsoft.NET.TestFramework/InMemoryLoggerProvider.cs @@ -4,8 +4,6 @@ #nullable enable -using System; -using System.Collections.Generic; using Microsoft.Extensions.Logging; namespace Microsoft.NET.TestFramework diff --git a/src/Tests/Microsoft.NET.TestFramework/MacOsOnlyFactAttribute.cs b/src/Tests/Microsoft.NET.TestFramework/MacOsOnlyFactAttribute.cs index e1c4b4e9b090..e71371ed3bc0 100644 --- a/src/Tests/Microsoft.NET.TestFramework/MacOsOnlyFactAttribute.cs +++ b/src/Tests/Microsoft.NET.TestFramework/MacOsOnlyFactAttribute.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.Runtime.InteropServices; -using Xunit; - namespace Microsoft.NET.TestFramework { public class MacOsOnlyFactAttribute : FactAttribute diff --git a/src/Tests/Microsoft.NET.TestFramework/Mock/FileSystemMockBuilder.cs b/src/Tests/Microsoft.NET.TestFramework/Mock/FileSystemMockBuilder.cs index bee10c860712..7904344dd7b3 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Mock/FileSystemMockBuilder.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Mock/FileSystemMockBuilder.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 System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; -using System.Text; using Microsoft.DotNet.Tools.Test.Utilities.Mock; using Microsoft.Extensions.EnvironmentAbstractions; diff --git a/src/Tests/Microsoft.NET.TestFramework/NuGetConfigWriter.cs b/src/Tests/Microsoft.NET.TestFramework/NuGetConfigWriter.cs index 43dac0ed4f8f..6a35fe11677b 100644 --- a/src/Tests/Microsoft.NET.TestFramework/NuGetConfigWriter.cs +++ b/src/Tests/Microsoft.NET.TestFramework/NuGetConfigWriter.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.IO; -using System.Linq; -using System.Xml.Linq; - namespace Microsoft.NET.TestFramework { public static class NuGetConfigWriter diff --git a/src/Tests/Microsoft.NET.TestFramework/NuGetTestLogger.cs b/src/Tests/Microsoft.NET.TestFramework/NuGetTestLogger.cs index 333dbe982cec..66c86fef5405 100644 --- a/src/Tests/Microsoft.NET.TestFramework/NuGetTestLogger.cs +++ b/src/Tests/Microsoft.NET.TestFramework/NuGetTestLogger.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.Concurrent; -using System.Threading.Tasks; using NuGet.Common; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/NuGetTransientErrorDetector.cs b/src/Tests/Microsoft.NET.TestFramework/NuGetTransientErrorDetector.cs index 7bab382e3e3c..734abaad53c0 100644 --- a/src/Tests/Microsoft.NET.TestFramework/NuGetTransientErrorDetector.cs +++ b/src/Tests/Microsoft.NET.TestFramework/NuGetTransientErrorDetector.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.Collections.Generic; -using System.Linq; - namespace Microsoft.NET.TestFramework { public static class NuGetTransientErrorDetector diff --git a/src/Tests/Microsoft.NET.TestFramework/OutputPathCalculator.cs b/src/Tests/Microsoft.NET.TestFramework/OutputPathCalculator.cs index 136acddf6e69..6fc7ef9b3fbe 100644 --- a/src/Tests/Microsoft.NET.TestFramework/OutputPathCalculator.cs +++ b/src/Tests/Microsoft.NET.TestFramework/OutputPathCalculator.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.IO; -using System.Linq; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.Xml.Linq; - namespace Microsoft.NET.TestFramework { public class OutputPathCalculator diff --git a/src/Tests/Microsoft.NET.TestFramework/ProjectConstruction/TestProject.cs b/src/Tests/Microsoft.NET.TestFramework/ProjectConstruction/TestProject.cs index bd28a2ddae58..39cf0271db4f 100644 --- a/src/Tests/Microsoft.NET.TestFramework/ProjectConstruction/TestProject.cs +++ b/src/Tests/Microsoft.NET.TestFramework/ProjectConstruction/TestProject.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.Runtime.CompilerServices; -using System.Xml.Linq; using Microsoft.Build.Utilities; using NuGet.Frameworks; diff --git a/src/Tests/Microsoft.NET.TestFramework/RetryFailedException.cs b/src/Tests/Microsoft.NET.TestFramework/RetryFailedException.cs index 137c2c1ad31c..e570acc6c3f6 100644 --- a/src/Tests/Microsoft.NET.TestFramework/RetryFailedException.cs +++ b/src/Tests/Microsoft.NET.TestFramework/RetryFailedException.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.NET.TestFramework { public class RetryFailedException : Exception diff --git a/src/Tests/Microsoft.NET.TestFramework/SdkTest.cs b/src/Tests/Microsoft.NET.TestFramework/SdkTest.cs index 8716808b43ab..57403ba29a0d 100644 --- a/src/Tests/Microsoft.NET.TestFramework/SdkTest.cs +++ b/src/Tests/Microsoft.NET.TestFramework/SdkTest.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.Threading; -using Xunit.Abstractions; - namespace Microsoft.NET.TestFramework { public abstract class SdkTest diff --git a/src/Tests/Microsoft.NET.TestFramework/SharedTestOutputHelper.cs b/src/Tests/Microsoft.NET.TestFramework/SharedTestOutputHelper.cs index a7ace2932622..0b2049dd23bf 100644 --- a/src/Tests/Microsoft.NET.TestFramework/SharedTestOutputHelper.cs +++ b/src/Tests/Microsoft.NET.TestFramework/SharedTestOutputHelper.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 Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; using Xunit.Sdk; namespace Microsoft.NET.TestFramework; diff --git a/src/Tests/Microsoft.NET.TestFramework/StringTestLogger.cs b/src/Tests/Microsoft.NET.TestFramework/StringTestLogger.cs index 369d94373e60..ab4bf3d45d60 100644 --- a/src/Tests/Microsoft.NET.TestFramework/StringTestLogger.cs +++ b/src/Tests/Microsoft.NET.TestFramework/StringTestLogger.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.Text; -using Xunit.Abstractions; - namespace Microsoft.NET.TestFramework { public class StringTestLogger : ITestOutputHelper diff --git a/src/Tests/Microsoft.NET.TestFramework/TestAsset.cs b/src/Tests/Microsoft.NET.TestFramework/TestAsset.cs index 921d379cdde4..146e06886e8b 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestAsset.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestAsset.cs @@ -1,16 +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 System.Xml.Linq; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using System.Collections.Generic; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.ProjectConstruction; - namespace Microsoft.NET.TestFramework { /// diff --git a/src/Tests/Microsoft.NET.TestFramework/TestAssetsManager.cs b/src/Tests/Microsoft.NET.TestFramework/TestAssetsManager.cs index 510f1aa8a5ba..1c747316663f 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestAssetsManager.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestAssetsManager.cs @@ -1,17 +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 FluentAssertions; -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.Runtime.CompilerServices; using System.Security.Cryptography; -using System.Text; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/TestCommandLine.cs b/src/Tests/Microsoft.NET.TestFramework/TestCommandLine.cs index 6bda9e0d447e..54acfc3932f1 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestCommandLine.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestCommandLine.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.Linq; using System.Xml; -using System.Xml.Linq; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/TestContext.cs b/src/Tests/Microsoft.NET.TestFramework/TestContext.cs index 6f6b57335296..8712a86171a8 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestContext.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestContext.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.IO; using Microsoft.DotNet.Cli.Utils; using System.Globalization; -using System.Collections.Generic; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/TestDirectory.cs b/src/Tests/Microsoft.NET.TestFramework/TestDirectory.cs index 94cb343ca787..28fabfd71e70 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestDirectory.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestDirectory.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.IO; - namespace Microsoft.NET.TestFramework { public class TestDirectory diff --git a/src/Tests/Microsoft.NET.TestFramework/TestLoggerFactory.cs b/src/Tests/Microsoft.NET.TestFramework/TestLoggerFactory.cs index a64fd6b830b4..c324cb14d33d 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestLoggerFactory.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestLoggerFactory.cs @@ -4,10 +4,7 @@ #nullable enable -using System.Collections.Generic; -using System.Linq; using Microsoft.Extensions.Logging; -using Xunit.Abstractions; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/TestPackageReference.cs b/src/Tests/Microsoft.NET.TestFramework/TestPackageReference.cs index 300cef9895d4..d10f3cac78db 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestPackageReference.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestPackageReference.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.IO; - namespace Microsoft.NET.TestFramework { public class TestPackageReference diff --git a/src/Tests/Microsoft.NET.TestFramework/ToolsetInfo.cs b/src/Tests/Microsoft.NET.TestFramework/ToolsetInfo.cs index d7d6694ac865..a571291ac55e 100644 --- a/src/Tests/Microsoft.NET.TestFramework/ToolsetInfo.cs +++ b/src/Tests/Microsoft.NET.TestFramework/ToolsetInfo.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.Runtime.InteropServices; using Microsoft.DotNet.Cli.Utils; -using Microsoft.NET.TestFramework.Commands; namespace Microsoft.NET.TestFramework { diff --git a/src/Tests/Microsoft.NET.TestFramework/Utilities/BufferedReporter.cs b/src/Tests/Microsoft.NET.TestFramework/Utilities/BufferedReporter.cs index f0917230ba28..f92da54104e1 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Utilities/BufferedReporter.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Utilities/BufferedReporter.cs @@ -3,7 +3,6 @@ #nullable enable -using System.Collections.Generic; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.NET.TestFramework.Utilities diff --git a/src/Tests/Microsoft.NET.TestFramework/Utilities/FileThumbPrint.cs b/src/Tests/Microsoft.NET.TestFramework/Utilities/FileThumbPrint.cs index 10b0b2406131..84bce114c84a 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Utilities/FileThumbPrint.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Utilities/FileThumbPrint.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.Linq; using System.Security.Cryptography; namespace Microsoft.NET.TestFramework.Utilities diff --git a/src/Tests/Microsoft.NET.TestFramework/Utilities/NuGetGlobalPackagesFolder.cs b/src/Tests/Microsoft.NET.TestFramework/Utilities/NuGetGlobalPackagesFolder.cs index 767ea5cfd337..d90bb3960420 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Utilities/NuGetGlobalPackagesFolder.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Utilities/NuGetGlobalPackagesFolder.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.IO; using NuGet.Configuration; namespace Microsoft.NET.TestFramework.Utilities diff --git a/src/Tests/Microsoft.NET.TestFramework/Utilities/PeReaderUtils.cs b/src/Tests/Microsoft.NET.TestFramework/Utilities/PeReaderUtils.cs index 44ed4290bd76..d848f2bc33ff 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Utilities/PeReaderUtils.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Utilities/PeReaderUtils.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.Collections.Generic; -using System.IO; -using System.Linq; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; diff --git a/src/Tests/Microsoft.NET.TestFramework/Utilities/ProjectModification.cs b/src/Tests/Microsoft.NET.TestFramework/Utilities/ProjectModification.cs index b8ba19c026da..108d29c8bce9 100644 --- a/src/Tests/Microsoft.NET.TestFramework/Utilities/ProjectModification.cs +++ b/src/Tests/Microsoft.NET.TestFramework/Utilities/ProjectModification.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.Xml.Linq; - namespace Microsoft.NET.TestFramework.Utilities { public static class ProjectModification diff --git a/src/Tests/Microsoft.NET.TestFramework/XunitLoggerProvider.cs b/src/Tests/Microsoft.NET.TestFramework/XunitLoggerProvider.cs index cafdb081aef6..3b5823e8f7a5 100644 --- a/src/Tests/Microsoft.NET.TestFramework/XunitLoggerProvider.cs +++ b/src/Tests/Microsoft.NET.TestFramework/XunitLoggerProvider.cs @@ -4,11 +4,7 @@ #nullable enable -using System; -using System.Linq; -using System.Text; using Microsoft.Extensions.Logging; -using Xunit.Abstractions; using ILogger = Microsoft.Extensions.Logging.ILogger; using LogLevel = Microsoft.Extensions.Logging.LogLevel; diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProject.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProject.cs index 178f62e70b07..0f73fc950416 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProject.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProject.cs @@ -1,20 +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.Collections.Generic; -using System.IO; -using System.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; using NuGet.Packaging; -using System.Xml.Linq; using System.Runtime.CompilerServices; -using System; -using System.Runtime.InteropServices; namespace Microsoft.NET.ToolPack.Tests { diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs index 7cba6a77652e..d15b6d064dbc 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs @@ -1,15 +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 System.Xml.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; using NuGet.Packaging; namespace Microsoft.NET.ToolPack.Tests diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithExplicitConfig.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithExplicitConfig.cs index f95b393b143c..69fe92fabcee 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithExplicitConfig.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithExplicitConfig.cs @@ -1,15 +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 Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; using NuGet.Packaging; namespace Microsoft.NET.ToolPack.Tests diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithGeneratePackageOnBuild.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithGeneratePackageOnBuild.cs index b1d1d076ea98..37d89f43def8 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithGeneratePackageOnBuild.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithGeneratePackageOnBuild.cs @@ -1,20 +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.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; namespace Microsoft.NET.ToolPack.Tests { diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithP2PReference.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithP2PReference.cs index 9f8f1b51a471..c86257ee4565 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithP2PReference.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithP2PReference.cs @@ -1,15 +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.Collections.Generic; -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; namespace Microsoft.NET.ToolPack.Tests { diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithPackagedShim.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithPackagedShim.cs index 55d97a285abd..d4286d3c17a1 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithPackagedShim.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithPackagedShim.cs @@ -1,21 +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.Collections.Generic; -using System.IO; -using System.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; using NuGet.Packaging; -using System.Xml.Linq; using System.Runtime.CompilerServices; -using System; using NuGet.Frameworks; -using Microsoft.NET.TestFramework.ProjectConstruction; namespace Microsoft.NET.ToolPack.Tests { diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolSelfContainedProject.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolSelfContainedProject.cs index 7698f7ab2527..e9612ded3434 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolSelfContainedProject.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolSelfContainedProject.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.Linq; -using System.Xml.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Build.Tasks; using System.Runtime.CompilerServices; diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs index 351b578da8f1..b39137d86be8 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolTargetingNonSupportedTFM.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.Linq; -using System.Xml.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Xunit; -using Xunit.Abstractions; using Microsoft.DotNet.Cli.Utils; using Microsoft.NET.Build.Tasks; diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToTestPackAToolProject.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToTestPackAToolProject.cs index 9962baf69ef5..c2ccda8bc88d 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToTestPackAToolProject.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToTestPackAToolProject.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.IO; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Assertions; - namespace Microsoft.NET.ToolPack.Tests { public class GivenThatWeWantToTestPackAToolProject : SdkTest diff --git a/src/Tests/Microsoft.NET.ToolPack.Tests/PackWithShimsAndResultNugetPackageNuGetPackagexFixture.cs b/src/Tests/Microsoft.NET.ToolPack.Tests/PackWithShimsAndResultNugetPackageNuGetPackagexFixture.cs index 25c62e7fbe04..c06084d8ec67 100644 --- a/src/Tests/Microsoft.NET.ToolPack.Tests/PackWithShimsAndResultNugetPackageNuGetPackagexFixture.cs +++ b/src/Tests/Microsoft.NET.ToolPack.Tests/PackWithShimsAndResultNugetPackageNuGetPackagexFixture.cs @@ -1,16 +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 Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using FluentAssertions; -using Xunit.Abstractions; -using System.Xml.Linq; -using System; - namespace Microsoft.NET.ToolPack.Tests { public class NupkgOfPackWithShimsFixture : IDisposable diff --git a/src/Tests/Microsoft.Win32.Msi.Manual.Tests/Program.cs b/src/Tests/Microsoft.Win32.Msi.Manual.Tests/Program.cs index 7452accbb6ae..690dc0f5910a 100644 --- a/src/Tests/Microsoft.Win32.Msi.Manual.Tests/Program.cs +++ b/src/Tests/Microsoft.Win32.Msi.Manual.Tests/Program.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; - namespace Microsoft.Win32.Msi.Manual.Tests { /// diff --git a/src/Tests/Microsoft.Win32.Msi.Tests/EventArgsTests.cs b/src/Tests/Microsoft.Win32.Msi.Tests/EventArgsTests.cs index cad26885db06..85f3b555d7a8 100644 --- a/src/Tests/Microsoft.Win32.Msi.Tests/EventArgsTests.cs +++ b/src/Tests/Microsoft.Win32.Msi.Tests/EventArgsTests.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 Microsoft.NET.TestFramework; -using Xunit; - namespace Microsoft.Win32.Msi.Tests { public class EventArgsTests diff --git a/src/Tests/Microsoft.Win32.Msi.Tests/WindowsInstallerExceptionTests.cs b/src/Tests/Microsoft.Win32.Msi.Tests/WindowsInstallerExceptionTests.cs index a1f1c182dd2b..1be3e285364f 100644 --- a/src/Tests/Microsoft.Win32.Msi.Tests/WindowsInstallerExceptionTests.cs +++ b/src/Tests/Microsoft.Win32.Msi.Tests/WindowsInstallerExceptionTests.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 Microsoft.NET.TestFramework; -using Xunit; - namespace Microsoft.Win32.Msi.Tests { public class WindowsInstallerExceptionTests diff --git a/src/Tests/Microsoft.Win32.Msi.Tests/WindowsInstallerTests.cs b/src/Tests/Microsoft.Win32.Msi.Tests/WindowsInstallerTests.cs index 3028c8b8a017..c566d8419479 100644 --- a/src/Tests/Microsoft.Win32.Msi.Tests/WindowsInstallerTests.cs +++ b/src/Tests/Microsoft.Win32.Msi.Tests/WindowsInstallerTests.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 Microsoft.NET.TestFramework; -using Xunit; - namespace Microsoft.Win32.Msi.Tests { public class WindowsInstallerTests diff --git a/src/Tests/Msbuild.Tests.Utilities/ProjDir.cs b/src/Tests/Msbuild.Tests.Utilities/ProjDir.cs index 3d403db20896..8ebe570f0eda 100644 --- a/src/Tests/Msbuild.Tests.Utilities/ProjDir.cs +++ b/src/Tests/Msbuild.Tests.Utilities/ProjDir.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.Build.Construction; using Microsoft.Build.Evaluation; diff --git a/src/Tests/Msbuild.Tests.Utilities/ProjectRootElementExtensions.cs b/src/Tests/Msbuild.Tests.Utilities/ProjectRootElementExtensions.cs index 3eef3999fe74..d63d4d814e33 100644 --- a/src/Tests/Msbuild.Tests.Utilities/ProjectRootElementExtensions.cs +++ b/src/Tests/Msbuild.Tests.Utilities/ProjectRootElementExtensions.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Construction; -using System.Linq; -using System.Collections.Generic; using Microsoft.DotNet.Cli.Utils; namespace Msbuild.Tests.Utilities diff --git a/src/Tests/Msbuild.Tests.Utilities/TestSetup.cs b/src/Tests/Msbuild.Tests.Utilities/TestSetup.cs index 177665f37f9f..d07813599d00 100644 --- a/src/Tests/Msbuild.Tests.Utilities/TestSetup.cs +++ b/src/Tests/Msbuild.Tests.Utilities/TestSetup.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 Msbuild.Tests.Utilities { public class TestSetup diff --git a/src/Tests/SDDLTests/Program.cs b/src/Tests/SDDLTests/Program.cs index 8790653b49c0..eed29c834100 100644 --- a/src/Tests/SDDLTests/Program.cs +++ b/src/Tests/SDDLTests/Program.cs @@ -1,18 +1,13 @@ // 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; -using System.IO; -using System.Linq; using System.Reflection; using System.Runtime.Versioning; using System.Security.AccessControl; using System.Security.Principal; using System.Text.RegularExpressions; using Microsoft.DotNet.Installer.Windows; -using Xunit; namespace SDDLTests { diff --git a/src/Tests/TelemetryStdOutLogger/LogTelemetryToStdOutForTest.cs b/src/Tests/TelemetryStdOutLogger/LogTelemetryToStdOutForTest.cs index 72782b28826e..035b10869340 100644 --- a/src/Tests/TelemetryStdOutLogger/LogTelemetryToStdOutForTest.cs +++ b/src/Tests/TelemetryStdOutLogger/LogTelemetryToStdOutForTest.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.Build.Framework; using Microsoft.Build.Utilities; using Newtonsoft.Json; diff --git a/src/Tests/containerize.UnitTests/ParserTests.cs b/src/Tests/containerize.UnitTests/ParserTests.cs index 973c5fe6dfed..7a43de11b233 100644 --- a/src/Tests/containerize.UnitTests/ParserTests.cs +++ b/src/Tests/containerize.UnitTests/ParserTests.cs @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.CommandLine.Parsing; using Microsoft.NET.Build.Containers; -using Xunit; namespace containerize.UnitTests; diff --git a/src/Tests/crossgen.Tests/crossgen.Tests.cs b/src/Tests/crossgen.Tests/crossgen.Tests.cs index 6a5aeab3b36a..f3376095dbec 100644 --- a/src/Tests/crossgen.Tests/crossgen.Tests.cs +++ b/src/Tests/crossgen.Tests/crossgen.Tests.cs @@ -1,17 +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.Reflection.PortableExecutable; -using Microsoft.DotNet.Tools.Test.Utilities; -using FluentAssertions; -using Xunit; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Utilities; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/dotnet-add-package.Tests/GivenDotnetPackageAdd.cs b/src/Tests/dotnet-add-package.Tests/GivenDotnetPackageAdd.cs index 849dce183bbf..7d427792c0fe 100644 --- a/src/Tests/dotnet-add-package.Tests/GivenDotnetPackageAdd.cs +++ b/src/Tests/dotnet-add-package.Tests/GivenDotnetPackageAdd.cs @@ -1,17 +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 FluentAssertions; -using Microsoft.DotNet.Tools.Add.PackageReference; -using System.IO; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.Collections.Generic; -using System.Linq; using System.Runtime.CompilerServices; namespace Microsoft.DotNet.Cli.Package.Add.Tests diff --git a/src/Tests/dotnet-add-reference.Tests/GivenDotnetAddReference.cs b/src/Tests/dotnet-add-reference.Tests/GivenDotnetAddReference.cs index 80445b674dbc..b4b521c30e1f 100644 --- a/src/Tests/dotnet-add-reference.Tests/GivenDotnetAddReference.cs +++ b/src/Tests/dotnet-add-reference.Tests/GivenDotnetAddReference.cs @@ -1,21 +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 FluentAssertions; using Microsoft.DotNet.Cli.CommandLineValidation; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Common; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.TemplateEngine.Core.Operations; using Msbuild.Tests.Utilities; -using System; -using System.Collections.Generic; -using System.IO; -using System.Numerics; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Add.Reference.Tests { diff --git a/src/Tests/dotnet-back-compat.Tests/GivenThatWeWantToBeBackwardsCompatibleWith1xProjects.cs b/src/Tests/dotnet-back-compat.Tests/GivenThatWeWantToBeBackwardsCompatibleWith1xProjects.cs index 1a4e69b5df3c..df196a156781 100644 --- a/src/Tests/dotnet-back-compat.Tests/GivenThatWeWantToBeBackwardsCompatibleWith1xProjects.cs +++ b/src/Tests/dotnet-back-compat.Tests/GivenThatWeWantToBeBackwardsCompatibleWith1xProjects.cs @@ -1,18 +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 FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using System.Linq; -using System.Xml.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Cli.Build.Tests { public class GivenThatWeWantToBeBackwardsCompatibleWith1xProjects : SdkTest diff --git a/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs b/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs index de74fa5cf9c0..b0401609d506 100644 --- a/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs +++ b/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs @@ -1,19 +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.CommandLine; -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 Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Build.Tests { diff --git a/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsDcproj.cs b/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsDcproj.cs index 5f45e28ba596..d4d22b617120 100644 --- a/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsDcproj.cs +++ b/src/Tests/dotnet-build.Tests/GivenDotnetBuildBuildsDcproj.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 FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Cli.Build.Tests { public class GivenDotnetBuildBuildsDcproj : SdkTest diff --git a/src/Tests/dotnet-clean.Tests/GivenDotnetCleanCleansBuildArtifacts.cs b/src/Tests/dotnet-clean.Tests/GivenDotnetCleanCleansBuildArtifacts.cs index a8b52790833c..4a23581750df 100644 --- a/src/Tests/dotnet-clean.Tests/GivenDotnetCleanCleansBuildArtifacts.cs +++ b/src/Tests/dotnet-clean.Tests/GivenDotnetCleanCleansBuildArtifacts.cs @@ -1,18 +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 FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using System.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - - namespace Microsoft.DotNet.Cli.Clean.Tests { public class GivenDotnetCleanCleansBuildArtifacts : SdkTest diff --git a/src/Tests/dotnet-format.Tests/GivenDotnetFsiExecutesAndGeneratesHelpText.cs b/src/Tests/dotnet-format.Tests/GivenDotnetFsiExecutesAndGeneratesHelpText.cs index 3a9092c94b3d..104e49a3fc98 100644 --- a/src/Tests/dotnet-format.Tests/GivenDotnetFsiExecutesAndGeneratesHelpText.cs +++ b/src/Tests/dotnet-format.Tests/GivenDotnetFsiExecutesAndGeneratesHelpText.cs @@ -1,17 +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 FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using System.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Cli.Format.Tests { public class GivenDotnetFormatExecutesAndGeneratesHelpText : SdkTest diff --git a/src/Tests/dotnet-fsi.Tests/GivenDotnetFsiExecutesAndGeneratesHelpText.cs b/src/Tests/dotnet-fsi.Tests/GivenDotnetFsiExecutesAndGeneratesHelpText.cs index 3bd33c033ce8..e81d540ec5fd 100644 --- a/src/Tests/dotnet-fsi.Tests/GivenDotnetFsiExecutesAndGeneratesHelpText.cs +++ b/src/Tests/dotnet-fsi.Tests/GivenDotnetFsiExecutesAndGeneratesHelpText.cs @@ -1,17 +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 FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using System.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Cli.Fsi.Tests { public class GivenDotnetFsiExecutesAndGeneratesHelpText : SdkTest diff --git a/src/Tests/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs b/src/Tests/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs index ff03cc56ae63..97853c7d5ffc 100644 --- a/src/Tests/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs +++ b/src/Tests/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.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 Xunit; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; using Microsoft.DotNet.Tools.Help; namespace Microsoft.DotNet.Help.Tests diff --git a/src/Tests/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetHelpCommand.cs b/src/Tests/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetHelpCommand.cs index 76c713a846f9..f370ee2cd237 100644 --- a/src/Tests/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetHelpCommand.cs +++ b/src/Tests/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetHelpCommand.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 Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Help.Tests { public class GivenThatIWantToShowHelpForDotnetHelpCommand : SdkTest diff --git a/src/Tests/dotnet-install-tool.Tests/GivenDotnetInstallTool.cs b/src/Tests/dotnet-install-tool.Tests/GivenDotnetInstallTool.cs index 1e36696062ba..8bd31301d3db 100644 --- a/src/Tests/dotnet-install-tool.Tests/GivenDotnetInstallTool.cs +++ b/src/Tests/dotnet-install-tool.Tests/GivenDotnetInstallTool.cs @@ -1,15 +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.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Cli.Install.Tests { public class GivenDotnetInstallTool : SdkTest diff --git a/src/Tests/dotnet-list-package.Tests/GivenDotnetListPackage.cs b/src/Tests/dotnet-list-package.Tests/GivenDotnetListPackage.cs index 6465607d19ed..6f37b209a160 100644 --- a/src/Tests/dotnet-list-package.Tests/GivenDotnetListPackage.cs +++ b/src/Tests/dotnet-list-package.Tests/GivenDotnetListPackage.cs @@ -1,21 +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.CommandLine; -using System.CommandLine.Parsing; -using System.IO; -using System.Linq; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.List.PackageReferences; -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.DotNet.Cli.List.Package.Tests { diff --git a/src/Tests/dotnet-list-reference.Tests/GivenDotnetListReference.cs b/src/Tests/dotnet-list-reference.Tests/GivenDotnetListReference.cs index 15a777c5aeff..62b8fb3b5998 100644 --- a/src/Tests/dotnet-list-reference.Tests/GivenDotnetListReference.cs +++ b/src/Tests/dotnet-list-reference.Tests/GivenDotnetListReference.cs @@ -1,18 +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 FluentAssertions; using Microsoft.DotNet.Cli.CommandLineValidation; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Common; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; using Msbuild.Tests.Utilities; -using System; -using System.IO; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.List.Reference.Tests { diff --git a/src/Tests/dotnet-msbuild.Tests/GivenDotnetMSBuildBuildsProjects.cs b/src/Tests/dotnet-msbuild.Tests/GivenDotnetMSBuildBuildsProjects.cs index 7e30813ca488..1a1628e756c6 100644 --- a/src/Tests/dotnet-msbuild.Tests/GivenDotnetMSBuildBuildsProjects.cs +++ b/src/Tests/dotnet-msbuild.Tests/GivenDotnetMSBuildBuildsProjects.cs @@ -1,22 +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 System.Linq.Expressions; -using System.Reflection; -using System.Runtime.InteropServices; -using FluentAssertions; -using Microsoft.DotNet.Cli; -using Microsoft.DotNet.Tools.Test.Utilities; -using NuGet.Protocol; -using Xunit; -using Xunit.Abstractions; -using System.Diagnostics; -using System.Threading; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; // There are tests which modify static Telemetry.CurrentSessionId and they cannot run in parallel diff --git a/src/Tests/dotnet-nuget.UnitTests/GivenANuGetCommand.cs b/src/Tests/dotnet-nuget.UnitTests/GivenANuGetCommand.cs index 9e3fbc59faea..6806a7d4e8ee 100644 --- a/src/Tests/dotnet-nuget.UnitTests/GivenANuGetCommand.cs +++ b/src/Tests/dotnet-nuget.UnitTests/GivenANuGetCommand.cs @@ -1,16 +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 FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Tools.NuGet; using Moq; -using Xunit; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Commands; - -using Microsoft.NET.TestFramework.Assertions; namespace Microsoft.DotNet.Tools.Run.Tests { diff --git a/src/Tests/dotnet-pack.Tests/PackTests.cs b/src/Tests/dotnet-pack.Tests/PackTests.cs index c9d30ddc5139..cbabf31b14a5 100644 --- a/src/Tests/dotnet-pack.Tests/PackTests.cs +++ b/src/Tests/dotnet-pack.Tests/PackTests.cs @@ -1,19 +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.IO; using System.IO.Compression; -using System.Linq; -using System.Xml.Linq; -using FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Pack.Tests { diff --git a/src/Tests/dotnet-publish.Tests/GivenDotnetPublishPublishesProjects.cs b/src/Tests/dotnet-publish.Tests/GivenDotnetPublishPublishesProjects.cs index 2b7cd1458d4a..19bc86a3205a 100644 --- a/src/Tests/dotnet-publish.Tests/GivenDotnetPublishPublishesProjects.cs +++ b/src/Tests/dotnet-publish.Tests/GivenDotnetPublishPublishesProjects.cs @@ -1,22 +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.Runtime.CompilerServices; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; -using LocalizableStrings = Microsoft.DotNet.Tools.Publish.LocalizableStrings; namespace Microsoft.DotNet.Cli.Publish.Tests { diff --git a/src/Tests/dotnet-remove-package.Tests/GivenDotnetRemovePackage.cs b/src/Tests/dotnet-remove-package.Tests/GivenDotnetRemovePackage.cs index de83699ff244..ab28b2c01063 100644 --- a/src/Tests/dotnet-remove-package.Tests/GivenDotnetRemovePackage.cs +++ b/src/Tests/dotnet-remove-package.Tests/GivenDotnetRemovePackage.cs @@ -1,16 +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.IO; -using FluentAssertions; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Common; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Remove.Package.Tests { diff --git a/src/Tests/dotnet-remove-reference.Tests/GivenDotnetRemoveP2P.cs b/src/Tests/dotnet-remove-reference.Tests/GivenDotnetRemoveP2P.cs index aa32bc44a9d2..fd7c836dee6d 100644 --- a/src/Tests/dotnet-remove-reference.Tests/GivenDotnetRemoveP2P.cs +++ b/src/Tests/dotnet-remove-reference.Tests/GivenDotnetRemoveP2P.cs @@ -1,20 +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 FluentAssertions; using Microsoft.DotNet.Cli.CommandLineValidation; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Common; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; using Msbuild.Tests.Utilities; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Remove.Reference.Tests { diff --git a/src/Tests/dotnet-restore.Tests/GivenThatIWantToRestoreApp.cs b/src/Tests/dotnet-restore.Tests/GivenThatIWantToRestoreApp.cs index faf7fe757e4d..0ff85b1f36c7 100644 --- a/src/Tests/dotnet-restore.Tests/GivenThatIWantToRestoreApp.cs +++ b/src/Tests/dotnet-restore.Tests/GivenThatIWantToRestoreApp.cs @@ -1,19 +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 Microsoft.Build.Construction; using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using FluentAssertions; -using System.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.ProjectConstruction; namespace Microsoft.DotNet.Restore.Test { diff --git a/src/Tests/dotnet-run.Tests/GivenDotnetRootEnv.cs b/src/Tests/dotnet-run.Tests/GivenDotnetRootEnv.cs index 9ff951985c1a..356508185280 100644 --- a/src/Tests/dotnet-run.Tests/GivenDotnetRootEnv.cs +++ b/src/Tests/dotnet-run.Tests/GivenDotnetRootEnv.cs @@ -1,15 +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.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Run.Tests { diff --git a/src/Tests/dotnet-run.Tests/GivenDotnetRunIsInterrupted.cs b/src/Tests/dotnet-run.Tests/GivenDotnetRunIsInterrupted.cs index f4d7df720838..b5f0ddb2dd5d 100644 --- a/src/Tests/dotnet-run.Tests/GivenDotnetRunIsInterrupted.cs +++ b/src/Tests/dotnet-run.Tests/GivenDotnetRunIsInterrupted.cs @@ -1,19 +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.Diagnostics; -using System.Runtime.InteropServices; -using System.Threading.Tasks; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; using Xunit.Sdk; -using Xunit; namespace Microsoft.DotNet.Cli.Run.Tests { diff --git a/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsCsProj.cs b/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsCsProj.cs index 6144e8fab80e..d02f31064f14 100644 --- a/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsCsProj.cs +++ b/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsCsProj.cs @@ -1,20 +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.IO; -using System.Linq; -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; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Microsoft.NET.TestFramework.Utilities; using Microsoft.TemplateEngine.Utils; -using Xunit; -using Xunit.Abstractions; using LocalizableStrings = Microsoft.DotNet.Tools.Run.LocalizableStrings; namespace Microsoft.DotNet.Cli.Run.Tests diff --git a/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsVbProj.cs b/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsVbProj.cs index 306411f42893..da047095d427 100644 --- a/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsVbProj.cs +++ b/src/Tests/dotnet-run.Tests/GivenDotnetRunRunsVbProj.cs @@ -1,17 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; using Microsoft.TemplateEngine.Utils; -using Xunit; -using Xunit.Abstractions; using LocalizableStrings = Microsoft.DotNet.Tools.Run.LocalizableStrings; namespace Microsoft.DotNet.Cli.Run.Tests diff --git a/src/Tests/dotnet-run.Tests/GivenDotnetRunThrowsAParseError.cs b/src/Tests/dotnet-run.Tests/GivenDotnetRunThrowsAParseError.cs index c3bfcac59682..f03f4c618427 100644 --- a/src/Tests/dotnet-run.Tests/GivenDotnetRunThrowsAParseError.cs +++ b/src/Tests/dotnet-run.Tests/GivenDotnetRunThrowsAParseError.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.IO; -using FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; using LocalizableStrings = Microsoft.DotNet.Tools.Run.LocalizableStrings; namespace Microsoft.DotNet.Cli.Run.Tests diff --git a/src/Tests/dotnet-run.Tests/GivenThatWeCanPassNonProjectFilesToDotnetRun.cs b/src/Tests/dotnet-run.Tests/GivenThatWeCanPassNonProjectFilesToDotnetRun.cs index 7d9aa00fb165..b6ef58633d5c 100644 --- a/src/Tests/dotnet-run.Tests/GivenThatWeCanPassNonProjectFilesToDotnetRun.cs +++ b/src/Tests/dotnet-run.Tests/GivenThatWeCanPassNonProjectFilesToDotnetRun.cs @@ -1,15 +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.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Cli.Run.Tests { public class GivenThatWeCanPassNonProjectFilesToDotnetRun : SdkTest diff --git a/src/Tests/dotnet-sdk-check.Tests/GivenDotnetSdkCheck.cs b/src/Tests/dotnet-sdk-check.Tests/GivenDotnetSdkCheck.cs index 20c2107a633e..1c497a734385 100644 --- a/src/Tests/dotnet-sdk-check.Tests/GivenDotnetSdkCheck.cs +++ b/src/Tests/dotnet-sdk-check.Tests/GivenDotnetSdkCheck.cs @@ -1,20 +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.Text.Json; -using FluentAssertions; using Microsoft.DotNet.NativeWrapper; using Microsoft.DotNet.Tools.Sdk.Check; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.SdkCheck.Tests { diff --git a/src/Tests/dotnet-sdk-check.Tests/MockProductCollectionProvider.cs b/src/Tests/dotnet-sdk-check.Tests/MockProductCollectionProvider.cs index 63fd76cd0a33..bd65015cd039 100644 --- a/src/Tests/dotnet-sdk-check.Tests/MockProductCollectionProvider.cs +++ b/src/Tests/dotnet-sdk-check.Tests/MockProductCollectionProvider.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.IO; using Microsoft.Deployment.DotNet.Releases; namespace Microsoft.DotNet.Tools.Sdk.Check diff --git a/src/Tests/dotnet-sln.Tests/GivenDotnetSlnAdd.cs b/src/Tests/dotnet-sln.Tests/GivenDotnetSlnAdd.cs index 00f6f0a27336..8a6d6eaef133 100644 --- a/src/Tests/dotnet-sln.Tests/GivenDotnetSlnAdd.cs +++ b/src/Tests/dotnet-sln.Tests/GivenDotnetSlnAdd.cs @@ -1,21 +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 FluentAssertions; using Microsoft.DotNet.Cli.Sln.Internal; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Common; -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.CompilerServices; -using System.Text; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Sln.Add.Tests { diff --git a/src/Tests/dotnet-sln.Tests/GivenDotnetSlnList.cs b/src/Tests/dotnet-sln.Tests/GivenDotnetSlnList.cs index f64de7a0da06..91f027abfcdf 100644 --- a/src/Tests/dotnet-sln.Tests/GivenDotnetSlnList.cs +++ b/src/Tests/dotnet-sln.Tests/GivenDotnetSlnList.cs @@ -1,19 +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 FluentAssertions; using Microsoft.DotNet.Cli.Sln.Internal; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Common; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using System; -using System.IO; -using System.Linq; -using Xunit; -using Xunit.Abstractions; using CommandLocalizableStrings = Microsoft.DotNet.Tools.Sln.LocalizableStrings; namespace Microsoft.DotNet.Cli.Sln.List.Tests diff --git a/src/Tests/dotnet-sln.Tests/GivenDotnetSlnRemove.cs b/src/Tests/dotnet-sln.Tests/GivenDotnetSlnRemove.cs index b8e7c27d2209..f3e69cd9c3d4 100644 --- a/src/Tests/dotnet-sln.Tests/GivenDotnetSlnRemove.cs +++ b/src/Tests/dotnet-sln.Tests/GivenDotnetSlnRemove.cs @@ -1,20 +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 FluentAssertions; using Microsoft.DotNet.Cli.Sln.Internal; using Microsoft.DotNet.Tools; using Microsoft.DotNet.Tools.Common; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using System; -using System.IO; -using System.Linq; -using System.Text; -using Microsoft.Build.Evaluation; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Sln.Remove.Tests { diff --git a/src/Tests/dotnet-store.Tests/GivenDotnetStoresAndPublishesProjects.cs b/src/Tests/dotnet-store.Tests/GivenDotnetStoresAndPublishesProjects.cs index 8e77b60f9798..c12fa370c575 100644 --- a/src/Tests/dotnet-store.Tests/GivenDotnetStoresAndPublishesProjects.cs +++ b/src/Tests/dotnet-store.Tests/GivenDotnetStoresAndPublishesProjects.cs @@ -1,16 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using System; -using System.IO; -using System.Runtime.InteropServices; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Cli.Publish.Tests { public class GivenDotnetStoresAndPublishesProjects : SdkTest diff --git a/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsArtifactPostProcessing.cs b/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsArtifactPostProcessing.cs index 07c4dd5e9803..52b51eb64450 100644 --- a/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsArtifactPostProcessing.cs +++ b/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsArtifactPostProcessing.cs @@ -1,20 +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.Threading; using System.Xml; -using System.Xml.Linq; -using FluentAssertions; using Microsoft.DotNet.Tools.Test; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; using CommandResult = Microsoft.DotNet.Cli.Utils.CommandResult; namespace Microsoft.DotNet.Cli.Test.Tests diff --git a/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs b/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs index e1ea2b069f1f..aacbe69ca97b 100644 --- a/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs +++ b/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs @@ -2,16 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Tools.Test.Utilities; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using System.IO; -using System; -using Xunit; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.ProjectConstruction; namespace Microsoft.DotNet.Cli.Test.Tests { diff --git a/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestFromDll.cs b/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestFromDll.cs index 58c258d7c161..0b9b81251297 100644 --- a/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestFromDll.cs +++ b/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestFromDll.cs @@ -2,14 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using FluentAssertions; -using System.IO; -using System; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Test.Tests { diff --git a/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs b/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs index cd28da0c8e1c..9974c13b16a8 100644 --- a/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs +++ b/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs @@ -1,19 +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.CompilerServices; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Test.Tests { diff --git a/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsprojWithCorrectTestRunParameters.cs b/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsprojWithCorrectTestRunParameters.cs index 41358f4a4a04..87068b0162f2 100644 --- a/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsprojWithCorrectTestRunParameters.cs +++ b/src/Tests/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsprojWithCorrectTestRunParameters.cs @@ -2,17 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using System.Linq; using System.Runtime.CompilerServices; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; -using System; -using System.IO; namespace Microsoft.DotNet.Cli.Test.Tests { diff --git a/src/Tests/dotnet-test.Tests/GivenDotnetTestContainsEnvironmentVariables.cs b/src/Tests/dotnet-test.Tests/GivenDotnetTestContainsEnvironmentVariables.cs index 9dd299808ef9..45a56a3cca09 100644 --- a/src/Tests/dotnet-test.Tests/GivenDotnetTestContainsEnvironmentVariables.cs +++ b/src/Tests/dotnet-test.Tests/GivenDotnetTestContainsEnvironmentVariables.cs @@ -2,15 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using System.IO; -using System; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Test.Tests { diff --git a/src/Tests/dotnet-test.Tests/GivenDotnetTestContainsMSBuildParameters.cs b/src/Tests/dotnet-test.Tests/GivenDotnetTestContainsMSBuildParameters.cs index 95a18cf880e0..11cb569c781f 100644 --- a/src/Tests/dotnet-test.Tests/GivenDotnetTestContainsMSBuildParameters.cs +++ b/src/Tests/dotnet-test.Tests/GivenDotnetTestContainsMSBuildParameters.cs @@ -2,15 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using System.IO; -using System; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Test.Tests { diff --git a/src/Tests/dotnet-test.Tests/GivenDotnetTestForwardDotnetRootEnvironmentVariables.cs b/src/Tests/dotnet-test.Tests/GivenDotnetTestForwardDotnetRootEnvironmentVariables.cs index b899b67828d9..429f216da6f8 100644 --- a/src/Tests/dotnet-test.Tests/GivenDotnetTestForwardDotnetRootEnvironmentVariables.cs +++ b/src/Tests/dotnet-test.Tests/GivenDotnetTestForwardDotnetRootEnvironmentVariables.cs @@ -2,15 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using FluentAssertions; -using Microsoft.DotNet.Cli.Utils; -using System.IO; -using System; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Test.Tests { diff --git a/src/Tests/dotnet-test.Tests/GivenDotnetTestsRunsInDifferentCultures.cs b/src/Tests/dotnet-test.Tests/GivenDotnetTestsRunsInDifferentCultures.cs index 92d8134290d4..c703a1f8d77b 100644 --- a/src/Tests/dotnet-test.Tests/GivenDotnetTestsRunsInDifferentCultures.cs +++ b/src/Tests/dotnet-test.Tests/GivenDotnetTestsRunsInDifferentCultures.cs @@ -2,15 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using FluentAssertions; -using Microsoft.DotNet.Cli.Utils; -using System.IO; -using System; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Test.Tests; diff --git a/src/Tests/dotnet-test.Tests/TestCommandParserTests.cs b/src/Tests/dotnet-test.Tests/TestCommandParserTests.cs index 646427efc4f1..cd7125331394 100644 --- a/src/Tests/dotnet-test.Tests/TestCommandParserTests.cs +++ b/src/Tests/dotnet-test.Tests/TestCommandParserTests.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 FluentAssertions; -using Microsoft.NET.TestFramework.Assertions; -using Xunit; - namespace Microsoft.DotNet.Cli.Test.Tests { public class TestCommandParserTests diff --git a/src/Tests/dotnet-vstest.Tests/VSTestTests.cs b/src/Tests/dotnet-vstest.Tests/VSTestTests.cs index 52bec8dfbc64..8920142b6ce3 100644 --- a/src/Tests/dotnet-vstest.Tests/VSTestTests.cs +++ b/src/Tests/dotnet-vstest.Tests/VSTestTests.cs @@ -2,15 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using System; -using System.IO; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; using System.Runtime.CompilerServices; namespace Microsoft.DotNet.Cli.VSTest.Tests diff --git a/src/Tests/dotnet-watch.Tests/CommandLineOptionsTests.cs b/src/Tests/dotnet-watch.Tests/CommandLineOptionsTests.cs index 41ede12ea9fd..17a94bf0ef70 100644 --- a/src/Tests/dotnet-watch.Tests/CommandLineOptionsTests.cs +++ b/src/Tests/dotnet-watch.Tests/CommandLineOptionsTests.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.IO; -using System.Linq; -using Xunit; - namespace Microsoft.DotNet.Watcher.Tools { public class CommandLineOptionsTests diff --git a/src/Tests/dotnet-watch.Tests/ConsoleReporterTests.cs b/src/Tests/dotnet-watch.Tests/ConsoleReporterTests.cs index 4a1df94d7d12..2d5871866248 100644 --- a/src/Tests/dotnet-watch.Tests/ConsoleReporterTests.cs +++ b/src/Tests/dotnet-watch.Tests/ConsoleReporterTests.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.IO; -using System.Text; -using Xunit; - namespace Microsoft.Extensions.Tools.Internal { public class ReporterTests diff --git a/src/Tests/dotnet-watch.Tests/FileSetSerializerTests.cs b/src/Tests/dotnet-watch.Tests/FileSetSerializerTests.cs index 5ce8ca80985b..b71862a86470 100644 --- a/src/Tests/dotnet-watch.Tests/FileSetSerializerTests.cs +++ b/src/Tests/dotnet-watch.Tests/FileSetSerializerTests.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.IO; using System.Runtime.Serialization.Json; -using System.Text; using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; using Microsoft.DotNet.Watcher.Internal; -using Xunit; namespace Microsoft.DotNet.Watcher.Tools; diff --git a/src/Tests/dotnet-watch.Tests/FileWatcherTests.cs b/src/Tests/dotnet-watch.Tests/FileWatcherTests.cs index 7f1f459e937e..7d8689a63fb8 100644 --- a/src/Tests/dotnet-watch.Tests/FileWatcherTests.cs +++ b/src/Tests/dotnet-watch.Tests/FileWatcherTests.cs @@ -1,16 +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.Threading.Tasks; using Microsoft.AspNetCore.Testing; using Microsoft.DotNet.Watcher.Internal; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Watcher.Tools { diff --git a/src/Tests/dotnet-watch.Tests/HotReload/DefaultDeltaApplierTest.cs b/src/Tests/dotnet-watch.Tests/HotReload/DefaultDeltaApplierTest.cs index a9c3704451ac..65358355474b 100644 --- a/src/Tests/dotnet-watch.Tests/HotReload/DefaultDeltaApplierTest.cs +++ b/src/Tests/dotnet-watch.Tests/HotReload/DefaultDeltaApplierTest.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.Threading.Tasks; using Microsoft.Extensions.Tools.Internal; using Moq; -using Xunit; namespace Microsoft.DotNet.Watcher.Tools { diff --git a/src/Tests/dotnet-watch.Tests/HotReload/UpdatePayloadTest.cs b/src/Tests/dotnet-watch.Tests/HotReload/UpdatePayloadTest.cs index c723898d3ebf..e588696ae3cf 100644 --- a/src/Tests/dotnet-watch.Tests/HotReload/UpdatePayloadTest.cs +++ b/src/Tests/dotnet-watch.Tests/HotReload/UpdatePayloadTest.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.IO; -using System.Linq; -using System.Threading.Tasks; -using Xunit; - namespace Microsoft.Extensions.HotReload { public class UpdatePayloadtest diff --git a/src/Tests/dotnet-watch.Tests/Internal/ProcessRunnerTest.cs b/src/Tests/dotnet-watch.Tests/Internal/ProcessRunnerTest.cs index f0b8d73d101d..fa20dbd0d195 100644 --- a/src/Tests/dotnet-watch.Tests/Internal/ProcessRunnerTest.cs +++ b/src/Tests/dotnet-watch.Tests/Internal/ProcessRunnerTest.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; -using Xunit; namespace Microsoft.DotNet.Watcher.Internal { diff --git a/src/Tests/dotnet-watch.Tests/MSBuildEvaluationFilterTest.cs b/src/Tests/dotnet-watch.Tests/MSBuildEvaluationFilterTest.cs index e5c5581c5e27..47992e3ed9f4 100644 --- a/src/Tests/dotnet-watch.Tests/MSBuildEvaluationFilterTest.cs +++ b/src/Tests/dotnet-watch.Tests/MSBuildEvaluationFilterTest.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.Threading; -using System.Threading.Tasks; using Moq; -using Xunit; namespace Microsoft.DotNet.Watcher.Tools { diff --git a/src/Tests/dotnet-watch.Tests/MsBuildFileSetFactoryTest.cs b/src/Tests/dotnet-watch.Tests/MsBuildFileSetFactoryTest.cs index ecae48b825af..b0980192770a 100644 --- a/src/Tests/dotnet-watch.Tests/MsBuildFileSetFactoryTest.cs +++ b/src/Tests/dotnet-watch.Tests/MsBuildFileSetFactoryTest.cs @@ -1,19 +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.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using System.Xml.Linq; -using Microsoft.AspNetCore.Testing; using Microsoft.DotNet.Watcher.Internal; using Microsoft.Extensions.Tools.Internal; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.ProjectConstruction; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Watcher.Tools { diff --git a/src/Tests/dotnet-watch.Tests/NoRestoreFilterTest.cs b/src/Tests/dotnet-watch.Tests/NoRestoreFilterTest.cs index 66f912602f1b..8e14eb610e31 100644 --- a/src/Tests/dotnet-watch.Tests/NoRestoreFilterTest.cs +++ b/src/Tests/dotnet-watch.Tests/NoRestoreFilterTest.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.Threading.Tasks; -using Microsoft.NET.TestFramework; -using Xunit; - namespace Microsoft.DotNet.Watcher.Tools { public class NoRestoreFilterTest diff --git a/src/Tests/dotnet-watch.Tests/Properties/AssemblyInfo.cs b/src/Tests/dotnet-watch.Tests/Properties/AssemblyInfo.cs index 26a7636b5f13..a03db966e7e6 100644 --- a/src/Tests/dotnet-watch.Tests/Properties/AssemblyInfo.cs +++ b/src/Tests/dotnet-watch.Tests/Properties/AssemblyInfo.cs @@ -1,7 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using Microsoft.AspNetCore.Testing; -using Xunit; [assembly: CollectionBehavior(DisableTestParallelization = true)] \ No newline at end of file diff --git a/src/Tests/dotnet-watch.Tests/StaticFileHandlerTest.cs b/src/Tests/dotnet-watch.Tests/StaticFileHandlerTest.cs index 1a66d2fe9ad4..d3acdce082cd 100644 --- a/src/Tests/dotnet-watch.Tests/StaticFileHandlerTest.cs +++ b/src/Tests/dotnet-watch.Tests/StaticFileHandlerTest.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.Tools.Internal; using Moq; -using Xunit; namespace Microsoft.DotNet.Watcher.Tools { diff --git a/src/Tests/dotnet-watch.Tests/Utilities/AssertEx.cs b/src/Tests/dotnet-watch.Tests/Utilities/AssertEx.cs index d3dee1c2e7ef..5ac5ea862e01 100644 --- a/src/Tests/dotnet-watch.Tests/Utilities/AssertEx.cs +++ b/src/Tests/dotnet-watch.Tests/Utilities/AssertEx.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.Collections.Generic; -using System.IO; -using System.Linq; using Xunit.Sdk; namespace Microsoft.DotNet.Watcher.Tools diff --git a/src/Tests/dotnet-watch.Tests/Utilities/AwaitableProcess.cs b/src/Tests/dotnet-watch.Tests/Utilities/AwaitableProcess.cs index ba401199b8fa..4df6d32f01eb 100644 --- a/src/Tests/dotnet-watch.Tests/Utilities/AwaitableProcess.cs +++ b/src/Tests/dotnet-watch.Tests/Utilities/AwaitableProcess.cs @@ -1,16 +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.Diagnostics; -using System.Text; -using System.Threading; -using System.Threading.Tasks; using System.Threading.Tasks.Dataflow; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Watcher.Tools { diff --git a/src/Tests/dotnet-watch.Tests/Utilities/MockReporter.cs b/src/Tests/dotnet-watch.Tests/Utilities/MockReporter.cs index 66d388b52783..b8ce415985c3 100644 --- a/src/Tests/dotnet-watch.Tests/Utilities/MockReporter.cs +++ b/src/Tests/dotnet-watch.Tests/Utilities/MockReporter.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 Microsoft.Extensions.Tools.Internal; namespace Microsoft.DotNet.Watcher.Tools; diff --git a/src/Tests/dotnet-watch.Tests/Utilities/TaskExtensions.cs b/src/Tests/dotnet-watch.Tests/Utilities/TaskExtensions.cs index d65f902f011d..103fc51a39cb 100644 --- a/src/Tests/dotnet-watch.Tests/Utilities/TaskExtensions.cs +++ b/src/Tests/dotnet-watch.Tests/Utilities/TaskExtensions.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.Diagnostics; using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.AspNetCore.Testing { diff --git a/src/Tests/dotnet-watch.Tests/Utilities/TestConsole.cs b/src/Tests/dotnet-watch.Tests/Utilities/TestConsole.cs index eda6a79e377e..827d8a1e9440 100644 --- a/src/Tests/dotnet-watch.Tests/Utilities/TestConsole.cs +++ b/src/Tests/dotnet-watch.Tests/Utilities/TestConsole.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.IO; -using System.Linq; using System.Reflection; -using System.Text; -using System.Threading.Tasks; -using Xunit.Abstractions; namespace Microsoft.Extensions.Tools.Internal { diff --git a/src/Tests/dotnet-watch.Tests/Utilities/TestReporter.cs b/src/Tests/dotnet-watch.Tests/Utilities/TestReporter.cs index 4dbfdd2f7d66..c0b99b7f8560 100644 --- a/src/Tests/dotnet-watch.Tests/Utilities/TestReporter.cs +++ b/src/Tests/dotnet-watch.Tests/Utilities/TestReporter.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 Xunit.Abstractions; - namespace Microsoft.Extensions.Tools.Internal { internal class TestReporter : IReporter diff --git a/src/Tests/dotnet-watch.Tests/Watch/AppWithDepsTests.cs b/src/Tests/dotnet-watch.Tests/Watch/AppWithDepsTests.cs index c249a60bf860..9191d9933a2b 100644 --- a/src/Tests/dotnet-watch.Tests/Watch/AppWithDepsTests.cs +++ b/src/Tests/dotnet-watch.Tests/Watch/AppWithDepsTests.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 System.Threading.Tasks; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Watcher.Tests { public class AppWithDepsTests : DotNetWatchTestBase diff --git a/src/Tests/dotnet-watch.Tests/Watch/BrowserLaunchTests.cs b/src/Tests/dotnet-watch.Tests/Watch/BrowserLaunchTests.cs index 7a1752ec5bc5..019ee9caa3ac 100644 --- a/src/Tests/dotnet-watch.Tests/Watch/BrowserLaunchTests.cs +++ b/src/Tests/dotnet-watch.Tests/Watch/BrowserLaunchTests.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.Threading.Tasks; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Watcher.Tests { public class BrowserLaunchTests : DotNetWatchTestBase diff --git a/src/Tests/dotnet-watch.Tests/Watch/DotNetWatcherTests.cs b/src/Tests/dotnet-watch.Tests/Watch/DotNetWatcherTests.cs index 255936aa97a6..793399fff378 100644 --- a/src/Tests/dotnet-watch.Tests/Watch/DotNetWatcherTests.cs +++ b/src/Tests/dotnet-watch.Tests/Watch/DotNetWatcherTests.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.Globalization; -using System.IO; -using System.Threading.Tasks; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Watcher.Tests { diff --git a/src/Tests/dotnet-watch.Tests/Watch/GlobbingAppTests.cs b/src/Tests/dotnet-watch.Tests/Watch/GlobbingAppTests.cs index 428faf3a7d14..ab19781938dc 100644 --- a/src/Tests/dotnet-watch.Tests/Watch/GlobbingAppTests.cs +++ b/src/Tests/dotnet-watch.Tests/Watch/GlobbingAppTests.cs @@ -1,14 +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.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.DotNet.Watcher.Tools; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Watcher.Tests { diff --git a/src/Tests/dotnet-watch.Tests/Watch/NoDepsAppTests.cs b/src/Tests/dotnet-watch.Tests/Watch/NoDepsAppTests.cs index b0829b5552d6..7fd768bc371f 100644 --- a/src/Tests/dotnet-watch.Tests/Watch/NoDepsAppTests.cs +++ b/src/Tests/dotnet-watch.Tests/Watch/NoDepsAppTests.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.IO; -using System.Threading.Tasks; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Watcher.Tests { public class NoDepsAppTests : DotNetWatchTestBase diff --git a/src/Tests/dotnet-watch.Tests/Watch/ProgramTests.cs b/src/Tests/dotnet-watch.Tests/Watch/ProgramTests.cs index 2b83a0145259..69c2d50a38ab 100644 --- a/src/Tests/dotnet-watch.Tests/Watch/ProgramTests.cs +++ b/src/Tests/dotnet-watch.Tests/Watch/ProgramTests.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.Threading.Tasks; using Microsoft.AspNetCore.Testing; using Microsoft.Extensions.Tools.Internal; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Watcher.Tests { diff --git a/src/Tests/dotnet-watch.Tests/Watch/Utilities/DotNetWatchTestBase.cs b/src/Tests/dotnet-watch.Tests/Watch/Utilities/DotNetWatchTestBase.cs index 28aaf33ea3b3..a9ee0d18e028 100644 --- a/src/Tests/dotnet-watch.Tests/Watch/Utilities/DotNetWatchTestBase.cs +++ b/src/Tests/dotnet-watch.Tests/Watch/Utilities/DotNetWatchTestBase.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.Diagnostics; -using System.IO; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Watcher.Tests; /// diff --git a/src/Tests/dotnet-watch.Tests/Watch/Utilities/WatchableApp.cs b/src/Tests/dotnet-watch.Tests/Watch/Utilities/WatchableApp.cs index 1a296ecb5fd0..86b202bef469 100644 --- a/src/Tests/dotnet-watch.Tests/Watch/Utilities/WatchableApp.cs +++ b/src/Tests/dotnet-watch.Tests/Watch/Utilities/WatchableApp.cs @@ -1,17 +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.Runtime.CompilerServices; -using System.Text; -using System.Threading.Tasks; using Microsoft.DotNet.Watcher.Tools; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Watcher.Tests { diff --git a/src/Tests/dotnet-workload-install.Tests/FailingNuGetPackageInstaller.cs b/src/Tests/dotnet-workload-install.Tests/FailingNuGetPackageInstaller.cs index 4ce0ef8eadcd..a451efbed6c6 100644 --- a/src/Tests/dotnet-workload-install.Tests/FailingNuGetPackageInstaller.cs +++ b/src/Tests/dotnet-workload-install.Tests/FailingNuGetPackageInstaller.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.Threading.Tasks; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; diff --git a/src/Tests/dotnet-workload-install.Tests/GivenDotnetWorkloadInstall.cs b/src/Tests/dotnet-workload-install.Tests/GivenDotnetWorkloadInstall.cs index c35c75c78d12..67b2ab22a253 100644 --- a/src/Tests/dotnet-workload-install.Tests/GivenDotnetWorkloadInstall.cs +++ b/src/Tests/dotnet-workload-install.Tests/GivenDotnetWorkloadInstall.cs @@ -1,29 +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.Collections.Generic; using System.CommandLine; -using System.CommandLine.Parsing; -using System.IO; -using System.Linq; using System.Runtime.CompilerServices; -using FluentAssertions; using ManifestReaderTests; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Workloads.Workload; using Microsoft.DotNet.Workloads.Workload.Install; using Microsoft.NET.Sdk.WorkloadManifestReader; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Assertions; using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.DotNet.Cli.Utils; -using System.Text.Json; using Microsoft.DotNet.Workloads.Workload.List; namespace Microsoft.DotNet.Cli.Workload.Install.Tests diff --git a/src/Tests/dotnet-workload-install.Tests/GivenFileBasedWorkloadInstall.cs b/src/Tests/dotnet-workload-install.Tests/GivenFileBasedWorkloadInstall.cs index 90742eb1900d..a87444bfd257 100644 --- a/src/Tests/dotnet-workload-install.Tests/GivenFileBasedWorkloadInstall.cs +++ b/src/Tests/dotnet-workload-install.Tests/GivenFileBasedWorkloadInstall.cs @@ -1,25 +1,16 @@ // 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.CompilerServices; -using FluentAssertions; using ManifestReaderTests; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Workloads.Workload.Install; using Microsoft.NET.Sdk.WorkloadManifestReader; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Utilities; using NuGet.Versioning; -using Xunit; -using Xunit.Abstractions; using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver; using Microsoft.Extensions.EnvironmentAbstractions; using System.Text.Json; -using System.Collections.Generic; namespace Microsoft.DotNet.Cli.Workload.Install.Tests { diff --git a/src/Tests/dotnet-workload-install.Tests/GivenWorkloadManifestUpdater.cs b/src/Tests/dotnet-workload-install.Tests/GivenWorkloadManifestUpdater.cs index 92ab704c79e1..b9b9b8eb969d 100644 --- a/src/Tests/dotnet-workload-install.Tests/GivenWorkloadManifestUpdater.cs +++ b/src/Tests/dotnet-workload-install.Tests/GivenWorkloadManifestUpdater.cs @@ -1,28 +1,16 @@ // 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.Text.Json; -using FluentAssertions; using FluentAssertions.Extensions; using ManifestReaderTests; using Microsoft.DotNet.Cli.NuGetPackageDownloader; 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 Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Utilities; using NuGet.Versioning; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Workload.Install.Tests { diff --git a/src/Tests/dotnet-workload-install.Tests/MockManifestProvider.cs b/src/Tests/dotnet-workload-install.Tests/MockManifestProvider.cs index a4932c244e37..52e57d06d6fc 100644 --- a/src/Tests/dotnet-workload-install.Tests/MockManifestProvider.cs +++ b/src/Tests/dotnet-workload-install.Tests/MockManifestProvider.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 Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.NET.Sdk.WorkloadManifestReader; -using System; -using System.Collections.Generic; -using System.IO; - namespace ManifestReaderTests { internal class MockManifestProvider : IWorkloadManifestProvider diff --git a/src/Tests/dotnet-workload-install.Tests/MockNuGetPackageInstaller.cs b/src/Tests/dotnet-workload-install.Tests/MockNuGetPackageInstaller.cs index 72d93c9f2b30..c52e2f23e4f1 100644 --- a/src/Tests/dotnet-workload-install.Tests/MockNuGetPackageInstaller.cs +++ b/src/Tests/dotnet-workload-install.Tests/MockNuGetPackageInstaller.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.Threading.Tasks; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; diff --git a/src/Tests/dotnet-workload-install.Tests/MockPackWorkloadInstaller.cs b/src/Tests/dotnet-workload-install.Tests/MockPackWorkloadInstaller.cs index 908cc5db6b1d..af68a97705f5 100644 --- a/src/Tests/dotnet-workload-install.Tests/MockPackWorkloadInstaller.cs +++ b/src/Tests/dotnet-workload-install.Tests/MockPackWorkloadInstaller.cs @@ -1,19 +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 Microsoft.DotNet.Workloads.Workload.Install; using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver; using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.Extensions.EnvironmentAbstractions; -using System.Linq; using Microsoft.NET.Sdk.WorkloadManifestReader; using Microsoft.DotNet.ToolPackage; -using System.Threading.Tasks; -using Microsoft.DotNet.Cli.NuGetPackageDownloader; -using NuGet.Versioning; -using System.IO; namespace Microsoft.DotNet.Cli.Workload.Install.Tests { diff --git a/src/Tests/dotnet-workload-install.Tests/MockWorkloadManifestUpdater.cs b/src/Tests/dotnet-workload-install.Tests/MockWorkloadManifestUpdater.cs index 455bd2c68160..d3e2bf8a3b6f 100644 --- a/src/Tests/dotnet-workload-install.Tests/MockWorkloadManifestUpdater.cs +++ b/src/Tests/dotnet-workload-install.Tests/MockWorkloadManifestUpdater.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.IO; -using System.Linq; -using System.Threading.Tasks; using Microsoft.DotNet.Workloads.Workload.Install; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.Extensions.EnvironmentAbstractions; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Tests/dotnet-workload-list.Tests/GivenAnMsiInstallation.cs b/src/Tests/dotnet-workload-list.Tests/GivenAnMsiInstallation.cs index e3ded5428961..4d477b442783 100644 --- a/src/Tests/dotnet-workload-list.Tests/GivenAnMsiInstallation.cs +++ b/src/Tests/dotnet-workload-list.Tests/GivenAnMsiInstallation.cs @@ -1,15 +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.Runtime.Versioning; -using System.IO; using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; -using Microsoft.NET.TestFramework; using Microsoft.Win32; using Microsoft.DotNet.Installer.Windows; using Microsoft.NET.Sdk.WorkloadManifestReader; -using Xunit; namespace Microsoft.DotNet.Cli.Workload.List.Tests { diff --git a/src/Tests/dotnet-workload-list.Tests/GivenDotnetWorkloadList.cs b/src/Tests/dotnet-workload-list.Tests/GivenDotnetWorkloadList.cs index b49d61740cdf..b828a7a322d9 100644 --- a/src/Tests/dotnet-workload-list.Tests/GivenDotnetWorkloadList.cs +++ b/src/Tests/dotnet-workload-list.Tests/GivenDotnetWorkloadList.cs @@ -1,22 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Assertions; using Microsoft.DotNet.Workloads.Workload.List; using System.CommandLine; -using System.CommandLine.Parsing; -using Microsoft.NET.TestFramework.Utilities; -using System.Collections.Generic; using Microsoft.NET.Sdk.WorkloadManifestReader; using ManifestReaderTests; -using System.IO; -using System.Linq; using ListStrings = Microsoft.DotNet.Workloads.Workload.List.LocalizableStrings; -using Microsoft.DotNet.Workloads.Workload; namespace Microsoft.DotNet.Cli.Workload.List.Tests { diff --git a/src/Tests/dotnet-workload-list.Tests/GivenWorkloadInstallerAndWorkloadsInstalled.cs b/src/Tests/dotnet-workload-list.Tests/GivenWorkloadInstallerAndWorkloadsInstalled.cs index 8a7125c55edb..98e467085595 100644 --- a/src/Tests/dotnet-workload-list.Tests/GivenWorkloadInstallerAndWorkloadsInstalled.cs +++ b/src/Tests/dotnet-workload-list.Tests/GivenWorkloadInstallerAndWorkloadsInstalled.cs @@ -1,25 +1,14 @@ // 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 FluentAssertions; using Microsoft.Deployment.DotNet.Releases; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Workload.Install.Tests; using Microsoft.DotNet.Workloads.Workload; -using Microsoft.DotNet.Workloads.Workload.Install; using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.DotNet.Workloads.Workload.List; using Microsoft.NET.Sdk.WorkloadManifestReader; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Workload.Update.Tests { diff --git a/src/Tests/dotnet-workload-list.Tests/MockWorkloadRecordRepo.cs b/src/Tests/dotnet-workload-list.Tests/MockWorkloadRecordRepo.cs index 22b24eae7e2e..97a4daa34c99 100644 --- a/src/Tests/dotnet-workload-list.Tests/MockWorkloadRecordRepo.cs +++ b/src/Tests/dotnet-workload-list.Tests/MockWorkloadRecordRepo.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.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.NET.Sdk.WorkloadManifestReader; diff --git a/src/Tests/dotnet-workload-repair.Tests/GivenDotnetWorkloadRepair.cs b/src/Tests/dotnet-workload-repair.Tests/GivenDotnetWorkloadRepair.cs index 6ab08c5e039a..b993ef3d0728 100644 --- a/src/Tests/dotnet-workload-repair.Tests/GivenDotnetWorkloadRepair.cs +++ b/src/Tests/dotnet-workload-repair.Tests/GivenDotnetWorkloadRepair.cs @@ -1,18 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Assertions; using System.CommandLine; -using System.CommandLine.Parsing; -using Microsoft.NET.TestFramework.Utilities; using Microsoft.NET.Sdk.WorkloadManifestReader; using Microsoft.DotNet.Workloads.Workload; using Microsoft.DotNet.Workloads.Workload.Repair; -using System.IO; using ManifestReaderTests; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Workload.Install.Tests; diff --git a/src/Tests/dotnet-workload-restore.Tests/DiscoverAllProjectsTests.cs b/src/Tests/dotnet-workload-restore.Tests/DiscoverAllProjectsTests.cs index c5f0224a5534..2079754e7b69 100644 --- a/src/Tests/dotnet-workload-restore.Tests/DiscoverAllProjectsTests.cs +++ b/src/Tests/dotnet-workload-restore.Tests/DiscoverAllProjectsTests.cs @@ -1,19 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.DotNet.Workloads.Workload.List; -using System.CommandLine; -using System.CommandLine.Parsing; -using Microsoft.NET.TestFramework.Utilities; -using System.Collections.Generic; -using System.IO; using Microsoft.DotNet.Workloads.Workload.Restore; -using Microsoft.NET.Sdk.WorkloadManifestReader; namespace Microsoft.DotNet.Cli.Workload.Restore.Tests { diff --git a/src/Tests/dotnet-workload-search.Tests/GivenDotnetWorkloadSearch.cs b/src/Tests/dotnet-workload-search.Tests/GivenDotnetWorkloadSearch.cs index be36c7ddc185..0de76be48dde 100644 --- a/src/Tests/dotnet-workload-search.Tests/GivenDotnetWorkloadSearch.cs +++ b/src/Tests/dotnet-workload-search.Tests/GivenDotnetWorkloadSearch.cs @@ -1,18 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Assertions; using Microsoft.DotNet.Workloads.Workload.Search; -using System.CommandLine; -using System.CommandLine.Parsing; -using Microsoft.NET.TestFramework.Utilities; -using System.Collections.Generic; using Microsoft.NET.Sdk.WorkloadManifestReader; -using System.Linq; namespace Microsoft.DotNet.Cli.Workload.Search.Tests { diff --git a/src/Tests/dotnet-workload-search.Tests/MockWorkloadResolver.cs b/src/Tests/dotnet-workload-search.Tests/MockWorkloadResolver.cs index d2f616e4e35b..2912767136ea 100644 --- a/src/Tests/dotnet-workload-search.Tests/MockWorkloadResolver.cs +++ b/src/Tests/dotnet-workload-search.Tests/MockWorkloadResolver.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 Microsoft.NET.Sdk.WorkloadManifestReader; -using System.Collections.Generic; namespace Microsoft.DotNet.Cli.Workload.Search.Tests { diff --git a/src/Tests/dotnet-workload-uninstall.Tests/GivenDotnetWorkloadUninstall.cs b/src/Tests/dotnet-workload-uninstall.Tests/GivenDotnetWorkloadUninstall.cs index 30f7fad981dd..28ac464863f5 100644 --- a/src/Tests/dotnet-workload-uninstall.Tests/GivenDotnetWorkloadUninstall.cs +++ b/src/Tests/dotnet-workload-uninstall.Tests/GivenDotnetWorkloadUninstall.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 System.Linq; -using FluentAssertions; using ManifestReaderTests; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Utils; @@ -14,11 +9,6 @@ using Microsoft.DotNet.Workloads.Workload.Install; using Microsoft.DotNet.Workloads.Workload.Uninstall; using Microsoft.NET.Sdk.WorkloadManifestReader; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.Workload.Uninstall.Tests { diff --git a/src/Tests/dotnet-workload-update.Tests/GivenDotnetWorkloadUpdate.cs b/src/Tests/dotnet-workload-update.Tests/GivenDotnetWorkloadUpdate.cs index b1d6e25eedd7..26aeb6039048 100644 --- a/src/Tests/dotnet-workload-update.Tests/GivenDotnetWorkloadUpdate.cs +++ b/src/Tests/dotnet-workload-update.Tests/GivenDotnetWorkloadUpdate.cs @@ -1,29 +1,17 @@ // 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.CommandLine; -using System.CommandLine.Parsing; -using System.IO; -using System.Linq; using System.Runtime.CompilerServices; -using FluentAssertions; using ManifestReaderTests; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Workloads.Workload; using Microsoft.DotNet.Workloads.Workload.Install; using Microsoft.NET.Sdk.WorkloadManifestReader; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; -using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; -using Microsoft.NET.TestFramework.Assertions; using Microsoft.DotNet.Cli.Workload.Install.Tests; using Microsoft.DotNet.Workloads.Workload.Update; using Microsoft.DotNet.Cli.Utils; using static Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver; -using System; namespace Microsoft.DotNet.Cli.Workload.Update.Tests { diff --git a/src/Tests/dotnet.Tests/BuildServerTests/BuildServerProviderTests.cs b/src/Tests/dotnet.Tests/BuildServerTests/BuildServerProviderTests.cs index 489ea61efdc4..36fd0be90a0c 100644 --- a/src/Tests/dotnet.Tests/BuildServerTests/BuildServerProviderTests.cs +++ b/src/Tests/dotnet.Tests/BuildServerTests/BuildServerProviderTests.cs @@ -1,22 +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 FluentAssertions; using Microsoft.DotNet.BuildServer; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Utilities; using Moq; -using Xunit; -using Xunit.Abstractions; using LocalizableStrings = Microsoft.DotNet.BuildServer.LocalizableStrings; namespace Microsoft.DotNet.Tests.BuildServerTests diff --git a/src/Tests/dotnet.Tests/BuildServerTests/RazorServerTests.cs b/src/Tests/dotnet.Tests/BuildServerTests/RazorServerTests.cs index dcc5e614ae3f..1dbb04db37af 100644 --- a/src/Tests/dotnet.Tests/BuildServerTests/RazorServerTests.cs +++ b/src/Tests/dotnet.Tests/BuildServerTests/RazorServerTests.cs @@ -1,21 +1,13 @@ // 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.DotNet.BuildServer; -using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.CommandFactory; -using Microsoft.DotNet.Tools; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; using Moq; using NuGet.Frameworks; -using Xunit; using LocalizableStrings = Microsoft.DotNet.BuildServer.LocalizableStrings; namespace Microsoft.DotNet.Tests.BuildServerTests diff --git a/src/Tests/dotnet.Tests/BuildServerTests/VBCSCompilerServerTests.cs b/src/Tests/dotnet.Tests/BuildServerTests/VBCSCompilerServerTests.cs index b3c536b0887d..27b75205c238 100644 --- a/src/Tests/dotnet.Tests/BuildServerTests/VBCSCompilerServerTests.cs +++ b/src/Tests/dotnet.Tests/BuildServerTests/VBCSCompilerServerTests.cs @@ -1,18 +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.Linq; -using FluentAssertions; using Microsoft.DotNet.BuildServer; -using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.CommandFactory; -using Microsoft.DotNet.Tools; -using Microsoft.Extensions.EnvironmentAbstractions; using Moq; using NuGet.Frameworks; -using Xunit; using LocalizableStrings = Microsoft.DotNet.BuildServer.LocalizableStrings; namespace Microsoft.DotNet.Tests.BuildServerTests diff --git a/src/Tests/dotnet.Tests/BundledTargetFramworkTests.cs b/src/Tests/dotnet.Tests/BundledTargetFramworkTests.cs index 0434919636c5..29bf80cb8542 100644 --- a/src/Tests/dotnet.Tests/BundledTargetFramworkTests.cs +++ b/src/Tests/dotnet.Tests/BundledTargetFramworkTests.cs @@ -1,15 +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.IO; using Microsoft.DotNet.Cli; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using FluentAssertions; using NuGet.Frameworks; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/dotnet.Tests/CommandObjectTests.cs b/src/Tests/dotnet.Tests/CommandObjectTests.cs index 7ab87585f833..49c3e02147cc 100644 --- a/src/Tests/dotnet.Tests/CommandObjectTests.cs +++ b/src/Tests/dotnet.Tests/CommandObjectTests.cs @@ -2,14 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools.Test.Utilities; -using System; -using Xunit; -using Xunit.Abstractions; -using FluentAssertions; using Microsoft.DotNet.CommandFactory; -using LocalizableStrings = Microsoft.DotNet.Cli.Utils.LocalizableStrings; -using Microsoft.NET.TestFramework; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/dotnet.Tests/CommandTests/BuildServerShutdownCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/BuildServerShutdownCommandTests.cs index b45562892160..2299ca15e6db 100644 --- a/src/Tests/dotnet.Tests/CommandTests/BuildServerShutdownCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/BuildServerShutdownCommandTests.cs @@ -1,27 +1,14 @@ // 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.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.Extensions.EnvironmentAbstractions; using Moq; -using Xunit; using CommandLocalizableStrings = Microsoft.DotNet.BuildServer.LocalizableStrings; using LocalizableStrings = Microsoft.DotNet.Tools.BuildServer.Shutdown.LocalizableStrings; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Utilities; -using Microsoft.NET.TestFramework.Commands; using Microsoft.DotNet.BuildServer; -using Xunit.Abstractions; using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.Commands diff --git a/src/Tests/dotnet.Tests/CommandTests/CommandIntegrationTests.cs b/src/Tests/dotnet.Tests/CommandTests/CommandIntegrationTests.cs index 3d87524eecb3..42dde56574af 100644 --- a/src/Tests/dotnet.Tests/CommandTests/CommandIntegrationTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/CommandIntegrationTests.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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Tests.Commands { public class CommandIntegrationTests : SdkTest diff --git a/src/Tests/dotnet.Tests/CommandTests/CompleteCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/CompleteCommandTests.cs index 2056d62e591d..5b888a1b3b02 100644 --- a/src/Tests/dotnet.Tests/CommandTests/CompleteCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/CompleteCommandTests.cs @@ -1,14 +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 FluentAssertions; using Microsoft.DotNet.Cli; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests.Commands { diff --git a/src/Tests/dotnet.Tests/CommandTests/FakeDangerousFileDetector.cs b/src/Tests/dotnet.Tests/CommandTests/FakeDangerousFileDetector.cs index c236b4b47b83..b3e2c0303e7a 100644 --- a/src/Tests/dotnet.Tests/CommandTests/FakeDangerousFileDetector.cs +++ b/src/Tests/dotnet.Tests/CommandTests/FakeDangerousFileDetector.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.Linq; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Tests.Commands diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolInstallCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolInstallCommandTests.cs index 9edb28385794..b30921ae5cd7 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolInstallCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolInstallCommandTests.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 System; -using System.CommandLine; -using System.CommandLine.Parsing; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Tool.Install; -using Microsoft.NET.TestFramework; -using Xunit; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.Install.LocalizableStrings; using Parser = Microsoft.DotNet.Cli.Parser; diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolInstallGlobalOrToolPathCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolInstallGlobalOrToolPathCommandTests.cs index 4b76e710beb4..4fe724d9aefc 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolInstallGlobalOrToolPathCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolInstallGlobalOrToolPathCommandTests.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 System.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools; using Microsoft.DotNet.ToolPackage; @@ -14,16 +9,11 @@ using Microsoft.DotNet.ShellShim; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Xunit; -using System.Runtime.InteropServices; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.Install.LocalizableStrings; using System.Text.Json; -using Microsoft.NET.TestFramework.Utilities; using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; using Microsoft.DotNet.Cli.NuGetPackageDownloader; -using Microsoft.NET.TestFramework; namespace Microsoft.DotNet.Tests.Commands.Tool { diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolInstallLocalCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolInstallLocalCommandTests.cs index 036f2b16b5c1..a3e6ef69cdab 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolInstallLocalCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolInstallLocalCommandTests.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 System.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; @@ -13,17 +8,12 @@ using Microsoft.DotNet.Tools.Tests.ComponentMocks; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Xunit; using NuGet.Versioning; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.Install.LocalizableStrings; using Microsoft.DotNet.ToolManifest; using NuGet.Frameworks; -using Microsoft.NET.TestFramework.Utilities; using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests.Commands.Tool { diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolListCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolListCommandTests.cs index 9d29cea20ac9..d7169ac84091 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolListCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolListCommandTests.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.CommandLine; -using System.CommandLine.Parsing; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Tool.List; -using Xunit; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.List.LocalizableStrings; using Parser = Microsoft.DotNet.Cli.Parser; diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolListGlobalOrToolPathCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolListGlobalOrToolPathCommandTests.cs index dc62767fe681..3d7873aebcfd 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolListGlobalOrToolPathCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolListGlobalOrToolPathCommandTests.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 System.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; @@ -13,11 +8,7 @@ using Microsoft.Extensions.EnvironmentAbstractions; using Moq; using NuGet.Versioning; -using Xunit; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.List.LocalizableStrings; -using Microsoft.NET.TestFramework.Utilities; -using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.Commands.Tool diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolListLocalCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolListLocalCommandTests.cs index b56124c96709..a639dc05ed48 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolListLocalCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolListLocalCommandTests.cs @@ -1,19 +1,13 @@ // 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.DotNet.Cli.Utils; using Microsoft.DotNet.ToolManifest; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Tools.Tool.List; using Microsoft.Extensions.EnvironmentAbstractions; using NuGet.Versioning; -using Xunit; -using Microsoft.NET.TestFramework.Utilities; using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.Commands.Tool diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolManifestEditorTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolManifestEditorTests.cs index c8371e971402..db0b902251c1 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolManifestEditorTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolManifestEditorTests.cs @@ -1,21 +1,13 @@ // 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 FluentAssertions; using Microsoft.DotNet.ToolManifest; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; -using Microsoft.DotNet.Tools.Test.Utilities; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using NuGet.Frameworks; using NuGet.Versioning; -using Xunit; using LocalizableStrings = Microsoft.DotNet.ToolManifest.LocalizableStrings; -using System.Linq; namespace Microsoft.DotNet.Tests.Commands.Tool { diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolManifestFinderTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolManifestFinderTests.cs index 066c4fb9d0ba..4b56fad6f7ac 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolManifestFinderTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolManifestFinderTests.cs @@ -1,20 +1,13 @@ // 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.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolManifest; using Microsoft.DotNet.ToolPackage; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework; using NuGet.Versioning; -using Xunit; using LocalizableStrings = Microsoft.DotNet.ToolManifest.LocalizableStrings; namespace Microsoft.DotNet.Tests.Commands.Tool diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolRestoreCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolRestoreCommandTests.cs index accf58ca9f2d..ab132d71f5da 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolRestoreCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolRestoreCommandTests.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.CommandLine; -using System.CommandLine.Parsing; -using System.IO; -using FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolManifest; @@ -15,10 +10,8 @@ using Microsoft.DotNet.Tools.Tool.Restore; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework.Utilities; using NuGet.Frameworks; using NuGet.Versioning; -using Xunit; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.Restore.LocalizableStrings; using Parser = Microsoft.DotNet.Cli.Parser; diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolRestoreCommandWithMultipleNugetConfigTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolRestoreCommandWithMultipleNugetConfigTests.cs index 3d11e6e9f1be..3c0601ff6a59 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolRestoreCommandWithMultipleNugetConfigTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolRestoreCommandWithMultipleNugetConfigTests.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.CommandLine; -using System.CommandLine.Parsing; -using System.IO; -using FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolManifest; @@ -15,10 +10,8 @@ using Microsoft.DotNet.Tools.Tool.Restore; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework.Utilities; using NuGet.Frameworks; using NuGet.Versioning; -using Xunit; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.Commands.Tool diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolUninstallCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolUninstallCommandTests.cs index b443c9c2ea7d..b2157be303b0 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolUninstallCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolUninstallCommandTests.cs @@ -1,15 +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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Tool.Uninstall; -using Xunit; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.Uninstall.LocalizableStrings; -using Microsoft.NET.TestFramework.Utilities; -using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.Commands.Tool diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolUninstallGlobalOrToolPathCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolUninstallGlobalOrToolPathCommandTests.cs index 5e2655e0482c..f6ed1427bcf9 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolUninstallGlobalOrToolPathCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolUninstallGlobalOrToolPathCommandTests.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.IO; -using System.Linq; -using System.Runtime.InteropServices; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Tools; @@ -14,13 +9,10 @@ using Microsoft.DotNet.Tools.Tests.ComponentMocks; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Xunit; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.Uninstall.LocalizableStrings; using InstallLocalizableStrings = Microsoft.DotNet.Tools.Tool.Install.LocalizableStrings; using Microsoft.DotNet.ShellShim; -using Microsoft.NET.TestFramework.Utilities; using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.Commands.Tool diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolUninstallLocalCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolUninstallLocalCommandTests.cs index 75504626feab..a5d431d0f6cf 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolUninstallLocalCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolUninstallLocalCommandTests.cs @@ -1,22 +1,14 @@ // 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; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Tools.Tool.Uninstall; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Xunit; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.Uninstall.LocalizableStrings; using Microsoft.DotNet.ToolManifest; -using Microsoft.NET.TestFramework.Utilities; -using Microsoft.DotNet.Cli; using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.Commands.Tool diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolUpdateCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolUpdateCommandTests.cs index 801a613bf0f4..85bda7c88c8b 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolUpdateCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolUpdateCommandTests.cs @@ -1,15 +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 FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Tool.Update; -using Xunit; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.Update.LocalizableStrings; -using Microsoft.NET.TestFramework.Utilities; -using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.Commands.Tool diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolUpdateGlobalOrToolPathCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolUpdateGlobalOrToolPathCommandTests.cs index 11c04019b3a7..436390dd529b 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolUpdateGlobalOrToolPathCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolUpdateGlobalOrToolPathCommandTests.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.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Tools.Tool.Install; @@ -12,14 +8,9 @@ using Microsoft.DotNet.Tools.Tool.Update; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Xunit; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.Update.LocalizableStrings; using Microsoft.DotNet.ShellShim; -using System.IO; -using Microsoft.NET.TestFramework.Utilities; using System.CommandLine; -using System.CommandLine.Parsing; -using System.Runtime.InteropServices; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.Commands.Tool diff --git a/src/Tests/dotnet.Tests/CommandTests/ToolUpdateLocalCommandTests.cs b/src/Tests/dotnet.Tests/CommandTests/ToolUpdateLocalCommandTests.cs index f0fee37a567a..d8120a690213 100644 --- a/src/Tests/dotnet.Tests/CommandTests/ToolUpdateLocalCommandTests.cs +++ b/src/Tests/dotnet.Tests/CommandTests/ToolUpdateLocalCommandTests.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.CommandLine; -using System.CommandLine.Parsing; -using System.IO; -using System.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.ToolManifest; @@ -17,10 +11,8 @@ using Microsoft.DotNet.Tools.Tool.Update; using Microsoft.Extensions.DependencyModel.Tests; using Microsoft.Extensions.EnvironmentAbstractions; -using Microsoft.NET.TestFramework.Utilities; using NuGet.Frameworks; using NuGet.Versioning; -using Xunit; using LocalizableStrings = Microsoft.DotNet.Tools.Tool.Update.LocalizableStrings; using Parser = Microsoft.DotNet.Cli.Parser; diff --git a/src/Tests/dotnet.Tests/EnvironmentVariableNamesTests.cs b/src/Tests/dotnet.Tests/EnvironmentVariableNamesTests.cs index aa877281ab0d..ab741d9adf1a 100644 --- a/src/Tests/dotnet.Tests/EnvironmentVariableNamesTests.cs +++ b/src/Tests/dotnet.Tests/EnvironmentVariableNamesTests.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.Runtime.InteropServices; using Microsoft.DotNet.Cli; -using Xunit; namespace dotnet.Tests; diff --git a/src/Tests/dotnet.Tests/FakeRecordEventNameTelemetry.cs b/src/Tests/dotnet.Tests/FakeRecordEventNameTelemetry.cs index aeb1430f8dd0..0dc843477068 100644 --- a/src/Tests/dotnet.Tests/FakeRecordEventNameTelemetry.cs +++ b/src/Tests/dotnet.Tests/FakeRecordEventNameTelemetry.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Concurrent; -using System.Collections.Generic; -using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Telemetry; namespace Microsoft.DotNet.Tests diff --git a/src/Tests/dotnet.Tests/GivenExponentialRetry.cs b/src/Tests/dotnet.Tests/GivenExponentialRetry.cs index afe9a3f04e4b..d48dff9e4efa 100644 --- a/src/Tests/dotnet.Tests/GivenExponentialRetry.cs +++ b/src/Tests/dotnet.Tests/GivenExponentialRetry.cs @@ -1,14 +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.Threading.Tasks; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/dotnet.Tests/GivenParserDirectives.cs b/src/Tests/dotnet.Tests/GivenParserDirectives.cs index 2e4c68ad4298..4e5d0fc0dfb4 100644 --- a/src/Tests/dotnet.Tests/GivenParserDirectives.cs +++ b/src/Tests/dotnet.Tests/GivenParserDirectives.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.IO; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Tests { public class GivenParserDirectives : SdkTest diff --git a/src/Tests/dotnet.Tests/GivenThatDotNetRunsCommands.cs b/src/Tests/dotnet.Tests/GivenThatDotNetRunsCommands.cs index 7638c64cf2bf..f7115379540a 100644 --- a/src/Tests/dotnet.Tests/GivenThatDotNetRunsCommands.cs +++ b/src/Tests/dotnet.Tests/GivenThatDotNetRunsCommands.cs @@ -1,17 +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.IO; -using FluentAssertions; -using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; using LocalizableStrings = Microsoft.DotNet.Cli.Utils.LocalizableStrings; namespace Microsoft.DotNet.Tests diff --git a/src/Tests/dotnet.Tests/GivenThatICareAboutVBApps.cs b/src/Tests/dotnet.Tests/GivenThatICareAboutVBApps.cs index fdda09d383d7..94f4eb4b3454 100644 --- a/src/Tests/dotnet.Tests/GivenThatICareAboutVBApps.cs +++ b/src/Tests/dotnet.Tests/GivenThatICareAboutVBApps.cs @@ -1,16 +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 FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Tests { public class GivenThatICareAboutVBApps : SdkTest diff --git a/src/Tests/dotnet.Tests/GivenThatTheUserEnablesThePerfLog.cs b/src/Tests/dotnet.Tests/GivenThatTheUserEnablesThePerfLog.cs index 54ce421f6ab7..98c661442dae 100644 --- a/src/Tests/dotnet.Tests/GivenThatTheUserEnablesThePerfLog.cs +++ b/src/Tests/dotnet.Tests/GivenThatTheUserEnablesThePerfLog.cs @@ -1,19 +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.Collections.Generic; -using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Cli; -using Microsoft.DotNet.Configurer; -using Xunit; -using Xunit.Abstractions; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using System.Runtime.CompilerServices; using System.Diagnostics.Tracing; namespace Microsoft.DotNet.Tests diff --git a/src/Tests/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs b/src/Tests/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs index 6243e3f0b6fb..6cf6248198b1 100644 --- a/src/Tests/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs +++ b/src/Tests/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs @@ -1,18 +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.IO; -using System.Collections.Generic; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Cli; using Microsoft.DotNet.Configurer; -using Xunit; -using Xunit.Abstractions; -using FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; using System.Runtime.CompilerServices; //[assembly: CollectionBehavior(DisableTestParallelization = true)] diff --git a/src/Tests/dotnet.Tests/GivenThatTheUserRequestsHelp.cs b/src/Tests/dotnet.Tests/GivenThatTheUserRequestsHelp.cs index 0c9ca09b057f..d03e35ba6dcc 100644 --- a/src/Tests/dotnet.Tests/GivenThatTheUserRequestsHelp.cs +++ b/src/Tests/dotnet.Tests/GivenThatTheUserRequestsHelp.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 FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Commands; -using Xunit; -using Xunit.Abstractions; - namespace dotnet.Tests { public class GivenThatTheUserRequestsHelp : SdkTest diff --git a/src/Tests/dotnet.Tests/NuGetSignatureVerificationEnablerTests.cs b/src/Tests/dotnet.Tests/NuGetSignatureVerificationEnablerTests.cs index e1ad96c832f3..63f724b7adc6 100644 --- a/src/Tests/dotnet.Tests/NuGetSignatureVerificationEnablerTests.cs +++ b/src/Tests/dotnet.Tests/NuGetSignatureVerificationEnablerTests.cs @@ -3,11 +3,7 @@ #nullable enable -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.IO; -using Xunit; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools; diff --git a/src/Tests/dotnet.Tests/OutputPathOptionTests.cs b/src/Tests/dotnet.Tests/OutputPathOptionTests.cs index f5f01d05b296..38ae54e20802 100644 --- a/src/Tests/dotnet.Tests/OutputPathOptionTests.cs +++ b/src/Tests/dotnet.Tests/OutputPathOptionTests.cs @@ -1,19 +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 FluentAssertions; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Assertions; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Xunit.Abstractions; -using Xunit; -using Microsoft.NET.TestFramework.ProjectConstruction; -using System.IO; using System.Runtime.CompilerServices; namespace dotnet.Tests diff --git a/src/Tests/dotnet.Tests/PackagedCommandTests.cs b/src/Tests/dotnet.Tests/PackagedCommandTests.cs index 2afb70055283..96f4539b6915 100644 --- a/src/Tests/dotnet.Tests/PackagedCommandTests.cs +++ b/src/Tests/dotnet.Tests/PackagedCommandTests.cs @@ -1,24 +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; -using System.IO; -using System.Runtime.InteropServices; -using FluentAssertions; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.DotNet.InternalAbstractions; -using Xunit; -using Xunit.Abstractions; using Microsoft.Build.Construction; -using System.Linq; using Microsoft.Build.Evaluation; -using System.Xml.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/dotnet.Tests/ParserTests/AddReferenceParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/AddReferenceParserTests.cs index 9631f3016700..ea175dc3a433 100644 --- a/src/Tests/dotnet.Tests/ParserTests/AddReferenceParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/AddReferenceParserTests.cs @@ -1,17 +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.Collections.Generic; -using System.CommandLine; -using System.CommandLine.Parsing; -using System.IO; -using System.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.CommandLineValidation; using Microsoft.DotNet.Tools.Common; -using Xunit; -using Xunit.Abstractions; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.ParserTests diff --git a/src/Tests/dotnet.Tests/ParserTests/BuildServerShutdownParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/BuildServerShutdownParserTests.cs index 2f2d93253253..330fbb16acb1 100644 --- a/src/Tests/dotnet.Tests/ParserTests/BuildServerShutdownParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/BuildServerShutdownParserTests.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.CommandLine; -using System.CommandLine.Parsing; -using FluentAssertions; using Microsoft.DotNet.Cli; -using Xunit; -using Xunit.Abstractions; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.ParserTests diff --git a/src/Tests/dotnet.Tests/ParserTests/InstallToolParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/InstallToolParserTests.cs index 31eaf39a90b6..8fa35db54c7c 100644 --- a/src/Tests/dotnet.Tests/ParserTests/InstallToolParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/InstallToolParserTests.cs @@ -1,16 +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 FluentAssertions; using Microsoft.DotNet.Cli; -using Microsoft.DotNet.Tools.Tool.Common; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.ParserTests diff --git a/src/Tests/dotnet.Tests/ParserTests/ListPackageParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/ListPackageParserTests.cs index 8c22239a6400..dd0b075d789c 100644 --- a/src/Tests/dotnet.Tests/ParserTests/ListPackageParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/ListPackageParserTests.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 FluentAssertions; using Microsoft.DotNet.Cli; -using Xunit; -using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.ParserTests diff --git a/src/Tests/dotnet.Tests/ParserTests/ListToolParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/ListToolParserTests.cs index ba9b460ac3d7..004dbb0bdc8c 100644 --- a/src/Tests/dotnet.Tests/ParserTests/ListToolParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/ListToolParserTests.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.CommandLine; -using System.CommandLine.Parsing; -using FluentAssertions; using Microsoft.DotNet.Cli; -using Xunit; -using Xunit.Abstractions; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.ParserTests diff --git a/src/Tests/dotnet.Tests/ParserTests/MSBuildArgumentCommandLineParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/MSBuildArgumentCommandLineParserTests.cs index 6628fb0bc9e0..eb0aebb1c305 100644 --- a/src/Tests/dotnet.Tests/ParserTests/MSBuildArgumentCommandLineParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/MSBuildArgumentCommandLineParserTests.cs @@ -1,15 +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 FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Tools; -using Microsoft.DotNet.Tools.Build; -using Microsoft.DotNet.Tools.Publish; using System.CommandLine; -using System.Linq; -using Xunit; -using Xunit.Abstractions; using CLIBuildCommand = Microsoft.DotNet.Tools.Build.BuildCommand; using CLIPublishCommand = Microsoft.DotNet.Tools.Publish.PublishCommand; diff --git a/src/Tests/dotnet.Tests/ParserTests/ParseResultExtensionsTests.cs b/src/Tests/dotnet.Tests/ParserTests/ParseResultExtensionsTests.cs index a0824716fc22..d768e5a31d62 100644 --- a/src/Tests/dotnet.Tests/ParserTests/ParseResultExtensionsTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/ParseResultExtensionsTests.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.CommandLine; -using System.CommandLine.Parsing; -using FluentAssertions; using Microsoft.DotNet.Cli; -using Xunit; -using Xunit.Abstractions; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.ParserTests diff --git a/src/Tests/dotnet.Tests/ParserTests/ResponseFileTests.cs b/src/Tests/dotnet.Tests/ParserTests/ResponseFileTests.cs index 2af4ad416195..8ced9bdcdf59 100644 --- a/src/Tests/dotnet.Tests/ParserTests/ResponseFileTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/ResponseFileTests.cs @@ -1,15 +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 FluentAssertions; -using Microsoft.DotNet.Cli; -using Microsoft.NET.TestFramework; using Parser = Microsoft.DotNet.Cli.Parser; -using System.CommandLine.Parsing; -using System.IO; -using System.Linq; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests.ParserTests { diff --git a/src/Tests/dotnet.Tests/ParserTests/RestoreParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/RestoreParserTests.cs index 9a077b15d7d8..b2e6ffc9804d 100644 --- a/src/Tests/dotnet.Tests/ParserTests/RestoreParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/RestoreParserTests.cs @@ -1,15 +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.CommandLine; -using System.CommandLine.Parsing; -using System.IO; -using System.Linq; -using FluentAssertions; using Microsoft.DotNet.Cli; -using Xunit; -using Xunit.Abstractions; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.CommandLineParserTests diff --git a/src/Tests/dotnet.Tests/ParserTests/RunParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/RunParserTests.cs index 81f47ddf359a..7734b50b2858 100644 --- a/src/Tests/dotnet.Tests/ParserTests/RunParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/RunParserTests.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.Linq; -using FluentAssertions; using Microsoft.DotNet.Tools.Run; -using Xunit; -using Xunit.Abstractions; -using System; namespace Microsoft.DotNet.Tests.ParserTests { diff --git a/src/Tests/dotnet.Tests/ParserTests/ToolRestoreParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/ToolRestoreParserTests.cs index d310157556e9..78d523b33d36 100644 --- a/src/Tests/dotnet.Tests/ParserTests/ToolRestoreParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/ToolRestoreParserTests.cs @@ -1,14 +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 FluentAssertions; using Microsoft.DotNet.Cli; -using Xunit; -using Xunit.Abstractions; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.ParserTests diff --git a/src/Tests/dotnet.Tests/ParserTests/ToolRunParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/ToolRunParserTests.cs index 2900fe0bf4b4..2fe5b825d66c 100644 --- a/src/Tests/dotnet.Tests/ParserTests/ToolRunParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/ToolRunParserTests.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.CommandLine; -using System.CommandLine.Parsing; -using FluentAssertions; using Microsoft.DotNet.Cli; -using Xunit; -using Xunit.Abstractions; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.ParserTests diff --git a/src/Tests/dotnet.Tests/ParserTests/ToolSearchParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/ToolSearchParserTests.cs index 46a1408fac2e..81827bfd3e81 100644 --- a/src/Tests/dotnet.Tests/ParserTests/ToolSearchParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/ToolSearchParserTests.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 System; -using System.CommandLine; -using System.CommandLine.Parsing; -using FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Tools.Tool.Search; -using Xunit; -using Xunit.Abstractions; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.ParserTests diff --git a/src/Tests/dotnet.Tests/ParserTests/UninstallToolParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/UninstallToolParserTests.cs index 536b7e929982..c5e57689e03a 100644 --- a/src/Tests/dotnet.Tests/ParserTests/UninstallToolParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/UninstallToolParserTests.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.CommandLine; -using System.CommandLine.Parsing; -using FluentAssertions; using Microsoft.DotNet.Cli; -using Xunit; -using Xunit.Abstractions; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.ParserTests diff --git a/src/Tests/dotnet.Tests/ParserTests/UpdateToolParserTests.cs b/src/Tests/dotnet.Tests/ParserTests/UpdateToolParserTests.cs index a4fbeba154a4..f4dcee33f314 100644 --- a/src/Tests/dotnet.Tests/ParserTests/UpdateToolParserTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/UpdateToolParserTests.cs @@ -1,15 +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 FluentAssertions; using Microsoft.DotNet.Cli; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; using Parser = Microsoft.DotNet.Cli.Parser; namespace Microsoft.DotNet.Tests.ParserTests diff --git a/src/Tests/dotnet.Tests/ParserTests/VSTestArgumentConverterTests.cs b/src/Tests/dotnet.Tests/ParserTests/VSTestArgumentConverterTests.cs index 786e54507cd5..37f9e739d3d8 100644 --- a/src/Tests/dotnet.Tests/ParserTests/VSTestArgumentConverterTests.cs +++ b/src/Tests/dotnet.Tests/ParserTests/VSTestArgumentConverterTests.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 FluentAssertions; using Microsoft.DotNet.Cli; -using Microsoft.NET.TestFramework; -using System; -using System.Collections.Generic; using System.Collections.Immutable; -using System.Linq; -using Xunit; namespace Microsoft.DotNet.Tests.ParserTests { diff --git a/src/Tests/dotnet.Tests/PrintableTableTests.cs b/src/Tests/dotnet.Tests/PrintableTableTests.cs index 974a4dd22c14..ac653e6f2324 100644 --- a/src/Tests/dotnet.Tests/PrintableTableTests.cs +++ b/src/Tests/dotnet.Tests/PrintableTableTests.cs @@ -1,14 +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 FluentAssertions; using Microsoft.DotNet.Cli; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/dotnet.Tests/RuntimeConfigTests.cs b/src/Tests/dotnet.Tests/RuntimeConfigTests.cs index 2148da2a5d2a..9e21418a8053 100644 --- a/src/Tests/dotnet.Tests/RuntimeConfigTests.cs +++ b/src/Tests/dotnet.Tests/RuntimeConfigTests.cs @@ -1,16 +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.IO; using System.Runtime.CompilerServices; -using System.Text.Json; -using FluentAssertions; using Microsoft.DotNet.Tools.Common; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/dotnet.Tests/TelemetryCommandTest.cs b/src/Tests/dotnet.Tests/TelemetryCommandTest.cs index 13e03bd2359b..590f89ceb0eb 100644 --- a/src/Tests/dotnet.Tests/TelemetryCommandTest.cs +++ b/src/Tests/dotnet.Tests/TelemetryCommandTest.cs @@ -1,16 +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 FluentAssertions; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Telemetry; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Tools.Test.Utilities; -using System.Collections.Generic; -using System; -using Xunit; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/dotnet.Tests/TelemetryCommonPropertiesTests.cs b/src/Tests/dotnet.Tests/TelemetryCommonPropertiesTests.cs index 29c24e2284a9..36a641beb0c7 100644 --- a/src/Tests/dotnet.Tests/TelemetryCommonPropertiesTests.cs +++ b/src/Tests/dotnet.Tests/TelemetryCommonPropertiesTests.cs @@ -1,15 +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 FluentAssertions; -using Xunit; -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; using Microsoft.DotNet.Cli.Telemetry; using Microsoft.DotNet.Configurer; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/dotnet.Tests/TelemetryFilterTest.cs b/src/Tests/dotnet.Tests/TelemetryFilterTest.cs index a9ff04828db9..1896d55ef1a5 100644 --- a/src/Tests/dotnet.Tests/TelemetryFilterTest.cs +++ b/src/Tests/dotnet.Tests/TelemetryFilterTest.cs @@ -1,18 +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 FluentAssertions; -using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Telemetry; using Microsoft.DotNet.Cli.Utils; -using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; -using System.Collections.Generic; -using Xunit; -using Microsoft.NET.TestFramework; -using Xunit.Abstractions; -using System; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/dotnet.Tests/TestAssetExtensions.cs b/src/Tests/dotnet.Tests/TestAssetExtensions.cs index c6f7ae49273f..0d5c57a00232 100644 --- a/src/Tests/dotnet.Tests/TestAssetExtensions.cs +++ b/src/Tests/dotnet.Tests/TestAssetExtensions.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.Linq; using System.Reflection; -using System.Xml.Linq; -using Microsoft.NET.TestFramework; namespace Microsoft.DotNet.Tools.Test.Utilities { diff --git a/src/Tests/dotnet.Tests/TestCommandExtensions.cs b/src/Tests/dotnet.Tests/TestCommandExtensions.cs index 033b927b6f8b..9c80ae7b0f03 100644 --- a/src/Tests/dotnet.Tests/TestCommandExtensions.cs +++ b/src/Tests/dotnet.Tests/TestCommandExtensions.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.Runtime.InteropServices; -using Microsoft.NET.TestFramework.Commands; - namespace Microsoft.DotNet.Tests { public static class TestCommandExtensions diff --git a/src/Tests/dotnet.Tests/ToolSearchTests/NugetSearchApiDeserializerTests.cs b/src/Tests/dotnet.Tests/ToolSearchTests/NugetSearchApiDeserializerTests.cs index 06da00010076..77235277e76b 100644 --- a/src/Tests/dotnet.Tests/ToolSearchTests/NugetSearchApiDeserializerTests.cs +++ b/src/Tests/dotnet.Tests/ToolSearchTests/NugetSearchApiDeserializerTests.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.IO; -using System.Linq; -using FluentAssertions; using Microsoft.DotNet.NugetSearch; using Microsoft.DotNet.ToolPackage; -using Xunit; namespace dotnet.Tests.ToolSearchTests { diff --git a/src/Tests/dotnet.Tests/ToolSearchTests/NugetSearchApiParameterTests.cs b/src/Tests/dotnet.Tests/ToolSearchTests/NugetSearchApiParameterTests.cs index 5c59caaeb215..521e1cb6a523 100644 --- a/src/Tests/dotnet.Tests/ToolSearchTests/NugetSearchApiParameterTests.cs +++ b/src/Tests/dotnet.Tests/ToolSearchTests/NugetSearchApiParameterTests.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 FluentAssertions; using Microsoft.DotNet.NugetSearch; -using Xunit; using Microsoft.DotNet.Cli.Utils; -using System.CommandLine; -using System.CommandLine.Parsing; using Parser = Microsoft.DotNet.Cli.Parser; namespace dotnet.Tests.ToolSearchTests diff --git a/src/Tests/dotnet.Tests/ToolSearchTests/NugetSearchApiRequestTests.cs b/src/Tests/dotnet.Tests/ToolSearchTests/NugetSearchApiRequestTests.cs index fcfe5121a02a..190abece2f94 100644 --- a/src/Tests/dotnet.Tests/ToolSearchTests/NugetSearchApiRequestTests.cs +++ b/src/Tests/dotnet.Tests/ToolSearchTests/NugetSearchApiRequestTests.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 FluentAssertions; using Microsoft.DotNet.NugetSearch; -using Xunit; namespace dotnet.Tests.ToolSearchTests { diff --git a/src/Tests/dotnet.Tests/ToolSearchTests/SearchResultPrinterTests.cs b/src/Tests/dotnet.Tests/ToolSearchTests/SearchResultPrinterTests.cs index e893b20e60f6..65d6edb06e94 100644 --- a/src/Tests/dotnet.Tests/ToolSearchTests/SearchResultPrinterTests.cs +++ b/src/Tests/dotnet.Tests/ToolSearchTests/SearchResultPrinterTests.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.Collections.Generic; -using System.Linq; -using FluentAssertions; using Microsoft.DotNet.ToolPackage; using Microsoft.DotNet.Tools.Tool.Search; -using Microsoft.NET.TestFramework.Utilities; -using Xunit; namespace dotnet.Tests.ToolSearchTests { diff --git a/src/Tests/dotnet.Tests/VersionTest.cs b/src/Tests/dotnet.Tests/VersionTest.cs index 6de9e6c482a5..78ad473d3949 100644 --- a/src/Tests/dotnet.Tests/VersionTest.cs +++ b/src/Tests/dotnet.Tests/VersionTest.cs @@ -1,20 +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.IO; -using System.Collections.Generic; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Cli; -using Microsoft.DotNet.Tools.Test.Utilities; -using Xunit; -using FluentAssertions; using System.Reflection; -using System.Linq; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; namespace Microsoft.DotNet.Tests diff --git a/src/Tests/dotnet.Tests/WindowsInstallerTests.cs b/src/Tests/dotnet.Tests/WindowsInstallerTests.cs index 86eae2e9dbb0..d83fb0fa1a36 100644 --- a/src/Tests/dotnet.Tests/WindowsInstallerTests.cs +++ b/src/Tests/dotnet.Tests/WindowsInstallerTests.cs @@ -1,19 +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.ComponentModel; -using System.IO; using System.IO.Pipes; using System.Reflection; -using System.Runtime.InteropServices; using System.Runtime.Versioning; -using System.Threading.Tasks; using Microsoft.DotNet.Installer.Windows; using Microsoft.DotNet.Installer.Windows.Security; -using Microsoft.DotNet.Workloads.Workload; -using Microsoft.NET.TestFramework; -using Xunit; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/DotnetMsbuildInProcTests.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/DotnetMsbuildInProcTests.cs index ffe4f4a4ff99..ca853749938b 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/DotnetMsbuildInProcTests.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/DotnetMsbuildInProcTests.cs @@ -1,17 +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.Text; -using FluentAssertions; using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Tools.MSBuild; -using Microsoft.NET.TestFramework; -using Xunit; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.MSBuild.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/FakeTelemetry.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/FakeTelemetry.cs index b6e0783e9071..ae1906f29897 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/FakeTelemetry.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/FakeTelemetry.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Cli.Telemetry; -using System.Collections.Generic; namespace Microsoft.DotNet.Cli.MSBuild.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetBuildInvocation.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetBuildInvocation.cs index 3d8be2fa8be0..60b3566e25c5 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetBuildInvocation.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetBuildInvocation.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 FluentAssertions; -using Microsoft.DotNet.Tools.Build; -using Microsoft.NET.TestFramework; -using Xunit; using CLIBuildCommand = Microsoft.DotNet.Tools.Build.BuildCommand; namespace Microsoft.DotNet.Cli.MSBuild.Tests diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetCleanInvocation.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetCleanInvocation.cs index 5538c1e0fbc5..7b9e55ae0366 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetCleanInvocation.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetCleanInvocation.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 FluentAssertions; -using Microsoft.DotNet.Tools.Clean; -using Microsoft.NET.TestFramework; -using Xunit; using CLICleanCommand = Microsoft.DotNet.Tools.Clean.CleanCommand; namespace Microsoft.DotNet.Cli.MSBuild.Tests diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetMSBuildInvocation.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetMSBuildInvocation.cs index d446122794d4..1c8e48c7d4f4 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetMSBuildInvocation.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetMSBuildInvocation.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 FluentAssertions; -using Microsoft.DotNet.Tools.MSBuild; -using Microsoft.NET.TestFramework; -using Xunit; using CLIMSBuildCommand = Microsoft.DotNet.Tools.MSBuild.MSBuildCommand; namespace Microsoft.DotNet.Cli.MSBuild.Tests diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetOsArchOptions.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetOsArchOptions.cs index 9ef2ad2aba26..a1e4980d7f0f 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetOsArchOptions.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetOsArchOptions.cs @@ -1,16 +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 FluentAssertions; -using Xunit; using Microsoft.DotNet.Cli.Utils; -using System; -using Microsoft.NET.TestFramework; using Microsoft.DotNet.Tools; -using System.Runtime.InteropServices; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework.Commands; -using Microsoft.NET.TestFramework.Assertions; using BuildCommand = Microsoft.DotNet.Tools.Build.BuildCommand; namespace Microsoft.DotNet.Cli.MSBuild.Tests diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetPackInvocation.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetPackInvocation.cs index 31938f5fc967..e7de76a4d8b7 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetPackInvocation.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetPackInvocation.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 Microsoft.DotNet.Tools.Pack; -using FluentAssertions; -using Xunit; -using System; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; -using Microsoft.NET.TestFramework; using CLIPackCommand = Microsoft.DotNet.Tools.Pack.PackCommand; namespace Microsoft.DotNet.Cli.MSBuild.Tests diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetPublishInvocation.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetPublishInvocation.cs index b0da999ea39c..dc5328965890 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetPublishInvocation.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetPublishInvocation.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 FluentAssertions; -using System.Linq; -using Microsoft.DotNet.Tools.Publish; -using Xunit; -using Xunit.Abstractions; -using Microsoft.NET.TestFramework; using CLIPublishCommand = Microsoft.DotNet.Tools.Publish.PublishCommand; namespace Microsoft.DotNet.Cli.MSBuild.Tests diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetRestoreInvocation.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetRestoreInvocation.cs index 586b2463ca49..bb2bae786edc 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetRestoreInvocation.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetRestoreInvocation.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 FluentAssertions; -using Microsoft.DotNet.Tools.Restore; -using Microsoft.NET.TestFramework; -using Xunit; using CLIRestoreCommand = Microsoft.DotNet.Tools.Restore.RestoreCommand; namespace Microsoft.DotNet.Cli.MSBuild.Tests diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetRunInvocation.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetRunInvocation.cs index 86bf2c4a0767..4adca0329fca 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetRunInvocation.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetRunInvocation.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 FluentAssertions; -using Xunit; using Microsoft.DotNet.Tools.Run; -using Microsoft.NET.TestFramework; namespace Microsoft.DotNet.Cli.MSBuild.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetStoreInvocation.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetStoreInvocation.cs index 3300d9437064..07e4dd9d1f1d 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetStoreInvocation.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetStoreInvocation.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 FluentAssertions; using Microsoft.DotNet.Tools.Store; -using Microsoft.NET.TestFramework; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; -using Xunit; namespace Microsoft.DotNet.Cli.MSBuild.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetTestInvocation.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetTestInvocation.cs index 5600f9a4ee40..4cde7412237d 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetTestInvocation.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetTestInvocation.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 FluentAssertions; -using Microsoft.DotNet.Tools.Test; -using Microsoft.NET.TestFramework; -using Xunit; using CLITestCommand = Microsoft.DotNet.Tools.Test.TestCommand; namespace Microsoft.DotNet.Cli.MSBuild.Tests diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetVsTestForwardingApp.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetVsTestForwardingApp.cs index 4d69ab704227..fe1fd7bd8e29 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetVsTestForwardingApp.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenDotnetVsTestForwardingApp.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 Microsoft.DotNet.Tools.VSTest; -using FluentAssertions; -using Xunit; -using System; -using System.IO; - namespace Microsoft.DotNet.Cli.MSBuild.Tests { public class GivenDotnetVsTestForwardingApp diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenForwardingApp.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenForwardingApp.cs index 4782ffd890e3..efe5715793a9 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenForwardingApp.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenForwardingApp.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.Text; -using Xunit; -using FluentAssertions; -using Microsoft.DotNet.Tools.Test.Utilities; -using Microsoft.NET.TestFramework; - namespace Microsoft.DotNet.Cli { public class GivenForwardingApp diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenMSBuildLogger.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenMSBuildLogger.cs index 9770540a017d..236b58bee270 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenMSBuildLogger.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenMSBuildLogger.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 FluentAssertions; -using Xunit; using Microsoft.DotNet.Tools.MSBuild; -using Microsoft.DotNet.Cli.Telemetry; using Microsoft.Build.Framework; -using System.Collections.Generic; namespace Microsoft.DotNet.Cli.MSBuild.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenMsbuildForwardingApp.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenMsbuildForwardingApp.cs index 803af4229bbe..d94e9ab7250f 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/GivenMsbuildForwardingApp.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/GivenMsbuildForwardingApp.cs @@ -1,14 +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.IO; using Microsoft.DotNet.Tools.MSBuild; -using FluentAssertions; -using Xunit; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Xunit.Abstractions; namespace Microsoft.DotNet.Cli.MSBuild.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/LogEntry.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/LogEntry.cs index a90a4972a1d8..2788e9cc6e56 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/LogEntry.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/LogEntry.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; - namespace Microsoft.DotNet.Cli.MSBuild.Tests { public class LogEntry diff --git a/src/Tests/dotnet.Tests/dotnet-msbuild/TestPathUtilities.cs b/src/Tests/dotnet.Tests/dotnet-msbuild/TestPathUtilities.cs index ea69a4b3900a..021955cb5e07 100644 --- a/src/Tests/dotnet.Tests/dotnet-msbuild/TestPathUtilities.cs +++ b/src/Tests/dotnet.Tests/dotnet-msbuild/TestPathUtilities.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.Runtime.InteropServices; - namespace Microsoft.DotNet.Cli.MSBuild.Tests { public static class TestPathUtilities diff --git a/src/Tests/dotnet.Tests/dotnet-new/CapabilityExpressionEvaluationTests.cs b/src/Tests/dotnet.Tests/dotnet-new/CapabilityExpressionEvaluationTests.cs index 93b75ed15275..01bf6600743c 100644 --- a/src/Tests/dotnet.Tests/dotnet-new/CapabilityExpressionEvaluationTests.cs +++ b/src/Tests/dotnet.Tests/dotnet-new/CapabilityExpressionEvaluationTests.cs @@ -3,10 +3,7 @@ #nullable enable -using System; -using System.Collections.Generic; using Microsoft.TemplateEngine.MSBuildEvaluation; -using Xunit; namespace Microsoft.DotNet.Cli.New.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-new/DotnetAddPostActionTests.cs b/src/Tests/dotnet.Tests/dotnet-new/DotnetAddPostActionTests.cs index 00394aed41f3..9ff03e95badf 100644 --- a/src/Tests/dotnet.Tests/dotnet-new/DotnetAddPostActionTests.cs +++ b/src/Tests/dotnet.Tests/dotnet-new/DotnetAddPostActionTests.cs @@ -3,14 +3,10 @@ #nullable enable -using System; -using System.Collections.Generic; -using System.IO; using Microsoft.DotNet.Tools.New.PostActionProcessors; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Mocks; using Microsoft.TemplateEngine.TestHelper; -using Xunit; namespace Microsoft.DotNet.Cli.New.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-new/DotnetRestorePostActionTests.cs b/src/Tests/dotnet.Tests/dotnet-new/DotnetRestorePostActionTests.cs index 6ebc3c36a95c..23f1347a668c 100644 --- a/src/Tests/dotnet.Tests/dotnet-new/DotnetRestorePostActionTests.cs +++ b/src/Tests/dotnet.Tests/dotnet-new/DotnetRestorePostActionTests.cs @@ -3,13 +3,10 @@ #nullable enable -using System.Collections.Generic; -using System.IO; using Microsoft.DotNet.Tools.New.PostActionProcessors; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Mocks; using Microsoft.TemplateEngine.TestHelper; -using Xunit; namespace Microsoft.DotNet.Cli.New.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-new/DotnetSlnPostActionTests.cs b/src/Tests/dotnet.Tests/dotnet-new/DotnetSlnPostActionTests.cs index 41a4acceb70d..7c44245c89c8 100644 --- a/src/Tests/dotnet.Tests/dotnet-new/DotnetSlnPostActionTests.cs +++ b/src/Tests/dotnet.Tests/dotnet-new/DotnetSlnPostActionTests.cs @@ -3,14 +3,10 @@ #nullable enable -using System.Collections.Generic; -using System.IO; -using System.Linq; using Microsoft.DotNet.Tools.New.PostActionProcessors; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Mocks; using Microsoft.TemplateEngine.TestHelper; -using Xunit; namespace Microsoft.DotNet.Cli.New.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-new/SdkInfoProviderTests.cs b/src/Tests/dotnet.Tests/dotnet-new/SdkInfoProviderTests.cs index 9919aaccb0b1..e8f2ac15e7e2 100644 --- a/src/Tests/dotnet.Tests/dotnet-new/SdkInfoProviderTests.cs +++ b/src/Tests/dotnet.Tests/dotnet-new/SdkInfoProviderTests.cs @@ -3,16 +3,8 @@ #nullable enable -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using FluentAssertions; using Microsoft.DotNet.Tools.New; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; using Microsoft.TemplateEngine.Abstractions.Components; -using Xunit; namespace Microsoft.DotNet.Cli.New.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-new/WorkloadsInfoProviderTests.cs b/src/Tests/dotnet.Tests/dotnet-new/WorkloadsInfoProviderTests.cs index 21578b18cb75..8dc621494ff7 100644 --- a/src/Tests/dotnet.Tests/dotnet-new/WorkloadsInfoProviderTests.cs +++ b/src/Tests/dotnet.Tests/dotnet-new/WorkloadsInfoProviderTests.cs @@ -3,18 +3,12 @@ #nullable enable -using FluentAssertions; using Microsoft.DotNet.Tools.New; using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord; using Microsoft.DotNet.Workloads.Workload.List; using Microsoft.NET.Sdk.WorkloadManifestReader; using Moq; -using Microsoft.NET.TestFramework.Assertions; using Microsoft.TemplateEngine.Abstractions.Components; -using Xunit; -using System.Linq; -using System.Collections.Generic; -using System; namespace Microsoft.DotNet.Cli.New.Tests { diff --git a/src/Tests/dotnet.Tests/dotnet-workload-base/MockWorkloadInfoHelper.cs b/src/Tests/dotnet.Tests/dotnet-workload-base/MockWorkloadInfoHelper.cs index a2f80b5fb144..56ff97eb18bc 100644 --- a/src/Tests/dotnet.Tests/dotnet-workload-base/MockWorkloadInfoHelper.cs +++ b/src/Tests/dotnet.Tests/dotnet-workload-base/MockWorkloadInfoHelper.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 dotnet.Tests.dotnet_workload_base { internal class MockWorkloadInfoHelper diff --git a/src/Tests/dotnet.Tests/dotnet-workload-clean/GivenDotnetWorkloadClean.cs b/src/Tests/dotnet.Tests/dotnet-workload-clean/GivenDotnetWorkloadClean.cs index 406f8f20fb28..92326e00fdd9 100644 --- a/src/Tests/dotnet.Tests/dotnet-workload-clean/GivenDotnetWorkloadClean.cs +++ b/src/Tests/dotnet.Tests/dotnet-workload-clean/GivenDotnetWorkloadClean.cs @@ -2,24 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; -using System.IO; -using Xunit.Abstractions; -using Xunit; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Utilities; using Microsoft.DotNet.Cli.NuGetPackageDownloader; using Microsoft.DotNet.Cli.Workload.Install.Tests; using ManifestReaderTests; using Microsoft.NET.Sdk.WorkloadManifestReader; using Microsoft.DotNet.Workloads.Workload; -using FluentAssertions; using Microsoft.DotNet.Workloads.Workload.Install; -using Microsoft.DotNet.Workloads.Workload.Repair; using Microsoft.DotNet.Workloads.Workload.Clean; -using Microsoft.DotNet.Workloads.Workload.List; -using Microsoft.DotNet.Cli.Workload.List.Tests; -using System.Collections.Generic; -using System.CommandLine.Parsing; namespace Microsoft.DotNet.Cli.Workload.Clean.Tests { diff --git a/src/Tests/msbuild.Integration.Tests/GivenDotnetInvokesMSBuild.cs b/src/Tests/msbuild.Integration.Tests/GivenDotnetInvokesMSBuild.cs index 7f4571fd0b3d..fad6783795cc 100644 --- a/src/Tests/msbuild.Integration.Tests/GivenDotnetInvokesMSBuild.cs +++ b/src/Tests/msbuild.Integration.Tests/GivenDotnetInvokesMSBuild.cs @@ -1,17 +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.Tools.Test.Utilities; -using Xunit; -using System; -using System.IO; -using FluentAssertions; -using Microsoft.DotNet.Cli.Utils; -using Microsoft.NET.TestFramework; -using Microsoft.NET.TestFramework.Assertions; -using Microsoft.NET.TestFramework.Commands; -using Xunit.Abstractions; - namespace Microsoft.DotNet.Cli.MSBuild.IntegrationTests { public class GivenDotnetInvokesMSBuild : SdkTest diff --git a/src/Tests/trustedroots.Tests/CtlFileTests.cs b/src/Tests/trustedroots.Tests/CtlFileTests.cs index ce0edbf1c4b4..6d24a2a3e50e 100644 --- a/src/Tests/trustedroots.Tests/CtlFileTests.cs +++ b/src/Tests/trustedroots.Tests/CtlFileTests.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.Security.Cryptography; using System.Security.Cryptography.X509Certificates; -using FluentAssertions; -using Microsoft.NET.TestFramework; namespace Microsoft.DotNet.Tests { diff --git a/src/Tests/trustedroots.Tests/GivenCodeSigningCtlFile.cs b/src/Tests/trustedroots.Tests/GivenCodeSigningCtlFile.cs index ed4389232449..8304576ffa48 100644 --- a/src/Tests/trustedroots.Tests/GivenCodeSigningCtlFile.cs +++ b/src/Tests/trustedroots.Tests/GivenCodeSigningCtlFile.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.Collections.Generic; -using System.Threading; -using Xunit; - namespace Microsoft.DotNet.Tests { public class GivenCodeSigningCtlFile : CtlFileTests diff --git a/src/Tests/trustedroots.Tests/GivenTimestampingCtlFile.cs b/src/Tests/trustedroots.Tests/GivenTimestampingCtlFile.cs index 85dbd657838a..8096fe3a1d9e 100644 --- a/src/Tests/trustedroots.Tests/GivenTimestampingCtlFile.cs +++ b/src/Tests/trustedroots.Tests/GivenTimestampingCtlFile.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.Collections.Generic; -using System.Threading; -using Xunit; - namespace Microsoft.DotNet.Tests { public class GivenTimestampingCtlFile : CtlFileTests diff --git a/src/WebSdk/Publish/Tasks/AppSettingsModel.cs b/src/WebSdk/Publish/Tasks/AppSettingsModel.cs index e186f2d66175..4b9baa24ae28 100644 --- a/src/WebSdk/Publish/Tasks/AppSettingsModel.cs +++ b/src/WebSdk/Publish/Tasks/AppSettingsModel.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.Text.Json.Serialization; namespace Microsoft.NET.Sdk.Publish.Tasks diff --git a/src/WebSdk/Publish/Tasks/AppSettingsTransform.cs b/src/WebSdk/Publish/Tasks/AppSettingsTransform.cs index 7dd9691dd82d..b3ac4be3a1d2 100644 --- a/src/WebSdk/Publish/Tasks/AppSettingsTransform.cs +++ b/src/WebSdk/Publish/Tasks/AppSettingsTransform.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.IO; using System.Text.Json; using Microsoft.Build.Framework; diff --git a/src/WebSdk/Publish/Tasks/EnvironmentHelper.cs b/src/WebSdk/Publish/Tasks/EnvironmentHelper.cs index 8b428fcd312c..c0ec36aeb075 100644 --- a/src/WebSdk/Publish/Tasks/EnvironmentHelper.cs +++ b/src/WebSdk/Publish/Tasks/EnvironmentHelper.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.NET.Sdk.Publish.Tasks { public class EnvironmentHelper diff --git a/src/WebSdk/Publish/Tasks/Kudu/KuduConnect.cs b/src/WebSdk/Publish/Tasks/Kudu/KuduConnect.cs index 6552634d07ec..e251a8c16f19 100644 --- a/src/WebSdk/Publish/Tasks/Kudu/KuduConnect.cs +++ b/src/WebSdk/Publish/Tasks/Kudu/KuduConnect.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Utilities; -using System; -using System.Text; namespace Microsoft.NET.Sdk.Publish.Tasks.Kudu { diff --git a/src/WebSdk/Publish/Tasks/Kudu/KuduVfsDeploy.cs b/src/WebSdk/Publish/Tasks/Kudu/KuduVfsDeploy.cs index 67c0d00294d1..b18edca37c03 100644 --- a/src/WebSdk/Publish/Tasks/Kudu/KuduVfsDeploy.cs +++ b/src/WebSdk/Publish/Tasks/Kudu/KuduVfsDeploy.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.Linq; using System.Net.Http; using Microsoft.Build.Utilities; using Microsoft.NET.Sdk.Publish.Tasks.Properties; diff --git a/src/WebSdk/Publish/Tasks/Kudu/KuduZipDeploy.cs b/src/WebSdk/Publish/Tasks/Kudu/KuduZipDeploy.cs index 2a1b01409317..70652305bc95 100644 --- a/src/WebSdk/Publish/Tasks/Kudu/KuduZipDeploy.cs +++ b/src/WebSdk/Publish/Tasks/Kudu/KuduZipDeploy.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.IO; using System.Net.Http; using Microsoft.Build.Utilities; using Microsoft.NET.Sdk.Publish.Tasks.Properties; diff --git a/src/WebSdk/Publish/Tasks/MsDeploy/DynamicAssembly.cs b/src/WebSdk/Publish/Tasks/MsDeploy/DynamicAssembly.cs index 9547704a9494..f9e841cc8d93 100644 --- a/src/WebSdk/Publish/Tasks/MsDeploy/DynamicAssembly.cs +++ b/src/WebSdk/Publish/Tasks/MsDeploy/DynamicAssembly.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.Diagnostics; -using System.IO; -using System.Linq; using System.Linq.Expressions; using System.Reflection; diff --git a/src/WebSdk/Publish/Tasks/MsDeploy/VSHostObject.cs b/src/WebSdk/Publish/Tasks/MsDeploy/VSHostObject.cs index 14fc98138a28..448dad35a880 100644 --- a/src/WebSdk/Publish/Tasks/MsDeploy/VSHostObject.cs +++ b/src/WebSdk/Publish/Tasks/MsDeploy/VSHostObject.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.Linq; using Microsoft.Build.Framework; namespace Microsoft.NET.Sdk.Publish.Tasks.MsDeploy diff --git a/src/WebSdk/Publish/Tasks/MsDeploy/VSMSDeployHostObject.cs b/src/WebSdk/Publish/Tasks/MsDeploy/VSMSDeployHostObject.cs index 61ccd651105a..52d3b77a77d5 100644 --- a/src/WebSdk/Publish/Tasks/MsDeploy/VSMSDeployHostObject.cs +++ b/src/WebSdk/Publish/Tasks/MsDeploy/VSMSDeployHostObject.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; -using System.Collections.Generic; -using System.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/WebSdk/Publish/Tasks/Tasks/GenerateEFSQLScripts.cs b/src/WebSdk/Publish/Tasks/Tasks/GenerateEFSQLScripts.cs index 618c1a59ccec..45a3533686b1 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/GenerateEFSQLScripts.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/GenerateEFSQLScripts.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.Diagnostics; -using System.IO; -using System.Text; using Microsoft.Build.Evaluation; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/src/WebSdk/Publish/Tasks/Tasks/GenerateEnvTransform.cs b/src/WebSdk/Publish/Tasks/Tasks/GenerateEnvTransform.cs index 372deae0400d..c62b69059bb2 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/GenerateEnvTransform.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/GenerateEnvTransform.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.Xml.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.NET.Sdk.Publish.Tasks { diff --git a/src/WebSdk/Publish/Tasks/Tasks/Kudu/KuduDeploy.cs b/src/WebSdk/Publish/Tasks/Tasks/Kudu/KuduDeploy.cs index 0118a27d73d0..1f7a3fe03621 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/Kudu/KuduDeploy.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/Kudu/KuduDeploy.cs @@ -11,10 +11,6 @@ using Framework = Microsoft.Build.Framework; using Utilities = Microsoft.Build.Utilities; -using System.Threading.Tasks; -using System; -using System.IO; -using System.Collections.Generic; using Microsoft.NET.Sdk.Publish.Tasks.Properties; namespace Microsoft.NET.Sdk.Publish.Tasks.Kudu diff --git a/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/CreateMSDeployScript.cs b/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/CreateMSDeployScript.cs index d6f1480e8dc5..2f2d02ce2dff 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/CreateMSDeployScript.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/CreateMSDeployScript.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.IO; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using Microsoft.NET.Sdk.Publish.Tasks.Properties; namespace Microsoft.NET.Sdk.Publish.Tasks.MsDeploy diff --git a/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/GetPassword.cs b/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/GetPassword.cs index 2c55ba0ea165..22c04cc8f2b5 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/GetPassword.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/GetPassword.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.Text; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.NET.Sdk.Publish.Tasks.MsDeploy { diff --git a/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/ImportParameterFile.cs b/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/ImportParameterFile.cs index bc56adab4d54..724f08baa29b 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/ImportParameterFile.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/ImportParameterFile.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; - namespace Microsoft.NET.Sdk.Publish.Tasks.Tasks.MsDeploy { using Microsoft.Build.Utilities; diff --git a/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/NormalizeServiceUrl.cs b/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/NormalizeServiceUrl.cs index eefc1bad1ccc..6d8af0563e59 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/NormalizeServiceUrl.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/MsDeploy/NormalizeServiceUrl.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.Globalization; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.NET.Sdk.Publish.Tasks.MsDeploy { diff --git a/src/WebSdk/Publish/Tasks/Tasks/TransformAppSettings.cs b/src/WebSdk/Publish/Tasks/Tasks/TransformAppSettings.cs index 77e5b83e9985..8e36cbca3625 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/TransformAppSettings.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/TransformAppSettings.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 Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.NET.Sdk.Publish.Tasks { diff --git a/src/WebSdk/Publish/Tasks/Tasks/TransformWebConfig.cs b/src/WebSdk/Publish/Tasks/Tasks/TransformWebConfig.cs index f8406163da9c..99c816a52ee5 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/TransformWebConfig.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/TransformWebConfig.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.IO; using System.Xml; -using System.Xml.Linq; -using System.Linq; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.NET.Sdk.Publish.Tasks { diff --git a/src/WebSdk/Publish/Tasks/Tasks/ValidateParameter.cs b/src/WebSdk/Publish/Tasks/Tasks/ValidateParameter.cs index aa7bbe1e604c..3480155a1363 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/ValidateParameter.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/ValidateParameter.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.Globalization; using Microsoft.Build.Framework; using Microsoft.NET.Sdk.Publish.Tasks.Properties; diff --git a/src/WebSdk/Publish/Tasks/Tasks/WebJobs/GenerateRunCommandFile.cs b/src/WebSdk/Publish/Tasks/Tasks/WebJobs/GenerateRunCommandFile.cs index d98871d045cb..f97b153b14af 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/WebJobs/GenerateRunCommandFile.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/WebJobs/GenerateRunCommandFile.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.IO; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.NET.Sdk.Publish.Tasks.WebJobs { diff --git a/src/WebSdk/Publish/Tasks/Tasks/Xdt/TaskTransformationLogger.cs b/src/WebSdk/Publish/Tasks/Tasks/Xdt/TaskTransformationLogger.cs index 39fd07eda251..32a631025d62 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/Xdt/TaskTransformationLogger.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/Xdt/TaskTransformationLogger.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.Diagnostics; -using System.Text; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.Web.XmlTransform; diff --git a/src/WebSdk/Publish/Tasks/Tasks/Xdt/TransformXml.cs b/src/WebSdk/Publish/Tasks/Tasks/Xdt/TransformXml.cs index ab5d36a09944..7952cb163e81 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/Xdt/TransformXml.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/Xdt/TransformXml.cs @@ -2,12 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using Microsoft.NET.Sdk.Publish.Tasks.MsDeploy; using Microsoft.NET.Sdk.Publish.Tasks.Properties; using Microsoft.Web.XmlTransform; -using System; -using System.Diagnostics; namespace Microsoft.NET.Sdk.Publish.Tasks.Xdt { diff --git a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/CreateZipFile.cs b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/CreateZipFile.cs index f3bac0913380..c7355883f550 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/CreateZipFile.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/CreateZipFile.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.IO; using System.IO.Compression; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; namespace Microsoft.NET.Sdk.Publish.Tasks.ZipDeploy { diff --git a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/DefaultHttpClient.cs b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/DefaultHttpClient.cs index 37a7372b131c..341febc966e5 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/DefaultHttpClient.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/DefaultHttpClient.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.Net.Http; using System.Net.Http.Headers; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.Publish.Tasks.ZipDeploy { diff --git a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/DeploymentResponse.cs b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/DeploymentResponse.cs index 70bdd5a5c62e..d6e47625b19b 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/DeploymentResponse.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/DeploymentResponse.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.Serialization; namespace Microsoft.NET.Sdk.Publish.Tasks.ZipDeploy diff --git a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/HttpClientHelpers.cs b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/HttpClientHelpers.cs index c9ca66923a6a..8ff762cbaddb 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/HttpClientHelpers.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/HttpClientHelpers.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.IO; using System.Net; using System.Net.Http; using System.Net.Http.Headers; -using System.Text; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.Publish.Tasks.ZipDeploy { diff --git a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/HttpResponseMessageForStatusCode.cs b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/HttpResponseMessageForStatusCode.cs index 83a7317b2afa..fa9a10401f9f 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/HttpResponseMessageForStatusCode.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/HttpResponseMessageForStatusCode.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.Collections.Generic; -using System.IO; using System.Net; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.Publish.Tasks.ZipDeploy { diff --git a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/HttpResponseMessageWrapper.cs b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/HttpResponseMessageWrapper.cs index 55d6ebe45088..2ad5d693d2e7 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/HttpResponseMessageWrapper.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/HttpResponseMessageWrapper.cs @@ -1,15 +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.Net; using System.Net.Http; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.Publish.Tasks.ZipDeploy -{ +{ public class HttpResponseMessageWrapper : IHttpResponse { private readonly HttpResponseMessage _message; diff --git a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/IHttpClient.cs b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/IHttpClient.cs index 7a3e2ef5e04f..58af372a48a0 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/IHttpClient.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/IHttpClient.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.Net.Http; using System.Net.Http.Headers; -using System.Threading; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.Publish.Tasks.ZipDeploy { diff --git a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/IHttpResponse.cs b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/IHttpResponse.cs index 861d114a73a9..914832aad511 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/IHttpResponse.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/IHttpResponse.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.Collections.Generic; -using System.IO; using System.Net; -using System.Threading.Tasks; namespace Microsoft.NET.Sdk.Publish.Tasks.ZipDeploy { diff --git a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/ZipDeploy.cs b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/ZipDeploy.cs index 7fe096023ede..4162ef5adfba 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/ZipDeploy.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/ZipDeploy.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.IO; -using System.Linq; using System.Net; -using System.Text; using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; using Microsoft.NET.Sdk.Publish.Tasks.MsDeploy; using Microsoft.NET.Sdk.Publish.Tasks.Properties; diff --git a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/ZipDeploymentStatus.cs b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/ZipDeploymentStatus.cs index cddcbe743068..05618d392e9e 100644 --- a/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/ZipDeploymentStatus.cs +++ b/src/WebSdk/Publish/Tasks/Tasks/ZipDeploy/ZipDeploymentStatus.cs @@ -1,17 +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.Net; using System.Net.Http; -using System.Text; using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Build.Utilities; -using Microsoft.NET.Sdk.Publish.Tasks.MsDeploy; using Microsoft.NET.Sdk.Publish.Tasks.Properties; using Task = System.Threading.Tasks.Task; diff --git a/src/WebSdk/Publish/Tasks/WebConfigTelemetry.cs b/src/WebSdk/Publish/Tasks/WebConfigTelemetry.cs index 7c7a9ed3281a..aa8ad9a028ac 100644 --- a/src/WebSdk/Publish/Tasks/WebConfigTelemetry.cs +++ b/src/WebSdk/Publish/Tasks/WebConfigTelemetry.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.RegularExpressions; -using System.Xml.Linq; using Microsoft.DotNet.Cli; namespace Microsoft.NET.Sdk.Publish.Tasks diff --git a/src/WebSdk/Publish/Tasks/WebConfigTransform.cs b/src/WebSdk/Publish/Tasks/WebConfigTransform.cs index b14aac1e39ac..d8333362287a 100644 --- a/src/WebSdk/Publish/Tasks/WebConfigTransform.cs +++ b/src/WebSdk/Publish/Tasks/WebConfigTransform.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 System.Linq; -using System.Xml.Linq; using Microsoft.NET.Sdk.Publish.Tasks.Properties; namespace Microsoft.NET.Sdk.Publish.Tasks diff --git a/src/WebSdk/Publish/Tasks/WebJobsCommandGenerator.cs b/src/WebSdk/Publish/Tasks/WebJobsCommandGenerator.cs index 3f46f2d7040e..40d7f83f5c54 100644 --- a/src/WebSdk/Publish/Tasks/WebJobsCommandGenerator.cs +++ b/src/WebSdk/Publish/Tasks/WebJobsCommandGenerator.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.IO; - namespace Microsoft.NET.Sdk.Publish.Tasks { public static class WebJobsCommandGenerator