Click here to Skip to main content
15,567,221 members
Home / Discussions / C#
   

C#

 
GeneralCryptGenKey -use of ALG_ID type Pin
Member 51467215-Jan-04 5:39
Member 51467215-Jan-04 5:39 
GeneralRe: CryptGenKey -use of ALG_ID type Pin
Heath Stewart15-Jan-04 7:28
protectorHeath Stewart15-Jan-04 7:28 
QuestionWhy rebuild everything? Pin
Carl Mercier15-Jan-04 5:13
Carl Mercier15-Jan-04 5:13 
AnswerRe: Why rebuild everything? Pin
Not Active15-Jan-04 6:38
mentorNot Active15-Jan-04 6:38 
GeneralRe: Why rebuild everything? Pin
Carl Mercier15-Jan-04 6:41
Carl Mercier15-Jan-04 6:41 
GeneralRe: Why rebuild everything? Pin
Heath Stewart15-Jan-04 7:21
protectorHeath Stewart15-Jan-04 7:21 
GeneralRe: Why rebuild everything? Pin
Carl Mercier15-Jan-04 10:55
Carl Mercier15-Jan-04 10:55 
GeneralRe: Why rebuild everything? Pin
Heath Stewart15-Jan-04 11:05
protectorHeath Stewart15-Jan-04 11:05 
Trust me, maintaining your own versions can be a real blessing! I'm both the software architect and the build master so it's one thing I have to worry about. It didn't take me long to make policy that we do it ourselves. Besides, look at all your commercial .NET libraries and find a good one that uses automated versioning! Smile | :)

With our app, it was even more crucial. For testing, we all drop assemblies in a repository for varoius reasons (like only some people have licenses to third-party libraries, though we use very few). We do use assembly binding redirection in our .config file because our app is deployed as a touchless-deployment smart client that we can easily update, but it got to be a complete hastle to keep synced when many different people are dropped locally-tested assemblies in a testing repository!

If it would give you any ideas, here's how we do ours: the major and minor versions are still incremented as most applications are. The build number is the same as what it is in .NET when you use an asterisk in that position: the number of days since Jan. 1, 2000 (ex, 1475 for today). .NET uses the number of seconds since midnight of the current day modulo 2 for the revision number, but we simply increment that for bugfixes to an existing, already-deployed assembly. Feature enhancements is what usually constitutes a minor or major version number increment. The build number we typically use to just track the date since the aforementioned epoch when the assembly was build. That's what .NET's automatic versioning seems to do anway.

Now, what I'm still wondering about is how Microsoft manages there. Take a look at .NET 1.0 assemblies: 1.0.3300.0 (1.0.3300.228 for a file version - not assembly version - for SP2). For .NET 1.1 assemblies, they use 1.0.5000.0. Why that's not 1.1.5000.0 and what that build number represents I don't know. Also note that they don't change their assembly versions for service packs. You could also consider that, using the AssemblyFileVersionAttribute instead for bug fixes instead of the AssemblyVersionAttribute.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Why rebuild everything? Pin
Carl Mercier15-Jan-04 12:19
Carl Mercier15-Jan-04 12:19 
GeneralRe: Why rebuild everything? Pin
Carl Mercier16-Jan-04 7:10
Carl Mercier16-Jan-04 7:10 
GeneralRe: Why rebuild everything? Pin
Not Active15-Jan-04 8:16
mentorNot Active15-Jan-04 8:16 
Generalscale a bitmap with 1bppIndexed Pin
FiDz15-Jan-04 4:59
FiDz15-Jan-04 4:59 
GeneralSelectedText in a ComboBox startup problem Pin
= M =15-Jan-04 4:53
professional= M =15-Jan-04 4:53 
GeneralRe: SelectedText in a ComboBox startup problem Pin
Mike Osbahr30-Jan-04 10:11
Mike Osbahr30-Jan-04 10:11 
GeneralPropertyGrid customization Pin
kaloyan15-Jan-04 4:28
kaloyan15-Jan-04 4:28 
GeneralRe: PropertyGrid customization Pin
Heath Stewart15-Jan-04 7:05
protectorHeath Stewart15-Jan-04 7:05 
GeneralRe: PropertyGrid customization Pin
kaloyan15-Jan-04 23:31
kaloyan15-Jan-04 23:31 
Generala beginner's question Pin
Forrest Feather15-Jan-04 3:56
Forrest Feather15-Jan-04 3:56 
GeneralRe: a beginner's question Pin
Guinness4Strength15-Jan-04 4:49
Guinness4Strength15-Jan-04 4:49 
GeneralRe: a beginner's question Pin
Colin Angus Mackay15-Jan-04 5:16
Colin Angus Mackay15-Jan-04 5:16 
GeneralRe: a beginner's question Pin
HAHAHA_NEXT15-Jan-04 11:58
HAHAHA_NEXT15-Jan-04 11:58 
GeneralQuestion about multicast Pin
Korby15-Jan-04 2:49
Korby15-Jan-04 2:49 
GeneralRe: Question about multicast Pin
Heath Stewart15-Jan-04 7:02
protectorHeath Stewart15-Jan-04 7:02 
Generalwinforms: aligning of column headers Pin
troels_sorensen15-Jan-04 2:23
troels_sorensen15-Jan-04 2:23 
GeneralRe: winforms: aligning of column headers Pin
Heath Stewart15-Jan-04 6:53
protectorHeath Stewart15-Jan-04 6:53 

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.