I am trying to do continuous integration with Team city and trying to update my build.
What should do?
In this order build is suppose to create 4 folders and msi builds with in the folders(VWriter_1.9.1.46903_Live.msi),Local(VWriter_Local.msi),Test(VWriter_Test.msi) and UAT(VWriter_UAT.msi), which is doing fine in my local and I am expecting same in live.
What it is doing.
It is acting weird when build is checked in live in team city it is creating only VWriter_UAT.msi 4 times.
My build.xml code:
<CallTarget Targets="PreBuildDeploymentEvent" />
<CallTarget Targets="BuildUATVoteWriterDeploymentProject" />
<CallTarget Targets="BuildVoteWriterDeploymentProject" />
<CallTarget Targets="BuildLocalDevelopmentVoteWriterDeploymentProject" />
<CallTarget Targets="BuildTestVoteWriterDeploymentProject" />
Target:
<CallTarget Targets="FixFilePathsForLiveDeployment" />
<MSBuild Projects="..\src\Deployment\VoteWriterInstaller.wixproj" Properties="Configuration=Release;OutDir=$(MSBuildProjectDirectory)\Live Release\;" Targets="Clean;Build;"/>
<ItemGroup>
<DeleteAfterBuild Include="$(MSBuildProjectDirectory)\Live Release\*.*" Exclude="$(MSBuildProjectDirectory)\Live Release\*.msi" />
</ItemGroup>
<Delete Files="@(DeleteAfterBuild)" />
FixFilePathsForLiveDeployment:
<!-- Fix Web Service For Live -->
<Target Name="FixFilePathsForLiveDeployment">
<CallTarget Targets="AlterMsiFileNamesLive" />
</Target>
AlterMsiFileNamesLive:
<Target Name="AlterMsiFileNamesLive">
<ItemGroup>
<WixProject Include="Item">
<Path>..\src\Deployment\VoteWriterInstaller.wixproj</Path>
</WixProject>
</ItemGroup>
<FileUpdate Files="%(WixProject.Path)"
Regex="(\x3COutputName>.+?)(?:_.+?)??(\x3C/OutputName>)"
**ReplacementText="${1}_$(Version)_Live${2}" />**
// This is not creating as Live this is picking UAT file extension name.
I am not getting where it is going wrong.
Any help is much appreciated also please let me know if it is not clear I will try to put more notes.