public static GenerateProductCodeCommand CreateGenerateCodeCommand(this IProductElement element, IServiceProvider sp , string targetFileName , string targetPath , string templateUri , string namePrefix = "GenerateCode" , string buildAction = "Compile") { var command = CreateTempGenerateCodeCommand(element, sp, targetFileName, targetPath, templateUri, namePrefix, buildAction); var automation = new InnerCommandAutomation(command) { Name = namePrefix + command.Settings.Id.ToString(), Owner = element }; element.AddAutomationExtension(automation); return command; }
public static GenerateProductCodeCommand CreateGenerateCodeCommand(this IProductElement element, IServiceProvider sp , string targetFileName , string targetPath , string templateUri , string namePrefix = "GenerateCode" , string buildAction = "Compile") { var command = CreateTempGenerateCodeCommand(element, sp, targetFileName, targetPath, templateUri, namePrefix, buildAction); var automation = new InnerCommandAutomation(command) { Name = namePrefix + command.Settings.Id.ToString(), Owner = element }; element.AddAutomationExtension(automation); return(command); }