Skip to content

Commit b295f29

Browse files
committed
Removed unused usings.
1 parent 8e74737 commit b295f29

File tree

390 files changed

+1
-885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

390 files changed

+1
-885
lines changed

src/Cli/Microsoft.DotNet.Cli.Sln.Internal/Properties/AssemblyInfo.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Reflection;
54
using System.Runtime.CompilerServices;
65

76
[assembly: InternalsVisibleTo("Microsoft.DotNet.Cli.Sln.Internal.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]

src/Cli/Microsoft.DotNet.Cli.Utils/ArgumentEscaper.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System;
55
using System.Collections.Generic;
6-
using System.Linq;
76
using System.Text;
87

98
namespace Microsoft.DotNet.Cli.Utils

src/Cli/Microsoft.DotNet.Cli.Utils/BuiltInCommand.cs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.Diagnostics;
77
using System.IO;
88
using System.Linq;
9-
using System.Threading;
109
using System.Threading.Tasks;
1110

1211
namespace Microsoft.DotNet.Cli.Utils

src/Cli/Microsoft.DotNet.Cli.Utils/Command.cs

-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
5-
using System.Collections.Generic;
6-
using System.ComponentModel;
75
using System.Diagnostics;
86
using System.IO;
9-
using System.Linq;
107
using System.Runtime.CompilerServices;
11-
using NuGet.Frameworks;
128

139
namespace Microsoft.DotNet.Cli.Utils
1410
{

src/Cli/Microsoft.DotNet.Cli.Utils/DebugHelper.cs

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
5-
using System.CommandLine;
6-
using System.CommandLine.Parsing;
75
using System.Diagnostics;
86
using System.Linq;
97

src/Cli/Microsoft.DotNet.Cli.Utils/Extensions/LockFileExtensions.cs

-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
using Microsoft.DotNet.Tools.Common;
55
using NuGet.Packaging;
66
using NuGet.ProjectModel;
7-
using System;
87
using System.Collections.Generic;
98
using System.Linq;
10-
using System.Text;
119

1210
namespace Microsoft.DotNet.Cli.Utils
1311
{

src/Cli/Microsoft.DotNet.Cli.Utils/FileNameSuffixes.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
54
using System.Runtime.InteropServices;
65

76
namespace Microsoft.DotNet.Cli.Utils

src/Cli/Microsoft.DotNet.Cli.Utils/ForwardingAppImplementation.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System.Collections.Generic;
55
using System.Diagnostics;
6-
using Microsoft.DotNet.Cli.Utils;
76

87
namespace Microsoft.DotNet.Cli.Utils
98
{

src/Cli/Microsoft.DotNet.Cli.Utils/GracefulException.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System;
55
using System.Collections.Generic;
6-
using System.Linq;
76

87
namespace Microsoft.DotNet.Cli.Utils
98
{

src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildPropertyParser.cs

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Collections.Generic;
5-
using System.Diagnostics.CodeAnalysis;
6-
using System.Linq;
75
using System.Text;
86

97
#nullable enable

src/Cli/Microsoft.DotNet.Cli.Utils/WindowsRegistryEnvironmentPathEditor.cs

-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
5-
using System.Collections.Generic;
6-
using System.IO;
7-
using System.Linq;
85
using System.Runtime.InteropServices;
9-
using System.Security.Principal;
106
using System.Threading.Tasks;
117
using Microsoft.Win32;
128

src/Cli/Microsoft.DotNet.Configurer/AspNetCertificateSentinel.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
5-
using System.Collections.Generic;
64
using System.IO;
7-
using System.Text;
85
using Microsoft.DotNet.Cli.Utils;
96
using Microsoft.Extensions.EnvironmentAbstractions;
107

src/Cli/Microsoft.DotNet.Configurer/CliFolderPathCalculator.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System;
55
using System.IO;
6-
using System.Runtime.InteropServices;
76
using Microsoft.DotNet.Cli.Utils;
87
using NuGet.Common;
98

src/Cli/Microsoft.DotNet.Configurer/DotnetFirstTimeUseConfigurer.cs

-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33

44
using System;
55
using System.Collections.Generic;
6-
using System.Diagnostics;
7-
using System.IO;
86
using System.Runtime.InteropServices;
97
using Microsoft.DotNet.Cli.Utils;
10-
using Microsoft.Extensions.EnvironmentAbstractions;
118
using NuGet.Versioning;
129

1310
namespace Microsoft.DotNet.Configurer

src/Cli/Microsoft.DotNet.Configurer/FileSentinel.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.IO;
54
using Microsoft.Extensions.EnvironmentAbstractions;
65

76
namespace Microsoft.DotNet.Configurer

src/Cli/Microsoft.DotNet.Configurer/FirstTimeUseNoticeSentinel.cs

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System.IO;
55
using Microsoft.DotNet.Cli.Utils;
66
using Microsoft.Extensions.EnvironmentAbstractions;
7-
using NuGet.Configuration;
87

98
namespace Microsoft.DotNet.Configurer
109
{

src/Cli/Microsoft.DotNet.Configurer/IFileSentinel.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
5-
64
namespace Microsoft.DotNet.Configurer
75
{
86
public interface IFileSentinel

src/Cli/Microsoft.DotNet.Configurer/NoOpFileSentinel.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.IO;
5-
64
namespace Microsoft.DotNet.Configurer
75
{
86
public class NoOpFileSentinel : IFileSentinel

src/Cli/Microsoft.DotNet.Configurer/NoOpFirstTimeUseNoticeSentinel.cs

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.IO;
5-
using Microsoft.DotNet.Cli.Utils;
6-
using Microsoft.Extensions.EnvironmentAbstractions;
7-
using NuGet.Configuration;
8-
94
namespace Microsoft.DotNet.Configurer
105
{
116
public class NoOpFirstTimeUseNoticeSentinel : IFirstTimeUseNoticeSentinel

src/Cli/Microsoft.DotNet.InternalAbstractions/FileWrapper.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
54
using System.IO;
65

76
namespace Microsoft.Extensions.EnvironmentAbstractions

src/Cli/Microsoft.DotNet.InternalAbstractions/TemporaryDirectory.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System.IO;
55
using Microsoft.Extensions.EnvironmentAbstractions;
6-
using Microsoft.DotNet;
76

87
namespace Microsoft.DotNet.InternalAbstractions
98
{

src/Cli/dotnet/BuildServer/IBuildServer.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
5-
using System.Threading.Tasks;
6-
74
namespace Microsoft.DotNet.BuildServer
85
{
96
internal interface IBuildServer

src/Cli/dotnet/BuildServer/MSBuildServer.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
5-
using System.Threading.Tasks;
64
using Microsoft.Build.Execution;
75

86
namespace Microsoft.DotNet.BuildServer

src/Cli/dotnet/BuildServer/RazorServer.cs

-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
5-
using System.Diagnostics;
65
using System.IO;
7-
using System.Threading.Tasks;
86
using Microsoft.DotNet.Cli;
9-
using Microsoft.DotNet.Cli.Utils;
107
using Microsoft.DotNet.CommandFactory;
11-
using Microsoft.DotNet.Tools;
128
using Microsoft.Extensions.EnvironmentAbstractions;
139

1410
namespace Microsoft.DotNet.BuildServer

src/Cli/dotnet/BuildServer/VBCSCompilerServer.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
54
using System.IO;
65
using System.Reflection;
7-
using System.Threading.Tasks;
86
using Microsoft.DotNet.Cli;
9-
using Microsoft.DotNet.Cli.Utils;
107
using Microsoft.DotNet.CommandFactory;
118

129
namespace Microsoft.DotNet.BuildServer

src/Cli/dotnet/CliTransaction.cs

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
using System;
55
using System.Collections.Generic;
6-
using System.Linq;
7-
using System.Text;
8-
using System.Threading.Tasks;
96

107
namespace Microsoft.DotNet.Cli
118
{

src/Cli/dotnet/CommandBase.cs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.CommandLine;
5-
using System.CommandLine.Parsing;
65

76
namespace Microsoft.DotNet.Cli
87
{

src/Cli/dotnet/CommandFactory/CommandResolution/DefaultCommandResolverPolicy.cs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
5-
using System.Runtime.InteropServices;
65
using Microsoft.DotNet.Cli.Utils;
76

87
namespace Microsoft.DotNet.CommandFactory

src/Cli/dotnet/CommandFactory/CommandResolution/PackagedCommandSpecFactory.cs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using System.Linq;
88
using Microsoft.DotNet.Cli.Utils;
99
using Microsoft.DotNet.Tools.Common;
10-
using NuGet.Packaging;
1110
using NuGet.ProjectModel;
1211

1312
namespace Microsoft.DotNet.CommandFactory

src/Cli/dotnet/CommandFactory/CommandResolution/ProjectDependenciesCommandResolver.cs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.IO;
77
using System.Linq;
88
using Microsoft.DotNet.Cli.Utils;
9-
using Microsoft.DotNet.Tools.Common;
109
using NuGet.Frameworks;
1110
using NuGet.ProjectModel;
1211

src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
using System.Threading;
99
using System.Threading.Tasks;
1010
using Microsoft.DotNet.Cli.Utils;
11-
using Microsoft.DotNet.Tools.Common;
12-
using Microsoft.Extensions.DependencyModel;
13-
using NuGet.Configuration;
1411
using NuGet.Frameworks;
1512
using NuGet.ProjectModel;
1613
using NuGet.Versioning;

src/Cli/dotnet/CommandFactory/CommandResolution/ScriptCommandResolverPolicy.cs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
5-
using System.Runtime.InteropServices;
65
using Microsoft.DotNet.Cli.Utils;
76

87
namespace Microsoft.DotNet.CommandFactory

src/Cli/dotnet/CommandLineInfo.cs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Microsoft.DotNet.Cli.Utils;
77
using LocalizableStrings = Microsoft.DotNet.Cli.Utils.LocalizableStrings;
88
using RuntimeEnvironment = Microsoft.DotNet.Cli.Utils.RuntimeEnvironment;
9-
using WorkloadCommandParser = Microsoft.DotNet.Cli.WorkloadCommandParser;
109

1110
namespace Microsoft.DotNet.Cli
1211
{

src/Cli/dotnet/CommandLineValidation/CommandParsingException.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System;
55
using System.CommandLine;
6-
using System.CommandLine.Parsing;
76

87
namespace Microsoft.DotNet.Cli
98
{

src/Cli/dotnet/DotNetCommandFactory.cs

-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33

44
using System;
55
using System.Collections.Generic;
6-
using System.CommandLine.Invocation;
76
using System.Diagnostics;
8-
using System.Linq;
97
using Microsoft.DotNet.Cli.Utils;
108
using Microsoft.DotNet.CommandFactory;
119
using NuGet.Frameworks;

src/Cli/dotnet/FilePermissionSetter.cs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
5-
using System.Runtime.InteropServices;
65
using Microsoft.DotNet.Cli.Utils;
76

87
namespace Microsoft.DotNet.Tools

src/Cli/dotnet/ICommandRunner.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
5-
using System.Collections.Generic;
6-
74
namespace Microsoft.DotNet.Cli
85
{
96
public interface ICommandRunner

src/Cli/dotnet/Installer/Windows/InstallMessageDispatcher.cs

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.IO.Pipes;
66
using System.Runtime.Versioning;
7-
using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord;
87
using static Microsoft.Win32.Msi.Error;
98
using Microsoft.NET.Sdk.WorkloadManifestReader;
109

src/Cli/dotnet/Installer/Windows/InstallRequestMessage.cs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Text;
5-
using Microsoft.DotNet.Workloads.Workload.Install.InstallRecord;
65
using Newtonsoft.Json;
76

87
namespace Microsoft.DotNet.Installer.Windows

src/Cli/dotnet/Installer/Windows/TimestampedFileLogger.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System;
55
using System.Collections.Concurrent;
6-
using System.Collections.Generic;
76
using System.IO;
87
using System.IO.Pipes;
98
using System.Runtime.Versioning;

src/Cli/dotnet/NuGetForwardingApp.cs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Collections.Generic;
66
using System.IO;
77
using Microsoft.DotNet.Cli;
8-
using Microsoft.DotNet.Cli.Utils;
98

109
namespace Microsoft.DotNet.Tools
1110
{

src/Cli/dotnet/NugetPackageDownloader/RestoreActionConfig.cs

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
5-
using System.Collections.Generic;
6-
using System.IO;
7-
using Microsoft.Extensions.EnvironmentAbstractions;
8-
94
namespace Microsoft.DotNet.Cli.NuGetPackageDownloader
105
{
116
/// <param name="Interactive">The flag to enable nuget authentication plugin.

src/Cli/dotnet/NugetPackageDownloader/WorkloadUnixFilePermissionsFileList.cs

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
using System.IO;
77
using System.Xml;
88
using System.Xml.Serialization;
9-
using Microsoft.DotNet.ToolPackage;
10-
using Microsoft.DotNet.ToolPackage.ToolConfigurationDeserialization;
11-
using Microsoft.DotNet.Tools;
129

1310
namespace Microsoft.DotNet.Cli.NuGetPackageDownloader.WorkloadUnixFilePermissions
1411
{

0 commit comments

Comments
 (0)