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

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
695
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
2K
I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be. :( Perhaps someone else will post with some suggestions. :unsure: -- from CyberSimian in the UK
I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be...
Would appreciate it if someone could solve (or point me in the right direction to resolve) this issue. I have “MultiSeat”...
Replies
4
Views
764
  • Sticky
yes that is indeed what I did in that ticket. It may already be working without updating those plugins because most of it was not relevant to the plugin itself (test, some leftover unused parts etc).
yes that is indeed what I did in that ticket. It may already be working without updating those plugins because most of it was not...
We have just released MediaPortal 1.38 - Tatiana & Leo x86 and x64 version. Highlights of this release Bugfixes: New...
Replies
37
Views
5K
Thanks very much, Jasmeet. Worked. But note that this setting has moved, apparently, to: Settings > TV (not Plugins)
Thanks very much, Jasmeet. Worked. But note that this setting has moved, apparently, to: Settings > TV (not Plugins)
I recently did a fresh install of 2.5 on a new Windows 11 PC. My previous (Windows 10) version of 2.5 gave my broadcast TV channel...
Replies
2
Views
2K
Top Bottom