Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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);
        }