Skip to content

WPF Store application failed to loads the output directory files due to wrong current directory #43126

@mageshsankar

Description

@mageshsankar

Description

I have published WPF application in Store SampleBrowser, and it fails to load an document file(Books.xml - Build Action : Content, Copy to output directory: Copy Always) so application crash on loading xml document. Please find the below code how we have loaded xml document and exception screenshot below:

XDocument xDocument = XDocument.Load(@"Assets/TileView/Books.xml");

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.IOquestionAnswer questions and provide assistance, not an issue with source code or documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions