简体   繁体   中英

Visual Studio 2013 Click Once Deployment

I have a click once deployment project that has been working fine for a long time now. I added some new dll's to a project that is referenced by it. The dll's can't be referenced in references, so I added them as files to the project.

Build Action is Content, copy to output directory is copy always.

when I build the application, the dll's appear in the bin\\debug directory. The program uses them just fine too on my computer. When I deploy the application, the dll's don't make it to the other computer.

Under Publish in application properties I went to application files. the dll's I need are not listed there to be included in the deployment.

I would love some help, I feel like I'm missing something really simple.

I have a feeling if I put the dll's in the main project, it would work. I don't really want to do this, I would like to keep them all located in the project they are actually used in.

When I deploy the application, the dll's don't make it to the other computer.

...

Under Publish in application properties I went to application files. the dll's I need are not listed there to be included in the deployment.

You need to set them to download with the application. Click the DLL in the project properties, then press F4. Set the Build Action to Content, and the Copy to Output Directory to something like 'Copy if newer'

在此处输入图片说明

For information - it is likely if you download the DLLs for referencing by a built exe (for example) you may need to configure a manifest file for the executable as well to get it to pick up the DLLS correctly

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM