A .deploy file is not deploying an XML file

前端 未结 1 1435
花落未央
花落未央 2021-02-14 11:29

I\'m developing an application using MS Visual C# 2008 Express that uses the ClickOnce deployment functionality. I publish the application to a a server where users can download

相关标签:
1条回答
  • 2021-02-14 11:58

    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.

    0 讨论(0)
提交回复
热议问题