views:

291

answers:

2

By default ClickOnce will include all .xml files as data files. This results in the xml files are deployed in a data directory and not in the application directory.

Is there a way to generate the manifest from MSBuild/Mage that will include xml files as application files viz., not add the writeable="applicationData" attribute.

A: 

Can you just embed them as a resource in an assembly?

Eric Nicholson
Unfortunately not, it's two configuration files.
sduplooy
+1  A: 

You could try adding the XML files to the project and within their properties change:

[DELETED]

EDIT: Here's the information on changing the publish status of the file (with some modifications):

  • With a project selected in Solution Explorer, on the Project menu, click Properties.

  • Click the Publish tab.

  • Click the Application Files button to open the Application Files dialog box.

  • In the Application Files dialog box, select the XML file.

  • In the Publish Status field, select Include from the drop-down list.

CAbbott
The property is set to Copy always. The question is more about the deployment manifest and the attribute.
sduplooy
I believe I've found how to do it. I've modified my answer to reflect the changes required.
CAbbott
Thanks, CAbbot. I found this question by searching and you solved my problem.
frou