You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for a simple useful extension to Visual Studio.
In Visual Studio 2017, with Stateless Designer 1.4, renaming a stateless file does not result in the class name being renamed.
Expected behavior: both XML item and automatically generated C# class name should take the new name after file rename
Example:
create new stateless file called WrongName.stateless
add some triggers, states, and transitions
save all files
using the Solution Explorer, right-click on the file and rename to CorrectName.stateless
both the stateless file and the cs file have the new name
however the and the generated C# class name are still WrongName
attempt to manually edit the and the extension reverts your edit to WrongName instead of keeping CorrectName, and the C# still has a class called WrongName
Workaround (annoying):
Edit the stateless file: set to CorrectName
Save
Delete the automatically generated cs
Close Visual Studio 2017
Reopen Visual Studio 2017
The CorrectName is now used everywhere
Regards,
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for a simple useful extension to Visual Studio.
In Visual Studio 2017, with Stateless Designer 1.4, renaming a stateless file does not result in the class name being renamed.
Expected behavior: both XML item and automatically generated C# class name should take the new name after file rename
Example:
Workaround (annoying):
Regards,
The text was updated successfully, but these errors were encountered: