I've developed a library using the latest IBM amqmdnet.dll assembly, 9.1.3
When I run the .NET Core console application (2.2) I got the following exception
TypeLoadException: Could not load type 'System.Web.Configuration.WebConfigurationManager' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
I've disassembled the file with dotPeek and it references System.Web
Standing at documentation it supports .NET Core. The assembly I've created is a standard .NET Class library and when referenced by a .NET Full Framework console application it works.
Any suggestion? Thanks
amqmdnet.dll
is only for .net framework not core.
In the documentation link you provided it states:
From IBM MQ Version 9.1.1, the amqmdnetstd.dll library is available for .NET Standard support on Windows. Sample applications, including source files, are also supplied; see Sample applications for .NET.
I suggest you use amqmdnetstd.dll
.
我发现自己检查了这个 StackOverflow 问题和提供的文档链接,我发现现在有一个来自 IBM 的 NuGet 包,从 9.1.4 版开始: IBMMQDotnetClient
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.