The link you referenced shows a relative path to the dll, have you tried using $(SoluitonDir) instead? I don't use Team Build so I don't know if this would solve your problem.
<Target Name="BeforeBuild"> <GetAssemblyIdentity AssemblyFiles="$(SolutionDir)YourProject\bin\$(Configuration)\YourProject.dll"> <Output TaskParameter="Assemblies" ItemName="AssemblyVersions" /> </GetAssemblyIdentity> <CreateProperty Value="%(AssemblyVersions.Version)"> <Output TaskParameter="Value" PropertyName="AssyVersion" /> </CreateProperty> <CreateProperty Value="$(AssyVersion.Split('.')[0]).$(AssyVersion.Split('.')[1]).$(AssyVersion.Split('.')[2])"> <Output TaskParameter="Value" PropertyName="ShortAssyVersion" /> </CreateProperty> <CreateProperty Value="$(DefineConstants);LongAssyVersion=$(AssyVersion)"> <Output TaskParameter="Value" PropertyName="DefineConstants" /> </CreateProperty> <CreateProperty Value="$(DefineConstants);ShortAssyVersion=$(ShortAssyVersion)"> <Output TaskParameter="Value" PropertyName="DefineConstants" /> </CreateProperty> </Target> Brian If you can't explain it simply, you don't understand it well enough. - Albert Einstein On Wed, Nov 26, 2014 at 6:36 AM, Jan Suchotzki <jsuchot...@schueco.com> wrote: > Hi, > > I know this topic has beend addressed in many different flavors > already, but none seems to solve my issue. > > I would like to have the bundle version set to the version number of a > package. This is obviously easy, but I need to change the version number > format. We like to have a 3 digit number like this: > major.minor.revision. Now also this seems to be easy to do when > modifying the wixproj and using <Target "BeforeBuild"> like explained > here: > > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-get-package-version-using-burn-API-td7591717.html > > Problem is that we are using Team Build and it changes several paths so > that the relative path works well on a development machine, but not on > the build machine. I tried to change Team Build but that seems to be > another major step so first trying to get this solved in wix. > > Do you have any recommendations how to get this done? > > Thanks and best regards > Jan > > > > > Schüco International KG > Sitz der Gesellschaft und Registergericht: Bielefeld > Handelsregister: HRA 8135 > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users