Showing results for 
Show  only  | Search instead for 
Did you mean: 
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=""

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

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
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