I'm testing the ClickOnce, but when I publish the project my referenced library isn't copied and there isn't any reference in the deploy or manifest files.
Does ClickOnce supports this? How can I add the library in the deploy manifest files?
ClickOnce does support publishing referenced DLLs. On the Publish Property page, click the 'Application Files' button to bring up the Application Files dialog. This dialog will list all files to be published. Your reference may be included, excluded or prerequisite (in the GAC).
The defaults for publishing references are:
Managed assembly with copy local = false will be published by default.
Managed assembly with copy local = true will be set as an assembly prerequisite. This means the assembly must be present in the GAC before the application will be installed.
COM references. By default we will publish the interop assembly, but not the COM component itself. If you wish to publish the COM component, set its isolated property to true. (These can be done by via the References Property Page. Select the COM reference and click the details button. There will be an 'isolated' check box on the Details dialog.) The COM component will be copied to the same directory as your executable and not be registered because we will create a Win32 component manifest for 'RegFree COM'.