Resharper 无法识别托管 C++ C# 项目中引用的 /clr 项目
我已经有这个问题很长时间了。我有一个 .net 解决方案,其中包含 C# 和托管 C++ 项目。 StartUp 项目是一个引用托管 C++ 项目的 C# 项目。 一切都编译并执行良好。但是,Resharper 将我的托管 C++ 项目中定义的命名空间和类标记为未解析:
我如何告诉 Resharper“获取我的托管 C++ 命名空间和类有效的备忘录”?
I have had this problem for a long time. I have a .net solution that contains both C# and Managed C++ projects. The StartUp project is a C# project which reference the Managed C++ project. Everything compiles and executes fine. However, Resharper flags the namespace and Classes defined in my Managed C++ project as unresolved:
How Can I tell Resharper to "Get the Memo" that my Managed C++ namespace and Classes are valid?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也有这个问题。然后我意识到,由于 C++/clr 项目是一个基础设施项目,我很少再接触它,因此在确保它在所有需要的配置中正确构建后,我可以简单地将其卸载到项目中。
卸载项目并重建解决方案以提高安全性后,ReSharper 似乎并不“了解”引用的项目,而仅使用其构建的程序集,并且问题不再发生。
I had this problem too. I then realized that since the C++/clr project is an infrastructure project I rarely touch any more, I can simply unload it in the project after making sure it is properly built in all needed configurations.
After unloading the project, and a solution rebuild for extra safety, it seems ReSharper didn't "know" about the referenced project, and only used its built assembly, and the problem didn't occur anymore.