Class BuildConfiguration
Can stores a set of hierarchical build components per type, which can be inherited or overridden using dependencies.
Inheritance
Implements
Inherited Members
Namespace: Unity.Build
Assembly: solution.dll
Syntax
public sealed class BuildConfiguration : HierarchicalComponentContainer<BuildConfiguration, IBuildComponent>, ISerializationCallbackReceiver
Fields
Name | Description |
---|---|
Asset |
File extension for build configuration assets. |
Properties
Name | Description |
---|---|
Show | Determine if this build configuration should be shown or hidden. |
Methods
Name | Description |
---|---|
Build() | Run the build pipeline of this build configuration to build the target. |
Can |
Determine if the build pipeline of this build configuration can build. |
Can |
Determine if the environment can be prepared before the build pipeline of this build configuration can be used. |
Can |
Determine if the build pipeline of this build configuration can run. |
Clean() | Clean the build result from building the build pipeline of this build configuration. |
Clean |
Clean all build artifact of every build configuration. |
Clean |
Clean the build artifact of the last Build() performed. |
Clean |
Clean the build artifact of the last Build() performed. |
Get |
Retrieve the current active build configuration. Value is stored per-project and per-user. |
Get |
Get all build artifact values. |
Get |
Get all build artifact values. |
Get |
Get the first build artifact value that is assignable to specified type. |
Get |
Get the first build artifact value that is assignable to specified type. |
Get |
Get the first build artifact value that is assignable to specified type. |
Get |
Get the first build artifact value that is assignable to specified type. |
Get |
Retrieve the build pipeline of this build configuration. |
Get |
Get the build result of the last Build() performed. |
Get |
Get the build result of the last Build() performed. |
Get |
|
Get |
|
Get |
|
Get |
Get the output build directory override for this build configuration. The output build directory can be overridden using a OutputBuildDirectory component. |
Get |
Retrieve the platform of this build configuration. |
Has |
Determine if a build artifact that is assignable to the specified type is present. |
Has |
Determine if a build artifact that is assignable to the specified type is present. |
Has |
Determine if a build artifact that is assignable to the specified type is present. |
Has |
Determine if a build artifact that is assignable to the specified type is present. |
Is |
Determine if component is used by the build pipeline of this build configuration. Returns false if this build configuration does not have a build pipeline. |
Is |
Determine if component is used by the build pipeline of this build configuration. Returns false if this build configuration does not have a build pipeline. |
Prepare() | Prepare the environment to use the build pipeline of this build configuration. |
Run(params Run |
Run the resulting target from building the build pipeline of this build configuration. |
Set |
Set current active build configuration. The build configuration must have a build pipeline set, and be buildable. |
Events
Name | Description |
---|---|
Active |
Event fired when active build configuration is changed. |