I have a C++ (mixed .dll managed & unmanaged) to expose a C# class to the
unmanage world. I'm creating an unmanaged method that calls a C++ managed
method that forwards the request to my C# class.
Traditional unmanaged code -> Unmanaged Wrapper -> Managed Wrapper -> C#
Everything is working fine, but my question is:
Do I need to have the C# assembly registered on the GAC for this to work, if
I don't do that, appears to me that C++ Managed doesn't find the C# assembly.
I'll like not to do that, so I can use xcopy deployment.
Thanks in advance
Daniel Petersson - 28 Jan 2005 13:57 GMT
No, You don't need to hace the C# wrapper registered in the GAC
but he fusion algorithm that locates the assembly needs to be able
to find the assembly according to it's normal lookup algorithm.
The easiest way to make fusion locate your assembly is to copy
it into the same directory as where the image of your process is
stored, ie where your .exe is located. There are several other
possible locations for the assembly but you can find information
about these at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conHowRuntimeLocatesAssemblies.asp
best regards
Daniel Petersson, Cefalo
daniel.petersson@cefalo.se
> I have a C++ (mixed .dll managed & unmanaged) to expose a C# class to the
> unmanage world. I'm creating an unmanaged method that calls a C++ managed
[quoted text clipped - 9 lines]
>
> Thanks in advance