Share via


CustomizeOffice2007Document Class

Definition

Defines an MSBuild task that generates a customized document for projects developed for the 2007 Microsoft Office system. This class cannot be inherited.

public ref class CustomizeOffice2007Document sealed : Microsoft::VisualStudio::Tools::Office::BuildTasks::BuildTask
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class CustomizeOffice2007Document : Microsoft.VisualStudio.Tools.Office.BuildTasks.BuildTask
[<System.Runtime.InteropServices.ComVisible(false)>]
type CustomizeOffice2007Document = class
    inherit BuildTask
Public NotInheritable Class CustomizeOffice2007Document
Inherits BuildTask
Inheritance
CustomizeOffice2007Document
Attributes

Remarks

Set all of the CustomizeOffice2007Document properties and then call Execute to run this task.

CustomizeOffice2007Document generates a customized document based on a path to a source document, deployment manifest, and customization assembly. To check whether a customized document needs updating, use CheckOffice2007Document.

The Microsoft Build Engine uses Microsoft.VisualStudio.Tools.Office.BuildTasks to build and deploy Office solutions. However, you can create your own build system by using these classes and the MSBuild XML-based project files. For more information, see MSBuild Reference.

Constructors

CustomizeOffice2007Document()

Initializes a new instance of the CustomizeOffice2007Document class.

Properties

AssemblyName

Gets or sets the name of a customization assembly to attach to a document.

DeploymentManifestName

Gets or sets the relative or fully qualified path of the deployment manifest.

DocumentPath

Gets or sets the relative or fully qualified path of the project document.

InstallationPath

Sets the relative or fully qualified path of the installation folder.

Local

Gets or sets a value that indicates whether to make all the paths in the application manifest relative to the document location.

SolutionID

Sets the GUID of an Office solution.

Unregister

Gets or sets a value that indicates whether to remove a customization assembly from a document.

Methods

Execute()

Generates a customized document for a project developed for the 2007 Microsoft Office system.

Applies to