71 references to ToolConsole
dotnet-svcutil-lib (71)
AppInsightsTelemetryClient.cs (1)
127
ToolConsole
.WriteWarning(ex.Message);
Bootstrapper\SvcutilBootstrapper.cs (11)
78
ToolConsole
.WriteLineIf(
ToolConsole
.ToolModeLevel != OperationalContext.Infrastructure, Resource.BootstrappingApplicationMsg);
87
ToolConsole
.WriteLineIf(
ToolConsole
.Verbosity >= Verbosity.Verbose, Resource.InvokingProjectMsg);
113
ToolConsole
.WriteLineIf(
ToolConsole
.Verbosity >= Verbosity.Verbose, Resource.CreatingProjectMsg);
192
ToolConsole
.WriteLineIf(
ToolConsole
.Verbosity >= Verbosity.Verbose, Resource.RestoringNuGetPackagesMsg);
197
ToolConsole
.WriteWarning(restoreResult.OutputText);
200
ToolConsole
.WriteLineIf(
ToolConsole
.Verbosity >= Verbosity.Verbose, Resource.BuildingProjectMsg);
DebugLogger.cs (6)
24
ToolConsole
.WriteError(message, isTrace: !logToUI);
28
ToolConsole
.WriteWarning(message, isTrace: !logToUI);
32
ToolConsole
.WriteLine(message, logToUI ? LogTag.Information : LogTag.LogMessage);
48
ToolConsole
.WriteError(message, isTrace: !logToUI);
52
ToolConsole
.WriteWarning(message, isTrace: !logToUI);
56
ToolConsole
.WriteLine(message, logToUI ? LogTag.Information : LogTag.LogMessage);
ImportModule.cs (9)
62
ToolConsole
.WriteError(e);
80
ToolConsole
.ExitCode = ToolExitCode.ValidationError;
91
ToolConsole
.WriteError(e);
119
ToolConsole
.WriteError(e);
135
ToolConsole
.ExitCode = ToolExitCode.ValidationErrorTurnedWarning;
151
ToolConsole
.WriteError(e);
154
ToolConsole
.WriteConversionErrors(_wsdlImporter.Errors);
158
ToolConsole
.WriteConversionErrors(_contractGenerator.Errors);
171
ToolConsole
.WriteWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnCouldNotGenerateContractOperationsFormat, importer1, importer2));
MarkupTelemetryHelper.cs (9)
16
if (
ToolConsole
.IsMarkupEnabled)
106
ToolConsole
.WriteLine(propName + LogTag.TraceProperty + propValue, LogTag.TraceProperty,
ToolConsole
.Space);
112
if (
ToolConsole
.IsMarkupEnabled && !String.IsNullOrWhiteSpace(str))
114
ToolConsole
.WriteLine(str, (succeess ? LogTag.TraceSuccess : LogTag.TraceFailure),
ToolConsole
.Space);
120
if (
ToolConsole
.IsMarkupEnabled)
123
ToolConsole
.WriteLine(str, LogTag.TraceException,
ToolConsole
.Space);
Tool.cs (18)
94
ToolConsole
.Init(options);
95
ToolConsole
.WriteHeaderIf(options.NoLogo != true);
101
ToolConsole
.WriteHelp();
110
ToolConsole
.WriteWarning(warning);
124
ToolConsole
.WriteWarning(warning);
134
ToolConsole
.WriteLine(bootstrapResult.OutputText);
213
ToolConsole
.WriteLine(string.Format(SR.RetreivingMetadataMsgFormat, serviceDescriptor.MetadataUrl.AbsoluteUri));
218
ToolConsole
.WriteLine(string.Format(SR.ReadingMetadataMessageFormat, displayUri));
246
ToolConsole
.WriteLine(SR.GeneratingFiles);
252
ToolConsole
.WriteLineIf(options.ToolContext != OperationalContext.Infrastructure, filePath, LogTag.Important);
255
return
ToolConsole
.ExitCode;
368
ToolConsole
.WriteToolError(ex);
373
ToolConsole
.WriteError(rpe, null);
378
ToolConsole
.WriteToolError(ae);
383
ToolConsole
.WriteToolError(rt);
388
ToolConsole
.WriteError(dce);
393
ToolConsole
.WriteError(SR.ErrUnexpectedError);
398
ToolConsole
.WriteError(ex);
ToolConsole.cs (13)
50
if (
ToolConsole
.Verbosity > Verbosity.Minimal &&
ToolConsole
.ToolModeLevel != OperationalContext.Infrastructure)
130
if (
ToolConsole
.Verbosity > Verbosity.Minimal || logTag == LogTag.Error || logTag == LogTag.Important ||
131
(
ToolConsole
.Verbosity == Verbosity.Minimal && logTag == LogTag.Warning) || LogTag.IsTrace(logTag))
161
if (
ToolConsole
.Verbosity == Verbosity.Silent)
193
ToolConsole
.WriteConversionError(conversionError);
201
if (condition &&
ToolConsole
.Verbosity > Verbosity.Minimal &&
ToolConsole
.ToolModeLevel != OperationalContext.Infrastructure)
203
ToolConsole
.WriteLine(string.Format(SR.LogoFormat, Tool.ToolName, Tool.PackageVersion, SR.Microsoft_Copyright_CommandLine_Logo), LogTag.Important);
207
ToolConsole
.WriteLine(SR.TelemetryEnabled, LogTag.Information);
214
if (
ToolConsole
.Verbosity > Verbosity.Silent &&
ToolConsole
.ToolModeLevel != OperationalContext.Infrastructure)
216
ToolConsole
.WriteLine(HelpGenerator.GenerateHelpText(), LogTag.Important);
TypeLoader.cs (4)
33
ToolConsole
.WriteWarning(string.Format(SR.ErrUnableToLoadReferenceFormat, path, ex.Message));
65
ToolConsole
.WriteWarning(warning);
75
ToolConsole
.WriteWarning(warning);
85
ToolConsole
.WriteWarning(warning);