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

.net, clickonce, visual-studio-2008

Solution

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.

Problem

I'm using 'Publish' option in vs2008 and I'm pretty happy how it works. Now I'd like to add 2 external *.exe files to installed package I've noticed button 'Application Files...' at publish tab but it seems doesn't allow adding new files manualy. I've played with this and found the way how to archive that: 1. add EXE files to project as external items 2. change their property 'build action' to content Works well now but I'm receiving warrning info: ``` Assembly 'file_name.exe' is incorrectly specified as a file. C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets PROJ_NAME ``` Any idea how to resolve this warning / add exe files to deployment other way?

Original source