Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Including dll View modes: 
User avatar
Member
Member
mrocha-visualantidote - 12/16/2013 2:17:10 PM
   
Including dll
Hello,

I'm trying to export a custom web part I created.
I'm wondering how I can include a DLL file as part of the web part export.
I found this thread which seemed to talk about the same issue, but I'm still not exactly sure where I should place my DLL for export purposes. If I include it as a reference in my local Kentico site, the web part will work fine, but if I then export the web part, the DLL file doesn't get included in the export zip file.

Any ideas?

Thanks in advance.

User avatar
Member
Member
kentico_sandroj - 12/17/2013 4:28:30 PM
   
RE:Including dll
Hello,

We have been working on this issue through e-mail so just as an update to the thread:
DLLs can be exported by adding them to a specific folder: ~\CMSWebParts\<webpartCodeName>_files

The issue is that when the file is imported, the DLL would not automatically copy to the Bin folder. It would be required to move the DLL to the Bin folder and add a Reference in Visual Studio. One suggestion we had for resolving this issue is setting up a custom scheduled task that runs every X minutes and checks for any new DLL files. If they are there and not in the bin folder, run a filecopy script. We are looking for ways to improve this process so if you have any suggestions please feel free to comment.

Please let me know if you have any questions.

Best Regards,
Sandro