Call C# dll from unmanaged C++ app without COM

前端 未结 4 1601
Happy的楠姐
Happy的楠姐 2021-01-03 02:36

Is there a way to call c# dll from c++ unmanaged application without COM usage?

4条回答
  •  感动是毒
    2021-01-03 02:51

    I might be a bit late, but check this out.

    Using this little msbuild task, you can create a C# library that can be called as if it were a native DLL. (e.g. write plugins for apps that require them to be native dlls)

    Oh and don't forget to use the project template, which will setup everything for you.

提交回复
热议问题