[Mono-bugs] [Bug 594531] New: Microsoft.VisualBasic.targets ignores default namespace

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 7 14:41:41 EDT 2010



           Summary: Microsoft.VisualBasic.targets ignores default
    Classification: Mono
           Product: Mono: Tools
           Version: 2.4.x
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: xbuild
        AssignedTo: jankit at novell.com
        ReportedBy: eli at wavemarket.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=352948)
 --> (http://bugzilla.novell.com/attachment.cgi?id=352948)
source files & project file described in test steps

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8

The version of Microsoft.VisualBasic.targets included in mono-xbuild
does not specify a RootNamespace parameter for the Vbc task, so the compiled
classes will end up with the wrong names unless you explicitly specify a
namespace in each.

Reproducible: Always

Steps to Reproduce:
1. Make sure xbuild ( and vbnc (2.4.2) are installed.

2. Edit Microsoft.VisualBasic.targets as described in bug 594526 to get around
a problem that prevents anything from compiling at all.

3. Create a VB class file Test1.vb, which just defines an empty class:
   Public Class Test1
   End Class

4. Create Test2.vb, which does the same but also specifies a namespace:
   Namespace ThisIsTheTest2Namespace
   Public Class Test2
   End Class
   End Namespace

5. Create a .vbproj file that compiles both files, and that specifies a
RootNamespace property that's different from the namespace used in Test2.

6. Run xbuild on the project file, then run monop to examine the output
Actual Results:  
In the output assembly, the Test1 class has no namespace. The Test2 class has
the namespace that was specified in the source file. The namespace from the
project file is ignored.

Expected Results:  
Test1 should've used the root namespace from the project file.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list