Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: void PostBuildStep<TArgs>(IPostBuildReporter, Type)

Declaration

public static void PostBuildStep<TArgs>(
    IPostBuildReporter rep,
    Type applicationTrType
)

Summary

Performs safety checks to ensure that the structure of your command-line syntax defining class is valid according to the criteria laid out in the documentation of CommandLineParser. Run this method as a post-build step to ensure reliability of execution. For an example of use, see PostBuildChecker.RunPostBuildChecks(string, params Assembly[]).

Generic type parameters

TArgs The class containing the fields and attributes which define the command-line syntax.

Parameters

IPostBuildReporterrep Object to report post-build errors to.
TypeapplicationTrType The type of the translation object, derived from TranslationBase, which would be passed in for the “applicationTr” parameter of CommandLineParser.Parse<TArgs>(string[], TranslationBase, Func<ConsoleColoredString, ConsoleColoredString>) at normal run-time.