【问题标题】:I have fork class ServiceBusTriggerAttribute to public and removed sealed - getting exception [duplicate]我有 fork 类 ServiceBusTriggerAttribute 到公共并删除了密封 - 得到异常 [重复]
【发布时间】:2015-11-04 00:13:57
【问题描述】:

我从github获取了一个sdk代码并fork了class ServiceBusTriggerAttribute.cs public removed sealed

namespace Microsoft.Azure.WebJobs
{
// Summary:
// Represents an attribute that binds a parameter to a Service Bus Queue message,
// causing the method to run when a message is enqueued.
//
// Remarks:
// The method parameter type can be one of the following: BrokeredMessage System.String
// byte[] A user-defined type (serialized as JSON)
[AttributeUsage(AttributeTargets.Parameter)]
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class ServiceBusTriggerAttribute : Attribute

并从 .nuspec 文件中创建了 3 个 nugets

WebJobs.Core.nuspec
WebJobs.nuspec
WebJobs.ServiceBus.nuspec

在运行我的网络作业时安装这些新创建的包后,我收到以下错误:

发生“System.IO.FileLoadException”类型的未处理异常 在 mscorlib.dll 中

附加信息:无法加载文件或程序集 'Microsoft.Azure.WebJobs.Host,版本=1.1.0.0,文化=中性, PublicKeyToken=31bf3856ad364e35' 或其依赖项之一。强的 名称验证失败。 (HRESULT 异常:0x8013141A)

【问题讨论】:

    标签: c# azure azure-webjobs azure-webjobssdk


    【解决方案1】:

    此问题已在此处的重复帖子中提出和讨论:getting exception after webjob sdk code fork for public class ServiceBusTriggerAttribute

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-27
      • 1970-01-01
      • 1970-01-01
      • 2019-06-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多