Renaming Output to Contain the Assembly Version number June, 2009
I have an WiX installer project that I wanted to produce the output as the product name and version number. This is pretty simple to do. First unload/edit your project file and then update the "AfterBuild" target as follows:
<Target Name="AfterBuild"> <GetAssemblyIdentity AssemblyFiles="$(SolutionDir)MyApplication\bin\MyApplication.dll"> <Output TaskParameter="Assemblies" ItemName="GetVersionAssemblyInfo"/> GetAssemblyIdentity> <Copy SourceFiles="$(TargetPath)" DestinationFiles="$(TargetDir)MyApplication%(GetVersionAssemblyInfo.Version).msi" /> <Delete Files="$(TargetPath)" /> Target>