intellisense没有显示在公共类,但在私人 [英] intellisense not shown on public classes, but on private ones

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

问题描述

我目前正在尝试将我自己的Intellisense评论写入我的来源,如
中所述
stackoverflow 8240402

stackoverflow 1632942

,但它不能正常工作。我使用VS 2008.



我有一个程序集testAssembly(编译成一个DLL)与 ref class class1a public ref class class1b

 命名空间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是相同的。



在这个DLL的项目中,它几乎工作正常(虽然愚蠢的'summary'和'/ summary'也显示在intellisense工具提示)。我看到每个文本,除了 public ref class1b 之一。



在另一个引用DLL的项目(直接通过汇编,而不是通过文件)的项目中,我看到的文本(private) ref class1a (没有成员当然是私有的),但是没有 public ref class1b



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



我如何让它工作?

解决方案

我发现问题:

它是命名空间!



删除命名空间后,显示所有注释。

看起来像VS2008在解释不同命名空间的intellisense XML注释时有问题。



任何人都可以确认?

这个问题有解决方案吗? p>

(BTW:which id *** downvote my question?Is it really so used?)



编辑:

它现在可以正常工作。

我找到了最终的解决方案:安装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 < br>
- VS90SP1-KB971932-x86.exe

- VS90SP1-KB976656-x86.exe

- VS90SP1-KB2498381-x86.exe

hotfix说明可以在MSDN网站上找到。


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.

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 is identical.

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.

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.

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

How can I get it to work?

解决方案

I have found the problem:
It's the namespace!

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?

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

Edit:
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.

这篇关于intellisense没有显示在公共类,但在私人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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