home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Feature Requests
Add version info to settings section
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="morpheus_xx" data-source="post: 1290108" data-attributes="member: 48495"><p>We have these informations available, read from the executing assembly. For client it can be easily retrieved, for server we would need another UPnP server / client plugin to load it.</p><p></p><p>[CODE=csharp] // Assembly and build information</p><p> FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetCallingAssembly().Location);</p><p> logger.Info("ApplicationCore: Comments: {0}", fileVersionInfo.Comments);</p><p> logger.Info("ApplicationCore: Copyright: {0}", fileVersionInfo.LegalCopyright);</p><p> logger.Info("ApplicationCore: Version: {0}", fileVersionInfo.FileVersion);</p><p> logger.Info("ApplicationCore: Source: {0}", fileVersionInfo.ProductVersion);</p><p> logger.Info("ApplicationCore: Architecture: {0}", IntPtr.Size > 4 ? "x64" : "x86");</p><p>[/CODE]</p><p>which reads in MP2-Client.log like:</p><p>[CODE]</p><p>[2022-07-30 11:53:47,437] [657 ] [Main ] [INFO ] - ApplicationCore: Comments: MediaPortal 2 GUI</p><p>[2022-07-30 11:53:47,438] [657 ] [Main ] [INFO ] - ApplicationCore: Copyright: Copyright © Team MediaPortal 2007 - 2021</p><p>[2022-07-30 11:53:47,438] [658 ] [Main ] [INFO ] - ApplicationCore: Version: 2.3.2101.13503</p><p>[2022-07-30 11:53:47,438] [658 ] [Main ] [INFO ] - ApplicationCore: Source: origin/WIP_2.4-d8fa66</p><p>[2022-07-30 11:53:47,439] [659 ] [Main ] [INFO ] - ApplicationCore: Architecture: x64</p><p>[/CODE]</p><p></p><p>Which one(s) you would like to show on GUI?</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1290108, member: 48495"] We have these informations available, read from the executing assembly. For client it can be easily retrieved, for server we would need another UPnP server / client plugin to load it. [CODE=csharp] // Assembly and build information FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetCallingAssembly().Location); logger.Info("ApplicationCore: Comments: {0}", fileVersionInfo.Comments); logger.Info("ApplicationCore: Copyright: {0}", fileVersionInfo.LegalCopyright); logger.Info("ApplicationCore: Version: {0}", fileVersionInfo.FileVersion); logger.Info("ApplicationCore: Source: {0}", fileVersionInfo.ProductVersion); logger.Info("ApplicationCore: Architecture: {0}", IntPtr.Size > 4 ? "x64" : "x86"); [/CODE] which reads in MP2-Client.log like: [CODE] [2022-07-30 11:53:47,437] [657 ] [Main ] [INFO ] - ApplicationCore: Comments: MediaPortal 2 GUI [2022-07-30 11:53:47,438] [657 ] [Main ] [INFO ] - ApplicationCore: Copyright: Copyright © Team MediaPortal 2007 - 2021 [2022-07-30 11:53:47,438] [658 ] [Main ] [INFO ] - ApplicationCore: Version: 2.3.2101.13503 [2022-07-30 11:53:47,438] [658 ] [Main ] [INFO ] - ApplicationCore: Source: origin/WIP_2.4-d8fa66 [2022-07-30 11:53:47,439] [659 ] [Main ] [INFO ] - ApplicationCore: Architecture: x64 [/CODE] Which one(s) you would like to show on GUI? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Feature Requests
Add version info to settings section
Contact us
RSS
Top
Bottom