- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Product version from Assembly version ?
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Product version from Assembly version ?
I am building a product which is a simple managed assembly in a single .dll file. I know I can edit the product version by hand each time but it would be really useful if I could directly use the assembly version as the product version, is there any way to achieve this using ISLE4VS ?
Thanks,
Mike
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
If you build from within Visual Studio, I believe the value of the product version is pulled from the .isl file which would be the value that was entered into the project assistant.
If you build via msbuild, it will use the .isproj file to build with and I can think of 2 options:
1. use the "ProductVersion" Parameter and specify your version number at build time
https://msdn.microsoft.com/en-us/library/dd393573.aspx
http://helpnet.flexerasoftware.com/isxhelp22/helplibrary/MSBuild.htm#buildingtestingdistributing_3056060219_1064790
or
2. You should be able to edit the .isproj file in a text editor and add a line similar to the below in the section to force a specific version number:
1.2.3
If you have a script that can retrieve your assembly version, you should be able to apply it to either of the steps above before you start your build.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)