NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 31 32 33 34 35 … 193 Next »
Plug In Version Numbers

 
  • 0 Vote(s) - 0 Average
Plug In Version Numbers
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#11
2012-01-11, 02:15 AM
All of the info displayed when you select 'Properties' of a file in Windows Explorer can be obtained from...
Code:
System.Diagnostics.FileVersionInfo
...I use this to write out my assembly (build) version to log files on startup but I could as easily write out the company name, product version, copyright info etc
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,941
Threads: 956
Joined: May 2006
#12
2012-01-11, 02:28 AM
This explains what I am trying to say. http://stackoverflow.com/questions/64602...assemblyin You are seeing overides when you use only one of them.

Martin
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#13
2012-01-11, 03:05 AM
Actually I just checked my code and I was wrong. I changed things around recently to give a more concise file version in contrast to the assembly build version. It's still trivial to do though if devs keep their AssemblyInfo.cs up to date.

In AssemblyInfo.cs I have...

Code:
[assembly: AssemblyFileVersion("1.7.1")]
[assembly: AssemblyVersion("1.7.*")]

...and I get them separately using...
Code:
System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(nDroidServiceExePath);
serviceFileVersion = fvi.ProductVersion;
string assemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
Logging these gives me...
Code:
11/01/2012 02:43:51.359 nDroidService v1.7.1
11/01/2012 02:43:51.375 nDroidService Build: v1.7.4393.4909
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#14
2012-01-11, 03:09 AM
So why wouldn't you have your assembly version set to 1.7.1.* for consistency with the file version? I can't remember what the 4th section is supposed to be for.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#15
2012-01-11, 03:18 AM (This post was last modified: 2012-01-11, 03:26 AM by bgowland.)
psycik Wrote:So why wouldn't you have your assembly version set to 1.7.1.* for consistency with the file version? I can't remember what the 4th section is supposed to be for.
It's Major.Minor.Build.Revision and you can't use '*' for revision alone (VS chokes). If I remember correctly, the auto-generated Build.Revision are based on the number of minutes, seconds (or something) since Bill Gates last checked his bank account. Big Grin

EDIT - In my case (for nDroid at least) I'm maintaining a version of an Android client and a .NET service. Yeah, it's pretty crap versioning but it's the best I can do to keep myself sane. Sometimes I update one or the other or both - as long as I've got a record of which is where at what timeline I can mostly work out where to find my source code.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#16
2012-01-11, 03:21 AM
bgowland Wrote:...if devs keep their AssemblyInfo.cs up to date...
:eek: Wait... what?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#17
2012-01-11, 03:26 AM
whurlston Wrote::eek: Wait... What?
Breathe man, Breathe!!! Big Grin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  Nlite for current version of NextPVR dlindyds 7 1,238 2024-03-17, 03:56 AM
Last Post: sub
  New version notification LeGrandZombie 2 819 2023-05-05, 04:33 PM
Last Post: LeGrandZombie
Thumbs Up IPTV Channel Numbers seias 0 1,499 2020-01-08, 04:02 AM
Last Post: seias
  Thumbnail support for .wtv and .avi files in version 5 Jimixter 2 1,936 2019-12-18, 04:29 PM
Last Post: sub
  Nas app based version of NextPVR Jakesty 3 4,499 2019-03-22, 07:43 AM
Last Post: Jakesty
  EPG numbers matching Freeview LCN bicbasher 2 1,924 2018-03-08, 04:46 PM
Last Post: martinu
  Decimal numbers for channel numbers? spinnaker 2 1,973 2013-10-27, 06:04 AM
Last Post: haverer2
  a plug in to show how many hours remain on your hard drive(s) blegdon 3 2,118 2013-08-01, 07:29 PM
Last Post: HarryH3
  Freesat EPG Channel Numbers NumberFive 9 7,148 2012-02-21, 09:55 AM
Last Post: imilne
  Vertical Version of Menu in Default Skin jksmurf 0 1,132 2011-02-13, 02:23 AM
Last Post: jksmurf

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode