diff options
author | Miguel Costa <miguel.costa@qt.io> | 2018-11-23 18:07:43 +0100 |
---|---|---|
committer | Miguel Costa <miguel.costa@qt.io> | 2018-11-28 09:45:13 +0000 |
commit | 1ffd6fc620195523dc29173780cc92373454928a (patch) | |
tree | d2d951b5d44820ab9de9f1cc6fe4f65dcada60f7 /src/qttemplates/dialogbuttonbottom/Properties/AssemblyInfo.cs | |
parent | e2445defc5a80667a4afc5f9edf1f52845f25e81 (diff) |
Automate change of version number
Before this patch, there were 40+ different locations in the source
files where the version number was stored. The version number is now
defined in a single source file as the property $(QtVSToolsVersion).
Other sources that use the version string are then generated from
corresponding templates using the template engine included in Visual
Studio (Text Template Transformation Toolkit, or T4). Projects that
integrate with the Qt VS Tools will also have access to the version
definition property.
Change-Id: Ib3a372c6f0e0c446eef98b4fa26b58e1565bb025
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/qttemplates/dialogbuttonbottom/Properties/AssemblyInfo.cs')
-rw-r--r-- | src/qttemplates/dialogbuttonbottom/Properties/AssemblyInfo.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/qttemplates/dialogbuttonbottom/Properties/AssemblyInfo.cs b/src/qttemplates/dialogbuttonbottom/Properties/AssemblyInfo.cs index a158deb2..6ddb675d 100644 --- a/src/qttemplates/dialogbuttonbottom/Properties/AssemblyInfo.cs +++ b/src/qttemplates/dialogbuttonbottom/Properties/AssemblyInfo.cs @@ -24,6 +24,10 @@ ** ** $QT_END_LICENSE$ ** +**************************************************************************** +<#@output extension="tt.cs" #> +<#@include file="$(SolutionDir)\version.tt" #> +** <#=WARNING_GENERATED_FILE#> ****************************************************************************/ using System.Reflection; @@ -59,5 +63,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.2.1.0")] -[assembly: AssemblyFileVersion("2.2.1.0")] +[assembly: AssemblyVersion("<#=QT_VS_TOOLS_VERSION_ASSEMBLY#>")] +[assembly: AssemblyFileVersion("<#=QT_VS_TOOLS_VERSION_ASSEMBLY_FILE#>")] |