G
Guest
Hi there,
I am making a class libaray which is to use interop to work with a unmanaged
COM object. What happens is that I also need to use .manifest file to control
the version of COM object to load becuase there are multiple versions of COM
objects.
example: myapp.exe.manifest
<?xml version="1.0" ......
<dependency>
<dependentAssembly>
<assemblyIdentity name="..." version="1.3" ... <<== Here specify
the version of COM object to use
The problem is that I am making a class libaray not a .exe, therefore, I
need to figure out a way to embed this <dependecy..> into the class library's
assembly so that my class libaray will always load the right version of COM
object.
I have searched the net and tried many approaches and couldn't get it
working. Can someone who has the expereince share his input on this?
Many thanks and I really appreaciate your help.
I am making a class libaray which is to use interop to work with a unmanaged
COM object. What happens is that I also need to use .manifest file to control
the version of COM object to load becuase there are multiple versions of COM
objects.
example: myapp.exe.manifest
<?xml version="1.0" ......
<dependency>
<dependentAssembly>
<assemblyIdentity name="..." version="1.3" ... <<== Here specify
the version of COM object to use
The problem is that I am making a class libaray not a .exe, therefore, I
need to figure out a way to embed this <dependecy..> into the class library's
assembly so that my class libaray will always load the right version of COM
object.
I have searched the net and tried many approaches and couldn't get it
working. Can someone who has the expereince share his input on this?
Many thanks and I really appreaciate your help.