Bug 7254 - Access custom Xml files
Summary: Access custom Xml files
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: dean.ellis
Depends on:
Reported: 2012-09-18 10:29 UTC by Sri
Modified: 2016-08-03 15:24 UTC (History)
6 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Sri 2012-09-18 10:29:50 UTC
I have put an xml file which I need to read from in the application directory. I have made the File as a content and given the property to copy always which I assume will copy the file into the application folder when I try debugging it on the emulator. Then I use the following code to get all files present inside the application folder and all I see is it returns empty without any files in it am I doing something wrong or is this not working at all?
When I was chatting the admin suggested me to report this as a bug.

string path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
            DirectoryInfo In = new DirectoryInfo(path);
            string AllFiles = string.Empty;
            foreach (FileInfo f in In.GetFiles())
                AllFiles += "," + f.Name;

The string "AllFiles" is empty when it comes out of the foreach loop.
Comment 1 Miguel de Icaza [MSFT] 2013-05-22 15:04:27 UTC
Can you show the contents of the System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal)?

And whether you have files stored there at all?
Comment 2 PJ 2013-11-19 17:03:57 UTC
This bug has been in the NEEDINFO state with no changes for the last 90 days. Can we put this back into the NEW or CONFIRMED state, or are we still awaiting response?

If there is no change in the status of this bug over the next two weeks, this bug will be marked as NORESPONSE.
Comment 3 PJ 2013-12-05 18:33:58 UTC
This bug has not been changed from the NEEDINFO state since my previous comment, marking as RESOLVED NORESPONSE.

Please feel free to REOPEN this bug at any time if you are still experiencing the issue. Please add the requested information and set the bug back to the NEW (or CONFIRMED) state.