MQTTnet icon indicating copy to clipboard operation
MQTTnet copied to clipboard

RefSafetyRulesAttribute - Runtime Exception

Open wms-bp opened this issue 1 year ago • 1 comments

Describe your question

I am writing a driver for a sandboxed environment that runs Mono and supports .NETFramework 472. The sandboxed platform loads our assembly which references MQTTNet Nuget 4.3.6.1152. The platform uses a wrapped version of System.Reflection and upon calling GetTypes() on our assembly a System. TypeLoadException: RestrictionViolationException: System.Runtime.CompilerServices.RefSafetyRulesAttribute - Not allowed due to restrictions is thrown.

I've cloned the project and cannot find any usages of this attribute. I'm trying to figure out what might be causing this issue so I can build the project locally. Could anyone please offer any insight?

Thank you

Which project is your question related to?

  • Client

wms-bp avatar Jul 08 '24 16:07 wms-bp

Sorry but I never heard of the Attribute before, and it is also not used in the repo in any version.

chkr1011 avatar Jul 25 '24 19:07 chkr1011