Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename not working #9

Open
fgenolini opened this issue Sep 25, 2017 · 0 comments
Open

Rename not working #9

fgenolini opened this issue Sep 25, 2017 · 0 comments

Comments

@fgenolini
Copy link

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:

  • 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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants