[Mono-bugs] [Bug 707279] New: NSBundle.MainBundle.PathForResource("mydata", "xml") stopped returning a path in beta and fails to return the path (null)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jul 21 05:22:52 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=707279

https://bugzilla.novell.com/show_bug.cgi?id=707279#c0


           Summary: NSBundle.MainBundle.PathForResource("mydata", "xml")
                    stopped returning a path in beta and fails to return
                    the path (null)
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: iPad
        OS/Version: Apple iOS 4.3
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: frego at novell.com
        ReportedBy: develop at electricscribble.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101
Firefox/5.0

Code which was working before installing
MonoFramework-MDK-2.10.2_5.4.macos10.novell.x86.dmg package no longer returns a
path to the xml file (just returns null).

Code was:

string myPath = NSBundle.MainBundle.PathForResource("mydata", "xml");

I compiled this code before upgrading, upgraded, then recompiled and it no
longer works.

Reproducible: Always

Steps to Reproduce:
See details.
Actual Results:  
returned null

Expected Results:  
return string path to xml file.

I haven't done extensive testing to see how widespread this is, but could be
major.

-- 
Configure bugmail: https://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