Click here to Skip to main content
15,900,907 members
Home / Discussions / C#
   

C#

 
GeneralRe: show form from worker thread Pin
Corinna John11-Dec-03 21:35
Corinna John11-Dec-03 21:35 
QuestionHow to displaying User Options in a Windows Service Pin
john ingram11-Dec-03 11:56
john ingram11-Dec-03 11:56 
AnswerRe: How to displaying User Options in a Windows Service Pin
Heath Stewart11-Dec-03 12:01
protectorHeath Stewart11-Dec-03 12:01 
Questionhow do I add a Footer to a datagrid (windows forms) Pin
mdolby11-Dec-03 11:25
mdolby11-Dec-03 11:25 
AnswerRe: how do I add a Footer to a datagrid (windows forms) Pin
Heath Stewart11-Dec-03 11:35
protectorHeath Stewart11-Dec-03 11:35 
GeneralRe: how do I add a Footer to a datagrid (windows forms) Pin
john ingram12-Dec-03 2:23
john ingram12-Dec-03 2:23 
Generalassembly versioning Pin
Dave Bryant11-Dec-03 11:05
Dave Bryant11-Dec-03 11:05 
GeneralRe: assembly versioning Pin
Heath Stewart11-Dec-03 11:31
protectorHeath Stewart11-Dec-03 11:31 
You can use the Win32 resource editing trick for the version of the executable, but not the assembly. Doing this will also invalidate signature if you use signed assemblies (and you should be, especially since it makes versioning easier via config files and policy assemblies, which must be in the GAC and assemblies in the GAC must be signed).

Even if you did change the version and resign the assembly, it still wouldn't be an easy task. You would have to emit an assembly based on a template (the existing assembly).

Frankly, IMO, just implement a policy whereby your developers put the appropriate assembly version into the [assembly: AssembyVersionAttribute] when compiling for the last time. Or, if you have a build master, he or she could either do it (or use a macro to change the AssemblyInfo.cs file (or wherever you put it) to make it quick) and then compile under a release build.

Just remember that the version number in the VersionInfo block of the executable's .rsrc section has little to no bearing on the assembly itself. The AssemblyVersion attribute is what matters, and that's in the MANIFEST for the assembly.

One example: Infragistics commonly updates their assemblies while leaving the AssemblyVersionAttribute with the same value, but changes the executable image's VersionInfo block so that the FileVersion is different. While this makes updating your applications without recompiling easier, it totally screws-over touchless deployment over the Internet because Fusion (the assembly binder) caches assemblies based on their strong name in the temporary assembly cache. Since the assembly version didn't change, the new code isn't always downloaded! (The cases where it is depends on Internet Explorer's cache settings.)

 

-----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-----
GeneralListView problem Pin
datainjector11-Dec-03 10:44
datainjector11-Dec-03 10:44 
GeneralRe: ListView problem Pin
Heath Stewart11-Dec-03 11:39
protectorHeath Stewart11-Dec-03 11:39 
GeneralRe: ListView problem Pin
datainjector12-Dec-03 7:52
datainjector12-Dec-03 7:52 
GeneralRe: ListView problem Pin
Heath Stewart12-Dec-03 8:36
protectorHeath Stewart12-Dec-03 8:36 
GeneralUsing Dropdownlist in Datagrid Pin
t_m2002052111-Dec-03 9:29
t_m2002052111-Dec-03 9:29 
GeneralRe: Using Dropdownlist in Datagrid Pin
Heath Stewart11-Dec-03 10:35
protectorHeath Stewart11-Dec-03 10:35 
GeneralComboBox DropDown Pin
Shaun Becker11-Dec-03 7:32
Shaun Becker11-Dec-03 7:32 
GeneralRe: ComboBox DropDown Pin
Not Active11-Dec-03 7:58
mentorNot Active11-Dec-03 7:58 
GeneralRe: ComboBox DropDown Pin
Shaun Becker11-Dec-03 8:23
Shaun Becker11-Dec-03 8:23 
GeneralRe: ComboBox DropDown Pin
Heath Stewart11-Dec-03 10:31
protectorHeath Stewart11-Dec-03 10:31 
GeneralLooking for other controls in design-time Pin
f_popovic11-Dec-03 6:34
f_popovic11-Dec-03 6:34 
GeneralRe: Looking for other controls in design-time Pin
Heath Stewart11-Dec-03 10:23
protectorHeath Stewart11-Dec-03 10:23 
GeneralRe: Looking for other controls in design-time Pin
f_popovic12-Dec-03 0:17
f_popovic12-Dec-03 0:17 
GeneralRe: Looking for other controls in design-time Pin
Heath Stewart12-Dec-03 3:50
protectorHeath Stewart12-Dec-03 3:50 
GeneralRe: Looking for other controls in design-time Pin
f_popovic13-Dec-03 23:43
f_popovic13-Dec-03 23:43 
GeneralRe: Looking for other controls in design-time Pin
Heath Stewart14-Dec-03 5:36
protectorHeath Stewart14-Dec-03 5:36 
GeneralRe: Looking for other controls in design-time Pin
f_popovic14-Dec-03 21:33
f_popovic14-Dec-03 21:33 

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.