Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit b5413e3

Browse files
committed
Remove Microsoft.Dotnet.Cli.Utils usage
1 parent f553caf commit b5413e3

4 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/dotnet-razor-tooling/Internal/ResolveProtocolCommand.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System;
55
using System.Globalization;
6-
using Microsoft.DotNet.Cli.Utils;
76
using Microsoft.Extensions.CommandLineUtils;
87

98
namespace Microsoft.AspNetCore.Tooling.Razor.Internal
@@ -27,7 +26,7 @@ internal static void Register(CommandLineApplication app)
2726
var clientProtocol = int.Parse(clientProtocolString);
2827
var resolvedProtocol = ResolveProtocol(clientProtocol, pluginProtocol);
2928

30-
Reporter.Output.WriteLine(resolvedProtocol.ToString(CultureInfo.InvariantCulture));
29+
Console.WriteLine(resolvedProtocol.ToString(CultureInfo.InvariantCulture));
3130

3231
return 0;
3332
});

src/dotnet-razor-tooling/Internal/ResolveTagHelpersCommand.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using dotnet_razor_tooling;
99
using Microsoft.AspNetCore.Razor;
1010
using Microsoft.AspNetCore.Razor.Compilation.TagHelpers;
11-
using Microsoft.DotNet.Cli.Utils;
1211
using Microsoft.DotNet.ProjectModel;
1312
using Microsoft.DotNet.ProjectModel.Loader;
1413
using Microsoft.Extensions.CommandLineUtils;
@@ -72,7 +71,7 @@ internal static void Register(CommandLineApplication app)
7271
};
7372
var serializedResult = JsonConvert.SerializeObject(resolvedResult, Formatting.Indented);
7473

75-
Reporter.Output.WriteLine(serializedResult);
74+
Console.WriteLine(serializedResult);
7675

7776
return 0;
7877
});

src/dotnet-razor-tooling/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Reflection;
66
using Microsoft.AspNetCore.Tooling.Razor.Internal;
7-
using Microsoft.DotNet.Cli.Utils;
87
using Microsoft.Extensions.CommandLineUtils;
98

109
namespace Microsoft.AspNetCore.Tooling.Razor
@@ -37,7 +36,7 @@ public static int Main(string[] args)
3736
}
3837
catch (Exception ex)
3938
{
40-
Reporter.Error.WriteLine(ex.Message);
39+
Console.Error.WriteLine(ex.Message);
4140
return 1;
4241
}
4342
}

src/dotnet-razor-tooling/project.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"frameworks": {
1616
"dnxcore50": {
1717
"dependencies": {
18-
"Microsoft.DotNet.Cli.Utils": "1.0.0-*",
1918
"Microsoft.AspNetCore.Razor.Runtime": "1.0.0-*",
2019
"Microsoft.DotNet.ProjectModel.Loader": "1.0.0-*",
2120
"Microsoft.Extensions.CommandLineUtils": "1.0.0-*",

0 commit comments

Comments
 (0)