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
Language specific support
MediaPortal Forums Francais
MediaPortal 1 - Développement
Les plugins
Plugin 'about Mediaportal'
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="framug" data-source="post: 454140" data-attributes="member: 19448"><p>Salut,</p><p></p><p>Concernant une version ou, une date d'assembly, peut-être en analysant le fichier MediaPortal.log et, en y récupérant l'info ?</p><p>Car beaucoup de choses y sont stockées.</p><p></p><p>Vu dans MediaPortal.cs :</p><p></p><p>[code] FileInfo mpFi = new FileInfo(Assembly.GetExecutingAssembly().Location);</p><p> Log.Info("Main: Assembly creation time: {0} (UTC)", mpFi.LastWriteTimeUtc.ToUniversalTime());[/code]</p><p></p><p>Ce qui donne dans la log :</p><p></p><p>2007-10-03 04:18:18.625000 [Info.][MPMain]: Main: Assembly creation time: 03/10/2007 01:55:46 (UTC)</p><p></p><p>Evidemment, si tu codes ça toi même dans ton plugin :</p><p></p><p>[code]using System.IO;</p><p>using System.Reflection;</p><p></p><p></p><p> FileInfo toto = new FileInfo(Assembly.GetExecutingAssembly().Location);</p><p> Log.Info("TOTO: Assembly creation time: {0} (UTC)", toto.LastWriteTimeUtc.ToUniversalTime());[/code]</p><p></p><p>ça va pas le faire, tu vas récupérer la date de ta propre compil de plugin :</p><p>2007-10-03 04:18:25.453125 [Info.][MPMain]: TOTO: Assembly creation time: 03/10/2007 02:16:32 (UTC)</p><p></p><p>Voilà.</p><p>A+</p></blockquote><p></p>
[QUOTE="framug, post: 454140, member: 19448"] Salut, Concernant une version ou, une date d'assembly, peut-être en analysant le fichier MediaPortal.log et, en y récupérant l'info ? Car beaucoup de choses y sont stockées. Vu dans MediaPortal.cs : [code] FileInfo mpFi = new FileInfo(Assembly.GetExecutingAssembly().Location); Log.Info("Main: Assembly creation time: {0} (UTC)", mpFi.LastWriteTimeUtc.ToUniversalTime());[/code] Ce qui donne dans la log : 2007-10-03 04:18:18.625000 [Info.][MPMain]: Main: Assembly creation time: 03/10/2007 01:55:46 (UTC) Evidemment, si tu codes ça toi même dans ton plugin : [code]using System.IO; using System.Reflection; FileInfo toto = new FileInfo(Assembly.GetExecutingAssembly().Location); Log.Info("TOTO: Assembly creation time: {0} (UTC)", toto.LastWriteTimeUtc.ToUniversalTime());[/code] ça va pas le faire, tu vas récupérer la date de ta propre compil de plugin : 2007-10-03 04:18:25.453125 [Info.][MPMain]: TOTO: Assembly creation time: 03/10/2007 02:16:32 (UTC) Voilà. A+ [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Language specific support
MediaPortal Forums Francais
MediaPortal 1 - Développement
Les plugins
Plugin 'about Mediaportal'
Contact us
RSS
Top
Bottom