When I deploy a project, the project fails on creating XML files. It works fine in Visual Studio. It says they are read only when it's deployed.
Here is what I have for one of the two xml file generators:
void write_pstest_file()
{
XDocument pstest_file = new XDocument(
new XElement("testmenu",
new XElement("showwebhelp", "true"),
new XElement("menuitem",
new XAttribute("key", "ca93df85-9204-4245-a587-b63439f4a3a2"),
new XElement("includefile", "picoTMS.pstest")
)
)
);
pstest_file.Save("C:\\Program Files (x86)\\Pico Technology\\PicoScope6 Automotive\\test.pstest");
}
How can I make these non read-only so they can be created once the app is deployed? Google sites are of no-help. :(