1 write to Message
System.CommandLine (1)
Parsing\ParseError.cs (1)
20Message = message;
17 references to Message
aspire (1)
Commands\ResourceCommand.cs (1)
323return (arguments, string.Join(Environment.NewLine, parseResult.Errors.Select(static error => error.Message)));
Aspire.Cli.Tests (6)
Commands\DestroyCommandTests.cs (1)
157Assert.Equal(string.Format(System.Globalization.CultureInfo.CurrentCulture, SharedCommandStrings.NonInteractiveRequiresYesFormat, "destroy"), error.Message);
Commands\ResourceCommandTests.cs (4)
280Assert.Equal("The 'resource' argument is required.", error.Message); 299Assert.Equal("The 'resource' argument is required.", error.Message); 316Assert.Equal("The 'command' argument is required.", error.Message); 336Assert.Equal("The 'command' argument is required.", error.Message);
Commands\UpdateCommandTests.cs (1)
77Assert.Equal(string.Format(System.Globalization.CultureInfo.CurrentCulture, SharedCommandStrings.NonInteractiveRequiresYesFormat, "update"), error.Message);
Aspire.TerminalHost (1)
TerminalHostArgs.cs (1)
123message.Append(error.Message);
dotnet (3)
Commands\Hidden\Parse\ParseCommand.cs (1)
42Console.WriteLine(error?.Message);
Extensions\ParseResultExtensions.cs (2)
151return ErrorContainsAllParts(error.Message, rawResourcePartsForThisLocale); 158message: string.Join(Environment.NewLine, parseResult.Errors.Select(e => e.Message)),
dotnet-aot (2)
src\sdk\src\Cli\dotnet\Extensions\ParseResultExtensions.cs (2)
151return ErrorContainsAllParts(error.Message, rawResourcePartsForThisLocale); 158message: string.Join(Environment.NewLine, parseResult.Errors.Select(e => e.Message)),
dotnet-watch (1)
CommandLine\CommandLineOptions.cs (1)
360logger.LogError(error.Message);
Microsoft.TemplateEngine.Cli (1)
Commands\create\InvalidTemplateOptionResult.cs (1)
104error.Message);
System.CommandLine (2)
Invocation\ParseErrorAction.cs (1)
56stdErr.WriteLine(error.Message);
Parsing\ParseError.cs (1)
35public override string ToString() => Message;