Odd WeakReferenceMessenger error #342
Replies: 2 comments 11 replies
-
That doesn't look right. What NuGet version are you using? What TFM are you using? Are you using .NET 7 preview by any chance? 🤔 |
Beta Was this translation helpful? Give feedback.
-
I'm also encountered with this problem. using nuget package 8.3.2, but still when using
For more information. If I install RevitPython shell with System.Runtime.CompilerServices.Unsafe.dll version of 4.6.28619.1 and it loads in Revit before my plugin, everything works fine. But if i delete it — got this exception |
Beta Was this translation helpful? Give feedback.
-
I have been using WeakReferenceMessenger service to communicate between ViewModels. I have nested structure, there is a 'Parent' ViewModel which contains 'Child' ViewModels and I want to get notice of state changes in 'Child' VMs.
In the Parent constructor i register as a receiver:
In the nested Child VM I will publish a message:
This works as expected in a test Harness project on my machine.
However, when a colleague runs this we are getting this error when sending the message:
Method not found: 'Boolean System.Runtime.CompilerServices.Unsafe.IsNullRef(!!0 ByRef)
Anyone recognize this? Since I cannot duplicate on my machine I'm struggling to investigate.
Beta Was this translation helpful? Give feedback.
All reactions