MassTransit / Automatonymous

A state machine library for .Net - 100% code - No doodleware
Apache License 2.0
736 stars 116 forks source link

TypeLoadException when trying to create new MyStateMachine : MassTransitStateMachine<MySaga> #53

Closed jerackista closed 5 years ago

jerackista commented 5 years ago

Does anyone have idea what reference is missing. I can't find anything in EventCorrelationConfigurator or AutomatonymousIntegration

System.TypeLoadException: 'Could not load type 'Automatonymous.EventCorrelationConfigurator`2' from assembly 'MassTransit.AutomatonymousIntegration, Version=5.1.5.1633, Culture=neutral, PublicKeyToken=b8e0e9f2f1e657fa'.'

phatboyg commented 5 years ago

How are your event types defined? Public types, such as an interface or class?

jerackista commented 5 years ago

Ok I found out that it's working ok if I put SomeStateClass : MassTransitStateMachine into the console project if I put it to dll then it fails :|

phatboyg commented 5 years ago

So it might be that .NET requires a package reference to resolve the type?

jerackista commented 5 years ago

I've had all libraries referenced in dll. No idea what's happening I guess we can close this until I'll have more information. Thank you.