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

Similar threads

I meant use MP client to try to spot how it's requesting streams for specific channels and then try to do the same with VLC. TV Server development looks dead so I'm afraid you're going to have to figure that out by yourself if it's even possible.
I meant use MP client to try to spot how it's requesting streams for specific channels and then try to do the same with VLC. TV...
Hi everyone, I've set up Mediaportal TV Server on a Windows 11 box, tuner deteced okay, scanned channels, can preview, all seems...
Replies
8
Views
1K
TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the plugin has. It might be 32-bit, or it might be "any cpu". The plugin is not listed by the "MP Extensions" tool, so I don't know whether it has been tested with the most-recent MP releases. -- from...
TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the...
I'm looking for a better recording scheduler. Many recording titles (at least in the UK) change between episodes, sometimes being...
Replies
4
Views
1K
I have added a scheduled task to MariaDB to delete all entries with the same start and end date
I have added a scheduled task to MariaDB to delete all entries with the same start and end date
Hello, I'm encountering an issue after importing EPG data into the TV-Server/Database. The Problem: After importing an XMLTV...
Replies
7
Views
2K
Thank you for this tip! I'm moving MP TV Server to a new machine. I installed the 64-bit version and most of the MP firewall rules were set to Public. I couldn't connect to the new TV Server from my old single-seat installation running 32-bit until I changed all MP-related firewall rules on the new machine to Private. Before I did...
Thank you for this tip! I'm moving MP TV Server to a new machine. I installed the 64-bit version and most of the MP firewall...
Server and client on modern uptodate Windows 11 desktop. Software is Server and Client version x86 1.38.003 Remote client on...
Replies
26
Views
2K
MP1 MP2 MP-TVSeries DE
Just tried to install it from the extension manger, and the it works like a charm ...
Just tried to install it from the extension manger, and the it works like a charm ...
I just had to reinstall my MePo due to windows 11 upgrade. And since i was told MePo 2 is not being maintaind, i thought well lets...
Replies
4
Views
1K
Top Bottom