Click here to Skip to main content
16,014,294 members
Home / Discussions / C#
   

C#

 
GeneralRe: DllImport specification Pin
David M. Kean19-May-04 12:41
David M. Kean19-May-04 12:41 
GeneralRe: DllImport specification Pin
Heath Stewart19-May-04 13:25
protectorHeath Stewart19-May-04 13:25 
GeneralRe: DllImport specification Pin
David M. Kean19-May-04 16:11
David M. Kean19-May-04 16:11 
GeneralRe: DllImport specification Pin
Colin Angus Mackay21-May-04 9:13
Colin Angus Mackay21-May-04 9:13 
GeneralDesigner error Pin
Steve Schaneville19-May-04 11:47
professionalSteve Schaneville19-May-04 11:47 
GeneralRe: Designer error Pin
Heath Stewart19-May-04 13:36
protectorHeath Stewart19-May-04 13:36 
GeneralRe: Designer error Pin
Steve Schaneville19-May-04 17:08
professionalSteve Schaneville19-May-04 17:08 
GeneralRe: Designer error Pin
Heath Stewart19-May-04 18:40
protectorHeath Stewart19-May-04 18:40 
For one, don't use automatic versioning (i.e., using an asterisk (*) in your AssemblyVersionAttribute). Fix your version numbers using a versioning schema to your liking. Version numbers on .NET assemblies actually mean something unlike version numbers for Win32 executables. If a two Types differ only by version numbers, they are not the same Type.

If you're going to install into the GAC, you have to sign your assembly (which you should do anyway - there's never an excuse not to). Use sn.exe -k KeyFile.snk to generate a key pair named KeyFile.snk (or whatever you want to call it) and set the path in your AssemblyKeyFileAttribute, or install it into a CSP using sn.exe -k KeyPair.snk MyKeyPair and use that name ("MyKeyPair") in your AssemblyKeyNameAttribute. I recommend using the same key pair for all your assemblies, or at least all your assemblies for a particular product.

You don't need to uninstall these as the GAC allows for side-by-side versioning of assemblies. If these assemblies are changing often, however, I recommend that that you don't install into the GAC and make sure you set up a Project reference - not a simple assembly reference - in your multi-project solution so that Project B has a dependency on Project A - not Project A's assembly. This keeps versions and builds of assemblies in sync and you should not have the problems you're having (unless something else is causing it, of course).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Designer error Pin
Steve Schaneville19-May-04 18:55
professionalSteve Schaneville19-May-04 18:55 
GeneralRe: Designer error Pin
Heath Stewart19-May-04 19:05
protectorHeath Stewart19-May-04 19:05 
GeneralRe: Designer error Pin
Steve Schaneville19-May-04 19:16
professionalSteve Schaneville19-May-04 19:16 
GeneralHelp with CR 9 for C#.NET Pin
frank2119-May-04 10:52
frank2119-May-04 10:52 
GeneralRe: Help with CR 9 for C#.NET Pin
Heath Stewart19-May-04 11:00
protectorHeath Stewart19-May-04 11:00 
GeneralRe: Help with CR 9 for C#.NET Pin
frank2120-May-04 2:21
frank2120-May-04 2:21 
QuestionTab Control ? Pin
triso19-May-04 10:32
triso19-May-04 10:32 
AnswerRe: Tab Control ? Pin
Heath Stewart19-May-04 10:50
protectorHeath Stewart19-May-04 10:50 
GeneralRe: Tab Control ? Pin
triso19-May-04 12:23
triso19-May-04 12:23 
GeneralRe: Tab Control ? Pin
Heath Stewart19-May-04 13:27
protectorHeath Stewart19-May-04 13:27 
GeneralRe: Tab Control ? Pin
Anonymous20-May-04 12:24
Anonymous20-May-04 12:24 
GeneralRe: Tab Control ? Pin
Heath Stewart21-May-04 3:07
protectorHeath Stewart21-May-04 3:07 
QuestionHow do I search these forums? Pin
Steve Schaneville19-May-04 9:49
professionalSteve Schaneville19-May-04 9:49 
AnswerRe: How do I search these forums? Pin
Judah Gabriel Himango19-May-04 10:03
sponsorJudah Gabriel Himango19-May-04 10:03 
AnswerRe: How do I search these forums? Pin
Colin Angus Mackay19-May-04 10:03
Colin Angus Mackay19-May-04 10:03 
GeneralRe: How do I search these forums? Pin
Judah Gabriel Himango19-May-04 10:20
sponsorJudah Gabriel Himango19-May-04 10:20 
GeneralRe: How do I search these forums? Pin
Steve Schaneville19-May-04 11:39
professionalSteve Schaneville19-May-04 11:39 

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.