Ejemplo n.º 1
0
 private void Add()
 {
     if (!string.IsNullOrWhiteSpace(PropertyType) && !string.IsNullOrWhiteSpace(PropertyName) && AdditionalProperties.All(e => e.Name != PropertyName))
     {
         AdditionalProperties.Add(new ModelAdditionalProperty
         {
             Type = PropertyType,
             Name = PropertyName
         });
         PropertyName = string.Empty;
     }
 }
Ejemplo n.º 2
0
 public CakePublishManager(ClickTwiceManager mgr) : base(mgr.ProjectFilePath)
 {
     Environment             = mgr.Environment;
     FileSystem              = mgr.FileSystem;
     Runner                  = mgr.ProcessRunner;
     ToolLocator             = mgr.ToolLocator;
     BuildAction             = mgr.BuildAction ?? DefaultBuildAction;
     CleanOutputOnCompletion = mgr.CleanOutput;
     Configuration           = mgr.Configuration;
     Platform                = mgr.Platform;
     InputHandlers           = mgr.InputHandlers;
     OutputHandlers          = mgr.OutputHandlers;
     Loggers.AddRange(mgr.Loggers);
     ErrorAction = mgr.ErrorAction;
     if (!string.IsNullOrWhiteSpace(mgr.PublishVersion))
     {
         AdditionalProperties.Add("ApplicationVersion", mgr.PublishVersion);
     }
 }