locked
The type or namespace name 'Module' could not be found (are you missing a using directive or an assembly reference?) RRS feed

  • Question

  • i see the following code in the rule class library:

    public override ProblemCollection Check(Module module)
            {
                this.VerifyAttributes(module.Attributes);
                return this.Problems;
            }

    but it give me the following error:

    Error    1    The type or namespace name 'Module' could not be found (are you missing a using directive or an assembly reference?) 

    I hope that one expert can help me to fix this problem?

    Thanks in advance.
    Tuesday, July 21, 2009 8:55 PM

Answers

  • In FxCop 1.36, it is called ModuleNode, not Module.

    Also, be sure you have added a reference to C:\Program Files\Microsoft FxCop 1.36\Microsoft.Cci.dll.
    • Marked as answer by liurong luo Wednesday, July 22, 2009 4:15 AM
    Tuesday, July 21, 2009 10:42 PM