-
Notifications
You must be signed in to change notification settings - Fork 132
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
Is there any way to sync deleted or renamed C# classes with typescript one? #319
Comments
It's not syncing, but we have a script to delete all generated files, and then just run "Render all templates" command for Typewriter. Also if you have "Add generated files to VS project" enabled(*), you can see those files that are no more relevant to be outside those .tst file, not under them on Solution Explorer. So simply by deleting all those generated files that are not under your .tst files, you are done. (*) which I do NOT recommend, as Visual Studio file management is worst I have seen and makes rendering templates dog slow. Eg. our full template rendering would take more than 1 hour(!!!) with "Add generated files to VS project", while it takes only less than 10 seconds to render all templates when that option is set to false. YMMV, of course. |
Thank you for quick respond :) ,I don't use "Add generated files to VS project" because my Typescript project is a separated web project. The command idea could be nice but very good point about Typewriter is that everything just work automatically, I mean with changing a class like adding a property or whatever it works very well without any need to think about it or executing a command, but it doesn't work just when you delete or rename some file which I believe it's possible to add as a new feature by an acceptable pain. |
Currently, this is the biggest issue with Typewriter. |
The problem is when I rename a class or remove one in c#, Typewriter can't detect and remove related typescript classes , which cause a mess with a lot of unused typescript classes in long term.
For example if we could override the way of creating file in target, and we were notified when a class is removing or renaming then we could manage it in very customizable way.
The text was updated successfully, but these errors were encountered: