Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class

After digging around in source i managed to get a more elaborate error description.

22.10.3+Branch.master.Sha.def2351dc828ccfbcddb6e9e07c9cf71b5bf55da

Object reference not set to an instance of an object.

Error: System.Exception: Object reference not set to an instance of an object.
   at System.Activities.Presentation.View.ImportDesigner.OnReferenceUpdated(Assembly assembly, Boolean isAdded)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2147467261