Version number (1 Viewer)

jake78

Portal Pro
July 30, 2005
73
2
Home Country
Sweden Sweden
How can I read the version number of Mediaportal from my plugin - major, minor and SVN?
 

Smirnuff

Portal Pro
December 7, 2004
630
3
United Kingdom
I don't think that SVN build numbers are available from the assemblies at the moment but to get the additional info you can do the following:

Code:
using System.Reflection;

...
...

Version version = Assembly.GetEntryAssembly().GetName().Version;

Cheers,
Smirnuff.
 

jake78

Portal Pro
July 30, 2005
73
2
Home Country
Sweden Sweden
Thanks for the quick reply...

It reurns 0.0.0.0, even when I check properties of mediaportal.exe it says 0.0.0.0.

I'm running 0.2.0.0 plus the stable patch

That might be why some received the message that a newer version is already installed when trying to upgrade from RC4.
 

mPod

Portal Pro
January 26, 2005
2,084
3
Berlin
Home Country
Germany Germany
Code:
string version = System.Configuration.ConfigurationManager.AppSettings["version"];
This returns the version information string.

For 0.2.0.0 release (and self-compiled versions) it returns: "0.2.0.0"

For SVN builds before this post it returns: "0.2.0.0$CVS-10.07.2006-12:01:41,55"

For the next SVN builds it returns: "0.2.0.0-SVN-10.07.2006-12:01:41,55-Build 1234"

version-SVN-compiledate-compiletime-svnbuildversion

Time/Date are CET/CEST (although always stated in log/splash as CET to make things easier).

If you compile on your own there is no way to differ between a release and SVN version. Only official team SVN builds get tagged.
 

mPod

Portal Pro
January 26, 2005
2,084
3
Berlin
Home Country
Germany Germany
The "stable patch" version also returns "0.2.0.0" at the moment, which is unfortunately wrong. It should be "0.2.0.1", this will be changed in the next "stable patch". Most likely the next "stable patch" version will return "0.2.0.2", the current one will remain as it is.
 

jake78

Portal Pro
July 30, 2005
73
2
Home Country
Sweden Sweden
This worked great... thanks!

But shouldn't the version number in the mediaportal.exe property also show the 0.2.0.0 string?
 

mPod

Portal Pro
January 26, 2005
2,084
3
Berlin
Home Country
Germany Germany
In theory yes. But we're not using that property at the moment, it would make automated (scripted) nightly SVN builds a bit more complicated and would cost our admin High some sleepless nights, i bet. :wink:
 

Users who are viewing this thread


Write your reply...

Similar threads

Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
This thread is intended for skin authors, plus those advanced users who have learnt skin programming and have customised the skins...
Replies
1
Views
857
MP1 MP2 EPGCleaner for x64 DE
Thanks. Worked perfectly. The installer won’t work but dropping the DLL in worked.
Thanks. Worked perfectly. The installer won’t work but dropping the DLL in worked.
Hi there I've just made the switch from a working and stable 1.36 x86 installation (Standalone TVServer and a TVClient both...
Replies
3
Views
748
MP1 MP2 [solved] channel numbers issue DE
that's awesome, thank you! problem fixed. no idea how it got changed as I rarely go into the config.
that's awesome, thank you! problem fixed. no idea how it got changed as I rarely go into the config.
Hi, until recently i had my tv channels selectable by typing the channel number on my remote. for instance, i hit the number 9...
Replies
2
Views
903
Attached are new TV service logs with your latest DLL. I see lots of EPG events and none of the messages from earlier. Congratulations!
Attached are new TV service logs with your latest DLL. I see lots of EPG events and none of the messages from earlier. Congratulations!
I have some weird behavior trying to operate the MP GUI in a new installation of MP 1.36 under Windows 11 Pro. Some of the remote...
Replies
33
Views
2K
This is for the tvserver, the iptv part. It used to only support m3u files containing all the channels, but now you can use a m3u8 too. Usually you get an m3u8 from your iptv provider, but there are also some that can be found on the internet
This is for the tvserver, the iptv part. It used to only support m3u files containing all the channels, but now you can use a m3u8...
Hi! I read about [MP1-5236] - Add support for m3u8 files, but I can't find info on how to use this. So, where and how can I use...
Replies
1
Views
258
Top Bottom