Make a C# wrapper for a managed assembly
Posted on 2013-01-20
Before I begin, let me start my saying, I understand what I am asking for is very unusual
and not normally required.
I have a serial of assemblies, six in total. The are true .Net assemblies. They are actually the Red-gate SQL Compare SDK assemblies.
I have a license to use these, however, the license only allows me to build against them on one machine. I actually have three computers which I use on a regular basis, and more than once have needed to recompile my app to fix a bug on a machine that does not have the license installed.
My solution to this, is, I wish to make a wrapper dll, that will allow me to have all the functionality of the original dlls. I could then build this against the correct licence then use this dll as is, on all my computers, with the need to recompile it.
The Red-gate website actually suggest this as an option to prevent constant re-licensing.
My question is, as these assemblies have many classes, methods, enums, etc. is there a simple way to make this wrapper, without having to manually map every class, method, function, enum etc.
I know with COM+ I can use the .Net import tools, but I have never seen a tool to import a .Net assembly.
Any and all help is greatly appreciated.