VS 2010 智能感知不适用于上转换项目
我们有一个非常大的 C++ 解决方案,其中有几个项目,智能感知在 Visual Studio 2008 中完美运行,但在 Visual Studio 2010 中根本不起作用(甚至对于在使用它们的同一文件中定义的结构也不起作用)。我已经验证智能感知确实可以在 VS 2010 中为我机器上的其他项目工作。我尝试从全新的解决方案导入有问题的项目之一,但没有成功。从头开始重新构建项目文件似乎很有希望,但需要花费数天的时间才能遵循这一路径,并且不能保证最终成功。欢迎任何替代建议。我收到的实际错误消息是:
“Intellisense:‘没有可用的附加信息’(请参阅‘C++ 项目中的 IntelliSense 故障排除’以获取进一步帮助。)
我已经尝试过了,但 MSDN 网页上基本上只有一个建议,即确保包含路径上有“stdafx.h”,但我们没有使用预编译头,也没有从任何地方包含它,所以我很确定这不是问题。
We have a very big C++ solution with several projects for which intellisense works perfectly in Visual Studio 2008, but not at all in Visual Studio 2010 (not even for structs defined in the same file where they are used). I've verified that intellisense does work in VS 2010 for other projects on my machine. I've tried importing one of the problematic projects from a brand-new solution with no success. Re-building the project files from scratch seems promising, but it would require days of work to follow that path, with no guarantee of success at the end. Any alternative suggestions are welcome. The actual error message I get is:
"Intellisense: 'No additional information available'(See 'Troubleshooting IntelliSense in C++ Projects' for further help.)
I've tried that, but there's basically only one suggestion on the MSDN webpage, to make sure "stdafx.h" on the include path, but we're not using precompiled headers and don't include it from anywhere, so I'm pretty sure that's not the problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否删除了所有生成的数据库(.ncb 和 .sdf)文件?损坏的数据库文件是 Visual Studio 无法显示 IntelliSense 的最可能原因。
Have you deleted all of the generated database (.ncb and .sdf) files? Corrupted database files is the most likely cause of Visual Studio failing to display IntelliSense.
Intellisense 未作为 Visual Studio 2010 for C++/CLI 的组件包含在内。不幸的是,他们似乎也不会很快支持它。这是一个令人难以置信的损害,因为我发现自己有时不得不打开 VS2005 来简单地查找对象成员。
以下是微软关于该主题的发布:
http://blogs.msdn.com/b/vcblog /archive/2011/03/03/10136696.aspx
Intellisense was not included as a component of Visual Studio 2010 for C++/CLI. Unfortunately, it seems they are not going to support it soon either. This is an incredible detriment, as i find myself having to open VS2005 on occasion to simply find an object member.
Here is Microsoft's release on the subject:
http://blogs.msdn.com/b/vcblog/archive/2011/03/03/10136696.aspx