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="&quot;$(TeamBuildRefPath)\..\tf.exe&quot; 
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="&quot;$(TeamBuildRefPath)\..\tf.exe&quot; checkin
/comment:&quot;Auto-Build: Version Update&quot; /noprompt
/override:&quot;Auto-Build:Version Update&quot; $(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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to