This project is read-only.

Does this work with Wix?

May 7, 2013 at 1:49 PM
I have a solution that compiles my wix package. The wix packaga does not contain an AssemblyInfo.cs by default. Can you confirm if TfsVersioning will work in this case?
Jun 3, 2013 at 3:38 PM

I it tried with a WIX solution, but the installer does not get the replaced version number(s).
Still looking for a way around... the V2.0 Sources would be a great help!

Thank you,
Jun 4, 2013 at 12:32 PM
Here is my workaround:
I fetched the replaced Version Number with the ConvertVersionPattern Activity and
passed this as a property to the MSBuild command. The WIX Setup gets this as a
Build proprocessor variable.

In YourVersioningWorkflow.xaml:
<Variable x:TypeArguments="x:String" Name="replacedVersionNumber" Default="[]" />
<tfsversioning:ConvertVersionPattern BuildNumber="[BuildDetail.BuildNumber]" BuildNumberPrefix="[BuildNumberPrefix]" ConvertedVersionNumber="[replacedVersionNumber]" VersionPattern="[AssemblyVersionPattern]" />
<mtbwa:MSBuild CommandLineArguments="[String.Format(&quot;/p:SkipInvalidConfigurations=true /p:ProductVersion=&quot;&quot;{1}&quot;&quot;  {0}&quot;, MSBuildArguments, replacedVersionNumber )]" ...
WIXSetup -> properties/Build/ Define preprocessor variables: $(DefineConstants);ProductVersion=$(ProductVersion)

Use as $(var.ProductVersion) in your .wxs file(s).