tag:help.appveyor.com,2012-11-13:/discussions/questions/3419-how-to-deploy-custom-dll-along-with-azure-functionAppVeyor: Discussion 2018-08-25T02:15:35Ztag:help.appveyor.com,2012-11-13:Comment/421239032017-03-09T20:51:23Z2017-03-09T20:51:26Zhow to deploy custom dll along with azure function.<div><p>I have asked this question on stack overflow - will ask it here again!</p>
<p>Deploying azure function using appveyor is straightforward as described by this article - <a href="https://alastairchristian.com/deploying-azure-functions-from-appveyor-75fe03771d0c#.x7stvprna">https://alastairchristian.com/deploying-azure-functions-from-appvey...</a></p>
<p>Further what I am not able to figure out is how to deploy a custom dll (library part of the same repo) in the /bin folder to be able to use #r and use the reference.</p>
<p>Manual process is just to copy the dll in the /bin folder using Kudu and start using it.</p>
<p>Also refer to this discussion on appveyor - <a href="http://help.appveyor.com/discussions/questions/2842-deployment-to-azure-function-app">http://help.appveyor.com/discussions/questions/2842-deployment-to-a...</a></p></div>ashrivastav2tag:help.appveyor.com,2012-11-13:Comment/421239032017-03-09T21:21:35Z2017-03-09T21:21:51Zhow to deploy custom dll along with azure function.<div><p>I see 2 workarounds:</p>
<ul>
<li>Add dll to your package</li>
<li>After deployment (as part of <code>after_deploy</code> script) call Kudu API to execute <code>copy</code> command to copy this dll to <code>bin</code> folder. <a href="https://gist.github.com/IlyaFinkelshteyn/fcbe7e1a3fe0f601944f1cf87c449be5">Here</a> is sample on how to do this. You can first debug this command to have all correct relative paths in the <a href="https://azure.microsoft.com/en-us/resources/videos/super-secret-kudu-debug-console-for-azure-web-sites/">Kudu debug console</a></li>
</ul>
<p>or</p>
<ul>
<li>Use <a href="https://www.appveyor.com/docs/deployment/ftp/">FTP deployment provider</a> to upload your dll. With FTP you should have access to <code>bin</code> folder.</li>
</ul>
<p>P.S. I will delete duplicated post from <a href="http://help.appveyor.com/discussions/questions/2842-deployment-to-azure-function-app">http://help.appveyor.com/discussions/questions/2842-deployment-to-a...</a></p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/421239032017-03-09T21:56:14Z2017-03-09T21:56:14Zhow to deploy custom dll along with azure function.<div><p>Thanks. the first thing i am trying though is using 7z to get the extra files into the same artifact as below -</p>
<ul>
<li>7z a AzureFuncCIPOC.zip .\AzureFuncCIPOC* -i!MyLibrary\bin\</li>
</ul>
<p>It does the job but not the folder structure I want. Any suggestions? (see attached, I want all the dlls from My library to go to ManualTriggerCSharp/bin folder)</p></div>ashrivastav2tag:help.appveyor.com,2012-11-13:Comment/421239032017-03-09T22:18:57Z2017-03-09T22:18:57Zhow to deploy custom dll along with azure function.<div><p>I was able to solve this as explained here - <a href="http://stackoverflow.com/questions/42704588/how-to-deploy-a-custom-dll-along-with-azure-function-using-appveyor/42706551#42706551">http://stackoverflow.com/questions/42704588/how-to-deploy-a-custom-...</a>.</p>
<p>Thanks!</p></div>ashrivastav2tag:help.appveyor.com,2012-11-13:Comment/421239032017-03-09T22:27:02Z2017-03-09T22:27:02Zhow to deploy custom dll along with azure function.<div><p>Thanks for update!</p></div>Ilya Finkelshteyn