cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mike_davies1
Level 2

Product version from Assembly version ?

Hi,

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
0 Kudos
(1) Reply
JohnTech
Level 6 Flexeran
Level 6 Flexeran

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.

0 Kudos