Skip to content

[StyleCleanUp] Fix misplaced using directives in CSP (IDE0065) #10683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

//
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public static string WriteFileHeader(string filename, string source)
[[inline]]
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

//
//
Expand Down
10 changes: 4 additions & 6 deletions src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/CsPrimeParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
//
//

using System.Text.RegularExpressions;
using System.Collections;
using System.Text;

namespace MS.Internal.Csp
{
using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;

internal sealed class CsPrimeParser
{
private struct Position
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
// provided to the project that Csp.exe will execute.
//

using System.Text;

namespace MS.Internal.Csp
{
using System;
using System.Text;

public sealed class CsPrimeRuntime
{
//------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

global using System.IO;
global using System;
12 changes: 5 additions & 7 deletions src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/MainClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@
//
//------------------------------------------------------------------------------

using System.CodeDom.Compiler;
using System.Collections;
using System.Diagnostics;
using System.Text;

namespace MS.Internal.Csp
{
using System;
using System.Collections;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.CodeDom.Compiler;

internal sealed class MainClass
{
// Parameters affecting csp.exe as a whole.
Expand Down
12 changes: 5 additions & 7 deletions src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
// a set of "C# prime" files, then executes the project.
//

using System.CodeDom.Compiler;
using System.Collections;
using System.Reflection;
using System.Text;

namespace MS.Internal.Csp
{
using System;
using System.IO;
using System.Text;
using System.Collections;
using System.Reflection;
using System.CodeDom.Compiler;

// This kind of exception is thrown when csp detects an
// error in the project.
public class CspProjectException : ApplicationException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@

namespace MS.Internal.Csp
{
using System;
using System.IO;

internal class TempDirectory : IDisposable
{
//------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.DotNet.Wpf/src/WpfGfx/tools/csp/csp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</PropertyGroup>

<ItemGroup>
<Compile Include="GlobalUsings.cs" />
<Compile Include="MainClass.cs" />
<Compile Include="Project.cs" />
<Compile Include="TempDirectory.cs" />
Expand Down