How to: Use Automation with Deployment Reports
In Deployment Designer, you can automate generation of a deployment report by setting certain properties.
Tip
You can also create deployment reports from the command line. For more information, see How to: Create Deployment Reports from the Command Line.
To generate a deployment report using automation
Click the deployment diagram surface to select it.
In the Properties window, set the Error Resolution property to Ignore.
Tip
If the Properties window is not open, press F4 or choose Properties Window from the View menu.
This property controls how to handle error messages that are generated during deployment report generation. An example of an error would be if you do not have sufficient permissions to write files to the location specified in the Destination Path property.
If you do not want to continue with deployment report generation if an error occurs, you can set this property to Abort, and the report generation process will exit.
Set the Overwrite Files Action property to Yes or No as appropriate.
Note
If set to Yes, the deployment report will overwrite existing deployment report files.
Write a Visual Studio macro containing the Diagram.GenerateDeploymentReport command. For more information, see Accessing the Automation Model by Using Macros.
See Also
Tasks
How to: Generate Deployment Reports
Concepts
Overview of Deployment Reports