Click here to Skip to main content
15,887,285 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: any tips to share on Build number maintainence? Pin
Southmountain27-Aug-23 10:08
Southmountain27-Aug-23 10:08 
GeneralRe: any tips to share on Build number maintainence? Pin
lmoelleb26-Aug-23 8:30
lmoelleb26-Aug-23 8:30 
GeneralRe: any tips to share on Build number maintainence? Pin
OriginalGriff26-Aug-23 8:43
mveOriginalGriff26-Aug-23 8:43 
GeneralRe: any tips to share on Build number maintainence? Pin
lmoelleb26-Aug-23 8:49
lmoelleb26-Aug-23 8:49 
GeneralRe: any tips to share on Build number maintainence? Pin
OriginalGriff26-Aug-23 11:15
mveOriginalGriff26-Aug-23 11:15 
GeneralRe: any tips to share on Build number maintainence? Pin
RickZeeland26-Aug-23 9:00
mveRickZeeland26-Aug-23 9:00 
GeneralRe: any tips to share on Build number maintainence? Pin
Ralf Quint28-Aug-23 5:58
Ralf Quint28-Aug-23 5:58 
GeneralRe: any tips to share on Build number maintainence? Pin
Patrick Hendry 202130-Aug-23 12:12
Patrick Hendry 202130-Aug-23 12:12 
I use the build in mechanism to automatically generate the 3rd (version) and 4th (revision) parts of the build number. The 3rd value is the day of the build and the 4th value is a value representing the minutes within the day.
So in assemblyInfo.cs have:
[assembly: AssemblyVersion("4.1.*")]
I have the major and minor set to 4.1 but these can be set to any numbers.
To retrieve the full version number values use:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Reflection;
using System.Diagnostics;
using System.IO;

static int Main(string[] args)
{
Assembly assembly = Assembly.GetExecutingAssembly();
FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(assembly.Location);
string version = fileVersionInfo.ProductVersion;
int majorNo = fileVersionInfo.FileMajorPart;
int minorNo = fileVersionInfo.FileMinorPart;
int buildNo = fileVersionInfo.ProductBuildPart;
int revisionNo = fileVersionInfo.ProductPrivatePart;
}
GeneralDoes Anyone Use OneDrive? Pin
Roger Wright26-Aug-23 5:45
professionalRoger Wright26-Aug-23 5:45 
GeneralRe: Does Anyone Use OneDrive? Pin
PIEBALDconsult26-Aug-23 6:00
mvePIEBALDconsult26-Aug-23 6:00 
GeneralRe: Does Anyone Use OneDrive? Pin
lmoelleb26-Aug-23 6:16
lmoelleb26-Aug-23 6:16 
GeneralRe: Does Anyone Use OneDrive? Pin
charlieg28-Aug-23 1:32
charlieg28-Aug-23 1:32 
GeneralRe: Does Anyone Use OneDrive? Pin
lmoelleb28-Aug-23 2:05
lmoelleb28-Aug-23 2:05 
GeneralRe: Does Anyone Use OneDrive? Pin
charlieg28-Aug-23 2:19
charlieg28-Aug-23 2:19 
GeneralRe: Does Anyone Use OneDrive? Pin
devenv.exe26-Aug-23 6:32
professionaldevenv.exe26-Aug-23 6:32 
GeneralRe: Does Anyone Use OneDrive? Pin
Richard MacCutchan26-Aug-23 6:35
mveRichard MacCutchan26-Aug-23 6:35 
GeneralRe: Does Anyone Use OneDrive? Pin
Slacker00726-Aug-23 6:44
professionalSlacker00726-Aug-23 6:44 
GeneralRe: Does Anyone Use OneDrive? Pin
Southmountain26-Aug-23 7:49
Southmountain26-Aug-23 7:49 
GeneralRe: Does Anyone Use OneDrive? Pin
Slacker00726-Aug-23 8:28
professionalSlacker00726-Aug-23 8:28 
GeneralRe: Does Anyone Use OneDrive? Pin
OriginalGriff26-Aug-23 8:38
mveOriginalGriff26-Aug-23 8:38 
GeneralRe: Does Anyone Use OneDrive? Pin
obermd26-Aug-23 15:43
obermd26-Aug-23 15:43 
GeneralRe: Does Anyone Use OneDrive? Pin
Gerry Schmitz26-Aug-23 21:46
mveGerry Schmitz26-Aug-23 21:46 
GeneralRe: Does Anyone Use OneDrive? Pin
dandy7227-Aug-23 4:00
dandy7227-Aug-23 4:00 
GeneralRe: Does Anyone Use OneDrive? Pin
kmoorevs27-Aug-23 7:28
kmoorevs27-Aug-23 7:28 
GeneralRe: Does Anyone Use OneDrive? Pin
Jeremy Falcon27-Aug-23 14:20
professionalJeremy Falcon27-Aug-23 14:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.