Hey, is it possible to change Version Numbers seen in Project Information.
For example creating a branch (new Major Version Number,... needed). Thanks, MaGu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Use the method "get_project_info()" to get the project info and get an System.Version instance from the property "version". If the object is "None" there is no version stored. Create a new instance of Version with the required values.
proj = projects.primary
info = proj.get_project_info()
version = info.version
if version == None:
Β Β info.version = Version(10, 0, 0, 0) # Create new version
else:
Β Β info.version = Version(10, version.Minor, version.Build, version.Revision)
BR
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey, is it possible to change Version Numbers seen in Project Information.
For example creating a branch (new Major Version Number,... needed). Thanks, MaGu
Hi MaGu.
Use the method "get_project_info()" to get the project info and get an System.Version instance from the property "version". If the object is "None" there is no version stored. Create a new instance of Version with the required values.
BR
Martin