cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nunocenteio
Level 3

Overriding ProductVersion with MSBuild

Hi guys,

I'm stucked and I'm sure that the problem is somewhere between the chair and the keyboard.

I'm executing MSBuild in the following way:
C:\Windows\Microsoft.NET\Framework\v4.0.30319>msbuild "D:\XPTO\Solution.sln" /p:Configuration="Release" /p:Platform="Mixed Platforms" /p:ProductVersion="5.0.0.0"

This executes correctly but when I install the setup the version is not 5.0.0.0.

What am I doing wrong?

EDIT: I replaced "ProductVersion" by InstallShieldProductVersion and it works... Is this the correct way?
Labels (1)
0 Kudos
(1) Reply
hidenori
Level 17

The InstallShield task for MSBuild includes a ProductVersion parameter, which you can use to specify the product version through MSBuild. This parameter is exposed as the property InstallShieldProductVersion when the default targets file is used.
0 Kudos