• Documentation
  • API Reference
Show / Hide Table of Contents
  • Cake.ClickTwice
    • CakeLogger
    • CakeTemplatePublisher
    • ClickTwiceAliases
    • ClickTwiceManager
    • ClickTwiceManagerExtensions
    • ClickTwiceRunner
    • ManifestPublisher
    • PublishException
    • TemplatePackageSettingsExtensions
  • ClickTwice.Handlers.AppDetailsPage
    • AppDetailsPageHandler
  • ClickTwice.Publisher.Core
    • AppInfoManager
    • BasePublishManager
    • CoreExtensions
    • InformationSource
    • IPublishManager
    • Manager
    • ManifestManager
    • OperationType
    • PublishBehaviour
  • ClickTwice.Publisher.Core.Exceptions
    • BuildFailedException
    • HandlerProcessingException
    • OperationInProgressException
  • ClickTwice.Publisher.Core.Handlers
    • AppInfoHandler
    • BuildConfigurator
    • HandlerResponse
    • HandlerResult
    • IBuildConfigurator
    • IHandler
    • IInputHandler
    • InstallPageHandler
    • IOutputHandler
    • PublishPageHandler
  • ClickTwice.Publisher.Core.Loggers
    • ConsoleLogger
    • FileLogger
    • IPublishLogger
  • ClickTwice.Publisher.Core.Manifests
    • AppManifest
    • ContactDetails
    • ExtendedAppInfo
    • LinkList
  • ClickTwice.Publisher.Core.Resources
    • LaunchPage
    • LaunchPageBase
    • LaunchPageBase.ToStringInstanceHelper
    • LaunchPageModel
    • PublishPage
    • PublishPageBase
    • PublishPageBase.ToStringInstanceHelper
  • ClickTwice.Publisher.MSBuild
    • DirectPublisher
    • MSBuildPlatform
    • MSBuildResolver
    • MSBuildToolVersion
    • PlatformTarget
    • PublishManager
  • ClickTwice.Publisher.MSBuild.Loggers
    • BuildMessageLogger
  • ClickTwice.Templating
    • ITemplatePublisher
    • PackagingMode
    • TemplatePackager
    • TemplatePackageSettings
  • ClickTwice.UpdateManager
    • DownloadSize
    • UpdateEventArgs
    • UpdateInfo
    • UpdateManagerViewModel
    • UpdateManagerViewModel.UpdateHandler
  • ScriptCs.ClickTwice
    • ClickTwicePack
    • ClickTwicePackSettings
    • IScriptHost
    • Publisher
    • ScriptPack
    • ScriptTemplatePublisher

Class BasePublishManager

Inheritance
System.Object
Manager
BasePublishManager
DirectPublisher
PublishManager
Inherited Members
Manager.ProjectFilePath
Manager.CleanOutputOnCompletion
Manager.ReadVersionFromAssemblyInfo()
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:ClickTwice.Publisher.Core
Assembly:ClickTwice.Publisher.Core.dll
Syntax
public abstract class BasePublishManager : Manager, IPublishManager, IDisposable

Constructors

| Improve this Doc View Source

BasePublishManager(String)

Declaration
public BasePublishManager(string projectFilePath)
Parameters
Type Name Description
System.String projectFilePath

Properties

| Improve this Doc View Source

AdditionalProperties

Declaration
public Dictionary<string, string> AdditionalProperties { get; set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.String>
| Improve this Doc View Source

BuildConfigurators

Declaration
public List<IBuildConfigurator> BuildConfigurators { protected get; set; }
Property Value
Type Description
System.Collections.Generic.List<IBuildConfigurator>
Implements
IPublishManager.BuildConfigurators
| Improve this Doc View Source

Configuration

Declaration
public virtual string Configuration { protected get; set; }
Property Value
Type Description
System.String
Implements
IPublishManager.Configuration
| Improve this Doc View Source

InputHandlers

Declaration
public List<IInputHandler> InputHandlers { protected get; set; }
Property Value
Type Description
System.Collections.Generic.List<IInputHandler>
Implements
IPublishManager.InputHandlers
| Improve this Doc View Source

Loggers

Declaration
public List<IPublishLogger> Loggers { get; set; }
Property Value
Type Description
System.Collections.Generic.List<IPublishLogger>
Implements
IPublishManager.Loggers
| Improve this Doc View Source

OutputHandlers

Declaration
public List<IOutputHandler> OutputHandlers { protected get; set; }
Property Value
Type Description
System.Collections.Generic.List<IOutputHandler>
Implements
IPublishManager.OutputHandlers
| Improve this Doc View Source

Platform

Declaration
public virtual string Platform { protected get; set; }
Property Value
Type Description
System.String
Implements
IPublishManager.Platform

Methods

| Improve this Doc View Source

BuildProject(Dictionary<String, String>, List<String>)

Declaration
protected abstract bool BuildProject(Dictionary<string, string> props, List<string> targets)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.String> props
System.Collections.Generic.List<System.String> targets
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CloseLoggers(String)

Declaration
protected void CloseLoggers(string targetPath)
Parameters
Type Name Description
System.String targetPath
| Improve this Doc View Source

Dispose()

Declaration
public virtual void Dispose()
Implements
System.IDisposable.Dispose()
| Improve this Doc View Source

Log(String, Boolean)

Declaration
protected void Log(string content, bool isBuildMessage = false)
Parameters
Type Name Description
System.String content
System.Boolean isBuildMessage
| Improve this Doc View Source

OnBuildFailed(Exception)

Declaration
protected virtual void OnBuildFailed(Exception ex)
Parameters
Type Name Description
System.Exception ex
| Improve this Doc View Source

PostBuild(FileSystemInfo)

Declaration
protected virtual void PostBuild(FileSystemInfo targetPath)
Parameters
Type Name Description
System.IO.FileSystemInfo targetPath
| Improve this Doc View Source

ProcessInputHandlers()

Declaration
protected List<HandlerResponse> ProcessInputHandlers()
Returns
Type Description
System.Collections.Generic.List<HandlerResponse>
| Improve this Doc View Source

ProcessOutputHandlers(FileSystemInfo)

Declaration
protected List<HandlerResponse> ProcessOutputHandlers(FileSystemInfo outputPath)
Parameters
Type Name Description
System.IO.FileSystemInfo outputPath
Returns
Type Description
System.Collections.Generic.List<HandlerResponse>
| Improve this Doc View Source

PublishApp(String, PublishBehaviour)

Declaration
public virtual List<HandlerResponse> PublishApp(string targetPath, PublishBehaviour behaviour = PublishBehaviour.CleanFirst)
Parameters
Type Name Description
System.String targetPath
PublishBehaviour behaviour
Returns
Type Description
System.Collections.Generic.List<HandlerResponse>
Implements
IPublishManager.PublishApp(String, PublishBehaviour)
Exceptions
Type Condition
HandlerProcessingException

Thrown when input or output handlers encounter an exception.

OperationInProgressException

Thrown when a build or publish operation is already in progress.

System.ArgumentOutOfRangeException

Invalid behaviour type provided.

System.Security.SecurityException

The caller does not have the required permission.

BuildFailedException

Thrown when the build fails.

| Improve this Doc View Source

RunConfigurators(Dictionary<String, String>, List<String>)

Declaration
protected KeyValuePair<Dictionary<string, string>, List<string>> RunConfigurators(Dictionary<string, string> props, List<string> targetList)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.String> props
System.Collections.Generic.List<System.String> targetList
Returns
Type Description
System.Collections.Generic.KeyValuePair<System.Collections.Generic.Dictionary<System.String, System.String>, System.Collections.Generic.List<System.String>>
| Improve this Doc View Source

SaveVersionToProjectFile(String)

Declaration
protected void SaveVersionToProjectFile(string v)
Parameters
Type Name Description
System.String v
| Improve this Doc View Source

SyncVersionNumber()

Reads the assembly version number from AssemblyInfo.cs and updates it in the project file

Declaration
protected void SyncVersionNumber()
  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Alistair Chapman