dotnet-state-machine / stateless

A simple library for creating state machines in C# code
Other
5.41k stars 747 forks source link

MissingManifestResourceException when TriggerWithParameter define #325

Open komponentwojtek opened 4 years ago

komponentwojtek commented 4 years ago

Hello,

I installed Stateless for Net ( 3.5 ) to use it Unity3d through NuGet for Unity. In that version when defined new TriggerWithParamater it works fine. But I needed method .PermitIf with arg which that version doesn't have. So uninstalled it and just copy-paste src files from github. BUT in that version when I want to define new TriggerWithParameter I get this

MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Stateless.ParameterConversionResources.resources" was correctly embedded or linked into assembly "Assembly-CSharp" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Can anyone explain me step by step how to manage with this?

aleneum commented 4 years ago

I did not manage to get the source working with resx files as well but there is a quite convenient way to use Stateless in Unity 2019: