MQTTnet
MQTTnet copied to clipboard
RefSafetyRulesAttribute - Runtime Exception
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
Sorry but I never heard of the Attribute before, and it is also not used in the repo in any version.