Suppose we have two projects: main - ProjectA and some other ProjectB that reference ProjectA . In ProjectB , we have a FolderB folder with some files that should be included in the publication (pdf, rpt, etc.) of ProjectA .
Once we build ProjectA , all the files and folders that are referenced are in the bin . But when we publish the solution using the ClickOnce tool, the folders from the referenced ProjectB will not be included in the installer, and you will not see them in the Application Files window in the project publishing settings.
The solution for this is to create a new folder named FolderB in ProjectA and add the existing form of FolderB elements in ProjectB to this new folder in ProjectA using the Add as a link option. Then all files, including files associated with ProjectB folders, will be included in the publication.
source share