我将 class ServiceBusTriggerAttribute 分叉到 public 并删除了 sealed - 出现异常

I have fork class ServiceBusTriggerAttribute to public and removed sealed - getting exception

我从 github 获取了一个 sdk 代码并创建了一个分支 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

在 运行 我的 webjob 安装这些新创建的软件包后,出现以下错误:

An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll

Additional information: Could not load file or assembly 'Microsoft.Azure.WebJobs.Host, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)

此问题已在此处 post 重复提出和讨论: