You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Igor (JIRA)" <ji...@codehaus.org> on 2012/08/22 13:43:21 UTC

[jira] (MNG-5334) Maven build error: The type or namespace name does not exist in the namespace

Igor created MNG-5334:
-------------------------

             Summary: Maven build error: The type or namespace name does not exist in the namespace
                 Key: MNG-5334
                 URL: https://jira.codehaus.org/browse/MNG-5334
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Errors
    Affects Versions: 2.2.1
         Environment: WinXp, .Net 3.5, Maven 2.2.1, jdk1.6.0_34
            Reporter: Igor


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira