mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-14 03:16:40 +10:00
About: Show Build and Revision in the version field
This commit is contained in:
@@ -39,5 +39,21 @@ namespace WPinternals
|
||||
return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Minor;
|
||||
}
|
||||
}
|
||||
|
||||
public int BuildVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Build;
|
||||
}
|
||||
}
|
||||
|
||||
public int RevisionVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Revision;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,9 +46,11 @@ DEALINGS IN THE SOFTWARE.
|
||||
<LineBreak />
|
||||
<Run>
|
||||
<Run.Text>
|
||||
<MultiBinding StringFormat="Version {0}.{1}">
|
||||
<MultiBinding StringFormat="Version {0}.{1}.{2}.{3}">
|
||||
<Binding Path="MajorVersion" Mode="OneWay" />
|
||||
<Binding Path="MinorVersion" Mode="OneWay" />
|
||||
<Binding Path="BuildVersion" Mode="OneWay" />
|
||||
<Binding Path="RevisionVersion" Mode="OneWay" />
|
||||
</MultiBinding>
|
||||
</Run.Text>
|
||||
</Run>
|
||||
|
||||
Reference in New Issue
Block a user