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

Sorted, it is a Rating flag that I have never seen before, silly me !! Cheers Tony
Sorted, it is a Rating flag that I have never seen before, silly me !! Cheers Tony
I have just done a clean install of v1.36. Current setup Media Portal 1.36 Titan skin (only classic home) TV Series 4.5.1.737...
Replies
1
Views
472
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
2K
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
3K
Got a reply from SD ... "Looks like your last successful download was on 5/23. On 5/24 for some reason we received 194 connections between 10:54 and 11:05 triggering a denial of service attack ban. The logs show it was lifted on 5/25, but I still see the entry in iptables. I reset fail2ban and hopefully you're working again." Weird...
Got a reply from SD ... "Looks like your last successful download was on 5/23. On 5/24 for some reason we received 194...
I'm using MediaPortal 1.38.1 x64 and have an SD-DD lineup account. In the last week, I have not been able to update my EPG, and...
Replies
3
Views
610
Top Bottom