1.C#已经通过路径添加引用
2.C#using以及类的代码并没有红色报错
3.可以通过F12直接跳到引用的托管C++类中.
报错:
Error 1 The type or namespace name 'CppInteropWrapper' could not be found (are you missing a using directive or an assembly reference?)
C#调用托管C++出现namespace name could not be found错误
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- threenewbee 2017-01-29 17:46关注
CppInteropWrapper是类名还是命名空间名,如果是前者或者两者相同,用 CppInteropWrapper.CppInteropWrapper
解决 无用评论 打赏 举报