Можно ли использовать ZeroMQ (версия 4.1.0.31) в основном проекте .NET? Похоже, что предназначено только для .NET Framework. Если я загружаю пакет из nuget и пытаюсь инициализировать ZContext
, возникает исключение.
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for 'ZeroMQ.lib.zmq' threw an exception.
Source=ZeroMQ
StackTrace:
at ZeroMQ.ZContext..ctor()
at TestClient.Program.Main(String[] args) in Program.cs:line 2521
Inner Exception 1:
TypeInitializationException: The type initializer for 'ZeroMQ.ZSymbol' threw an exception.
Inner Exception 2:
FieldAccessException: Cannot set initonly static field 'EPERM' after type 'ZeroMQ.ZError' is initialized.