Publish Azure WebJob including all items from bin-folder

独自空忆成欢 提交于 2019-12-14 02:36:59

问题


I'm trying to publish my WebJob which is connected to an Azure Website. So I use Publish on the website. This will publish the site and inside the App_Data-Folder the files for the WebJob are deployed.

The problem is, that I use the NuGet package Microsoft.SqlServer.Types inside the WebJob which brings 2 dlls one of which is a C++ native lib. This dll lays in "/bin/SqlServerTypes" of my WebJob-bin-folder which wouldn't be deployed by the publish-operation. Only items directly laying inside of the bin-Folder of the WebJob are deployed.

How can I ensure, that the complete bin-folder from the WebJob-project is deployed to App_Data on the web?

What I tried so far is:

  • Adding a project-reference to the WebJob-project in the WebSite-project.
  • Generating the folder-structure under App_Data in VS and referencing the dll there.

Edit: Turns out, that I had a simple spelling bug when creating the structure beneath the App_Data-Folder. In my case it worked when I just added those dlls in the folder the tooling expected them to be. See the answers for other good links.


回答1:


I had a similar issue. Check this out.

As far as I know, this hasn't been solved yet. A workaround is to copy the relevant dependencies via FTP.

Hope this helps.



来源:https://stackoverflow.com/questions/27495492/publish-azure-webjob-including-all-items-from-bin-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!