How to include custom data files in ClickOnce deployment?

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.


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.


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.

链接地址: http://www.djcxy.com/p/81658.html

上一篇: Visual Studio 2010 Web部署到IIS服务器

下一篇: 如何在ClickOnce部署中包含自定义数据文件?