Hi Steve,
Thank you for posting.
Firstly, please check the value of Build Action property of the xml file in
your project . To check this value, right-click the xml file in Solution
Explorer and select the Properties command. In the Property window, you
could see the value of Build Action property of the xml file.
If the xml file's Build Action property is set to "None" or "Compile" or
"Embedded Resource", the file has no chance to be published. For publishing
the xml file, please set the Build Action property of the file to "Content".
Secondly, you should set the Publish Status of the xml file correctly. Open
the Project Designer page(right-click the Project icon in Solution Explorer
and select the Properties command) and click the "Applicatio n Files.."
button opening an Application Files dialog box. In this dialog box, you
will see the xml file is listed in the listbox. To include the file in the
manifest and copy to the publish location when the publish command is
executed, you should set the Publish Status of the xml file to "Data File"
or "Include". The only difference between these two choices is that the
file will be located in different folders after end users install the
program.
If you set the Publish Status to "Data File", the xml file will be located
in a data directory which is stored in the user's Documents and Settings
folder after the ClickOnce application is installed on an end user's
machine. For information on reading from and writing to the Data Directory,
please refer to the following link.
http://msdn2.microsoft.com/en-us/lib...wy(d=ide).aspx
If you set the Publish Status to "Include", the xml file will be located in
the Application Directory where the application's executable (.exe) files
and assemblies reside. In this case, you could access this xml file
directly by a relative path.
Hope this is helpful to you.
If you have any other concerns or need anything else, please don't hesitate
to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support
=============== =============== =============== =======
When responding to posts,please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
=============== =============== =============== =======