Skip to content

Commit aa1aabb

Browse files
committed
Added common high-use usings as global usings. Removed unused usings in TemplateEngine projects as they cause build errors based on their project settings. Adjusted one class name conflict.
1 parent d8f22a5 commit aa1aabb

25 files changed

+10
-27
lines changed

Directory.Build.props

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,13 @@
4747
<ImplicitUsings>enable</ImplicitUsings>
4848
</PropertyGroup>
4949

50+
<!-- Global usings -->
51+
<!-- See: https://learn.microsoft.com/dotnet/core/project-sdk/msbuild-props#using -->
52+
<ItemGroup>
53+
<Using Include="System.Runtime.InteropServices" />
54+
<Using Include="System.Text" />
55+
<Using Include="System.Xml.Linq" />
56+
</ItemGroup>
57+
5058
<Import Project="build/GenerateResxSource.targets" />
5159
</Project>

src/Cli/Microsoft.TemplateEngine.Cli/CliTemplateParameter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.CommandLine.Parsing;
77
using System.Diagnostics;
88
using System.Globalization;
9-
using System.Text;
109
using Microsoft.TemplateEngine.Abstractions;
1110
using Microsoft.TemplateEngine.Cli.Commands;
1211

src/Cli/Microsoft.TemplateEngine.Cli/Commands/CliPathInfo.cs

Lines changed: 0 additions & 1 deletion
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.Runtime.InteropServices;
54
using Microsoft.DotNet.Cli.Utils;
65
using Microsoft.DotNet.Configurer;
76
using Microsoft.TemplateEngine.Abstractions;

src/Cli/Microsoft.TemplateEngine.Cli/Commands/CommandLineUtils.cs

Lines changed: 0 additions & 1 deletion
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.Text;
65

76
namespace Microsoft.TemplateEngine.Cli.Commands
87
{

src/Cli/Microsoft.TemplateEngine.Cli/Commands/InvalidTemplateParametersException.cs

Lines changed: 0 additions & 2 deletions
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.Text;
5-
64
namespace Microsoft.TemplateEngine.Cli.Commands
75
{
86
internal class InvalidTemplateParametersException : Exception

src/Cli/Microsoft.TemplateEngine.Cli/Commands/create/InstantiateCommand.NoMatchHandling.cs

Lines changed: 0 additions & 1 deletion
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.Text;
65
using Microsoft.DotNet.Cli.Utils;
76
using Microsoft.TemplateEngine.Abstractions;
87
using Microsoft.TemplateEngine.Edge.Settings;

src/Cli/Microsoft.TemplateEngine.Cli/Commands/create/InvalidTemplateOptionResult.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System.CommandLine;
55
using System.CommandLine.Parsing;
6-
using System.Text;
76
using Microsoft.TemplateEngine.Abstractions;
87

98
namespace Microsoft.TemplateEngine.Cli.Commands

src/Cli/Microsoft.TemplateEngine.Cli/Extensions.cs

Lines changed: 0 additions & 1 deletion
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.Text;
54
using Microsoft.TemplateEngine.Abstractions;
65
using Microsoft.TemplateEngine.Abstractions.Constraints;
76
using Microsoft.TemplateEngine.Utils;

src/Cli/Microsoft.TemplateEngine.Cli/IReporterExtensions.cs

Lines changed: 0 additions & 1 deletion
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.Diagnostics;
5-
using System.Text;
65
using Microsoft.DotNet.Cli.Utils;
76

87
namespace Microsoft.TemplateEngine.Cli

src/Cli/Microsoft.TemplateEngine.Cli/TabularOutput/TabularOutput.cs

Lines changed: 0 additions & 2 deletions
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.Text;
5-
64
namespace Microsoft.TemplateEngine.Cli.TabularOutput
75
{
86
internal class TabularOutput

0 commit comments

Comments
 (0)