A .deploy file is not deploying an XML file

给你一囗甜甜゛ 提交于 2019-12-03 12:28:26
dugas

The XML file is probably in the ClickOnce data directory (XML files are automatically marked as data files).

Read Accessing Local and Remote Data in ClickOnce Applications (MSDN). It explains how data files are used and accessed using ClickOnce. If you want to publish the XML file as an application file (you want it published to the same directory as the application), follow the steps below:

  1. Go into your Project's properties
  2. Go to the publish tab.
  3. Click "Application Files"
  4. Find your XML file in the list and change the "Publish Status" of your file to "Include".
  5. Change "Download Group" to "Required".

If you want to use it as a data file, there is an example in the mentioned article.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!