Export (0) Print
Expand All

CustomizeOffice2007Document Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

System.Object
  Microsoft.Build.Utilities.Task
    Microsoft.VisualStudio.Tools.Office.BuildTasks.BuildTask
      Microsoft.VisualStudio.Tools.Office.BuildTasks.CustomizeOffice2007Document

Namespace:  Microsoft.VisualStudio.Tools.Office.BuildTasks
Assembly:  Microsoft.VisualStudio.Tools.Office.BuildTasks (in Microsoft.VisualStudio.Tools.Office.BuildTasks.dll)

[ComVisibleAttribute(false)]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class CustomizeOffice2007Document : BuildTask

The CustomizeOffice2007Document type exposes the following members.

  NameDescription
Public methodCustomizeOffice2007DocumentInitializes a new instance of the CustomizeOffice2007Document class.
Top

  NameDescription
Public propertyAssemblyNameGets or sets the name of a customization assembly to attach to a document.
Public propertyBuildEngineGets or sets the instance of the IBuildEngine object used by the task. (Inherited from Task.)
Public propertyBuildEngine2Gets the instance of the IBuildEngine2 object used by the task. (Inherited from Task.)
Public propertyBuildEngine3Gets the instance of the IBuildEngine3 object used by the task. (Inherited from Task.)
Public propertyBuildEngine4Gets the instance of the IBuildEngine4 object used by the task. (Inherited from Task.)
Public propertyDeploymentManifestNameGets or sets the relative or fully qualified path of the deployment manifest.
Public propertyDocumentPathGets or sets the relative or fully qualified path of the project document.
Public propertyHostObjectGets or sets the host object associated with the task. (Inherited from Task.)
Public propertyInstallationPathSets the relative or fully qualified path of the installation folder.
Public propertyLocalGets or sets a value that indicates whether to make all the paths in the application manifest relative to the document location.
Public propertyLogGets an instance of a TaskLoggingHelper class containing task logging methods. (Inherited from Task.)
Public propertySolutionIDSets the GUID of an Office solution.
Public propertyUnregisterGets or sets a value that indicates whether to remove a customization assembly from a document.
Top

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodExecuteGenerates a customized document for a project developed for the 2007 Microsoft Office system. (Overrides Task.Execute().)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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

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