Looked at the tutorial and reworked some of the code. I'm still not sure
what to do with the Import Project, or if I even need it but here's what I
have now.
<Binary Id="MSBuild.Community.Tasks.AssemblyInfo"
SourceFile="MSBuild.Community.Tasks.dll" />
<Binary Id="MSBuild.Community.Tasks.Math.Add"
SourceFile="MSBuild.Community.Tasks.dll"/>
<Binary Id="MSBuild.Community.Tasks.Zip"
SourceFile="MSBuild.Community.Tasks.dll"/>
<Binary Id="Sedodream.MSBuild.Tasks.GetAssemblyVersion"
SourceFile="Sedodream.MSBuild.Tasks.dll"/>
<CustomAction
Id="UpdateAssembly"
BinaryKey="Sedodream.MSBuild.Tasks.GetAssemblyVersion"
Return="ignore" />
<CustomAction
Id="AddRevision"
BinaryKey="MSBuild.Community.Tasks.Math.Add"
Return="ignore" />
<CustomAction
Id="Assemble"
BinaryKey="MSBuild.Community.Tasks.AssemblyInfo"
Return="ignore" />
<InstallExecuteSequence>
<Custom
Action="UpdateAssembly"
After="InstallFiles"
<GetAssemblyVersion AssemblyPath="$(OutDir)\ChannelBox.exe">
<Output TaskParameter="Major" PropertyName="Major" />
<Output TaskParameter="Minor" PropertyName="Minor" />
<Output TaskParameter="Build" PropertyName="Build" />
<Output TaskParameter="Revision" PropertyName="CurrentRevision" />
</GetAssemblyVersion>
</Custom>
</InstallExecuteSequence>
<InstallExecuteSequence>
<Custom
Action="AddRevision"
After="UpdateAssembly"
<Add Numbers="$(CurrentRevision);1">
<Output TaskParameter="Result" PropertyName="NewRevision" />
</Add>
<Exec Command=""$(TeamBuildRefPath)\..\tf.exe"
checkout
$(AssemblyInfoFilePath)" />
</Custom>
</InstallExecuteSequence>
<InstallExecuteSequence>
<Custom
Action="Assmeble"
After="AddRevision"
<AssemblyInfo AssemblyCompany="company"
AssemblyCopyright="Copyright"
AssemblyFileVersion="$(Major).$(Minor).$(Build).$(NewRevision)"
AssemblyProduct="product"
AssemblyTitle="title"
AssemblyVersion="$(Major).$(Minor).$(Build).$(NewRevision)"
CodeLanguage="CSharp"
OutputFile="$(AssemblyInfoFilePath)" />
<Exec Command=""$(TeamBuildRefPath)\..\tf.exe" checkin
/comment:"Auto-Build: Version Update" /noprompt
/override:"Auto-Build:Version Update" $(AssemblyInfoFilePath)" />>
</Custom>
</InstallExecuteSequence>
--
View this message in context:
http://www.nabble.com/Beginning-Question-tf4225049.html#a12022732
Sent from the wix-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users