发布Azure WebJob,包括bin文件夹中的所有项目 [英] Publish Azure WebJob including all items from bin-folder

查看:435
本文介绍了发布Azure WebJob,包括bin文件夹中的所有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试发布连接到Azure网站的WebJob。所以我在网站上使用Publish。这将发布站点,并在App_Data文件夹内部部署WebJob的文件。

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.

问题是,我使用NuGet软件包Microsoft.SqlServer.Types里面WebJob带来2个dll,其中一个是C ++本机库。这个dll位于我的WebJob-bin文件夹的/ bin / SqlServerTypes中,该文件不会被publish-operation部署。仅部署直接放置在WebJob的bin文件夹内的项目。

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.

如何确保将WebJob项目的完整bin文件夹部署到App_Data在网上?

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:


  • 添加在WebSite项目中的WebJob项目的项目引用。

  • 在VS中的App_Data下生成文件夹结构,并引用该DLL。

编辑:结果,在App_Data文件夹下创建结构时,我有一个简单的拼写错误。在我的情况下,当我将这些dll添加到工具预期它们的文件夹中时,它工作。查看其他好的链接的答案。

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.

推荐答案

我有一个类似的问题。 查看这个。

I had a similar issue. Check this out.

据我所知,这还没有解决。解决办法是通过FTP复制相关依赖项。

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

希望这有帮助。

这篇关于发布Azure WebJob,包括bin文件夹中的所有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆