public static void PrintHelp() { ConsoleHelper.LogLevel = LogLevel.Trace; // Show all messages HelpUtility.PrintParameterHelp(ParametersToShowHelpFor); ConsoleHelper.WriteLine(); ConsoleHelper.WriteLine("==== General Instructions ====", foregroundColor: ConsoleColor.DarkCyan); ConsoleHelper.WriteLine(); ConsoleHelper.WriteLine("This is a command line tool to upload custom plugin and workflow code from a dll to a CRM instance. The dll should already be registered with the SDK, and the appropriate steps created, this tool is simply for command-line updating. Initially, you should use this from a console. As long as you don't use /automate or /force, this is perfectly safe, and will explain which actions it wishes to perform, followed by a prompt whether to continue or not. Feel free to experiment with the optional parameters in this mode. Example usage (line breaks should naturally be omitted):", indent: 1); ConsoleHelper.WriteLine(); ConsoleHelper.Write("PluginWorkflowHelper.exe", indent: 1); ConsoleHelper.Write("/solutionname:", indent: 1, foregroundColor: ConsoleColor.Yellow); ConsoleHelper.WriteLine("Default"); ConsoleHelper.Write("/dllpath:", indent: 25, foregroundColor: ConsoleColor.Yellow); ConsoleHelper.WriteLine("\"../../DotNet/bin/Release/CrmPlugins.dll\"", wrappedIndent: 29); ConsoleHelper.Write("/crmconnectionstring:", indent: 25, foregroundColor: ConsoleColor.Yellow); ConsoleHelper.WriteLine("'Url=https://contoso.crm2.dynamics.com/Contoso; [email protected]; Password=password'", wrappedIndent: 29); ConsoleHelper.WriteLine("/nonew", indent: 25, foregroundColor: ConsoleColor.Magenta); ConsoleHelper.WriteLine(); ConsoleHelper.WriteLine("Once you are happy with your options, you can save them (in, say, a batch file) for running automatically. You should add /automate or /force to ensure the tool proceeds without interruption.", indent: 1); ConsoleHelper.WriteLine(); }
public static void PrintHelp() { ConsoleHelper.LogLevel = LogLevel.Trace; // Show all messages HelpUtility.PrintParameterHelp(ParametersToShowHelpFor); ConsoleHelper.WriteLine(); ConsoleHelper.WriteLine("==== General Instructions ====", foregroundColor: ConsoleColor.DarkCyan); ConsoleHelper.WriteLine(); ConsoleHelper.WriteLine("This is a command line tool to upload all web resources from a folder to a CRM instance. It discovers all files with valid web resource file extensions. Initially, you should use this from a console. As long as you don't use /automate or /force, this is perfectly safe, and will explain which actions it wishes to perform, followed by a prompt whether to continue or not. Feel free to experiment with the optional parameters in this mode. Example usage (line breaks should naturally be omitted):", indent: 1); ConsoleHelper.WriteLine(); ConsoleHelper.Write("CrmResourceUploader.exe", indent: 1); ConsoleHelper.Write("/solutionname:", indent: 1, foregroundColor: ConsoleColor.Yellow); ConsoleHelper.WriteLine("Default"); ConsoleHelper.Write("/rootpath:", indent: 25, foregroundColor: ConsoleColor.Yellow); ConsoleHelper.WriteLine("\"../../WebResources/build/release\"", wrappedIndent: 29); ConsoleHelper.Write("/crmconnectionstring:", indent: 25, foregroundColor: ConsoleColor.Yellow); ConsoleHelper.WriteLine("'Url=https://contoso.crm2.dynamics.com/Contoso; [email protected]; Password=password'", wrappedIndent: 29); ConsoleHelper.WriteLine("/nonew /nopublish", indent: 25, foregroundColor: ConsoleColor.Magenta); ConsoleHelper.WriteLine(); ConsoleHelper.WriteLine("Once you are happy with your options, you can save them (in, say, a batch file) for running automatically. You should add /automate or /force to ensure the tool proceeds without interruption.", indent: 1); ConsoleHelper.WriteLine(); }