智能感知未在公共课程中显示,但在私人课程中显示 [英] intellisense not shown on public classes, but on private ones

查看:21
本文介绍了智能感知未在公共课程中显示,但在私人课程中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试将我自己的智能感知评论写入我的来源,如
stackoverflow 8240402
stackoverflow 1632942
但它还不能正常工作.我使用的是 VS 2008.

I am currently trying out writing my own Intellisense comments into my sources as described in
stackoverflow 8240402
stackoverflow 1632942
but it's not yet working correctly. I'm using VS 2008.

我有一个带有 ref class class1apublic ref class class1b 的程序集testAssembly"(编译为 DLL):

I have a assembly "testAssembly" (compiled to a DLL) with ref class class1a and public ref class class1b:

namespace testAssembly
{
  /// <summary>
  /// Testkommentar class1a
  /// </summary>
  ref class class1a
  {
    int m_iValue;

  public:
    /// <summary>
    /// Testkommentar class1a constructor
    /// </summary>
    class1a ();
    /// Testkommentar class1a func1a
    void func1a (int i_iValue);
  };
}

class1b 是相同的.

class1b is identical.

在这个 DLL 的项目中,它几乎可以正常工作(尽管愚蠢的摘要"和/摘要"也显示在智能感知工具提示中).我确实看到了除了 public ref class1b 之外的每个文本.

Inside this DLL's project, it's almost working fine (although the stupid 'summary' and '/summary' are also shown in the intellisense tooltip). I do see each text except the one of public ref class1b.

在另一个引用 DLL 项目的项目中(直接通过程序集,而不是通过文件),我确实看到了(私有)ref class1a 的文本(当然没有成员,因为它们是私有的),但没有 public ref class1b.

In another project which refers the DLL's project (directly via assembly, not via file), I do see the text of (private) ref class1a (none of the members of course as they are private), but none of public ref class1b.

当我添加或删除 public 时,行为也会改变.

And when I add or remove public, the behaviour changes, too.

我怎样才能让它工作?

推荐答案

我已经发现问题了:
这是命名空间!

删除命名空间后,所有注释都显示出来了.
似乎 VS2008 在解释不同命名空间的智能感知 XML 注释方面存在问题.

After removing the namespace, all of the comments were shown.
Seems like VS2008 has problems with interpreting intellisense XML comments of different namespaces.

谁能确认一下?
这个问题有解决方案吗?

Can anyone confirm that?
And is there a solution for this problem?

(顺便说一句:哪个 id*** 否决了我的问题?真的这么没用吗?)

(BTW: Which id*** downvoted my question? Is it really so useless?)


它现在可以正常工作了.
我找到了最终的解决方案:安装 SP1 和几个 SP1 的修补程序!
- VS2008SP1DEUx1512964.iso
- VS90SP1-KB957507-v2-DEU-x86.exe
- VS90SP1-KB957912-x86.exe
- VS90SP1-KB958017-x86.exe
- VS90SP1-KB960075-v2-x86.exe
- VS90SP1-KB963035-x86.exe
- VS90SP1-KB967631-x86.exe
- VS90SP1-KB971932-x86.exe
- VS90SP1-KB976656-x86.exe
- VS90SP1-KB2498381-x86.exe
可以在 MSDN 网站上找到修补程序说明.


It's now working correctly.
I have found the final solution: Install SP1 and a couple of hotfixes for SP1!
- VS2008SP1DEUx1512964.iso
- VS90SP1-KB957507-v2-DEU-x86.exe
- VS90SP1-KB957912-x86.exe
- VS90SP1-KB958017-x86.exe
- VS90SP1-KB960075-v2-x86.exe
- VS90SP1-KB963035-x86.exe
- VS90SP1-KB967631-x86.exe
- VS90SP1-KB971932-x86.exe
- VS90SP1-KB976656-x86.exe
- VS90SP1-KB2498381-x86.exe
hotfix descriptions can be found on the MSDN website.

这篇关于智能感知未在公共课程中显示,但在私人课程中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆