Click here to Skip to main content
15,889,862 members
Home / Discussions / C#
   

C#

 
GeneralRe: Loading Dlls through C# Pin
Heath Stewart8-Jun-04 17:22
protectorHeath Stewart8-Jun-04 17:22 
GeneralRe: Loading Dlls through C# Pin
Heath Stewart9-Jun-04 2:16
protectorHeath Stewart9-Jun-04 2:16 
GeneralPrint Picture Pin
The_Soul_Of_Rock8-Jun-04 16:21
The_Soul_Of_Rock8-Jun-04 16:21 
GeneralRe: Print Picture Pin
Heath Stewart8-Jun-04 17:26
protectorHeath Stewart8-Jun-04 17:26 
GeneralRe: Print Picture Pin
The_Soul_Of_Rock8-Jun-04 17:58
The_Soul_Of_Rock8-Jun-04 17:58 
GeneralRe: Print Picture Pin
Heath Stewart8-Jun-04 18:02
protectorHeath Stewart8-Jun-04 18:02 
GeneralAbout case assembly version lessoned Pin
pig12348-Jun-04 16:11
pig12348-Jun-04 16:11 
GeneralRe: About case assembly version lessoned Pin
Heath Stewart8-Jun-04 17:32
protectorHeath Stewart8-Jun-04 17:32 
The assembly version is generated according to the documentation for the AssemblyVersionAttribute in the .NET Framework SDK. From the constructor documentation:
The format of the version string is: major. minor. build. revision.

When specifying a version, you have to at least specify major. If you specify major and minor, you can specify an asterisk (*) for build. This will cause build to be equal to the number of days since January 1, 2000 local time, and for revision to be equal to the number of seconds since midnight local time, divided by 2.

If you specify major, minor, and build, you can specify an asterisk for revision. This will cause revision to be equal to the number of seconds since midnight local time, divided by 2.
So, as you should see, the version is generated using the current time. If your system clock is off or different computers are using different times zones (more common than you think, especially if someone has "Change automatically for daylight saving time" checked and another doesn't), then the version number will decrease.

Let me make a new case for you, though: disable automatic versioning! If you truly understand assembly strong names (which include the version) and manage larger solutions, you'd know why. Version numbers can quickly get out of control when using automatic versions. This is especially troublesome when you have a common build directory in a large group of developers. If assembly versions are changing all the time, you get FileNotFoundExceptions since the assembly version that the calling assembly was built against doesn't exist. You can - through .config files or publisher policy assemblies - redirect these versions easily enough (at least if there's no breaking changes) but it becomes a nightmare to manage those as well. Trust me - I'm a software architect and build master for a 60+ project solution with lots of dependencies.

Read Redirecting Assembly Versions[^] and Creating a Publisher Policy File[^] for more information.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: About case assembly version lessoned Pin
pig12348-Jun-04 19:29
pig12348-Jun-04 19:29 
QuestionProject report generation using GDI+ ? Pin
sachinkalse8-Jun-04 14:48
sachinkalse8-Jun-04 14:48 
AnswerRe: Project report generation using GDI+ ? Pin
Heath Stewart8-Jun-04 17:43
protectorHeath Stewart8-Jun-04 17:43 
QuestionHow do i programatically restart the current website or appdomain Pin
kris.mackintosh8-Jun-04 12:33
kris.mackintosh8-Jun-04 12:33 
AnswerRe: How do i programatically restart the current website or appdomain Pin
Heath Stewart8-Jun-04 17:38
protectorHeath Stewart8-Jun-04 17:38 
GeneralHelp with Windows services Pin
quilkin8-Jun-04 11:58
quilkin8-Jun-04 11:58 
GeneralRe: Help with Windows services Pin
Heath Stewart8-Jun-04 12:21
protectorHeath Stewart8-Jun-04 12:21 
GeneralRe: Help with Windows services Pin
quilkin9-Jun-04 2:20
quilkin9-Jun-04 2:20 
GeneralRe: Help with Windows services Pin
quilkin9-Jun-04 5:49
quilkin9-Jun-04 5:49 
GeneralListbox not refreshing. Pin
shadow_nubcake8-Jun-04 11:28
shadow_nubcake8-Jun-04 11:28 
Generalevent not picked up by form Pin
RomanD8-Jun-04 10:16
RomanD8-Jun-04 10:16 
GeneralRe: event not picked up by form Pin
Heath Stewart8-Jun-04 11:35
protectorHeath Stewart8-Jun-04 11:35 
GeneralRe: event not picked up by form Pin
RomanD8-Jun-04 12:09
RomanD8-Jun-04 12:09 
QuestionHow do I lock and Unlock files Pin
silverbullet8-Jun-04 8:32
silverbullet8-Jun-04 8:32 
AnswerRe: How do I lock and Unlock files Pin
Heath Stewart8-Jun-04 8:43
protectorHeath Stewart8-Jun-04 8:43 
GeneralTreeView context Menu C# Windows Forms Pin
OMalleyW8-Jun-04 8:27
OMalleyW8-Jun-04 8:27 
GeneralRe: TreeView context Menu C# Windows Forms Pin
bneacetp8-Jun-04 15:42
bneacetp8-Jun-04 15:42 

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.