[英]Deploy config files along with exes and dlls on windows CE device
Currently I am deploying my windows CE application on windows CE platform from vs 2008. It is running fine. 目前,我正在从2008年开始在Windows CE平台上部署Windows CE应用程序。它运行良好。
My only problem is I want to deploy config files along with exes and dlls. 我唯一的问题是我想与exe和dll一起部署配置文件。 Currently when I deploy, only exes and dlls are deployed but not the config files. 当前,当我部署时,仅部署exe和dll,而没有部署配置文件。
Properties for each config files are "Content" and "Copy always". 每个配置文件的属性为“内容”和“始终复制”。
Please help how can I deploy config files as well? 请帮助我如何也部署配置文件?
In your Solution Explorer, right-click the config file that you want to deploy and select properties. 在解决方案资源管理器中,右键单击要部署的配置文件,然后选择属性。 In the properties window, select ' Copy Always
' in ' Copy to Output Directory
' 在属性窗口中,在“ Copy to Output Directory
”中选择“ Copy Always
Copy to Output Directory
”
In your deployment project, make sure you include the folder where you've saved the config files. 在您的部署项目中,请确保您包括保存配置文件的文件夹。 This link explains how to add items to your deployment 此链接说明了如何向部署中添加项目
Note : If you are using Publish
from your solution explorer, then select Build Action
as None
and Copy to Output Directory
as Do not copy
注意 :如果使用的是从解决方案资源管理器中Publish
,则将“ Build Action
选择为“ None
并将“ Copy to Output Directory
为Do not copy
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.