Include a data file in a ClickOnce deployment

I have published several WPF applications using ClickOnce.  This is great because I can direct my users to a web page and they can just click a button and run their app.  Today, I needed to deploy a new application that uses a .xml file as input to a process.  I deployed it a half dozen times, all unsuccesfully because they didn't include my .xml file.

The solution:

Change the build action to "Content". 

 

Verify by looking at your Application files on the Publish tab of your project's properties.