public class ServiceBusTriggerAttribute 的 webjob sdk 代码分叉后出现异常
getting exception after webjob sdk code fork for public class ServiceBusTriggerAttribute
我从 here
获取所有 webjod sdk 代码
我想使用 Microsoft.Azure.WebJobs.ServiceBus.dll
制作 class ServiceBusTriggerAttribute
public 和非密封和创建的 nuget 包
但是当我在我的 webjob 项目中使用这个 nuget 时出现异常。
An unhandled exception of type 'System.IO.FileLoadException' occurred
in mscorlib.dll
Additional information: Could not load file or assembly
'Microsoft.Azure.WebJobs.ServiceBus, Version=1.1.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong
name validation failed. (Exception from HRESULT: 0x8013141A)
最近在 public 存储库 here 中讨论了这个问题。我不认为尝试对属性进行子类化是可行的方法。我在 github 问题中提出了一些替代方案。您会收到上述异常,因为所有 WebJobs SDK 程序集都是延迟签名的(在项目设置中)。它们需要完全签名才能使用。
我从 here
获取所有 webjod sdk 代码我想使用 Microsoft.Azure.WebJobs.ServiceBus.dll
制作 class ServiceBusTriggerAttribute
public 和非密封和创建的 nuget 包
但是当我在我的 webjob 项目中使用这个 nuget 时出现异常。
An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll
Additional information: Could not load file or assembly 'Microsoft.Azure.WebJobs.ServiceBus, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
最近在 public 存储库 here 中讨论了这个问题。我不认为尝试对属性进行子类化是可行的方法。我在 github 问题中提出了一些替代方案。您会收到上述异常,因为所有 WebJobs SDK 程序集都是延迟签名的(在项目设置中)。它们需要完全签名才能使用。