How to add external file to application files ( clickonce / .NET)

Deadly 提交于 2019-12-05 04:52:45

I ended up adding it as a reference to my project and setting the Copy Local property to True. Now there is no warning, but make sure you don't accidentally remove it when you click the Unused References button.

I cannot reproduce your warning. Sorry.

However, if you would like an alternative way to deploy the files, I have used custom Prerequisites / bootstraps with my click once deployments to ensure items that must exist in external areas (Click once will only include files in the deployment folder).

Most recently I have deployed templates with VSTO applications. It works well.

Here is a decent reference on creating/adding them to click once deployment: http://msdn.microsoft.com/en-us/library/ms165429(VS.80).aspx

Ernie

In the Project menu, select Add existing item, change the file type to Executable Files and select your files. Then go to your project properties, in the publish tab, click the Application Files button and make sure your files are included

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