Stateless-Designer
Stateless-Designer copied to clipboard
Rename not working
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
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,