Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added post-build step to number the setup file with the version number.

  • Loading branch information...
commit 95286640693295642c8a61c81e39d370d2001a25 1 parent 32ad015
Cameron MacFarland authored January 30, 2012

Showing 1 changed file with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. 9  src/MarkPad.Setup/MarkPad.Setup.wixproj
9  src/MarkPad.Setup/MarkPad.Setup.wixproj
@@ -52,12 +52,13 @@
52 52
     </ProjectReference>
53 53
   </ItemGroup>
54 54
   <Import Project="$(WixTargetsPath)" />
55  
-  <!--
56  
-  To modify your build process, add your task inside one of the targets below and uncomment it.
57  
-  Other similar extension points exist, see Wix.targets.
58 55
   <Target Name="BeforeBuild">
  56
+    <Exec Command="del $(OutputPath)*.msi" Condition="Exists($(OutputPath))" />
59 57
   </Target>
60 58
   <Target Name="AfterBuild">
  59
+    <GetAssemblyIdentity AssemblyFiles="..\MarkPad\bin\$(Configuration)\MarkPad.exe">
  60
+      <Output TaskParameter="Assemblies" ItemName="AssemblyVersion" />
  61
+    </GetAssemblyIdentity>
  62
+	<Move SourceFiles="$(OutputPath)\$(TargetName)$(TargetExt)" DestinationFiles="$(OutputPath)\$(TargetName).v%(AssemblyVersion.Version)$(TargetExt)" />
61 63
   </Target>
62  
-  -->
63 64
 </Project>

0 notes on commit 9528664

Please sign in to comment.
Something went wrong with that request. Please try again.