コード例 #1
0
ファイル: Helpers.cs プロジェクト: nanohex/ServiceMatrix
 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;
 }
コード例 #2
0
ファイル: Helpers.cs プロジェクト: nanohex/ServiceMatrix
        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);
        }