deploy application dependencies to program folder or GAC [duplicate]
Possible Duplicate:
When should I deploy my assemblies into the GAC? 开发者_StackOverflow
How do you deploy your applications?
- copy all necessary DLLs (your own, 3rd party, etc.) into the application folder and be finished
or
- deploy some or all dependent DLLs to the GAC
Is there a best practice which of the above solutions to use and which DLLs go into the application folder vs GAC?
I am using ClickOnce. So, I do not worry about versioning, GAC and other stuff, i just create additional folders in project solutions to copy 3-d party assemblies into, and do not have any of difficulties with updates, besause it is very easy to implement custom update system using built-in update system and reflection (for custom versioning), you can easily find this information about ClickIOnce deployment and custom updates
for simplicity, i recommend to use this directory structure:
<assembly set>\<assembly name>\<assembly version>\
For example:
media\ui\1.0.0.0\ui.dll
or
assemblies\libvnc\1.11.10\libvnc.dll
精彩评论