I have c++ dll that i am converting to c++/cli. After setting /clr compiler option, my project builds fine. However, when I try to reference native methods by referencing the dll from a c# project, c# project isn t able to find it. Doesn t setting /clr build all source code to MSIL which should be visible from other .net assembly? Why do I have to make a c++/cli wrapper class to make native code visible to c# code?
我不清楚C++/cli是如何运作的...