I may be a little late, but check this one out.
Using this small msbuild task, you can create a C # library that can be called as if it were a native DLL. (e.g. write plugins for applications that require them to be native DLLs)
Oh, and don't forget to use a project template that will customize everything for you.
Robert Giesecke
source share