Skip to content

Targets

Dave Sexton edited this page May 24, 2016 · 1 revision

MSBuild Targets

Deploy

Copies the project's build output and <Content /> items to $(DeploymentDir).

  • This target automatically executes after the project's Build target runs successfully.
  • Condition: $(DeploymentEnabled) equals True.
  • Additional files can be specified in the @(Deploy) item group.

DeployPackage

Copies the project's NuGet package to $(DeploymentDir).

  • This target automatically executes after NuGet's BuildPackage target runs successfully.
  • Condition: $(DeploymentEnabled) equals True.
  • Additional files can be specified in the @(NuGetPackage) item group.

CleanDeploy

Deletes the project's entire output folder in $(DeploymentDir).

  • This target automatically executes after the project's Clean target runs successfully.
  • Condition: $(DeploymentEnabled) equals True.

BuildDocumentation

Builds reference documentation for the output assembly.

  • This target automatically executes after the Build target runs successfully, but before the Deploy target runs.
  • Condition: $(BuildDocumentationEnabled) equals True.
  • Condition: Sandcastle must be installed.
  • Additional content and configuration files can be specified in various item groups.

GetCommonAssemblyAttributes

Reflects into the output assembly, reads common assembly attributes and stores them in MSBuild properties.

  • This target is automatically executed when building documentation or a NuGet package. You can also execute it yourself at any time.
  • Executing this target causes the Build target to be executed, if it wasn't executed already.

Output properties:

$(TargetAssemblyVersion)

$(TargetAssemblyInformationalVersion)

$(TargetAssemblyTitle)

$(TargetAssemblyDescription)

$(TargetAssemblyConfiguration)

$(TargetAssemblyProduct)

$(TargetAssemblyCompany)

$(TargetAssemblyCopyright)

Clone this wiki locally