Skip to content

Unhandled exception. System.InvalidOperationException: Could not find a property or method named GetVersion on type codingfreaks.pping.Ui.ConsoleApp.PingLogic. #5

@liudonghua123

Description

@liudonghua123

Hi, I tried to use this tool, but it failed with the following errors.

Liu.D.H  ~   3.361s  15:51 > pping --help
Unhandled exception. System.InvalidOperationException: Could not find a property or method named GetVersion on type codingfreaks.pping.Ui.ConsoleApp.PingLogic.
   at McMaster.Extensions.CommandLineUtils.VersionOptionFromMemberAttribute.Configure(CommandLineApplication, Type, Func`1) + 0x110
   at McMaster.Extensions.CommandLineUtils.Conventions.VersionOptionFromMemberAttributeConvention.Apply(ConventionContext) + 0x75
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Builder.McMaster.Extensions.CommandLineUtils.Conventions.IConventionBuilder.AddConvention(IConvention) + 0x28
   at McMaster.Extensions.CommandLineUtils.ConventionBuilderExtensions.UseAttributes(IConventionBuilder) + 0x60
   at McMaster.Extensions.CommandLineUtils.ConventionBuilderExtensions.UseDefaultConventions(IConventionBuilder) + 0x13
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<ExecuteAsync>d__183`1.MoveNext() + 0x103
--- End of stack trace from previous location ---
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](CommandLineContext) + 0x4b
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](IConsole, String[]) + 0xb9
   at codingfreaks.pping.Ui.ConsoleApp.Program.Main(String[] args) + 0x2e

Liu.D.H  ~   3.137s  15:51 >

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions