I have an application primarily written in C#
but it relies on some Win32
functionality not available through the .NET framework, and since I did not
want to deal with PInvokes and redefining structures, I wrapped the Win32
stuff in a managed c++ dll. So far so good. However, now I need to expose
some of the objects from the c# portion of my application to the c++ dll.
The problem is that I can't compile the c# portion without referenceing the
c++ dll, but I can create the dll without the c# definitions. I guess one
solution would be to seperate the common definitions I need in a seperate
library which I could then reference or move them to the c++ wrapper. I was
wondering if anyone could suggest a cleaner way of doing this.