VCCustomBuildRule Interface

Interface to access custom build rules and custom build rule files.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
<GuidAttribute("A41CA130-9C90-4F9E-B61D-CB71A69CAB28")> _
Public Interface VCCustomBuildRule
[GuidAttribute("A41CA130-9C90-4F9E-B61D-CB71A69CAB28")]
public interface VCCustomBuildRule
[GuidAttribute(L"A41CA130-9C90-4F9E-B61D-CB71A69CAB28")]
public interface class VCCustomBuildRule
[<GuidAttribute("A41CA130-9C90-4F9E-B61D-CB71A69CAB28")>]
type VCCustomBuildRule =  interface end
public interface VCCustomBuildRule

The VCCustomBuildRule type exposes the following members.

Properties

  Name Description
Public property AdditionalDependencies Gets or sets additional, configuration-specific items to add to the link line, such as comdlg32.lib or kernel32.lib.
Public property AdditionalOptions Gets or sets options to add to the end of the command line immediately before the file name(s). An example is if an option is not supported in the object model.
Public property BatchingSeparator Gets or sets the text to insert between input file names when a custom build rule supports file batching.
Public property CommandLine Gets or sets a command line for the build event tool to run.
Public property DisplayName Gets or sets the full name of the object.
Public property ExecutionDescription Gets or sets the text that is displayed in the output window prior to executing the command line during a build.
Public property FileExtensions Gets or sets the file extensions used to associate the build rule with new files added to the project.
Public property Name Gets or sets the name of the build rule.
Public property Outputs Gets or sets the output files the custom build step generates.
Public property Properties Gets the collection of properties for the object.
Public property ShowOnlyRuleProperties Gets or sets a value indicating whether the build rule's user properties are shown in the property grid.
Public property SupportsFileBatching Gets or sets a value indicating whether the command line-inputs are evaluated to all the files that can be batched into a single command-line execution (excludes files with file properties set).
Public property TargetRule Gets whether to use the target rule.

Top

Methods

  Name Description
Public method AddBooleanProperty Adds a Boolean property to the custom build rule with the given name.
Public method AddEnumProperty Adds an enumeration property to the custom build rule with the given name.
Public method AddIntegerProperty Adds an integer property to the custom build rule with the given name.
Public method AddStringProperty Adds a string property to the custom build rule with the given name.
Public method RemoveProperty Removes the given property from the custom build rule.

Top

See Also

Reference

Microsoft.VisualStudio.VCProjectEngine Namespace