NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 35 36 37 38 39 … 93 Next »
Easy version control for assemblies?

 
  • 0 Vote(s) - 0 Average
Easy version control for assemblies?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#1
2008-01-06, 08:36 PM
Using VS C# 2005 Express, I usually edit the AssemblyInfo.cs to contain something similar to...
Code:
[assembly: AssemblyVersion("1.1.*")]
...which auto-generates the build and revision numbers but this gives things like 1.1.2927.12087. I'd much rather have a simpler increment such as 1.1.4, 1.1.5 etc.

Obviously I could manually edit the AssemblyInfo.cs file with those values but with several assemblies in one solution, this is a bit of a hassle.

How do other developers handle this?

Cheers,
Brian
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#2
2008-01-06, 08:47 PM
I don't know if they do.

I do the same as you 1.1.* and when I list the version of the software it's 1.1 the other the numbers I don't tend to pay much attention to.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#3
2008-01-08, 12:58 AM
Thanks - it looks like I'll just stick with the way things are.

Cheers,
Brian
Ernie-c
Offline

Junior Member

Posts: 27
Threads: 2
Joined: Feb 2008
#4
2008-02-21, 08:28 AM
You can define a global const somewhere, and refer to it in every assemblyinfo :

public const string AssemblyVersion = "1.1.12.0";

...

[assembly: AssemblyFileVersion(GBPvr.X.Y.Constants.AssemblyVersion)]

Then you must only update it in one place and all your assemblies have the correct version.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Remote control example code? drmargarit 4 3,763 2018-04-21, 11:24 PM
Last Post: drmargarit
  API help - remote control greg in kansas 0 2,647 2016-07-04, 03:54 PM
Last Post: greg in kansas
  ios app to control npvr ui idea jnbooker15 4 3,581 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,461 2015-09-21, 06:39 PM
Last Post: jnbooker15
  Kinect Voice (Gesture) Control topcat 5 3,536 2014-09-20, 12:03 PM
Last Post: topcat
  Version control / repository software for VS Express bgowland 2 2,388 2014-05-02, 09:57 PM
Last Post: bgowland
  Discover NEWA version? bgowland 2 1,872 2014-01-06, 04:40 AM
Last Post: bgowland
  Trouble loading .NET System assemblies bgowland 3 2,364 2013-10-31, 02:37 AM
Last Post: bgowland
  Resolving required plugin assemblies problem McBainUK 37 11,982 2011-10-26, 06:12 PM
Last Post: psycik
  Web control framework mvallevand 9 4,498 2011-07-06, 12:30 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode