Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5334

Maven build error: The type or namespace name does not exist in the namespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.2.1
    • None
    • Errors
    • None
    • WinXp, .Net 3.5, Maven 2.2.1, jdk1.6.0_34

    Description

      I build .Net project using Maven (http://maven.apache.org/). I have used .Net assembly System.DirectoryServices in the project and build pass ok. But when I add assembly System.DirectoryServices.Protocols build fails with errors:

      ClassName.cs(13,32): error CS0234: The type or namespace name 'Protocols' does not exist in the namespace 'System.DirectoryServices' (are you missing an assembly reference?) ClassName.cs(684,81): error CS0246: The type or namespace name 'SearchResultEntry' could not be found (are you missing a using directive or an assembly reference?)

      It looks like maven unable to resolve assembly name System.DirectoryServices.Protocols and search all classes that placed in System.DirectoryServices.Protocols in assembly System.DirectoryServices.

      Assembly System.DirectoryServices.Protocols is added to project file and projects builds ok with Visual Studio, but with Maven not...

      So, how I can fix above error or explain me please alghoritm of resolving .Net assemblies in Maven.

      Attachments

        Activity

          People

            Unassigned Unassigned
            digor_ua Igor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: