In C# Setup Project, how to automatically put Version into ProductName and Title?

0

Currently, when updating the version of an msi, we need to update it in five places:

  1. The Assembly Info of the primary .csproj
  2. The filename of the .msi in the Setup project - e.g. 'MyApp 1.2.1.msi'
  3. The Version of the .msi in the Setup project - e.g. '1.2.1'
  4. The ProductName of the .msi in the Setup project - e.g. 'MyApp '1.2.1'
  5. The Title of the .msi in the Setup project - e.g. 'MyApp 1.2.1'

Is there some way to reduce these steps but still get the version number in all of them? I tried putting a ProductName of 'MyApp $(TargetName)' but it interpreted it literally.

Sarov

Posted 2020-02-24T16:45:26.503

Reputation: 101

Question was closed 2020-02-24T22:47:55.297

No answers