Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Target Name="PackageBinaries">
- <!-- create the build step -->
- <BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
- BuildUri="$(BuildUri)"
- Message="Creating Installer"
- Condition=" '$(IsDesktopBuild)' != 'true' " >
- <Output TaskParameter="Id"
- PropertyName="InstallerStepId" />
- </BuildStep>
- <!-- Create the MSI file using WiX -->
- <MSBuild Projects="$(SolutionRoot)SetupProjectwallboard.wixproj"
- Properties="BinariesSource=$(OutDir);PublishDir=$(BinariesRoot);Configuration=%(ConfigurationToBuild.FlavourToBuild)" >
- </MSBuild>
- <!-- If we sucessfully built the installer, tell TFS -->
- <BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
- BuildUri="$(BuildUri)"
- Id="$(InstallerStepId)"
- Status="Succeeded"
- Condition=" '$(IsDesktopBuild)' != 'true' " />
- <!-- Note that the condition above means that we do not talk to TFS when doing a Desktop Build -->
- <!-- If we error during this step, then tell TFS we failed-->
- <OnError ExecuteTargets="MarkInstallerFailed" />
- </Target>
- <Target Name="MarkInstallerFailed">
- <!-- Called by the PackageBinaries method if creating the installer fails -->
- <BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
- BuildUri="$(BuildUri)"
- Id="$(InstallerStepId)"
- Status="Failed"
- Condition=" '$(IsDesktopBuild)' != 'true' " />
- </Target>
Add Comment
Please, Sign In to add comment