Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Used to represent the schema information for a Tool, a Custom Build Rule, a PropertyPage, etc.
public ref class Rule sealed : Microsoft::Build::Framework::XamlTypes::RuleSchema, Microsoft::Build::Framework::XamlTypes::IProjectSchemaNode, System::ComponentModel::ISupportInitialize
[System.Windows.Markup.ContentProperty("Properties")] public sealed class Rule : Microsoft.Build.Framework.XamlTypes.RuleSchema, Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode, System.ComponentModel.ISupportInitialize
[<System.Windows.Markup.ContentProperty("Properties")>] type Rule = class inherit RuleSchema interface ISupportInitialize interface IProjectSchemaNode
Public NotInheritable Class Rule Inherits RuleSchema Implements IProjectSchemaNode, ISupportInitialize
Normally represented on disk as XAML, only one instance of this class is maintained per XAML file per project engine (solution).
Default constructor. Needed for deserialization from a persisted format.
When this Rule represents a Build Customization, this field defines the semicolon separated list of additional inputs that are going to be evaluated for the Build Customization target.
When this Rule represents a Build Customization, this field represents the command line template that is going to be used by a Build Customization task to invoke the tool.
Description of this Rule for use by a prospective UI client.
The name that could be used by a prospective UI client to display this BaseProperty.
This property returns the union of XAML specified Categorys and auto-generated Categorys. The latter are created from the missing categories that are being referred to by the properties in this Rule. The auto-generated Categorys only have their name set.
When this Rule represents a Build Customization, this field represents the message to be displayed before executing a Build Customization during the build.
When this Rule represents a Build Customization, this field represents the file extension to associate.
Help information for this Rule.
Gets or sets arbitrary metadata that may be set on a rule.
The name of this Rule.
This is a suggestion to a prospective UI client on the relative location of this Rule compared to all other Rules in the system.
When this Rule represents a Build Customization, this field defines the semicolon separated list of outputs that are going to be evaluated for the Build Customization target.
Gets or sets the method to use when multiple rules with the same name appear in the project to reconcile the rules into one instance.
The UI renderer template used to display this Rule.
This list of properties in this Rule. Atleast one property should be specified.
Gets or sets a value indicating if property pages for this rule should be hidden or not.
The token used to separate a property switch from its value.
Indicates whether to hide the command line category or not. Default value is true.
This is used to specify whether multiple files need to be batched on one command line invocation.
The name of the tool executable when this rule represents a tool.
Returns all properties partitioned into categories. The return value is never null. The returned list may contain auto-generated categories. Note that if a BaseProperty (or its derived classes) refer to a property that is not specified, then an new Category is generated for the same. If not category is specified for the property, then the property is placed in the "General" category. The list of categories is exactly as specified in the Xaml file. The auto-generated categories come (in no strict order) after the specified categories.
Returns a property with a given name.