Skip to content

Commit 030fb55

Browse files
committed
Fix IDE0065 for CSP (cherry-pick of dotnet#10683)
1 parent c66352b commit 030fb55

File tree

7 files changed

+22
-26
lines changed

7 files changed

+22
-26
lines changed

src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/CsPrimeParser.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@
1111
//
1212
//
1313

14+
using System.Text.RegularExpressions;
15+
using System.Collections;
16+
using System.Text;
17+
1418
namespace MS.Internal.Csp
1519
{
16-
using System;
17-
using System.IO;
18-
using System.Text;
19-
using System.Text.RegularExpressions;
20-
using System.Collections;
21-
2220
internal sealed class CsPrimeParser
2321
{
2422
private struct Position

src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/CsPrimeRuntime.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
// provided to the project that Csp.exe will execute.
1515
//
1616

17+
using System.Text;
18+
1719
namespace MS.Internal.Csp
1820
{
19-
using System;
20-
using System.Text;
21-
2221
public sealed class CsPrimeRuntime
2322
{
2423
//------------------------------------------------------
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
global using System.IO;
5+
global using System;

src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/MainClass.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@
1919
//
2020
//------------------------------------------------------------------------------
2121

22+
using System.CodeDom.Compiler;
23+
using System.Collections;
24+
using System.Diagnostics;
25+
using System.Text;
26+
2227
namespace MS.Internal.Csp
2328
{
24-
using System;
25-
using System.Collections;
26-
using System.Diagnostics;
27-
using System.IO;
28-
using System.Text;
29-
using System.CodeDom.Compiler;
30-
3129
internal sealed class MainClass
3230
{
3331
// Parameters affecting csp.exe as a whole.

src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/Project.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010
// a set of "C# prime" files, then executes the project.
1111
//
1212

13+
using System.CodeDom.Compiler;
14+
using System.Collections;
15+
using System.Reflection;
16+
using System.Text;
17+
1318
namespace MS.Internal.Csp
1419
{
15-
using System;
16-
using System.IO;
17-
using System.Text;
18-
using System.Collections;
19-
using System.Reflection;
20-
using System.CodeDom.Compiler;
21-
2220
// This kind of exception is thrown when csp detects an
2321
// error in the project.
2422
public class CspProjectException : ApplicationException

src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/TempDirectory.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313

1414
namespace MS.Internal.Csp
1515
{
16-
using System;
17-
using System.IO;
18-
1916
internal class TempDirectory : IDisposable
2017
{
2118
//------------------------------------------------------

src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/csp.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13+
<Compile Include="GlobalUsings.cs" />
1314
<Compile Include="MainClass.cs" />
1415
<Compile Include="Project.cs" />
1516
<Compile Include="TempDirectory.cs" />

0 commit comments

Comments
 (0)