PartialClassGenerationTask Class

PartialClassGenerationTask Class

.NET Framework (current version)
 

Accesses XAML files that define types (with x:Class) and generates the corresponding source code that can be compiled into an assembly.

Namespace:   Microsoft.Build.Tasks.Xaml
Assembly:  XamlBuildTask (in XamlBuildTask.dll)

System.Object
  Microsoft.Build.Utilities.Task
    Microsoft.Build.Tasks.Xaml.PartialClassGenerationTask

type PartialClassGenerationTask = 
    class
        inherit Task
    end

NameDescription
System_CAPS_pubmethodPartialClassGenerationTask()

Initializes a new instance of the PartialClassGenerationTask class.

NameDescription
System_CAPS_pubpropertyApplicationMarkup

Gets or sets a list of XAML files to process, populated by MS Build.

System_CAPS_pubpropertyAssemblyName

Gets or sets the name of the assembly being compiled.

System_CAPS_pubpropertyBuildEngine

Gets or sets the instance of the IBuildEngine object used by the task.(Inherited from Task.)

System_CAPS_pubpropertyBuildEngine2

Gets the instance of the IBuildEngine2 object used by the task.(Inherited from Task.)

System_CAPS_pubpropertyBuildEngine3

Gets the instance of the IBuildEngine3 object used by the task.(Inherited from Task.)

System_CAPS_pubpropertyBuildEngine4

Gets the instance of the IBuildEngine4 object used by the task.(Inherited from Task.)

System_CAPS_pubpropertyBuildTaskPath

Gets or sets the path of the assembly that contains this build task.

System_CAPS_pubpropertyGeneratedCodeFiles

Gets or sets a list of generated code files, one for each input file.

System_CAPS_pubpropertyGeneratedResources

Gets or sets a list of XAML files that contain the markup for instantiating the newly generated types, one for each input file.

System_CAPS_pubpropertyGeneratedSourceExtension

Gets or sets the file extension to add to the generated source files.

System_CAPS_protpropertyHelpKeywordPrefix

Gets or sets the prefix used to compose Help keywords from resource names.(Inherited from Task.)

System_CAPS_pubpropertyHostObject

Gets or sets the host object associated with the task.(Inherited from Task.)

System_CAPS_pubpropertyIsInProcessXamlMarkupCompile

Gets or sets whether the compilation of XAML markup is in process.

System_CAPS_pubpropertyKnownReferencePaths

Gets or sets the known reference paths.

System_CAPS_pubpropertyLanguage

Gets or sets the language to generate source code in.

System_CAPS_pubpropertyLog

Gets an instance of a TaskLoggingHelper class containing task logging methods.(Inherited from Task.)

System_CAPS_pubpropertyMSBuildProjectDirectory

Gets or sets the directory of MS build project.

System_CAPS_pubpropertyOutputPath

Gets or sets the directory to place the generated files.

System_CAPS_pubpropertyReferences

Gets or sets a list of assemblies to reference.

System_CAPS_pubpropertyRequiresCompilationPass2

Gets or sets a value that indicates whether this project requires executing the CompilationPass2Task task.

System_CAPS_pubpropertyRootNamespace

Gets or sets the root namespace for the project.

System_CAPS_pubpropertySourceCodeFiles

Gets or sets a list of source code files in the project.

System_CAPS_protpropertyTaskResources

Gets or sets the culture-specific resources associated with the task.(Inherited from Task.)

System_CAPS_pubpropertyXamlBuildTypeGenerationExtensionNames

Gets or sets the collection of extension names used in XAML build type generation.

System_CAPS_pubpropertyXamlBuildTypeInspectionExtensionNames

Gets or sets the collection of extension names used in XAML build type inspection.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodExecute()

Called by MS Build to execute the code generation task.(Overrides Task.Execute().)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The XAML files processed by this task define new types as well as instantiate those types. The PartialClassGenerationTask class reads in the new type definitions and generates source code files. In addition, it generates a XAML file that contains the markup that instantiates the newly generated types.

This task should not be used to consume untrusted XAML inputs.

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft