How to include custom data files in ClickOnce deployment?

青春壹個敷衍的年華 提交于 2019-12-01 02:13:26

问题


Is it possible to include custom data files in ClickOnce deployment?

I couldn't find any option for this (Visual Studio 2005 and 2010). The Application Files dialog from the publish tab just doesn't show custom files.


回答1:


It actually possible, at least as of Visual Studio 2012 (most likely Visual Studio 2010 as well). The key is to set the build action on the file to "Content".

More information is in Custom Folders in ClickOnce.




回答2:


It seems that it is impossible. From ClickOnce Deployment Overview in ClickOnce Deployment Overview (MSDN):

Installation of shared files -- No

Also the article ClickOnce deployment or not? was very useful.



来源:https://stackoverflow.com/questions/2414823/how-to-include-custom-data-files-in-clickonce-deployment

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