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;
|
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 />
|
<LineBreak />
|
||||||
<Run>
|
<Run>
|
||||||
<Run.Text>
|
<Run.Text>
|
||||||
<MultiBinding StringFormat="Version {0}.{1}">
|
<MultiBinding StringFormat="Version {0}.{1}.{2}.{3}">
|
||||||
<Binding Path="MajorVersion" Mode="OneWay" />
|
<Binding Path="MajorVersion" Mode="OneWay" />
|
||||||
<Binding Path="MinorVersion" Mode="OneWay" />
|
<Binding Path="MinorVersion" Mode="OneWay" />
|
||||||
|
<Binding Path="BuildVersion" Mode="OneWay" />
|
||||||
|
<Binding Path="RevisionVersion" Mode="OneWay" />
|
||||||
</MultiBinding>
|
</MultiBinding>
|
||||||
</Run.Text>
|
</Run.Text>
|
||||||
</Run>
|
</Run>
|
||||||
|
|||||||
Reference in New Issue
Block a user