部署从Visual Studio 2013的Azure webjobs时,有些组件没有被包括在内 [英] Some assemblies not being included when deploying Azure webjobs from Visual Studio 2013

查看:265
本文介绍了部署从Visual Studio 2013的Azure webjobs时,有些组件没有被包括在内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Visual Studio 2013类库项目,这样的目录结构:

I've got a Visual Studio 2013 class library project, directory structure like this:

\MyClassLibraryProject
    \ExternalLibraries
        3rdPartyLib.dll
    \bin
       \Debug
       \Release
    etc.

里面ExternalLibraries我复制了一些第三方组件,我再从项目中引用(复制本地=真)。我编译该项目,并在我的版本目录当然,我看到我的MyClassLibraryProject.dll和第三方的DLL像3rdPartyLib.dll等。好为止。

Inside ExternalLibraries I copied some 3rd party assemblies which I then referenced from the project (Copy local = true). I compile the project and in my Release directory I of course see my MyClassLibraryProject.dll and the 3rd party DLLs like 3rdPartyLib.dll, etc.. Good so far.

然后,我有另一个项目(控制台应用程序 - 天青webjob)从中我添加一个参考\ MyClassLibraryProject \ BIN \发布\ MyClassLibraryProject.dll(复制本地=真)。它看起来是这样的:

Then I have another project (Console app - Azure webjob) from which I add a reference to the \MyClassLibraryProject\bin\Release\MyClassLibraryProject.dll (Copy local = true). It looks like this:

\MyWebjob
   \bin
       \Debug
           MyWebJob.exe
           MyClassLibraryProject.dll
           3rdPartyLib.dll

因此​​,大家可以看到,当我添加了一个参考MyClassLibraryProject.dll(与复制本地=真正的),它也复制了它的依赖程序集3rdPartyLib.dll。好为止。

So as you can see, when I added a reference to MyClassLibraryProject.dll (with Copy local = true), it also copied over it's dependent assembly 3rdPartyLib.dll. Good so far.

然而,当发布webjob项目天青(右键单击项目,发布...)3rdPartyLib.dll是的没有的部署。其结果是,在仪表板webjobs抱怨它不能被发现,当然webjob不执行

However, when publish the webjob project to Azure (right-click Project, Publish...) 3rdPartyLib.dll is not deployed. As a result, the webjobs dashboard complains it can't be found and of course the webjob doesn't execute.

这是用户错误还是其他什么东西?

Is this user error or something else?

推荐答案

这是一个问题。您需要手动配置或通过的NuGet添加依赖关系到webjob。

It's an issue. You need to manually deploy or add the dependencies to the webjob via nuget.

看看这个 <一href="http://stackoverflow.com/questions/25859089/relevant-dependencies-dll-not-being-copied-when-deploying-using-visual-studio">Relevant依赖(DLL)没有使用Visual Studio 2013 部署时复制

这篇关于部署从Visual Studio 2013的Azure webjobs时,有些组件没有被包括在内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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