Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ignoring the version of C# dll assembly Pin
sreejith ss nair15-Aug-04 21:20
sreejith ss nair15-Aug-04 21:20 
GeneralRe: Ignoring the version of C# dll assembly Pin
ting66815-Aug-04 23:48
ting66815-Aug-04 23:48 
GeneralRe: Ignoring the version of C# dll assembly Pin
sreejith ss nair15-Aug-04 23:59
sreejith ss nair15-Aug-04 23:59 
GeneralRe: Ignoring the version of C# dll assembly Pin
CNU15-Aug-04 21:57
CNU15-Aug-04 21:57 
GeneralRe: Ignoring the version of C# dll assembly Pin
ting66815-Aug-04 23:45
ting66815-Aug-04 23:45 
GeneralRe: Ignoring the version of C# dll assembly Pin
CNU15-Aug-04 23:59
CNU15-Aug-04 23:59 
GeneralRe: Ignoring the version of C# dll assembly Pin
leppie16-Aug-04 2:28
leppie16-Aug-04 2:28 
GeneralRe: Ignoring the version of C# dll assembly Pin
LongRange.Shooter16-Aug-04 5:29
LongRange.Shooter16-Aug-04 5:29 
There are two ways that you can deal with the versioning issue.

The first is to manually manage your version numbers. This is done via the AssemblyInfo.cs file. When the version value is 1.0.* the * tells the compiler to increment with each build. Making it fixed: 2.5.0.0 for example, makes it a fixed version number. The problem is that a developer can make a breaking change and not reflect it since they forgot to change version number.

The second approach is to use reflection to load the assembly. Doing something similar to this: (untested code written off the top of my head)
string ObjectName = Path.Combine(dllPath, dllName);
Assembly container = Assembly.LoadFile(ObjectName);
Type object = container.GetType(objectNamespace);
object.InvokeMember(methodName, blah blah blah)


You can load the dll regardless of version. But you are now doing it all late binding which is TERRIBLY slow. I highly recommend you not consider doing this method.

This signature left intentionally blank
GeneralRe: Ignoring the version of C# dll assembly Pin
ting66816-Aug-04 15:53
ting66816-Aug-04 15:53 
GeneralInvoke/BeginInvoke Problem Pin
khchan15-Aug-04 20:56
khchan15-Aug-04 20:56 
GeneralRe: Invoke/BeginInvoke Problem Pin
Stanciu Vlad16-Aug-04 2:08
Stanciu Vlad16-Aug-04 2:08 
GeneralRe: Invoke/BeginInvoke Problem Pin
leppie16-Aug-04 2:39
leppie16-Aug-04 2:39 
GeneralRe: Invoke/BeginInvoke Problem Pin
khchan16-Aug-04 16:59
khchan16-Aug-04 16:59 
GeneralInherited GroupBox or Panel Pin
Clickok15-Aug-04 20:56
Clickok15-Aug-04 20:56 
GeneralRe: Inherited GroupBox or Panel Pin
sreejith ss nair15-Aug-04 21:44
sreejith ss nair15-Aug-04 21:44 
GeneralRe: Inherited GroupBox or Panel Pin
Clickok15-Aug-04 21:56
Clickok15-Aug-04 21:56 
GeneralStructure and Interface Pin
Paul Selormey15-Aug-04 19:53
Paul Selormey15-Aug-04 19:53 
GeneralRe: Structure and Interface Pin
S Sansanwal15-Aug-04 21:03
S Sansanwal15-Aug-04 21:03 
GeneralRe: Structure and Interface Pin
Paul Selormey15-Aug-04 21:32
Paul Selormey15-Aug-04 21:32 
GeneralRe: Structure and Interface Pin
Nick Parker16-Aug-04 3:29
protectorNick Parker16-Aug-04 3:29 
GeneralRe: Structure and Interface Pin
Paul Selormey16-Aug-04 3:58
Paul Selormey16-Aug-04 3:58 
GeneralArrayList comparsion Pin
azusakt15-Aug-04 16:49
azusakt15-Aug-04 16:49 
GeneralRe: ArrayList comparsion Pin
sreejith ss nair15-Aug-04 17:44
sreejith ss nair15-Aug-04 17:44 
GeneralRe: ArrayList comparsion Pin
leppie15-Aug-04 19:17
leppie15-Aug-04 19:17 
GeneralRe: ArrayList comparsion Pin
Danny Rodriguez15-Aug-04 20:28
Danny Rodriguez15-Aug-04 20:28 

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.